diff --git a/README.md b/README.md index 7e381e2a..319a74dd 100644 --- a/README.md +++ b/README.md @@ -311,6 +311,11 @@ browser, particularly if one changes the defaults. the escaped filename exceeds the length of 254 characters (the shortest typical modern file length maximum). Provide a number to change the limit or supply `false` to disable any length checking. +- __escapeNFDForDatabaseNames__ - Boolean defaulting to true on whether + to escape NFD-escaping characters to avoid clashes on MacOS which + performs NFD on files +- __addSQLiteExtension__ - Boolean on whether to add the `.sqlite` extension + to file names; defaults to `true` The following config items are for Node only and are mostly for development debugging. diff --git a/dist/indexeddbshim-UnicodeIdentifiers-node.js b/dist/indexeddbshim-UnicodeIdentifiers-node.js index a5de099a..3e51fd5b 100644 --- a/dist/indexeddbshim-UnicodeIdentifiers-node.js +++ b/dist/indexeddbshim-UnicodeIdentifiers-node.js @@ -8567,6 +8567,8 @@ Typeson.isUserObject = isUserObject; module.exports = Typeson; },{}],323:[function(require,module,exports){ +module.exports=/[\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]|\uD834[\uDD5E-\uDD64\uDDBB-\uDDC0]/ +},{}],324:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -8579,11 +8581,6 @@ var CFG = {}; // Boolean for verbose reporting 'DEBUG', // Effectively defaults to false (ignored unless `true`) -// Used when setting global shims to determine whether to try to add -// other globals shimmed by the library (`ShimDOMException`, `ShimDOMStringList`, -// `ShimEvent`, `ShimCustomEvent`, `ShimEventTarget`) -'addNonIDBGlobals', // Effectively defaults to false (ignored unless `true`) - // Determines whether the slow-performing `Object.setPrototypeOf` calls required // for full WebIDL compliance will be used. Probably only needed for testing // or environments where full introspection on class relationships is required; @@ -8603,14 +8600,6 @@ var CFG = {}; 'UnicodeIDStart', // In the non-Unicode builds, defaults to /[$A-Z_a-z]/ 'UnicodeIDContinue', // In the non-Unicode builds, defaults to /[$0-9A-Z_a-z]/ -// NODE-SPECIFIC CONFIG -// Boolean on whether to delete the database file itself after `deleteDatabase`; -// defaults to `true` as the database will be empty -'deleteDatabaseFiles', -// Boolean on whether to add the `.sqlite` extension to file names; -// defaults to `true` -'addSQLiteExtension', - // -----------SQL CONFIG---------- // Object (`window` in the browser) on which there may be an // `openDatabase` method (if any) for WebSQL. (The browser @@ -8630,6 +8619,14 @@ var CFG = {}; // quota every five megabytes." 'DEFAULT_DB_SIZE', // Defaults to (4 * 1024 * 1024) or (25 * 1024 * 1024) in Safari +// NODE-IMPINGING SETTINGS (created for sake of limitations in Node or desktop file +// system implementation but applied by default in browser for parity) + +// Used when setting global shims to determine whether to try to add +// other globals shimmed by the library (`ShimDOMException`, `ShimDOMStringList`, +// `ShimEvent`, `ShimCustomEvent`, `ShimEventTarget`) +'addNonIDBGlobals', // Effectively defaults to false (ignored unless `true`) + // Overcoming limitations with node-sqlite3/storing database name on file systems // https://en.wikipedia.org/wiki/Filename#Reserved_characters_and_words 'escapeDatabaseName', // Defaults to prefixing database with `D_`, escaping @@ -8641,8 +8638,18 @@ var CFG = {}; // (characters nevertheless commonly reserved in modern, Unicode-supporting // systems): 0x00-0x1F 0x7F " * / : < > ? \ | 'databaseNameLengthLimit', // Defaults to 254 (shortest typical modern file length limit) +'escapeNFDForDatabaseNames', // Boolean defaulting to true on whether to escape NFD-escaping +// characters to avoid clashes on MacOS which performs NFD on files +// Boolean on whether to add the `.sqlite` extension to file names; +// defaults to `true` +'addSQLiteExtension', + +// NODE-SPECIFIC CONFIG +// Boolean on whether to delete the database file itself after `deleteDatabase`; +// defaults to `true` as the database will be empty +'deleteDatabaseFiles', -// Optional Node WebSQL config +// NODE-SPECIFIC WEBSQL CONFIG 'sqlBusyTimeout', // Defaults to 1000 'sqlTrace', // Callback not used by default 'sqlProfile' // Callback not used by default @@ -8660,7 +8667,7 @@ var CFG = {}; exports.default = CFG; module.exports = exports['default']; -},{}],324:[function(require,module,exports){ +},{}],325:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -8968,7 +8975,7 @@ exports.ShimDOMException = ShimDOMException; exports.createDOMException = createDOMException; exports.webSQLErrback = webSQLErrback; -},{"./CFG":323}],325:[function(require,module,exports){ +},{"./CFG":324}],326:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -9154,7 +9161,7 @@ if (cleanInterface) { exports.default = DOMStringList; module.exports = exports['default']; -},{}],326:[function(require,module,exports){ +},{}],327:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -9188,7 +9195,7 @@ exports.ShimEvent = _eventtarget.ShimEvent; exports.ShimCustomEvent = _eventtarget.ShimCustomEvent; exports.ShimEventTarget = _eventtarget.ShimEventTarget; -},{"./util":343,"eventtarget":297}],327:[function(require,module,exports){ +},{"./util":344,"eventtarget":297}],328:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -9833,7 +9840,7 @@ Object.defineProperty(IDBCursorWithValue, 'prototype', { exports.IDBCursor = IDBCursor; exports.IDBCursorWithValue = IDBCursorWithValue; -},{"./CFG":323,"./DOMException":324,"./IDBFactory":329,"./IDBIndex":330,"./IDBKeyRange":331,"./IDBObjectStore":332,"./IDBRequest":333,"./IDBTransaction":334,"./Key":336,"./Sca":337,"./util":343}],328:[function(require,module,exports){ +},{"./CFG":324,"./DOMException":325,"./IDBFactory":330,"./IDBIndex":331,"./IDBKeyRange":332,"./IDBObjectStore":333,"./IDBRequest":334,"./IDBTransaction":335,"./Key":337,"./Sca":338,"./util":344}],329:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -10141,7 +10148,7 @@ Object.defineProperty(IDBDatabase, 'prototype', { exports.default = IDBDatabase; module.exports = exports['default']; -},{"./CFG":323,"./DOMException":324,"./DOMStringList":325,"./Event":326,"./IDBObjectStore":332,"./IDBTransaction":334,"./Sca":337,"./util":343,"eventtarget":297}],329:[function(require,module,exports){ +},{"./CFG":324,"./DOMException":325,"./DOMStringList":326,"./Event":327,"./IDBObjectStore":333,"./IDBTransaction":335,"./Sca":338,"./util":344,"eventtarget":297}],330:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -10694,7 +10701,7 @@ exports.IDBFactory = IDBFactory; exports.cmp = cmp; exports.shimIndexedDB = shimIndexedDB; -},{"./CFG":323,"./DOMException":324,"./DOMStringList":325,"./Event":326,"./IDBDatabase":328,"./IDBRequest":333,"./IDBTransaction":334,"./IDBVersionChangeEvent":335,"./Key":336,"./util":343,"fs":undefined,"path":undefined}],330:[function(require,module,exports){ +},{"./CFG":324,"./DOMException":325,"./DOMStringList":326,"./Event":327,"./IDBDatabase":329,"./IDBRequest":334,"./IDBTransaction":335,"./IDBVersionChangeEvent":336,"./Key":337,"./util":344,"fs":undefined,"path":undefined}],331:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -11310,7 +11317,7 @@ exports.executeFetchIndexData = executeFetchIndexData; exports.IDBIndex = IDBIndex; exports.default = IDBIndex; -},{"./CFG":323,"./DOMException":324,"./IDBCursor":327,"./IDBKeyRange":331,"./IDBObjectStore":332,"./IDBTransaction":334,"./Key":336,"./Sca":337,"./util":343}],331:[function(require,module,exports){ +},{"./CFG":324,"./DOMException":325,"./IDBCursor":328,"./IDBKeyRange":332,"./IDBObjectStore":333,"./IDBTransaction":335,"./Key":337,"./Sca":338,"./util":344}],332:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -11494,7 +11501,7 @@ exports.IDBKeyRange = IDBKeyRange; exports.convertValueToKeyRange = convertValueToKeyRange; exports.default = IDBKeyRange; -},{"./DOMException":324,"./Key":336,"./util":343}],332:[function(require,module,exports){ +},{"./DOMException":325,"./Key":337,"./util":344}],333:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -12378,7 +12385,7 @@ Object.defineProperty(IDBObjectStore, 'prototype', { exports.default = IDBObjectStore; module.exports = exports['default']; -},{"./CFG":323,"./DOMException":324,"./DOMStringList":325,"./IDBCursor":327,"./IDBIndex":330,"./IDBKeyRange":331,"./IDBTransaction":334,"./Key":336,"./Sca":337,"./util":343,"sync-promise":299}],333:[function(require,module,exports){ +},{"./CFG":324,"./DOMException":325,"./DOMStringList":326,"./IDBCursor":328,"./IDBIndex":331,"./IDBKeyRange":332,"./IDBTransaction":335,"./Key":337,"./Sca":338,"./util":344,"sync-promise":299}],334:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -12595,7 +12602,7 @@ Object.defineProperty(IDBOpenDBRequest, 'prototype', { exports.IDBRequest = IDBRequest; exports.IDBOpenDBRequest = IDBOpenDBRequest; -},{"./DOMException":324,"./util":343,"eventtarget":297}],334:[function(require,module,exports){ +},{"./DOMException":325,"./util":344,"eventtarget":297}],335:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -13211,7 +13218,7 @@ Object.defineProperty(IDBTransaction, 'prototype', { exports.default = IDBTransaction; module.exports = exports['default']; -},{"./CFG":323,"./DOMException":324,"./Event":326,"./IDBObjectStore":332,"./IDBRequest":333,"./util":343,"eventtarget":297,"sync-promise":299}],335:[function(require,module,exports){ +},{"./CFG":324,"./DOMException":325,"./Event":327,"./IDBObjectStore":333,"./IDBRequest":334,"./util":344,"eventtarget":297,"sync-promise":299}],336:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -13276,7 +13283,7 @@ Object.defineProperty(IDBVersionChangeEvent, 'prototype', { exports.default = IDBVersionChangeEvent; module.exports = exports['default']; -},{"./Event":326,"./util":343}],336:[function(require,module,exports){ +},{"./Event":327,"./util":344}],337:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -14090,7 +14097,7 @@ exports.findMultiEntryMatches = findMultiEntryMatches; exports.generateKeyForStore = generateKeyForStore; exports.possiblyUpdateKeyGenerator = possiblyUpdateKeyGenerator; -},{"./CFG":323,"./DOMException":324,"./IDBFactory":329,"./util":343}],337:[function(require,module,exports){ +},{"./CFG":324,"./DOMException":325,"./IDBFactory":330,"./util":344}],338:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -14154,7 +14161,7 @@ exports.encode = encode; exports.decode = decode; exports.clone = clone; -},{"./DOMException":324,"typeson":322,"typeson-registry/presets/structured-cloning-throwing":301}],338:[function(require,module,exports){ +},{"./DOMException":325,"typeson":322,"typeson-registry/presets/structured-cloning-throwing":301}],339:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -14169,7 +14176,7 @@ var UnicodeIDContinue = '(?:[$0-9A-Z_a-z\\xAA\\xB5\\xB7\\xBA\\xC0-\\xD6\\xD8-\\x exports.UnicodeIDStart = UnicodeIDStart; exports.UnicodeIDContinue = UnicodeIDContinue; -},{}],339:[function(require,module,exports){ +},{}],340:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -14208,7 +14215,7 @@ var __setGlobalVars = function __setGlobalVars(idb, initialConfig) { exports.default = __setGlobalVars; module.exports = exports['default']; -},{"./CFG":323,"./UnicodeIdentifiers":338,"./nodeWebSQL":340,"./setGlobalVars":342}],340:[function(require,module,exports){ +},{"./CFG":324,"./UnicodeIdentifiers":339,"./nodeWebSQL":341,"./setGlobalVars":343}],341:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -14247,7 +14254,7 @@ var nodeWebSQL = (0, _custom2.default)(wrappedSQLiteDatabase); exports.default = nodeWebSQL; module.exports = exports['default']; -},{"./CFG":323,"websql/custom":undefined,"websql/lib/sqlite/SQLiteDatabase":undefined}],341:[function(require,module,exports){ +},{"./CFG":324,"websql/custom":undefined,"websql/lib/sqlite/SQLiteDatabase":undefined}],342:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -14609,7 +14616,7 @@ function validateKeyLength(key) { exports.default = polyfill; module.exports = exports['default']; -},{"./DOMException":324,"./Key":336}],342:[function(require,module,exports){ +},{"./DOMException":325,"./Key":337}],343:[function(require,module,exports){ (function (global){ 'use strict'; @@ -14836,7 +14843,7 @@ exports.default = setGlobalVars; module.exports = exports['default']; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"./CFG":323,"./DOMException":324,"./IDBCursor":327,"./IDBDatabase":328,"./IDBFactory":329,"./IDBIndex":330,"./IDBKeyRange":331,"./IDBObjectStore":332,"./IDBRequest":333,"./IDBTransaction":334,"./IDBVersionChangeEvent":335,"./polyfill":341,"babel-polyfill":1}],343:[function(require,module,exports){ +},{"./CFG":324,"./DOMException":325,"./IDBCursor":328,"./IDBDatabase":329,"./IDBFactory":330,"./IDBIndex":331,"./IDBKeyRange":332,"./IDBObjectStore":333,"./IDBRequest":334,"./IDBTransaction":335,"./IDBVersionChangeEvent":336,"./polyfill":342,"babel-polyfill":1}],344:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -14850,6 +14857,10 @@ var _CFG = require('./CFG'); var _CFG2 = _interopRequireDefault(_CFG); +var _regex = require('unicode-9.0.0/Binary_Property/Expands_On_NFD/regex'); + +var _regex2 = _interopRequireDefault(_regex); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function escapeNameForSQLiteIdentifier(arg) { @@ -14900,6 +14911,12 @@ function escapeDatabaseNameForSQLAndFiles(db) { return _CFG2.default.escapeDatabaseName(escapeSQLiteStatement(db)); } db = 'D' + escapeNameForSQLiteIdentifier(db); + if (_CFG2.default.escapeNFDForDatabaseNames !== false) { + // ES6 copying of regex with different flags + db = db.replace(new RegExp(_regex2.default, 'g'), function (expandable) { + return '^4' + expandable.codePointAt().toString(16).padStart(6, '0'); + }); + } if (_CFG2.default.databaseCharacterEscapeList !== false) { db = db.replace(_CFG2.default.databaseCharacterEscapeList ? new RegExp(_CFG2.default.databaseCharacterEscapeList, 'g') : /[\u0000-\u001F\u007F"*/:<>?\\|]/g, function (n0) { return '^1' + n0.charCodeAt().toString(16).padStart(2, '0'); @@ -14922,17 +14939,23 @@ function unescapeDatabaseNameForSQLAndFiles(db) { } return db.slice(2) // D_ + // CFG.databaseCharacterEscapeList .replace(/(\^+)1([0-9a-f]{2})/g, function (_, esc, hex) { - return esc % 2 ? String.fromCharCode(parseInt(hex, 16)) : _; - }) // databaseCharacterEscapeList + return esc.length % 2 ? String.fromCharCode(parseInt(hex, 16)) : _; + }) + // CFG.escapeNFDForDatabaseNames + .replace(/(\^+)4([0-9a-f]{6})/g, function (_, esc, hex) { + return esc.length % 2 ? String.fromCodePoint(parseInt(hex, 16)) : _; + }) + // escapeNameForSQLiteIdentifier .replace(/(\^+)3\uD800([\uDC00-\uDFFF])/g, function (_, esc, lowSurr) { - return esc % 2 ? lowSurr : _; + return esc.length % 2 ? lowSurr : _; }).replace(/(\^+)2([\uD800-\uDBFF])\uDC00/g, function (_, esc, highSurr) { - return esc % 2 ? highSurr : _; + return esc.length % 2 ? highSurr : _; }).replace(/(\^+)([A-Z])/g, function (_, esc, upperCase) { - return esc % 2 ? upperCase : _; + return esc.length % 2 ? upperCase : _; }).replace(/(\^+)0/g, function (_, esc) { - return esc % 2 ? '\0' : _; + return esc.length % 2 ? '\0' : _; }).replace(/\^\^/g, '^'); } @@ -15108,5 +15131,5 @@ exports.enforceRange = enforceRange; exports.convertToDOMString = convertToDOMString; exports.convertToSequenceDOMString = convertToSequenceDOMString; -},{"./CFG":323}]},{},[339])(339) +},{"./CFG":324,"unicode-9.0.0/Binary_Property/Expands_On_NFD/regex":323}]},{},[340])(340) }); \ No newline at end of file diff --git a/dist/indexeddbshim-UnicodeIdentifiers-node.min.js b/dist/indexeddbshim-UnicodeIdentifiers-node.min.js index 62fca22e..9474b6ce 100644 --- a/dist/indexeddbshim-UnicodeIdentifiers-node.min.js +++ b/dist/indexeddbshim-UnicodeIdentifiers-node.min.js @@ -2,8 +2,9 @@ var d=a("./_to-integer"),e=a("./_defined");b.exports=function(a){return function(b,c){var f,g,h=String(e(b)),i=d(c),j=h.length;return i<0||i>=j?a?"":void 0:(f=h.charCodeAt(i),f<55296||f>56319||i+1===j||(g=h.charCodeAt(i+1))<56320||g>57343?a?h.charAt(i):f:a?h.slice(i,i+2):g-56320+(f-55296<<10)+65536)}}},{"./_defined":28,"./_to-integer":107}],99:[function(a,b,c){var d=a("./_is-regexp"),e=a("./_defined");b.exports=function(a,b,c){if(d(b))throw TypeError("String#"+c+" doesn't accept regex!");return String(e(a))}},{"./_defined":28,"./_is-regexp":51}],100:[function(a,b,c){var d=a("./_export"),e=a("./_fails"),f=a("./_defined"),g=function(a,b,c,d){var e=String(f(a)),g="<"+b;return""!==c&&(g+=" "+c+'="'+String(d).replace(/"/g,""")+'"'),g+">"+e+""};b.exports=function(a,b){var c={};c[a]=b(g),d(d.P+d.F*e(function(){var b=""[a]('"');return b!==b.toLowerCase()||b.split('"').length>3}),"String",c)}},{"./_defined":28,"./_export":33,"./_fails":35}],101:[function(a,b,c){var d=a("./_to-length"),e=a("./_string-repeat"),f=a("./_defined");b.exports=function(a,b,c,g){var h=String(f(a)),i=h.length,j=void 0===c?" ":String(c),k=d(b);if(k<=i||""==j)return h;var l=k-i,m=e.call(j,Math.ceil(l/j.length));return m.length>l&&(m=m.slice(0,l)),g?m+h:h+m}},{"./_defined":28,"./_string-repeat":102,"./_to-length":109}],102:[function(a,b,c){"use strict";var d=a("./_to-integer"),e=a("./_defined");b.exports=function(a){var b=String(e(this)),c="",f=d(a);if(f<0||1/0==f)throw RangeError("Count can't be negative");for(;f>0;(f>>>=1)&&(b+=b))1&f&&(c+=b);return c}},{"./_defined":28,"./_to-integer":107}],103:[function(a,b,c){var d=a("./_export"),e=a("./_defined"),f=a("./_fails"),g=a("./_string-ws"),h="["+g+"]",i="​…",j=RegExp("^"+h+h+"*"),k=RegExp(h+h+"*$"),l=function(a,b,c){var e={},h=f(function(){return!!g[a]()||i[a]()!=i}),j=e[a]=h?b(m):g[a];c&&(e[c]=j),d(d.P+d.F*h,"String",e)},m=l.trim=function(a,b){return a=String(e(a)),1&b&&(a=a.replace(j,"")),2&b&&(a=a.replace(k,"")),a};b.exports=l},{"./_defined":28,"./_export":33,"./_fails":35,"./_string-ws":104}],104:[function(a,b,c){b.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},{}],105:[function(a,b,c){var d,e,f,g=a("./_ctx"),h=a("./_invoke"),i=a("./_html"),j=a("./_dom-create"),k=a("./_global"),l=k.process,m=k.setImmediate,n=k.clearImmediate,o=k.MessageChannel,p=0,q={},r=function(){var a=+this;if(q.hasOwnProperty(a)){var b=q[a];delete q[a],b()}},s=function(a){r.call(a.data)};m&&n||(m=function(a){for(var b=[],c=1;arguments.length>c;)b.push(arguments[c++]);return q[++p]=function(){h("function"==typeof a?a:Function(a),b)},d(p),p},n=function(a){delete q[a]},"process"==a("./_cof")(l)?d=function(a){l.nextTick(g(r,a,1))}:o?(e=new o,f=e.port2,e.port1.onmessage=s,d=g(f.postMessage,f,1)):k.addEventListener&&"function"==typeof postMessage&&!k.importScripts?(d=function(a){k.postMessage(a+"","*")},k.addEventListener("message",s,!1)):d="onreadystatechange"in j("script")?function(a){i.appendChild(j("script")).onreadystatechange=function(){i.removeChild(this),r.call(a)}}:function(a){setTimeout(g(r,a,1),0)}),b.exports={set:m,clear:n}},{"./_cof":19,"./_ctx":26,"./_dom-create":30,"./_global":39,"./_html":42,"./_invoke":45}],106:[function(a,b,c){var d=a("./_to-integer"),e=Math.max,f=Math.min;b.exports=function(a,b){return a=d(a),a<0?e(a+b,0):f(a,b)}},{"./_to-integer":107}],107:[function(a,b,c){var d=Math.ceil,e=Math.floor;b.exports=function(a){return isNaN(a=+a)?0:(a>0?e:d)(a)}},{}],108:[function(a,b,c){var d=a("./_iobject"),e=a("./_defined");b.exports=function(a){return d(e(a))}},{"./_defined":28,"./_iobject":46}],109:[function(a,b,c){var d=a("./_to-integer"),e=Math.min;b.exports=function(a){return a>0?e(d(a),9007199254740991):0}},{"./_to-integer":107}],110:[function(a,b,c){var d=a("./_defined");b.exports=function(a){return Object(d(a))}},{"./_defined":28}],111:[function(a,b,c){var d=a("./_is-object");b.exports=function(a,b){if(!d(a))return a;var c,e;if(b&&"function"==typeof(c=a.toString)&&!d(e=c.call(a)))return e;if("function"==typeof(c=a.valueOf)&&!d(e=c.call(a)))return e;if(!b&&"function"==typeof(c=a.toString)&&!d(e=c.call(a)))return e;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":50}],112:[function(a,b,c){"use strict";if(a("./_descriptors")){var d=a("./_library"),e=a("./_global"),f=a("./_fails"),g=a("./_export"),h=a("./_typed"),i=a("./_typed-buffer"),j=a("./_ctx"),k=a("./_an-instance"),l=a("./_property-desc"),m=a("./_hide"),n=a("./_redefine-all"),o=a("./_to-integer"),p=a("./_to-length"),q=a("./_to-index"),r=a("./_to-primitive"),s=a("./_has"),t=a("./_same-value"),u=a("./_classof"),v=a("./_is-object"),w=a("./_to-object"),x=a("./_is-array-iter"),y=a("./_object-create"),z=a("./_object-gpo"),A=a("./_object-gopn").f,B=a("./core.get-iterator-method"),C=a("./_uid"),D=a("./_wks"),E=a("./_array-methods"),F=a("./_array-includes"),G=a("./_species-constructor"),H=a("./es6.array.iterator"),I=a("./_iterators"),J=a("./_iter-detect"),K=a("./_set-species"),L=a("./_array-fill"),M=a("./_array-copy-within"),N=a("./_object-dp"),O=a("./_object-gopd"),P=N.f,Q=O.f,R=e.RangeError,S=e.TypeError,T=e.Uint8Array,U=Array.prototype,V=i.ArrayBuffer,W=i.DataView,X=E(0),Y=E(2),Z=E(3),$=E(4),_=E(5),aa=E(6),ba=F(!0),ca=F(!1),da=H.values,ea=H.keys,fa=H.entries,ga=U.lastIndexOf,ha=U.reduce,ia=U.reduceRight,ja=U.join,ka=U.sort,la=U.slice,ma=U.toString,na=U.toLocaleString,oa=D("iterator"),pa=D("toStringTag"),qa=C("typed_constructor"),ra=C("def_constructor"),sa=h.CONSTR,ta=h.TYPED,ua=h.VIEW,va=E(1,function(a,b){return Ba(G(a,a[ra]),b)}),wa=f(function(){return 1===new T(new Uint16Array([1]).buffer)[0]}),xa=!!T&&!!T.prototype.set&&f(function(){new T(1).set({})}),ya=function(a,b){if(void 0===a)throw S("Wrong length!");var c=+a,d=p(a);if(b&&!t(c,d))throw R("Wrong length!");return d},za=function(a,b){var c=o(a);if(c<0||c%b)throw R("Wrong offset!");return c},Aa=function(a){if(v(a)&&ta in a)return a;throw S(a+" is not a typed array!")},Ba=function(a,b){if(!(v(a)&&qa in a))throw S("It is not a typed array constructor!");return new a(b)},Ca=function(a,b){return Da(G(a,a[ra]),b)},Da=function(a,b){for(var c=0,d=b.length,e=Ba(a,d);d>c;)e[c]=b[c++];return e},Ea=function(a,b,c){P(a,b,{get:function(){return this._d[c]}})},Fa=function(a){var b,c,d,e,f,g,h=w(a),i=arguments.length,k=i>1?arguments[1]:void 0,l=void 0!==k,m=B(h);if(void 0!=m&&!x(m)){for(g=m.call(h),d=[],b=0;!(f=g.next()).done;b++)d.push(f.value);h=d}for(l&&i>2&&(k=j(k,arguments[2],2)),b=0,c=p(h.length),e=Ba(this,c);c>b;b++)e[b]=l?k(h[b],b):h[b];return e},Ga=function(){for(var a=0,b=arguments.length,c=Ba(this,b);b>a;)c[a]=arguments[a++];return c},Ha=!!T&&f(function(){na.call(new T(1))}),Ia=function(){return na.apply(Ha?la.call(Aa(this)):Aa(this),arguments)},Ja={copyWithin:function(a,b){return M.call(Aa(this),a,b,arguments.length>2?arguments[2]:void 0)},every:function(a){return $(Aa(this),a,arguments.length>1?arguments[1]:void 0)},fill:function(a){return L.apply(Aa(this),arguments)},filter:function(a){return Ca(this,Y(Aa(this),a,arguments.length>1?arguments[1]:void 0))},find:function(a){return _(Aa(this),a,arguments.length>1?arguments[1]:void 0)},findIndex:function(a){return aa(Aa(this),a,arguments.length>1?arguments[1]:void 0)},forEach:function(a){X(Aa(this),a,arguments.length>1?arguments[1]:void 0)},indexOf:function(a){return ca(Aa(this),a,arguments.length>1?arguments[1]:void 0)},includes:function(a){return ba(Aa(this),a,arguments.length>1?arguments[1]:void 0)},join:function(a){return ja.apply(Aa(this),arguments)},lastIndexOf:function(a){return ga.apply(Aa(this),arguments)},map:function(a){return va(Aa(this),a,arguments.length>1?arguments[1]:void 0)},reduce:function(a){return ha.apply(Aa(this),arguments)},reduceRight:function(a){return ia.apply(Aa(this),arguments)},reverse:function(){for(var a,b=this,c=Aa(b).length,d=Math.floor(c/2),e=0;e1?arguments[1]:void 0)},sort:function(a){return ka.call(Aa(this),a)},subarray:function(a,b){var c=Aa(this),d=c.length,e=q(a,d);return new(G(c,c[ra]))(c.buffer,c.byteOffset+e*c.BYTES_PER_ELEMENT,p((void 0===b?d:q(b,d))-e))}},Ka=function(a,b){return Ca(this,la.call(Aa(this),a,b))},La=function(a){Aa(this);var b=za(arguments[1],1),c=this.length,d=w(a),e=p(d.length),f=0;if(e+b>c)throw R("Wrong length!");for(;f255?255:255&d),e.v[o](c*b+e.o,d,wa)},D=function(a,b){P(a,b,{get:function(){return B(this,b)},set:function(a){return C(this,b,a)},enumerable:!0})};t?(q=c(function(a,c,d,e){k(a,q,j,"_d");var f,g,h,i,l=0,n=0;if(v(c)){if(!(c instanceof V||"ArrayBuffer"==(i=u(c))||"SharedArrayBuffer"==i))return ta in c?Da(q,c):Fa.call(q,c);f=c,n=za(d,b);var o=c.byteLength;if(void 0===e){if(o%b)throw R("Wrong length!");if((g=o-n)<0)throw R("Wrong length!")}else if((g=p(e)*b)+n>o)throw R("Wrong length!");h=g/b}else h=ya(c,!0),g=h*b,f=new V(g);for(m(a,"_d",{b:f,o:n,l:g,e:h,v:new W(f)});l>1,k=23===b?y(2,-24)-y(2,-77):0,l=0,m=a<0||0===a&&1/a<0?1:0;for(a=x(a),a!=a||a===v?(e=a!=a?1:0,d=i):(d=z(A(a)/B),a*(f=y(2,-d))<1&&(d--,f*=2),a+=d+j>=1?k/f:k*y(2,1-j),a*f>=2&&(d++,f/=2),d+j>=i?(e=0,d=i):d+j>=1?(e=(a*f-1)*y(2,b),d+=j):(e=a*y(2,j-1)*y(2,b),d=0));b>=8;g[l++]=255&e,e/=256,b-=8);for(d=d<0;g[l++]=255&d,d/=256,h-=8);return g[--l]|=128*m,g},G=function(a,b,c){var d,e=8*c-b-1,f=(1<>1,h=e-7,i=c-1,j=a[i--],k=127&j;for(j>>=7;h>0;k=256*k+a[i],i--,h-=8);for(d=k&(1<<-h)-1,k>>=-h,h+=b;h>0;d=256*d+a[i],i--,h-=8);if(0===k)k=1-g;else{if(k===f)return d?0/0:j?-v:v;d+=y(2,b),k-=g}return(j?-1:1)*d*y(2,k-b)},H=function(a){return a[3]<<24|a[2]<<16|a[1]<<8|a[0]},I=function(a){return[255&a]},J=function(a){return[255&a,a>>8&255]},K=function(a){return[255&a,a>>8&255,a>>16&255,a>>24&255]},L=function(a){return F(a,52,8)},M=function(a){return F(a,23,4)},N=function(a,b,c){o(a.prototype,b,{get:function(){return this[c]}})},O=function(a,b,c,d){var e=+c,f=l(e);if(e!=f||f<0||f+b>a[D])throw u("Wrong index!");var g=a[C]._b,h=f+a[E],i=g.slice(h,h+b);return d?i:i.reverse()},P=function(a,b,c,d,e,f){var g=+c,h=l(g);if(g!=h||h<0||h+b>a[D])throw u("Wrong index!");for(var i=a[C]._b,j=h+a[E],k=d(+e),m=0;mU;)(R=T[U++])in r||h(r,R,w[R]);f||(S.constructor=r)}var V=new s(new r(2)),W=s.prototype.setInt8;V.setInt8(0,2147483648),V.setInt8(1,2147483649),!V.getInt8(0)&&V.getInt8(1)||i(s.prototype,{setInt8:function(a,b){W.call(this,a,b<<24>>24)},setUint8:function(a,b){W.call(this,a,b<<24>>24)}},!0)}else r=function(a){var b=Q(this,a);this._b=p.call(Array(b),0),this[D]=b},s=function(a,b,c){k(this,s,"DataView"),k(a,r,"DataView");var d=a[D],e=l(b);if(e<0||e>d)throw u("Wrong offset!");if(c=void 0===c?d-e:m(c),e+c>d)throw u("Wrong length!");this[C]=a,this[E]=e,this[D]=c},e&&(N(r,"byteLength","_l"),N(s,"buffer","_b"),N(s,"byteLength","_l"),N(s,"byteOffset","_o")),i(s.prototype,{getInt8:function(a){return O(this,1,a)[0]<<24>>24},getUint8:function(a){return O(this,1,a)[0]},getInt16:function(a){var b=O(this,2,a,arguments[1]);return(b[1]<<8|b[0])<<16>>16},getUint16:function(a){var b=O(this,2,a,arguments[1]);return b[1]<<8|b[0]},getInt32:function(a){return H(O(this,4,a,arguments[1]))},getUint32:function(a){return H(O(this,4,a,arguments[1]))>>>0},getFloat32:function(a){return G(O(this,4,a,arguments[1]),23,4)},getFloat64:function(a){return G(O(this,8,a,arguments[1]),52,8)},setInt8:function(a,b){P(this,1,a,I,b)},setUint8:function(a,b){P(this,1,a,I,b)},setInt16:function(a,b){P(this,2,a,J,b,arguments[2])},setUint16:function(a,b){P(this,2,a,J,b,arguments[2])},setInt32:function(a,b){P(this,4,a,K,b,arguments[2])},setUint32:function(a,b){P(this,4,a,K,b,arguments[2])},setFloat32:function(a,b){P(this,4,a,M,b,arguments[2])},setFloat64:function(a,b){P(this,8,a,L,b,arguments[2])}});q(r,"ArrayBuffer"),q(s,"DataView"),h(s.prototype,g.VIEW,!0),c.ArrayBuffer=r,c.DataView=s},{"./_an-instance":7,"./_array-fill":10,"./_descriptors":29,"./_fails":35,"./_global":39,"./_hide":41,"./_library":59,"./_object-dp":68,"./_object-gopn":73,"./_redefine-all":87,"./_set-to-string-tag":93,"./_to-integer":107,"./_to-length":109,"./_typed":114}],114:[function(a,b,c){for(var d,e=a("./_global"),f=a("./_hide"),g=a("./_uid"),h=g("typed_array"),i=g("view"),j=!(!e.ArrayBuffer||!e.DataView),k=j,l=0,m="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(d=e[m[l++]])?(f(d.prototype,h,!0),f(d.prototype,i,!0)):k=!1;b.exports={ABV:j,CONSTR:k,TYPED:h,VIEW:i}},{"./_global":39,"./_hide":41,"./_uid":115}],115:[function(a,b,c){var d=0,e=Math.random();b.exports=function(a){return"Symbol(".concat(void 0===a?"":a,")_",(++d+e).toString(36))}},{}],116:[function(a,b,c){var d=a("./_global"),e=a("./_core"),f=a("./_library"),g=a("./_wks-ext"),h=a("./_object-dp").f;b.exports=function(a){var b=e.Symbol||(e.Symbol=f?{}:d.Symbol||{});"_"==a.charAt(0)||a in b||h(b,a,{value:g.f(a)})}},{"./_core":24,"./_global":39,"./_library":59,"./_object-dp":68,"./_wks-ext":117}],117:[function(a,b,c){c.f=a("./_wks")},{"./_wks":118}],118:[function(a,b,c){var d=a("./_shared")("wks"),e=a("./_uid"),f=a("./_global").Symbol,g="function"==typeof f;(b.exports=function(a){return d[a]||(d[a]=g&&f[a]||(g?f:e)("Symbol."+a))}).store=d},{"./_global":39,"./_shared":95,"./_uid":115}],119:[function(a,b,c){var d=a("./_classof"),e=a("./_wks")("iterator"),f=a("./_iterators");b.exports=a("./_core").getIteratorMethod=function(a){if(void 0!=a)return a[e]||a["@@iterator"]||f[d(a)]}},{"./_classof":18,"./_core":24,"./_iterators":57,"./_wks":118}],120:[function(a,b,c){var d=a("./_export"),e=a("./_replacer")(/[\\^$*+?.()|[\]{}]/g,"\\$&");d(d.S,"RegExp",{escape:function(a){return e(a)}})},{"./_export":33,"./_replacer":89}],121:[function(a,b,c){var d=a("./_export");d(d.P,"Array",{copyWithin:a("./_array-copy-within")}),a("./_add-to-unscopables")("copyWithin")},{"./_add-to-unscopables":6,"./_array-copy-within":9,"./_export":33}],122:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-methods")(4);d(d.P+d.F*!a("./_strict-method")([].every,!0),"Array",{every:function(a){return e(this,a,arguments[1])}})},{"./_array-methods":13,"./_export":33,"./_strict-method":97}],123:[function(a,b,c){var d=a("./_export");d(d.P,"Array",{fill:a("./_array-fill")}),a("./_add-to-unscopables")("fill")},{"./_add-to-unscopables":6,"./_array-fill":10,"./_export":33}],124:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-methods")(2);d(d.P+d.F*!a("./_strict-method")([].filter,!0),"Array",{filter:function(a){return e(this,a,arguments[1])}})},{"./_array-methods":13,"./_export":33,"./_strict-method":97}],125:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-methods")(6),f="findIndex",g=!0;f in[]&&Array(1)[f](function(){g=!1}),d(d.P+d.F*g,"Array",{findIndex:function(a){return e(this,a,arguments.length>1?arguments[1]:void 0)}}),a("./_add-to-unscopables")(f)},{"./_add-to-unscopables":6,"./_array-methods":13,"./_export":33}],126:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-methods")(5),f=!0;"find"in[]&&Array(1).find(function(){f=!1}),d(d.P+d.F*f,"Array",{find:function(a){return e(this,a,arguments.length>1?arguments[1]:void 0)}}),a("./_add-to-unscopables")("find")},{"./_add-to-unscopables":6,"./_array-methods":13,"./_export":33}],127:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-methods")(0),f=a("./_strict-method")([].forEach,!0);d(d.P+d.F*!f,"Array",{forEach:function(a){return e(this,a,arguments[1])}})},{"./_array-methods":13,"./_export":33,"./_strict-method":97}],128:[function(a,b,c){"use strict";var d=a("./_ctx"),e=a("./_export"),f=a("./_to-object"),g=a("./_iter-call"),h=a("./_is-array-iter"),i=a("./_to-length"),j=a("./_create-property"),k=a("./core.get-iterator-method");e(e.S+e.F*!a("./_iter-detect")(function(a){Array.from(a)}),"Array",{from:function(a){var b,c,e,l,m=f(a),n="function"==typeof this?this:Array,o=arguments.length,p=o>1?arguments[1]:void 0,q=void 0!==p,r=0,s=k(m);if(q&&(p=d(p,o>2?arguments[2]:void 0,2)),void 0==s||n==Array&&h(s))for(b=i(m.length),c=new n(b);b>r;r++)j(c,r,q?p(m[r],r):m[r]);else for(l=s.call(m),c=new n;!(e=l.next()).done;r++)j(c,r,q?g(l,p,[e.value,r],!0):e.value);return c.length=r,c}})},{"./_create-property":25,"./_ctx":26,"./_export":33,"./_is-array-iter":47,"./_iter-call":52,"./_iter-detect":55,"./_to-length":109,"./_to-object":110,"./core.get-iterator-method":119}],129:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-includes")(!1),f=[].indexOf,g=!!f&&1/[1].indexOf(1,-0)<0;d(d.P+d.F*(g||!a("./_strict-method")(f)),"Array",{indexOf:function(a){return g?f.apply(this,arguments)||0:e(this,a,arguments[1])}})},{"./_array-includes":12,"./_export":33,"./_strict-method":97}],130:[function(a,b,c){var d=a("./_export");d(d.S,"Array",{isArray:a("./_is-array")})},{"./_export":33,"./_is-array":48}],131:[function(a,b,c){"use strict";var d=a("./_add-to-unscopables"),e=a("./_iter-step"),f=a("./_iterators"),g=a("./_to-iobject");b.exports=a("./_iter-define")(Array,"Array",function(a,b){this._t=g(a),this._i=0,this._k=b},function(){var a=this._t,b=this._k,c=this._i++;return!a||c>=a.length?(this._t=void 0,e(1)):"keys"==b?e(0,c):"values"==b?e(0,a[c]):e(0,[c,a[c]])},"values"),f.Arguments=f.Array,d("keys"),d("values"),d("entries")},{"./_add-to-unscopables":6,"./_iter-define":54,"./_iter-step":56,"./_iterators":57,"./_to-iobject":108}],132:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-iobject"),f=[].join;d(d.P+d.F*(a("./_iobject")!=Object||!a("./_strict-method")(f)),"Array",{join:function(a){return f.call(e(this),void 0===a?",":a)}})},{"./_export":33,"./_iobject":46,"./_strict-method":97,"./_to-iobject":108}],133:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-iobject"),f=a("./_to-integer"),g=a("./_to-length"),h=[].lastIndexOf,i=!!h&&1/[1].lastIndexOf(1,-0)<0;d(d.P+d.F*(i||!a("./_strict-method")(h)),"Array",{lastIndexOf:function(a){if(i)return h.apply(this,arguments)||0;var b=e(this),c=g(b.length),d=c-1;for(arguments.length>1&&(d=Math.min(d,f(arguments[1]))),d<0&&(d=c+d);d>=0;d--)if(d in b&&b[d]===a)return d||0;return-1}})},{"./_export":33,"./_strict-method":97,"./_to-integer":107,"./_to-iobject":108,"./_to-length":109}],134:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-methods")(1);d(d.P+d.F*!a("./_strict-method")([].map,!0),"Array",{map:function(a){return e(this,a,arguments[1])}})},{"./_array-methods":13,"./_export":33,"./_strict-method":97}],135:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_create-property");d(d.S+d.F*a("./_fails")(function(){function a(){}return!(Array.of.call(a)instanceof a)}),"Array",{of:function(){for(var a=0,b=arguments.length,c=new("function"==typeof this?this:Array)(b);b>a;)e(c,a,arguments[a++]);return c.length=b,c}})},{"./_create-property":25,"./_export":33,"./_fails":35}],136:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-reduce");d(d.P+d.F*!a("./_strict-method")([].reduceRight,!0),"Array",{reduceRight:function(a){return e(this,a,arguments.length,arguments[1],!0)}})},{"./_array-reduce":14,"./_export":33,"./_strict-method":97}],137:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-reduce");d(d.P+d.F*!a("./_strict-method")([].reduce,!0),"Array",{reduce:function(a){return e(this,a,arguments.length,arguments[1],!1)}})},{"./_array-reduce":14,"./_export":33,"./_strict-method":97}],138:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_html"),f=a("./_cof"),g=a("./_to-index"),h=a("./_to-length"),i=[].slice;d(d.P+d.F*a("./_fails")(function(){e&&i.call(e)}),"Array",{slice:function(a,b){var c=h(this.length),d=f(this);if(b=void 0===b?c:b,"Array"==d)return i.call(this,a,b);for(var e=g(a,c),j=g(b,c),k=h(j-e),l=Array(k),m=0;m9?a:"0"+a};d(d.P+d.F*(e(function(){return"0385-07-25T07:06:39.999Z"!=new Date(-5e13-1).toISOString()})||!e(function(){new Date(0/0).toISOString()})),"Date",{toISOString:function(){if(!isFinite(f.call(this)))throw RangeError("Invalid time value");var a=this,b=a.getUTCFullYear(),c=a.getUTCMilliseconds(),d=b<0?"-":b>9999?"+":"";return d+("00000"+Math.abs(b)).slice(d?-6:-4)+"-"+g(a.getUTCMonth()+1)+"-"+g(a.getUTCDate())+"T"+g(a.getUTCHours())+":"+g(a.getUTCMinutes())+":"+g(a.getUTCSeconds())+"."+(c>99?c:"0"+g(c))+"Z"}})},{"./_export":33,"./_fails":35}],144:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-object"),f=a("./_to-primitive");d(d.P+d.F*a("./_fails")(function(){return null!==new Date(0/0).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(a){var b=e(this),c=f(b);return"number"!=typeof c||isFinite(c)?b.toISOString():null}})},{"./_export":33,"./_fails":35,"./_to-object":110,"./_to-primitive":111}],145:[function(a,b,c){var d=a("./_wks")("toPrimitive"),e=Date.prototype;d in e||a("./_hide")(e,d,a("./_date-to-primitive"))},{"./_date-to-primitive":27,"./_hide":41,"./_wks":118}],146:[function(a,b,c){var d=Date.prototype,e=d.toString,f=d.getTime;new Date(0/0)+""!="Invalid Date"&&a("./_redefine")(d,"toString",function(){var a=f.call(this);return a===a?e.call(this):"Invalid Date"})},{"./_redefine":88}],147:[function(a,b,c){var d=a("./_export");d(d.P,"Function",{bind:a("./_bind")})},{"./_bind":17,"./_export":33}],148:[function(a,b,c){"use strict";var d=a("./_is-object"),e=a("./_object-gpo"),f=a("./_wks")("hasInstance"),g=Function.prototype;f in g||a("./_object-dp").f(g,f,{value:function(a){if("function"!=typeof this||!d(a))return!1;if(!d(this.prototype))return a instanceof this;for(;a=e(a);)if(this.prototype===a)return!0;return!1}})},{"./_is-object":50,"./_object-dp":68,"./_object-gpo":75,"./_wks":118}],149:[function(a,b,c){var d=a("./_object-dp").f,e=a("./_property-desc"),f=a("./_has"),g=Function.prototype,h=Object.isExtensible||function(){return!0};"name"in g||a("./_descriptors")&&d(g,"name",{configurable:!0,get:function(){try{var a=this,b=(""+a).match(/^\s*function ([^ (]*)/)[1];return f(a,"name")||!h(a)||d(a,"name",e(5,b)),b}catch(a){return""}}})},{"./_descriptors":29,"./_has":40,"./_object-dp":68,"./_property-desc":86}],150:[function(a,b,c){"use strict";var d=a("./_collection-strong");b.exports=a("./_collection")("Map",function(a){return function(){return a(this,arguments.length>0?arguments[0]:void 0)}},{get:function(a){var b=d.getEntry(this,a);return b&&b.v},set:function(a,b){return d.def(this,0===a?0:a,b)}},d,!0)},{"./_collection":23,"./_collection-strong":20}],151:[function(a,b,c){var d=a("./_export"),e=a("./_math-log1p"),f=Math.sqrt,g=Math.acosh;d(d.S+d.F*!(g&&710==Math.floor(g(Number.MAX_VALUE))&&1/0==g(1/0)),"Math",{acosh:function(a){return(a=+a)<1?0/0:a>94906265.62425156?Math.log(a)+Math.LN2:e(a-1+f(a-1)*f(a+1))}})},{"./_export":33,"./_math-log1p":61}],152:[function(a,b,c){function d(a){return isFinite(a=+a)&&0!=a?a<0?-d(-a):Math.log(a+Math.sqrt(a*a+1)):a}var e=a("./_export"),f=Math.asinh;e(e.S+e.F*!(f&&1/f(0)>0),"Math",{asinh:d})},{"./_export":33}],153:[function(a,b,c){var d=a("./_export"),e=Math.atanh;d(d.S+d.F*!(e&&1/e(-0)<0),"Math",{atanh:function(a){return 0==(a=+a)?a:Math.log((1+a)/(1-a))/2}})},{"./_export":33}],154:[function(a,b,c){var d=a("./_export"),e=a("./_math-sign");d(d.S,"Math",{cbrt:function(a){return e(a=+a)*Math.pow(Math.abs(a),1/3)}})},{"./_export":33,"./_math-sign":62}],155:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{clz32:function(a){return(a>>>=0)?31-Math.floor(Math.log(a+.5)*Math.LOG2E):32}})},{"./_export":33}],156:[function(a,b,c){var d=a("./_export"),e=Math.exp;d(d.S,"Math",{cosh:function(a){return(e(a=+a)+e(-a))/2}})},{"./_export":33}],157:[function(a,b,c){var d=a("./_export"),e=a("./_math-expm1");d(d.S+d.F*(e!=Math.expm1),"Math",{expm1:e})},{"./_export":33,"./_math-expm1":60}],158:[function(a,b,c){var d=a("./_export"),e=a("./_math-sign"),f=Math.pow,g=f(2,-52),h=f(2,-23),i=f(2,127)*(2-h),j=f(2,-126),k=function(a){return a+1/g-1/g};d(d.S,"Math",{fround:function(a){var b,c,d=Math.abs(a),f=e(a);return di||c!=c?1/0*f:f*c)}})},{"./_export":33,"./_math-sign":62}],159:[function(a,b,c){var d=a("./_export"),e=Math.abs;d(d.S,"Math",{hypot:function(a,b){for(var c,d,f=0,g=0,h=arguments.length,i=0;g0?(d=c/i,f+=d*d):f+=c;return 1/0===i?1/0:i*Math.sqrt(f)}})},{"./_export":33}],160:[function(a,b,c){var d=a("./_export"),e=Math.imul;d(d.S+d.F*a("./_fails")(function(){return e(4294967295,5)!=-5||2!=e.length}),"Math",{imul:function(a,b){var c=+a,d=+b,e=65535&c,f=65535&d;return 0|e*f+((65535&c>>>16)*f+e*(65535&d>>>16)<<16>>>0)}})},{"./_export":33,"./_fails":35}],161:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{log10:function(a){return Math.log(a)/Math.LN10}})},{"./_export":33}],162:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{log1p:a("./_math-log1p")})},{"./_export":33,"./_math-log1p":61}],163:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{log2:function(a){return Math.log(a)/Math.LN2}})},{"./_export":33}],164:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{sign:a("./_math-sign")})},{"./_export":33,"./_math-sign":62}],165:[function(a,b,c){var d=a("./_export"),e=a("./_math-expm1"),f=Math.exp;d(d.S+d.F*a("./_fails")(function(){return!Math.sinh(-2e-17)!=-2e-17}),"Math",{sinh:function(a){return Math.abs(a=+a)<1?(e(a)-e(-a))/2:(f(a-1)-f(-a-1))*(Math.E/2)}})},{"./_export":33,"./_fails":35,"./_math-expm1":60}],166:[function(a,b,c){var d=a("./_export"),e=a("./_math-expm1"),f=Math.exp;d(d.S,"Math",{tanh:function(a){var b=e(a=+a),c=e(-a);return 1/0==b?1:1/0==c?-1:(b-c)/(f(a)+f(-a))}})},{"./_export":33,"./_math-expm1":60}],167:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{trunc:function(a){return(a>0?Math.floor:Math.ceil)(a)}})},{"./_export":33}],168:[function(a,b,c){"use strict";var d=a("./_global"),e=a("./_has"),f=a("./_cof"),g=a("./_inherit-if-required"),h=a("./_to-primitive"),i=a("./_fails"),j=a("./_object-gopn").f,k=a("./_object-gopd").f,l=a("./_object-dp").f,m=a("./_string-trim").trim,n=d.Number,o=n,p=n.prototype,q="Number"==f(a("./_object-create")(p)),r="trim"in String.prototype,s=function(a){var b=h(a,!1);if("string"==typeof b&&b.length>2){b=r?b.trim():m(b,3);var c,d,e,f=b.charCodeAt(0);if(43===f||45===f){if(88===(c=b.charCodeAt(2))||120===c)return 0/0}else if(48===f){switch(b.charCodeAt(1)){case 66:case 98:d=2,e=49;break;case 79:case 111:d=8,e=55;break;default:return+b}for(var g,i=b.slice(2),j=0,k=i.length;je)return 0/0;return parseInt(i,d)}}return+b};if(!n(" 0o1")||!n("0b1")||n("+0x1")){n=function(a){var b=arguments.length<1?0:a,c=this;return c instanceof n&&(q?i(function(){p.valueOf.call(c)}):"Number"!=f(c))?g(new o(s(b)),c,n):s(b)};for(var t,u=a("./_descriptors")?j(o):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),v=0;u.length>v;v++)e(o,t=u[v])&&!e(n,t)&&l(n,t,k(o,t));n.prototype=p,p.constructor=n,a("./_redefine")(d,"Number",n)}},{"./_cof":19,"./_descriptors":29,"./_fails":35,"./_global":39,"./_has":40, "./_inherit-if-required":44,"./_object-create":67,"./_object-dp":68,"./_object-gopd":71,"./_object-gopn":73,"./_redefine":88,"./_string-trim":103,"./_to-primitive":111}],169:[function(a,b,c){var d=a("./_export");d(d.S,"Number",{EPSILON:Math.pow(2,-52)})},{"./_export":33}],170:[function(a,b,c){var d=a("./_export"),e=a("./_global").isFinite;d(d.S,"Number",{isFinite:function(a){return"number"==typeof a&&e(a)}})},{"./_export":33,"./_global":39}],171:[function(a,b,c){var d=a("./_export");d(d.S,"Number",{isInteger:a("./_is-integer")})},{"./_export":33,"./_is-integer":49}],172:[function(a,b,c){var d=a("./_export");d(d.S,"Number",{isNaN:function(a){return a!=a}})},{"./_export":33}],173:[function(a,b,c){var d=a("./_export"),e=a("./_is-integer"),f=Math.abs;d(d.S,"Number",{isSafeInteger:function(a){return e(a)&&f(a)<=9007199254740991}})},{"./_export":33,"./_is-integer":49}],174:[function(a,b,c){var d=a("./_export");d(d.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},{"./_export":33}],175:[function(a,b,c){var d=a("./_export");d(d.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},{"./_export":33}],176:[function(a,b,c){var d=a("./_export"),e=a("./_parse-float");d(d.S+d.F*(Number.parseFloat!=e),"Number",{parseFloat:e})},{"./_export":33,"./_parse-float":82}],177:[function(a,b,c){var d=a("./_export"),e=a("./_parse-int");d(d.S+d.F*(Number.parseInt!=e),"Number",{parseInt:e})},{"./_export":33,"./_parse-int":83}],178:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-integer"),f=a("./_a-number-value"),g=a("./_string-repeat"),h=1..toFixed,i=Math.floor,j=[0,0,0,0,0,0],k="Number.toFixed: incorrect invocation!",l=function(a,b){for(var c=-1,d=b;++c<6;)d+=a*j[c],j[c]=d%1e7,d=i(d/1e7)},m=function(a){for(var b=6,c=0;--b>=0;)c+=j[b],j[b]=i(c/a),c=c%a*1e7},n=function(){for(var a=6,b="";--a>=0;)if(""!==b||0===a||0!==j[a]){var c=String(j[a]);b=""===b?c:b+g.call("0",7-c.length)+c}return b},o=function(a,b,c){return 0===b?c:b%2==1?o(a,b-1,c*a):o(a*a,b/2,c)},p=function(a){for(var b=0,c=a;c>=4096;)b+=12,c/=4096;for(;c>=2;)b+=1,c/=2;return b};d(d.P+d.F*(!!h&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!a("./_fails")(function(){h.call({})})),"Number",{toFixed:function(a){var b,c,d,h,i=f(this,k),j=e(a),q="",r="0";if(j<0||j>20)throw RangeError(k);if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return String(i);if(i<0&&(q="-",i=-i),i>1e-21)if(b=p(i*o(2,69,1))-69,c=b<0?i*o(2,-b,1):i/o(2,b,1),c*=4503599627370496,(b=52-b)>0){for(l(0,c),d=j;d>=7;)l(1e7,0),d-=7;for(l(o(10,d,1),0),d=b-1;d>=23;)m(1<<23),d-=23;m(1<0?(h=r.length,r=q+(h<=j?"0."+g.call("0",j-h)+r:r.slice(0,h-j)+"."+r.slice(h-j))):r=q+r,r}})},{"./_a-number-value":5,"./_export":33,"./_fails":35,"./_string-repeat":102,"./_to-integer":107}],179:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_fails"),f=a("./_a-number-value"),g=1..toPrecision;d(d.P+d.F*(e(function(){return"1"!==g.call(1,void 0)})||!e(function(){g.call({})})),"Number",{toPrecision:function(a){var b=f(this,"Number#toPrecision: incorrect invocation!");return void 0===a?g.call(b):g.call(b,a)}})},{"./_a-number-value":5,"./_export":33,"./_fails":35}],180:[function(a,b,c){var d=a("./_export");d(d.S+d.F,"Object",{assign:a("./_object-assign")})},{"./_export":33,"./_object-assign":66}],181:[function(a,b,c){var d=a("./_export");d(d.S,"Object",{create:a("./_object-create")})},{"./_export":33,"./_object-create":67}],182:[function(a,b,c){var d=a("./_export");d(d.S+d.F*!a("./_descriptors"),"Object",{defineProperties:a("./_object-dps")})},{"./_descriptors":29,"./_export":33,"./_object-dps":69}],183:[function(a,b,c){var d=a("./_export");d(d.S+d.F*!a("./_descriptors"),"Object",{defineProperty:a("./_object-dp").f})},{"./_descriptors":29,"./_export":33,"./_object-dp":68}],184:[function(a,b,c){var d=a("./_is-object"),e=a("./_meta").onFreeze;a("./_object-sap")("freeze",function(a){return function(b){return a&&d(b)?a(e(b)):b}})},{"./_is-object":50,"./_meta":63,"./_object-sap":79}],185:[function(a,b,c){var d=a("./_to-iobject"),e=a("./_object-gopd").f;a("./_object-sap")("getOwnPropertyDescriptor",function(){return function(a,b){return e(d(a),b)}})},{"./_object-gopd":71,"./_object-sap":79,"./_to-iobject":108}],186:[function(a,b,c){a("./_object-sap")("getOwnPropertyNames",function(){return a("./_object-gopn-ext").f})},{"./_object-gopn-ext":72,"./_object-sap":79}],187:[function(a,b,c){var d=a("./_to-object"),e=a("./_object-gpo");a("./_object-sap")("getPrototypeOf",function(){return function(a){return e(d(a))}})},{"./_object-gpo":75,"./_object-sap":79,"./_to-object":110}],188:[function(a,b,c){var d=a("./_is-object");a("./_object-sap")("isExtensible",function(a){return function(b){return!!d(b)&&(!a||a(b))}})},{"./_is-object":50,"./_object-sap":79}],189:[function(a,b,c){var d=a("./_is-object");a("./_object-sap")("isFrozen",function(a){return function(b){return!d(b)||!!a&&a(b)}})},{"./_is-object":50,"./_object-sap":79}],190:[function(a,b,c){var d=a("./_is-object");a("./_object-sap")("isSealed",function(a){return function(b){return!d(b)||!!a&&a(b)}})},{"./_is-object":50,"./_object-sap":79}],191:[function(a,b,c){var d=a("./_export");d(d.S,"Object",{is:a("./_same-value")})},{"./_export":33,"./_same-value":90}],192:[function(a,b,c){var d=a("./_to-object"),e=a("./_object-keys");a("./_object-sap")("keys",function(){return function(a){return e(d(a))}})},{"./_object-keys":77,"./_object-sap":79,"./_to-object":110}],193:[function(a,b,c){var d=a("./_is-object"),e=a("./_meta").onFreeze;a("./_object-sap")("preventExtensions",function(a){return function(b){return a&&d(b)?a(e(b)):b}})},{"./_is-object":50,"./_meta":63,"./_object-sap":79}],194:[function(a,b,c){var d=a("./_is-object"),e=a("./_meta").onFreeze;a("./_object-sap")("seal",function(a){return function(b){return a&&d(b)?a(e(b)):b}})},{"./_is-object":50,"./_meta":63,"./_object-sap":79}],195:[function(a,b,c){var d=a("./_export");d(d.S,"Object",{setPrototypeOf:a("./_set-proto").set})},{"./_export":33,"./_set-proto":91}],196:[function(a,b,c){"use strict";var d=a("./_classof"),e={};e[a("./_wks")("toStringTag")]="z",e+""!="[object z]"&&a("./_redefine")(Object.prototype,"toString",function(){return"[object "+d(this)+"]"},!0)},{"./_classof":18,"./_redefine":88,"./_wks":118}],197:[function(a,b,c){var d=a("./_export"),e=a("./_parse-float");d(d.G+d.F*(parseFloat!=e),{parseFloat:e})},{"./_export":33,"./_parse-float":82}],198:[function(a,b,c){var d=a("./_export"),e=a("./_parse-int");d(d.G+d.F*(parseInt!=e),{parseInt:e})},{"./_export":33,"./_parse-int":83}],199:[function(a,b,c){"use strict";var d,e,f,g=a("./_library"),h=a("./_global"),i=a("./_ctx"),j=a("./_classof"),k=a("./_export"),l=a("./_is-object"),m=a("./_a-function"),n=a("./_an-instance"),o=a("./_for-of"),p=a("./_species-constructor"),q=a("./_task").set,r=a("./_microtask")(),s=h.TypeError,t=h.process,u=h.Promise,t=h.process,v="process"==j(t),w=function(){},x=!!function(){try{var b=u.resolve(1),c=(b.constructor={})[a("./_wks")("species")]=function(a){a(w,w)};return(v||"function"==typeof PromiseRejectionEvent)&&b.then(w)instanceof c}catch(a){}}(),y=function(a,b){return a===b||a===u&&b===f},z=function(a){var b;return!(!l(a)||"function"!=typeof(b=a.then))&&b},A=function(a){return y(u,a)?new B(a):new e(a)},B=e=function(a){var b,c;this.promise=new a(function(a,d){if(void 0!==b||void 0!==c)throw s("Bad Promise constructor");b=a,c=d}),this.resolve=m(b),this.reject=m(c)},C=function(a){try{a()}catch(a){return{error:a}}},D=function(a,b){if(!a._n){a._n=!0;var c=a._c;r(function(){for(var d=a._v,e=1==a._s,f=0;c.length>f;)!function(b){var c,f,g=e?b.ok:b.fail,h=b.resolve,i=b.reject,j=b.domain;try{g?(e||(2==a._h&&G(a),a._h=1),g===!0?c=d:(j&&j.enter(),c=g(d),j&&j.exit()),c===b.promise?i(s("Promise-chain cycle")):(f=z(c))?f.call(c,h,i):h(c)):i(d)}catch(a){i(a)}}(c[f++]);a._c=[],a._n=!1,b&&!a._h&&E(a)})}},E=function(a){q.call(h,function(){var b,c,d,e=a._v;if(F(a)&&(b=C(function(){v?t.emit("unhandledRejection",e,a):(c=h.onunhandledrejection)?c({promise:a,reason:e}):(d=h.console)&&d.error&&d.error("Unhandled promise rejection",e)}),a._h=v||F(a)?2:1),a._a=void 0,b)throw b.error})},F=function(a){if(1==a._h)return!1;for(var b,c=a._a||a._c,d=0;c.length>d;)if(b=c[d++],b.fail||!F(b.promise))return!1;return!0},G=function(a){q.call(h,function(){var b;v?t.emit("rejectionHandled",a):(b=h.onrejectionhandled)&&b({promise:a,reason:a._v})})},H=function(a){var b=this;b._d||(b._d=!0,b=b._w||b,b._v=a,b._s=2,b._a||(b._a=b._c.slice()),D(b,!0))},I=function(a){var b,c=this;if(!c._d){c._d=!0,c=c._w||c;try{if(c===a)throw s("Promise can't be resolved itself");(b=z(a))?r(function(){var d={_w:c,_d:!1};try{b.call(a,i(I,d,1),i(H,d,1))}catch(a){H.call(d,a)}}):(c._v=a,c._s=1,D(c,!1))}catch(a){H.call({_w:c,_d:!1},a)}}};x||(u=function(a){n(this,u,"Promise","_h"),m(a),d.call(this);try{a(i(I,this,1),i(H,this,1))}catch(a){H.call(this,a)}},d=function(a){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},d.prototype=a("./_redefine-all")(u.prototype,{then:function(a,b){var c=A(p(this,u));return c.ok="function"!=typeof a||a,c.fail="function"==typeof b&&b,c.domain=v?t.domain:void 0,this._c.push(c),this._a&&this._a.push(c),this._s&&D(this,!1),c.promise},catch:function(a){return this.then(void 0,a)}}),B=function(){var a=new d;this.promise=a,this.resolve=i(I,a,1),this.reject=i(H,a,1)}),k(k.G+k.W+k.F*!x,{Promise:u}),a("./_set-to-string-tag")(u,"Promise"),a("./_set-species")("Promise"),f=a("./_core").Promise,k(k.S+k.F*!x,"Promise",{reject:function(a){var b=A(this);return(0,b.reject)(a),b.promise}}),k(k.S+k.F*(g||!x),"Promise",{resolve:function(a){if(a instanceof u&&y(a.constructor,this))return a;var b=A(this);return(0,b.resolve)(a),b.promise}}),k(k.S+k.F*!(x&&a("./_iter-detect")(function(a){u.all(a).catch(w)})),"Promise",{all:function(a){var b=this,c=A(b),d=c.resolve,e=c.reject,f=C(function(){var c=[],f=0,g=1;o(a,!1,function(a){var h=f++,i=!1;c.push(void 0),g++,b.resolve(a).then(function(a){i||(i=!0,c[h]=a,--g||d(c))},e)}),--g||d(c)});return f&&e(f.error),c.promise},race:function(a){var b=this,c=A(b),d=c.reject,e=C(function(){o(a,!1,function(a){b.resolve(a).then(c.resolve,d)})});return e&&d(e.error),c.promise}})},{"./_a-function":4,"./_an-instance":7,"./_classof":18,"./_core":24,"./_ctx":26,"./_export":33,"./_for-of":38,"./_global":39,"./_is-object":50,"./_iter-detect":55,"./_library":59,"./_microtask":65,"./_redefine-all":87,"./_set-species":92,"./_set-to-string-tag":93,"./_species-constructor":96,"./_task":105,"./_wks":118}],200:[function(a,b,c){var d=a("./_export"),e=a("./_a-function"),f=a("./_an-object"),g=(a("./_global").Reflect||{}).apply,h=Function.apply;d(d.S+d.F*!a("./_fails")(function(){g(function(){})}),"Reflect",{apply:function(a,b,c){var d=e(a),i=f(c);return g?g(d,b,i):h.call(d,b,i)}})},{"./_a-function":4,"./_an-object":8,"./_export":33,"./_fails":35,"./_global":39}],201:[function(a,b,c){var d=a("./_export"),e=a("./_object-create"),f=a("./_a-function"),g=a("./_an-object"),h=a("./_is-object"),i=a("./_fails"),j=a("./_bind"),k=(a("./_global").Reflect||{}).construct,l=i(function(){function a(){}return!(k(function(){},[],a)instanceof a)}),m=!i(function(){k(function(){})});d(d.S+d.F*(l||m),"Reflect",{construct:function(a,b){f(a),g(b);var c=arguments.length<3?a:f(arguments[2]);if(m&&!l)return k(a,b,c);if(a==c){switch(b.length){case 0:return new a;case 1:return new a(b[0]);case 2:return new a(b[0],b[1]);case 3:return new a(b[0],b[1],b[2]);case 4:return new a(b[0],b[1],b[2],b[3])}var d=[null];return d.push.apply(d,b),new(j.apply(a,d))}var i=c.prototype,n=e(h(i)?i:Object.prototype),o=Function.apply.call(a,n,b);return h(o)?o:n}})},{"./_a-function":4,"./_an-object":8,"./_bind":17,"./_export":33,"./_fails":35,"./_global":39,"./_is-object":50,"./_object-create":67}],202:[function(a,b,c){var d=a("./_object-dp"),e=a("./_export"),f=a("./_an-object"),g=a("./_to-primitive");e(e.S+e.F*a("./_fails")(function(){Reflect.defineProperty(d.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(a,b,c){f(a),b=g(b,!0),f(c);try{return d.f(a,b,c),!0}catch(a){return!1}}})},{"./_an-object":8,"./_export":33,"./_fails":35,"./_object-dp":68,"./_to-primitive":111}],203:[function(a,b,c){var d=a("./_export"),e=a("./_object-gopd").f,f=a("./_an-object");d(d.S,"Reflect",{deleteProperty:function(a,b){var c=e(f(a),b);return!(c&&!c.configurable)&&delete a[b]}})},{"./_an-object":8,"./_export":33,"./_object-gopd":71}],204:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_an-object"),f=function(a){this._t=e(a),this._i=0;var b,c=this._k=[];for(b in a)c.push(b)};a("./_iter-create")(f,"Object",function(){var a,b=this,c=b._k;do{if(b._i>=c.length)return{value:void 0,done:!0}}while(!((a=c[b._i++])in b._t));return{value:a,done:!1}}),d(d.S,"Reflect",{enumerate:function(a){return new f(a)}})},{"./_an-object":8,"./_export":33,"./_iter-create":53}],205:[function(a,b,c){var d=a("./_object-gopd"),e=a("./_export"),f=a("./_an-object");e(e.S,"Reflect",{getOwnPropertyDescriptor:function(a,b){return d.f(f(a),b)}})},{"./_an-object":8,"./_export":33,"./_object-gopd":71}],206:[function(a,b,c){var d=a("./_export"),e=a("./_object-gpo"),f=a("./_an-object");d(d.S,"Reflect",{getPrototypeOf:function(a){return e(f(a))}})},{"./_an-object":8,"./_export":33,"./_object-gpo":75}],207:[function(a,b,c){function d(a,b){var c,h,k=arguments.length<3?a:arguments[2];return j(a)===k?a[b]:(c=e.f(a,b))?g(c,"value")?c.value:void 0!==c.get?c.get.call(k):void 0:i(h=f(a))?d(h,b,k):void 0}var e=a("./_object-gopd"),f=a("./_object-gpo"),g=a("./_has"),h=a("./_export"),i=a("./_is-object"),j=a("./_an-object");h(h.S,"Reflect",{get:d})},{"./_an-object":8,"./_export":33,"./_has":40,"./_is-object":50,"./_object-gopd":71,"./_object-gpo":75}],208:[function(a,b,c){var d=a("./_export");d(d.S,"Reflect",{has:function(a,b){return b in a}})},{"./_export":33}],209:[function(a,b,c){var d=a("./_export"),e=a("./_an-object"),f=Object.isExtensible;d(d.S,"Reflect",{isExtensible:function(a){return e(a),!f||f(a)}})},{"./_an-object":8,"./_export":33}],210:[function(a,b,c){var d=a("./_export");d(d.S,"Reflect",{ownKeys:a("./_own-keys")})},{"./_export":33,"./_own-keys":81}],211:[function(a,b,c){var d=a("./_export"),e=a("./_an-object"),f=Object.preventExtensions;d(d.S,"Reflect",{preventExtensions:function(a){e(a);try{return f&&f(a),!0}catch(a){return!1}}})},{"./_an-object":8,"./_export":33}],212:[function(a,b,c){var d=a("./_export"),e=a("./_set-proto");e&&d(d.S,"Reflect",{setPrototypeOf:function(a,b){e.check(a,b);try{return e.set(a,b),!0}catch(a){return!1}}})},{"./_export":33,"./_set-proto":91}],213:[function(a,b,c){function d(a,b,c){var i,m,n=arguments.length<4?a:arguments[3],o=f.f(k(a),b);if(!o){if(l(m=g(a)))return d(m,b,c,n);o=j(0)}return h(o,"value")?!(o.writable===!1||!l(n))&&(i=f.f(n,b)||j(0),i.value=c,e.f(n,b,i),!0):void 0!==o.set&&(o.set.call(n,c),!0)}var e=a("./_object-dp"),f=a("./_object-gopd"),g=a("./_object-gpo"),h=a("./_has"),i=a("./_export"),j=a("./_property-desc"),k=a("./_an-object"),l=a("./_is-object");i(i.S,"Reflect",{set:d})},{"./_an-object":8,"./_export":33,"./_has":40,"./_is-object":50,"./_object-dp":68,"./_object-gopd":71,"./_object-gpo":75,"./_property-desc":86}],214:[function(a,b,c){var d=a("./_global"),e=a("./_inherit-if-required"),f=a("./_object-dp").f,g=a("./_object-gopn").f,h=a("./_is-regexp"),i=a("./_flags"),j=d.RegExp,k=j,l=j.prototype,m=/a/g,n=/a/g!==new j(/a/g);if(a("./_descriptors")&&(!n||a("./_fails")(function(){return m[a("./_wks")("match")]=!1,/a/g!=j(/a/g)||j(m)==m||"/a/i"!=j(/a/g,"i")}))){j=function(a,b){var c=this instanceof j,d=h(a),f=void 0===b;return!c&&d&&a.constructor===j&&f?a:e(n?new k(d&&!f?a.source:a,b):k((d=a instanceof j)?a.source:a,d&&f?i.call(a):b),c?this:l,j)};for(var o=g(k),p=0;o.length>p;)!function(a){a in j||f(j,a,{configurable:!0,get:function(){return k[a]},set:function(b){k[a]=b}})}(o[p++]);l.constructor=j,j.prototype=l,a("./_redefine")(d,"RegExp",j)}a("./_set-species")("RegExp")},{"./_descriptors":29,"./_fails":35,"./_flags":37,"./_global":39,"./_inherit-if-required":44,"./_is-regexp":51,"./_object-dp":68,"./_object-gopn":73,"./_redefine":88,"./_set-species":92,"./_wks":118}],215:[function(a,b,c){a("./_descriptors")&&"g"!=/./g.flags&&a("./_object-dp").f(RegExp.prototype,"flags",{configurable:!0,get:a("./_flags")})},{"./_descriptors":29,"./_flags":37,"./_object-dp":68}],216:[function(a,b,c){a("./_fix-re-wks")("match",1,function(a,b,c){return[function(c){"use strict";var d=a(this),e=void 0==c?void 0:c[b];return void 0!==e?e.call(c,d):new RegExp(c)[b](String(d))},c]})},{"./_fix-re-wks":36}],217:[function(a,b,c){a("./_fix-re-wks")("replace",2,function(a,b,c){return[function(d,e){"use strict";var f=a(this),g=void 0==d?void 0:d[b];return void 0!==g?g.call(d,f,e):c.call(String(f),d,e)},c]})},{"./_fix-re-wks":36}],218:[function(a,b,c){a("./_fix-re-wks")("search",1,function(a,b,c){return[function(c){"use strict";var d=a(this),e=void 0==c?void 0:c[b];return void 0!==e?e.call(c,d):new RegExp(c)[b](String(d))},c]})},{"./_fix-re-wks":36}],219:[function(a,b,c){a("./_fix-re-wks")("split",2,function(b,c,d){"use strict";var e=a("./_is-regexp"),f=d,g=[].push,h="length";if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[h]||2!="ab".split(/(?:ab)*/)[h]||4!=".".split(/(.?)(.?)/)[h]||".".split(/()()/)[h]>1||"".split(/.?/)[h]){var i=void 0===/()??/.exec("")[1];d=function(a,b){var c=String(this);if(void 0===a&&0===b)return[];if(!e(a))return f.call(c,a,b);var d,j,k,l,m,n=[],o=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(a.sticky?"y":""),p=0,q=void 0===b?4294967295:b>>>0,r=new RegExp(a.source,o+"g");for(i||(d=new RegExp("^"+r.source+"$(?!\\s)",o));(j=r.exec(c))&&!((k=j.index+j[0][h])>p&&(n.push(c.slice(p,j.index)),!i&&j[h]>1&&j[0].replace(d,function(){for(m=1;m1&&j.index=q));)r.lastIndex===j.index&&r.lastIndex++;return p===c[h]?!l&&r.test("")||n.push(""):n.push(c.slice(p)),n[h]>q?n.slice(0,q):n}}else"0".split(void 0,0)[h]&&(d=function(a,b){return void 0===a&&0===b?[]:f.call(this,a,b)});return[function(a,e){var f=b(this),g=void 0==a?void 0:a[c];return void 0!==g?g.call(a,f,e):d.call(String(f),a,e)},d]})},{"./_fix-re-wks":36,"./_is-regexp":51}],220:[function(a,b,c){"use strict";a("./es6.regexp.flags");var d=a("./_an-object"),e=a("./_flags"),f=a("./_descriptors"),g=/./.toString,h=function(b){a("./_redefine")(RegExp.prototype,"toString",b,!0)};a("./_fails")(function(){return"/a/b"!=g.call({source:"a",flags:"b"})})?h(function(){var a=d(this);return"/".concat(a.source,"/","flags"in a?a.flags:!f&&a instanceof RegExp?e.call(a):void 0)}):"toString"!=g.name&&h(function(){return g.call(this)})},{"./_an-object":8,"./_descriptors":29,"./_fails":35,"./_flags":37,"./_redefine":88,"./es6.regexp.flags":215}],221:[function(a,b,c){"use strict";var d=a("./_collection-strong");b.exports=a("./_collection")("Set",function(a){return function(){return a(this,arguments.length>0?arguments[0]:void 0)}},{add:function(a){return d.def(this,a=0===a?0:a,a)}},d)},{"./_collection":23,"./_collection-strong":20}],222:[function(a,b,c){"use strict";a("./_string-html")("anchor",function(a){return function(b){return a(this,"a","name",b)}})},{"./_string-html":100}],223:[function(a,b,c){"use strict";a("./_string-html")("big",function(a){return function(){return a(this,"big","","")}})},{"./_string-html":100}],224:[function(a,b,c){"use strict";a("./_string-html")("blink",function(a){return function(){return a(this,"blink","","")}})},{"./_string-html":100}],225:[function(a,b,c){"use strict";a("./_string-html")("bold",function(a){return function(){return a(this,"b","","")}})},{"./_string-html":100}],226:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_string-at")(!1);d(d.P,"String",{codePointAt:function(a){return e(this,a)}})},{"./_export":33,"./_string-at":98}],227:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-length"),f=a("./_string-context"),g="".endsWith;d(d.P+d.F*a("./_fails-is-regexp")("endsWith"),"String",{endsWith:function(a){var b=f(this,a,"endsWith"),c=arguments.length>1?arguments[1]:void 0,d=e(b.length),h=void 0===c?d:Math.min(e(c),d),i=String(a);return g?g.call(b,i,h):b.slice(h-i.length,h)===i}})},{"./_export":33,"./_fails-is-regexp":34,"./_string-context":99,"./_to-length":109}],228:[function(a,b,c){"use strict";a("./_string-html")("fixed",function(a){return function(){return a(this,"tt","","")}})},{"./_string-html":100}],229:[function(a,b,c){"use strict";a("./_string-html")("fontcolor",function(a){return function(b){return a(this,"font","color",b)}})},{"./_string-html":100}],230:[function(a,b,c){"use strict";a("./_string-html")("fontsize",function(a){return function(b){return a(this,"font","size",b)}})},{"./_string-html":100}],231:[function(a,b,c){var d=a("./_export"),e=a("./_to-index"),f=String.fromCharCode,g=String.fromCodePoint;d(d.S+d.F*(!!g&&1!=g.length),"String",{fromCodePoint:function(a){for(var b,c=[],d=arguments.length,g=0;d>g;){if(b=+arguments[g++],e(b,1114111)!==b)throw RangeError(b+" is not a valid code point");c.push(b<65536?f(b):f(55296+((b-=65536)>>10),b%1024+56320))}return c.join("")}})},{"./_export":33,"./_to-index":106}],232:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_string-context");d(d.P+d.F*a("./_fails-is-regexp")("includes"),"String",{includes:function(a){return!!~e(this,a,"includes").indexOf(a,arguments.length>1?arguments[1]:void 0)}})},{"./_export":33,"./_fails-is-regexp":34,"./_string-context":99}],233:[function(a,b,c){"use strict";a("./_string-html")("italics",function(a){return function(){return a(this,"i","","")}})},{"./_string-html":100}],234:[function(a,b,c){"use strict";var d=a("./_string-at")(!0);a("./_iter-define")(String,"String",function(a){this._t=String(a),this._i=0},function(){var a,b=this._t,c=this._i;return c>=b.length?{value:void 0,done:!0}:(a=d(b,c),this._i+=a.length,{value:a,done:!1})})},{"./_iter-define":54,"./_string-at":98}],235:[function(a,b,c){"use strict";a("./_string-html")("link",function(a){return function(b){return a(this,"a","href",b)}})},{"./_string-html":100}],236:[function(a,b,c){var d=a("./_export"),e=a("./_to-iobject"),f=a("./_to-length");d(d.S,"String",{raw:function(a){for(var b=e(a.raw),c=f(b.length),d=arguments.length,g=[],h=0;c>h;)g.push(String(b[h++])),h1?arguments[1]:void 0,b.length)),d=String(a);return g?g.call(b,d,c):b.slice(c,c+d.length)===d}})},{"./_export":33,"./_fails-is-regexp":34,"./_string-context":99,"./_to-length":109}],240:[function(a,b,c){"use strict";a("./_string-html")("strike",function(a){return function(){return a(this,"strike","","")}})},{"./_string-html":100}],241:[function(a,b,c){"use strict";a("./_string-html")("sub",function(a){return function(){return a(this,"sub","","")}})},{"./_string-html":100}],242:[function(a,b,c){"use strict";a("./_string-html")("sup",function(a){return function(){return a(this,"sup","","")}})},{"./_string-html":100}],243:[function(a,b,c){"use strict";a("./_string-trim")("trim",function(a){return function(){return a(this,3)}})},{"./_string-trim":103}],244:[function(a,b,c){"use strict";var d=a("./_global"),e=a("./_has"),f=a("./_descriptors"),g=a("./_export"),h=a("./_redefine"),i=a("./_meta").KEY,j=a("./_fails"),k=a("./_shared"),l=a("./_set-to-string-tag"),m=a("./_uid"),n=a("./_wks"),o=a("./_wks-ext"),p=a("./_wks-define"),q=a("./_keyof"),r=a("./_enum-keys"),s=a("./_is-array"),t=a("./_an-object"),u=a("./_to-iobject"),v=a("./_to-primitive"),w=a("./_property-desc"),x=a("./_object-create"),y=a("./_object-gopn-ext"),z=a("./_object-gopd"),A=a("./_object-dp"),B=a("./_object-keys"),C=z.f,D=A.f,E=y.f,F=d.Symbol,G=d.JSON,H=G&&G.stringify,I=n("_hidden"),J=n("toPrimitive"),K={}.propertyIsEnumerable,L=k("symbol-registry"),M=k("symbols"),N=k("op-symbols"),O=Object.prototype,P="function"==typeof F,Q=d.QObject,R=!Q||!Q.prototype||!Q.prototype.findChild,S=f&&j(function(){return 7!=x(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a})?function(a,b,c){var d=C(O,b);d&&delete O[b],D(a,b,c),d&&a!==O&&D(O,b,d)}:D,T=function(a){var b=M[a]=x(F.prototype);return b._k=a,b},U=P&&"symbol"==typeof F.iterator?function(a){return"symbol"==typeof a}:function(a){return a instanceof F},V=function(a,b,c){return a===O&&V(N,b,c),t(a),b=v(b,!0),t(c),e(M,b)?(c.enumerable?(e(a,I)&&a[I][b]&&(a[I][b]=!1),c=x(c,{enumerable:w(0,!1)})):(e(a,I)||D(a,I,w(1,{})),a[I][b]=!0),S(a,b,c)):D(a,b,c)},W=function(a,b){t(a);for(var c,d=r(b=u(b)),e=0,f=d.length;f>e;)V(a,c=d[e++],b[c]);return a},X=function(a,b){return void 0===b?x(a):W(x(a),b)},Y=function(a){var b=K.call(this,a=v(a,!0));return!(this===O&&e(M,a)&&!e(N,a))&&(!(b||!e(this,a)||!e(M,a)||e(this,I)&&this[I][a])||b)},Z=function(a,b){if(a=u(a),b=v(b,!0),a!==O||!e(M,b)||e(N,b)){var c=C(a,b);return!c||!e(M,b)||e(a,I)&&a[I][b]||(c.enumerable=!0),c}},$=function(a){for(var b,c=E(u(a)),d=[],f=0;c.length>f;)e(M,b=c[f++])||b==I||b==i||d.push(b);return d},_=function(a){for(var b,c=a===O,d=E(c?N:u(a)),f=[],g=0;d.length>g;)!e(M,b=d[g++])||c&&!e(O,b)||f.push(M[b]);return f};P||(F=function(){if(this instanceof F)throw TypeError("Symbol is not a constructor!");var a=m(arguments.length>0?arguments[0]:void 0),b=function(c){this===O&&b.call(N,c),e(this,I)&&e(this[I],a)&&(this[I][a]=!1),S(this,a,w(1,c))};return f&&R&&S(O,a,{configurable:!0,set:b}),T(a)},h(F.prototype,"toString",function(){return this._k}),z.f=Z,A.f=V,a("./_object-gopn").f=y.f=$,a("./_object-pie").f=Y,a("./_object-gops").f=_,f&&!a("./_library")&&h(O,"propertyIsEnumerable",Y,!0),o.f=function(a){return T(n(a))}),g(g.G+g.W+g.F*!P,{Symbol:F});for(var aa="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ba=0;aa.length>ba;)n(aa[ba++]);for(var aa=B(n.store),ba=0;aa.length>ba;)p(aa[ba++]);g(g.S+g.F*!P,"Symbol",{for:function(a){return e(L,a+="")?L[a]:L[a]=F(a)},keyFor:function(a){if(U(a))return q(L,a);throw TypeError(a+" is not a symbol!")},useSetter:function(){R=!0},useSimple:function(){R=!1}}),g(g.S+g.F*!P,"Object",{create:X,defineProperty:V,defineProperties:W,getOwnPropertyDescriptor:Z,getOwnPropertyNames:$,getOwnPropertySymbols:_}),G&&g(g.S+g.F*(!P||j(function(){var a=F();return"[null]"!=H([a])||"{}"!=H({a:a})||"{}"!=H(Object(a))})),"JSON",{stringify:function(a){if(void 0!==a&&!U(a)){for(var b,c,d=[a],e=1;arguments.length>e;)d.push(arguments[e++]);return b=d[1],"function"==typeof b&&(c=b),!c&&s(b)||(b=function(a,b){if(c&&(b=c.call(this,a,b)),!U(b))return b}),d[1]=b,H.apply(G,d)}}}),F.prototype[J]||a("./_hide")(F.prototype,J,F.prototype.valueOf),l(F,"Symbol"),l(Math,"Math",!0),l(d.JSON,"JSON",!0)},{"./_an-object":8,"./_descriptors":29,"./_enum-keys":32,"./_export":33,"./_fails":35,"./_global":39,"./_has":40,"./_hide":41,"./_is-array":48,"./_keyof":58,"./_library":59,"./_meta":63,"./_object-create":67,"./_object-dp":68,"./_object-gopd":71,"./_object-gopn":73,"./_object-gopn-ext":72,"./_object-gops":74,"./_object-keys":77,"./_object-pie":78,"./_property-desc":86,"./_redefine":88,"./_set-to-string-tag":93,"./_shared":95,"./_to-iobject":108,"./_to-primitive":111,"./_uid":115,"./_wks":118,"./_wks-define":116,"./_wks-ext":117}],245:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_typed"),f=a("./_typed-buffer"),g=a("./_an-object"),h=a("./_to-index"),i=a("./_to-length"),j=a("./_is-object"),k=a("./_global").ArrayBuffer,l=a("./_species-constructor"),m=f.ArrayBuffer,n=f.DataView,o=e.ABV&&k.isView,p=m.prototype.slice,q=e.VIEW;d(d.G+d.W+d.F*(k!==m),{ArrayBuffer:m}),d(d.S+d.F*!e.CONSTR,"ArrayBuffer",{isView:function(a){return o&&o(a)||j(a)&&q in a}}),d(d.P+d.U+d.F*a("./_fails")(function(){return!new m(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(a,b){if(void 0!==p&&void 0===b)return p.call(g(this),a);for(var c=g(this).byteLength,d=h(a,c),e=h(void 0===b?c:b,c),f=new(l(this,m))(i(e-d)),j=new n(this),k=new n(f),o=0;d0?arguments[0]:void 0)}},p={get:function(a){if(j(a)){var b=k(a);return b===!0?m(this).get(a):b?b[this._i]:void 0}},set:function(a,b){return i.def(this,a,b)}},q=b.exports=a("./_collection")("WeakMap",o,p,i,!0,!0);7!=(new q).set((Object.freeze||Object)(n),7).get(n)&&(d=i.getConstructor(o),h(d.prototype,p),g.NEED=!0,e(["delete","has","get","set"],function(a){var b=q.prototype,c=b[a];f(b,a,function(b,e){if(j(b)&&!l(b)){this._f||(this._f=new d);var f=this._f[a](b,e);return"set"==a?this:f}return c.call(this,b,e)})}))},{"./_array-methods":13,"./_collection":23,"./_collection-weak":22,"./_is-object":50,"./_meta":63,"./_object-assign":66,"./_redefine":88}],257:[function(a,b,c){"use strict";var d=a("./_collection-weak");a("./_collection")("WeakSet",function(a){return function(){return a(this,arguments.length>0?arguments[0]:void 0)}},{add:function(a){return d.def(this,a,!0)}},d,!1,!0)},{"./_collection":23,"./_collection-weak":22}],258:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-includes")(!0);d(d.P,"Array",{includes:function(a){return e(this,a,arguments.length>1?arguments[1]:void 0)}}),a("./_add-to-unscopables")("includes")},{"./_add-to-unscopables":6,"./_array-includes":12,"./_export":33}],259:[function(a,b,c){var d=a("./_export"),e=a("./_microtask")(),f=a("./_global").process,g="process"==a("./_cof")(f);d(d.G,{asap:function(a){var b=g&&f.domain;e(b?b.bind(a):a)}})},{"./_cof":19,"./_export":33, "./_global":39,"./_microtask":65}],260:[function(a,b,c){var d=a("./_export"),e=a("./_cof");d(d.S,"Error",{isError:function(a){return"Error"===e(a)}})},{"./_cof":19,"./_export":33}],261:[function(a,b,c){var d=a("./_export");d(d.P+d.R,"Map",{toJSON:a("./_collection-to-json")("Map")})},{"./_collection-to-json":21,"./_export":33}],262:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{iaddh:function(a,b,c,d){var e=a>>>0,f=b>>>0,g=c>>>0;return f+(d>>>0)+((e&g|(e|g)&~(e+g>>>0))>>>31)|0}})},{"./_export":33}],263:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{imulh:function(a,b){var c=+a,d=+b,e=65535&c,f=65535&d,g=c>>16,h=d>>16,i=(g*f>>>0)+(e*f>>>16);return g*h+(i>>16)+((e*h>>>0)+(65535&i)>>16)}})},{"./_export":33}],264:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{isubh:function(a,b,c,d){var e=a>>>0,f=b>>>0,g=c>>>0;return f-(d>>>0)-((~e&g|~(e^g)&e-g>>>0)>>>31)|0}})},{"./_export":33}],265:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{umulh:function(a,b){var c=+a,d=+b,e=65535&c,f=65535&d,g=c>>>16,h=d>>>16,i=(g*f>>>0)+(e*f>>>16);return g*h+(i>>>16)+((e*h>>>0)+(65535&i)>>>16)}})},{"./_export":33}],266:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-object"),f=a("./_a-function"),g=a("./_object-dp");a("./_descriptors")&&d(d.P+a("./_object-forced-pam"),"Object",{__defineGetter__:function(a,b){g.f(e(this),a,{get:f(b),enumerable:!0,configurable:!0})}})},{"./_a-function":4,"./_descriptors":29,"./_export":33,"./_object-dp":68,"./_object-forced-pam":70,"./_to-object":110}],267:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-object"),f=a("./_a-function"),g=a("./_object-dp");a("./_descriptors")&&d(d.P+a("./_object-forced-pam"),"Object",{__defineSetter__:function(a,b){g.f(e(this),a,{set:f(b),enumerable:!0,configurable:!0})}})},{"./_a-function":4,"./_descriptors":29,"./_export":33,"./_object-dp":68,"./_object-forced-pam":70,"./_to-object":110}],268:[function(a,b,c){var d=a("./_export"),e=a("./_object-to-array")(!0);d(d.S,"Object",{entries:function(a){return e(a)}})},{"./_export":33,"./_object-to-array":80}],269:[function(a,b,c){var d=a("./_export"),e=a("./_own-keys"),f=a("./_to-iobject"),g=a("./_object-gopd"),h=a("./_create-property");d(d.S,"Object",{getOwnPropertyDescriptors:function(a){for(var b,c=f(a),d=g.f,i=e(c),j={},k=0;i.length>k;)h(j,b=i[k++],d(c,b));return j}})},{"./_create-property":25,"./_export":33,"./_object-gopd":71,"./_own-keys":81,"./_to-iobject":108}],270:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-object"),f=a("./_to-primitive"),g=a("./_object-gpo"),h=a("./_object-gopd").f;a("./_descriptors")&&d(d.P+a("./_object-forced-pam"),"Object",{__lookupGetter__:function(a){var b,c=e(this),d=f(a,!0);do{if(b=h(c,d))return b.get}while(c=g(c))}})},{"./_descriptors":29,"./_export":33,"./_object-forced-pam":70,"./_object-gopd":71,"./_object-gpo":75,"./_to-object":110,"./_to-primitive":111}],271:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-object"),f=a("./_to-primitive"),g=a("./_object-gpo"),h=a("./_object-gopd").f;a("./_descriptors")&&d(d.P+a("./_object-forced-pam"),"Object",{__lookupSetter__:function(a){var b,c=e(this),d=f(a,!0);do{if(b=h(c,d))return b.set}while(c=g(c))}})},{"./_descriptors":29,"./_export":33,"./_object-forced-pam":70,"./_object-gopd":71,"./_object-gpo":75,"./_to-object":110,"./_to-primitive":111}],272:[function(a,b,c){var d=a("./_export"),e=a("./_object-to-array")(!1);d(d.S,"Object",{values:function(a){return e(a)}})},{"./_export":33,"./_object-to-array":80}],273:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_global"),f=a("./_core"),g=a("./_microtask")(),h=a("./_wks")("observable"),i=a("./_a-function"),j=a("./_an-object"),k=a("./_an-instance"),l=a("./_redefine-all"),m=a("./_hide"),n=a("./_for-of"),o=n.RETURN,p=function(a){return null==a?void 0:i(a)},q=function(a){var b=a._c;b&&(a._c=void 0,b())},r=function(a){return void 0===a._o},s=function(a){r(a)||(a._o=void 0,q(a))},t=function(a,b){j(a),this._c=void 0,this._o=a,a=new u(this);try{var c=b(a),d=c;null!=c&&("function"==typeof c.unsubscribe?c=function(){d.unsubscribe()}:i(c),this._c=c)}catch(b){return void a.error(b)}r(this)&&q(this)};t.prototype=l({},{unsubscribe:function(){s(this)}});var u=function(a){this._s=a};u.prototype=l({},{next:function(a){var b=this._s;if(!r(b)){var c=b._o;try{var d=p(c.next);if(d)return d.call(c,a)}catch(a){try{s(b)}finally{throw a}}}},error:function(a){var b=this._s;if(r(b))throw a;var c=b._o;b._o=void 0;try{var d=p(c.error);if(!d)throw a;a=d.call(c,a)}catch(a){try{q(b)}finally{throw a}}return q(b),a},complete:function(a){var b=this._s;if(!r(b)){var c=b._o;b._o=void 0;try{var d=p(c.complete);a=d?d.call(c,a):void 0}catch(a){try{q(b)}finally{throw a}}return q(b),a}}});var v=function(a){k(this,v,"Observable","_f")._f=i(a)};l(v.prototype,{subscribe:function(a){return new t(a,this._f)},forEach:function(a){var b=this;return new(f.Promise||e.Promise)(function(c,d){i(a);var e=b.subscribe({next:function(b){try{return a(b)}catch(a){d(a),e.unsubscribe()}},error:d,complete:c})})}}),l(v,{from:function(a){var b="function"==typeof this?this:v,c=p(j(a)[h]);if(c){var d=j(c.call(a));return d.constructor===b?d:new b(function(a){return d.subscribe(a)})}return new b(function(b){var c=!1;return g(function(){if(!c){try{if(n(a,!1,function(a){if(b.next(a),c)return o})===o)return}catch(a){if(c)throw a;return void b.error(a)}b.complete()}}),function(){c=!0}})},of:function(){for(var a=0,b=arguments.length,c=Array(b);a1?arguments[1]:void 0,!1)}})},{"./_export":33,"./_string-pad":101}],287:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_string-pad");d(d.P,"String",{padStart:function(a){return e(this,a,arguments.length>1?arguments[1]:void 0,!0)}})},{"./_export":33,"./_string-pad":101}],288:[function(a,b,c){"use strict";a("./_string-trim")("trimLeft",function(a){return function(){return a(this,1)}},"trimStart")},{"./_string-trim":103}],289:[function(a,b,c){"use strict";a("./_string-trim")("trimRight",function(a){return function(){return a(this,2)}},"trimEnd")},{"./_string-trim":103}],290:[function(a,b,c){a("./_wks-define")("asyncIterator")},{"./_wks-define":116}],291:[function(a,b,c){a("./_wks-define")("observable")},{"./_wks-define":116}],292:[function(a,b,c){var d=a("./_export");d(d.S,"System",{global:a("./_global")})},{"./_export":33,"./_global":39}],293:[function(a,b,c){for(var d=a("./es6.array.iterator"),e=a("./_redefine"),f=a("./_global"),g=a("./_hide"),h=a("./_iterators"),i=a("./_wks"),j=i("iterator"),k=i("toStringTag"),l=h.Array,m=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],n=0;n<5;n++){var o,p=m[n],q=f[p],r=q&&q.prototype;if(r){r[j]||g(r,j,l),r[k]||g(r,k,p),h[p]=l;for(o in d)r[o]||e(r,o,d[o],!0)}}},{"./_global":39,"./_hide":41,"./_iterators":57,"./_redefine":88,"./_wks":118,"./es6.array.iterator":131}],294:[function(a,b,c){var d=a("./_export"),e=a("./_task");d(d.G+d.B,{setImmediate:e.set,clearImmediate:e.clear})},{"./_export":33,"./_task":105}],295:[function(a,b,c){var d=a("./_global"),e=a("./_export"),f=a("./_invoke"),g=a("./_partial"),h=d.navigator,i=!!h&&/MSIE .\./.test(h.userAgent),j=function(a){return i?function(b,c){return a(f(g,[].slice.call(arguments,2),"function"==typeof b?b:Function(b)),c)}:a};e(e.G+e.B+e.F*i,{setTimeout:j(d.setTimeout),setInterval:j(d.setInterval)})},{"./_export":33,"./_global":39,"./_invoke":45,"./_partial":84}],296:[function(a,b,c){a("./modules/es6.symbol"),a("./modules/es6.object.create"),a("./modules/es6.object.define-property"),a("./modules/es6.object.define-properties"),a("./modules/es6.object.get-own-property-descriptor"),a("./modules/es6.object.get-prototype-of"),a("./modules/es6.object.keys"),a("./modules/es6.object.get-own-property-names"),a("./modules/es6.object.freeze"),a("./modules/es6.object.seal"),a("./modules/es6.object.prevent-extensions"),a("./modules/es6.object.is-frozen"),a("./modules/es6.object.is-sealed"),a("./modules/es6.object.is-extensible"),a("./modules/es6.object.assign"),a("./modules/es6.object.is"),a("./modules/es6.object.set-prototype-of"),a("./modules/es6.object.to-string"),a("./modules/es6.function.bind"),a("./modules/es6.function.name"),a("./modules/es6.function.has-instance"),a("./modules/es6.parse-int"),a("./modules/es6.parse-float"),a("./modules/es6.number.constructor"),a("./modules/es6.number.to-fixed"),a("./modules/es6.number.to-precision"),a("./modules/es6.number.epsilon"),a("./modules/es6.number.is-finite"),a("./modules/es6.number.is-integer"),a("./modules/es6.number.is-nan"),a("./modules/es6.number.is-safe-integer"),a("./modules/es6.number.max-safe-integer"),a("./modules/es6.number.min-safe-integer"),a("./modules/es6.number.parse-float"),a("./modules/es6.number.parse-int"),a("./modules/es6.math.acosh"),a("./modules/es6.math.asinh"),a("./modules/es6.math.atanh"),a("./modules/es6.math.cbrt"),a("./modules/es6.math.clz32"),a("./modules/es6.math.cosh"),a("./modules/es6.math.expm1"),a("./modules/es6.math.fround"),a("./modules/es6.math.hypot"),a("./modules/es6.math.imul"),a("./modules/es6.math.log10"),a("./modules/es6.math.log1p"),a("./modules/es6.math.log2"),a("./modules/es6.math.sign"),a("./modules/es6.math.sinh"),a("./modules/es6.math.tanh"),a("./modules/es6.math.trunc"),a("./modules/es6.string.from-code-point"),a("./modules/es6.string.raw"),a("./modules/es6.string.trim"),a("./modules/es6.string.iterator"),a("./modules/es6.string.code-point-at"),a("./modules/es6.string.ends-with"),a("./modules/es6.string.includes"),a("./modules/es6.string.repeat"),a("./modules/es6.string.starts-with"),a("./modules/es6.string.anchor"),a("./modules/es6.string.big"),a("./modules/es6.string.blink"),a("./modules/es6.string.bold"),a("./modules/es6.string.fixed"),a("./modules/es6.string.fontcolor"),a("./modules/es6.string.fontsize"),a("./modules/es6.string.italics"),a("./modules/es6.string.link"),a("./modules/es6.string.small"),a("./modules/es6.string.strike"),a("./modules/es6.string.sub"),a("./modules/es6.string.sup"),a("./modules/es6.date.now"),a("./modules/es6.date.to-json"),a("./modules/es6.date.to-iso-string"),a("./modules/es6.date.to-string"),a("./modules/es6.date.to-primitive"),a("./modules/es6.array.is-array"),a("./modules/es6.array.from"),a("./modules/es6.array.of"),a("./modules/es6.array.join"),a("./modules/es6.array.slice"),a("./modules/es6.array.sort"),a("./modules/es6.array.for-each"),a("./modules/es6.array.map"),a("./modules/es6.array.filter"),a("./modules/es6.array.some"),a("./modules/es6.array.every"),a("./modules/es6.array.reduce"),a("./modules/es6.array.reduce-right"),a("./modules/es6.array.index-of"),a("./modules/es6.array.last-index-of"),a("./modules/es6.array.copy-within"),a("./modules/es6.array.fill"),a("./modules/es6.array.find"),a("./modules/es6.array.find-index"),a("./modules/es6.array.species"),a("./modules/es6.array.iterator"),a("./modules/es6.regexp.constructor"),a("./modules/es6.regexp.to-string"),a("./modules/es6.regexp.flags"),a("./modules/es6.regexp.match"),a("./modules/es6.regexp.replace"),a("./modules/es6.regexp.search"),a("./modules/es6.regexp.split"),a("./modules/es6.promise"),a("./modules/es6.map"),a("./modules/es6.set"),a("./modules/es6.weak-map"),a("./modules/es6.weak-set"),a("./modules/es6.typed.array-buffer"),a("./modules/es6.typed.data-view"),a("./modules/es6.typed.int8-array"),a("./modules/es6.typed.uint8-array"),a("./modules/es6.typed.uint8-clamped-array"),a("./modules/es6.typed.int16-array"),a("./modules/es6.typed.uint16-array"),a("./modules/es6.typed.int32-array"),a("./modules/es6.typed.uint32-array"),a("./modules/es6.typed.float32-array"),a("./modules/es6.typed.float64-array"),a("./modules/es6.reflect.apply"),a("./modules/es6.reflect.construct"),a("./modules/es6.reflect.define-property"),a("./modules/es6.reflect.delete-property"),a("./modules/es6.reflect.enumerate"),a("./modules/es6.reflect.get"),a("./modules/es6.reflect.get-own-property-descriptor"),a("./modules/es6.reflect.get-prototype-of"),a("./modules/es6.reflect.has"),a("./modules/es6.reflect.is-extensible"),a("./modules/es6.reflect.own-keys"),a("./modules/es6.reflect.prevent-extensions"),a("./modules/es6.reflect.set"),a("./modules/es6.reflect.set-prototype-of"),a("./modules/es7.array.includes"),a("./modules/es7.string.at"),a("./modules/es7.string.pad-start"),a("./modules/es7.string.pad-end"),a("./modules/es7.string.trim-left"),a("./modules/es7.string.trim-right"),a("./modules/es7.string.match-all"),a("./modules/es7.symbol.async-iterator"),a("./modules/es7.symbol.observable"),a("./modules/es7.object.get-own-property-descriptors"),a("./modules/es7.object.values"),a("./modules/es7.object.entries"),a("./modules/es7.object.define-getter"),a("./modules/es7.object.define-setter"),a("./modules/es7.object.lookup-getter"),a("./modules/es7.object.lookup-setter"),a("./modules/es7.map.to-json"),a("./modules/es7.set.to-json"),a("./modules/es7.system.global"),a("./modules/es7.error.is-error"),a("./modules/es7.math.iaddh"),a("./modules/es7.math.isubh"),a("./modules/es7.math.imulh"),a("./modules/es7.math.umulh"),a("./modules/es7.reflect.define-metadata"),a("./modules/es7.reflect.delete-metadata"),a("./modules/es7.reflect.get-metadata"),a("./modules/es7.reflect.get-metadata-keys"),a("./modules/es7.reflect.get-own-metadata"),a("./modules/es7.reflect.get-own-metadata-keys"),a("./modules/es7.reflect.has-metadata"),a("./modules/es7.reflect.has-own-metadata"),a("./modules/es7.reflect.metadata"),a("./modules/es7.asap"),a("./modules/es7.observable"),a("./modules/web.timers"),a("./modules/web.immediate"),a("./modules/web.dom.iterable"),b.exports=a("./modules/_core")},{"./modules/_core":24,"./modules/es6.array.copy-within":121,"./modules/es6.array.every":122,"./modules/es6.array.fill":123,"./modules/es6.array.filter":124,"./modules/es6.array.find":126,"./modules/es6.array.find-index":125,"./modules/es6.array.for-each":127,"./modules/es6.array.from":128,"./modules/es6.array.index-of":129,"./modules/es6.array.is-array":130,"./modules/es6.array.iterator":131,"./modules/es6.array.join":132,"./modules/es6.array.last-index-of":133,"./modules/es6.array.map":134,"./modules/es6.array.of":135,"./modules/es6.array.reduce":137,"./modules/es6.array.reduce-right":136,"./modules/es6.array.slice":138,"./modules/es6.array.some":139,"./modules/es6.array.sort":140,"./modules/es6.array.species":141,"./modules/es6.date.now":142,"./modules/es6.date.to-iso-string":143,"./modules/es6.date.to-json":144,"./modules/es6.date.to-primitive":145,"./modules/es6.date.to-string":146,"./modules/es6.function.bind":147,"./modules/es6.function.has-instance":148,"./modules/es6.function.name":149,"./modules/es6.map":150,"./modules/es6.math.acosh":151,"./modules/es6.math.asinh":152,"./modules/es6.math.atanh":153,"./modules/es6.math.cbrt":154,"./modules/es6.math.clz32":155,"./modules/es6.math.cosh":156,"./modules/es6.math.expm1":157,"./modules/es6.math.fround":158,"./modules/es6.math.hypot":159,"./modules/es6.math.imul":160,"./modules/es6.math.log10":161,"./modules/es6.math.log1p":162,"./modules/es6.math.log2":163,"./modules/es6.math.sign":164,"./modules/es6.math.sinh":165,"./modules/es6.math.tanh":166,"./modules/es6.math.trunc":167,"./modules/es6.number.constructor":168,"./modules/es6.number.epsilon":169,"./modules/es6.number.is-finite":170,"./modules/es6.number.is-integer":171,"./modules/es6.number.is-nan":172,"./modules/es6.number.is-safe-integer":173,"./modules/es6.number.max-safe-integer":174,"./modules/es6.number.min-safe-integer":175,"./modules/es6.number.parse-float":176,"./modules/es6.number.parse-int":177,"./modules/es6.number.to-fixed":178,"./modules/es6.number.to-precision":179,"./modules/es6.object.assign":180,"./modules/es6.object.create":181,"./modules/es6.object.define-properties":182,"./modules/es6.object.define-property":183,"./modules/es6.object.freeze":184,"./modules/es6.object.get-own-property-descriptor":185,"./modules/es6.object.get-own-property-names":186,"./modules/es6.object.get-prototype-of":187,"./modules/es6.object.is":191,"./modules/es6.object.is-extensible":188,"./modules/es6.object.is-frozen":189,"./modules/es6.object.is-sealed":190,"./modules/es6.object.keys":192,"./modules/es6.object.prevent-extensions":193,"./modules/es6.object.seal":194,"./modules/es6.object.set-prototype-of":195,"./modules/es6.object.to-string":196,"./modules/es6.parse-float":197,"./modules/es6.parse-int":198,"./modules/es6.promise":199,"./modules/es6.reflect.apply":200,"./modules/es6.reflect.construct":201,"./modules/es6.reflect.define-property":202,"./modules/es6.reflect.delete-property":203,"./modules/es6.reflect.enumerate":204,"./modules/es6.reflect.get":207,"./modules/es6.reflect.get-own-property-descriptor":205,"./modules/es6.reflect.get-prototype-of":206,"./modules/es6.reflect.has":208,"./modules/es6.reflect.is-extensible":209,"./modules/es6.reflect.own-keys":210,"./modules/es6.reflect.prevent-extensions":211,"./modules/es6.reflect.set":213,"./modules/es6.reflect.set-prototype-of":212,"./modules/es6.regexp.constructor":214,"./modules/es6.regexp.flags":215,"./modules/es6.regexp.match":216,"./modules/es6.regexp.replace":217,"./modules/es6.regexp.search":218,"./modules/es6.regexp.split":219,"./modules/es6.regexp.to-string":220,"./modules/es6.set":221,"./modules/es6.string.anchor":222,"./modules/es6.string.big":223,"./modules/es6.string.blink":224,"./modules/es6.string.bold":225,"./modules/es6.string.code-point-at":226,"./modules/es6.string.ends-with":227,"./modules/es6.string.fixed":228,"./modules/es6.string.fontcolor":229,"./modules/es6.string.fontsize":230,"./modules/es6.string.from-code-point":231,"./modules/es6.string.includes":232,"./modules/es6.string.italics":233,"./modules/es6.string.iterator":234,"./modules/es6.string.link":235,"./modules/es6.string.raw":236,"./modules/es6.string.repeat":237,"./modules/es6.string.small":238,"./modules/es6.string.starts-with":239,"./modules/es6.string.strike":240,"./modules/es6.string.sub":241,"./modules/es6.string.sup":242,"./modules/es6.string.trim":243,"./modules/es6.symbol":244,"./modules/es6.typed.array-buffer":245,"./modules/es6.typed.data-view":246,"./modules/es6.typed.float32-array":247,"./modules/es6.typed.float64-array":248,"./modules/es6.typed.int16-array":249,"./modules/es6.typed.int32-array":250,"./modules/es6.typed.int8-array":251,"./modules/es6.typed.uint16-array":252,"./modules/es6.typed.uint32-array":253,"./modules/es6.typed.uint8-array":254,"./modules/es6.typed.uint8-clamped-array":255,"./modules/es6.weak-map":256,"./modules/es6.weak-set":257,"./modules/es7.array.includes":258,"./modules/es7.asap":259,"./modules/es7.error.is-error":260,"./modules/es7.map.to-json":261,"./modules/es7.math.iaddh":262,"./modules/es7.math.imulh":263,"./modules/es7.math.isubh":264,"./modules/es7.math.umulh":265,"./modules/es7.object.define-getter":266,"./modules/es7.object.define-setter":267,"./modules/es7.object.entries":268,"./modules/es7.object.get-own-property-descriptors":269,"./modules/es7.object.lookup-getter":270,"./modules/es7.object.lookup-setter":271,"./modules/es7.object.values":272,"./modules/es7.observable":273,"./modules/es7.reflect.define-metadata":274,"./modules/es7.reflect.delete-metadata":275,"./modules/es7.reflect.get-metadata":277,"./modules/es7.reflect.get-metadata-keys":276,"./modules/es7.reflect.get-own-metadata":279,"./modules/es7.reflect.get-own-metadata-keys":278,"./modules/es7.reflect.has-metadata":280,"./modules/es7.reflect.has-own-metadata":281,"./modules/es7.reflect.metadata":282,"./modules/es7.set.to-json":283,"./modules/es7.string.at":284,"./modules/es7.string.match-all":285,"./modules/es7.string.pad-end":286,"./modules/es7.string.pad-start":287,"./modules/es7.string.trim-left":288,"./modules/es7.string.trim-right":289,"./modules/es7.symbol.async-iterator":290,"./modules/es7.symbol.observable":291,"./modules/es7.system.global":292,"./modules/web.dom.iterable":293,"./modules/web.immediate":294,"./modules/web.timers":295}],297:[function(a,b,c){!function(){"use strict";function a(a){return"detail"in a?new k(a.type,{bubbles:a.bubbles,cancelable:a.cancelable,detail:a.detail},a):new j(a.type,{bubbles:a.bubbles,cancelable:a.cancelable},a)}function d(a,b,c){var d=a[b];void 0===d&&(a[b]=d=[]),c="boolean"==typeof c?{capture:c}:c||{};var e=JSON.stringify(c);return{listenersByTypeOptions:d.filter(function(a){return e===JSON.stringify(a.options)}),options:c,listenersByType:d}}function e(){throw new TypeError("Illegal constructor")}var f,g={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3};f="undefined"==typeof DOMException?function(a,b){var c=new Error(a);return c.name=b,c}:DOMException;var h=new WeakMap,i=new WeakMap,j=function(a){this[Symbol.toStringTag]="Event",this.toString=function(){return"[object Event]"};var b=arguments[1],c=arguments[2];if(!arguments.length)throw new TypeError("Failed to construct 'Event': 1 argument required, but only 0 present.");b=b||{},c=c||{};var d={};"composed"in b&&(d.composed=b.composed),h.set(this,c),i.set(this,d),this.initEvent(a,b.bubbles,b.cancelable),Object.defineProperties(this,["target","currentTarget","eventPhase","defaultPrevented"].reduce(function(a,b){return a[b]={get:function(){return void 0!==d[b]?d[b]:b in c?c[b]:"eventPhase"===b?0:"defaultPrevented"!==b&&null}},a},{}));var e=["type","bubbles","cancelable","isTrusted","timeStamp","initEvent","composedPath","composed"];"[object CustomEvent]"===this.toString()&&e.push("detail","initCustomEvent"),Object.defineProperties(this,e.reduce(function(a,b){return a[b]={get:function(){return b in d?d[b]:b in c?c[b]:!(["bubbles","cancelable","composed"].indexOf(b)>-1)&&void 0}},a},{}))};j.prototype.preventDefault=function(){if(!(this instanceof j))throw new TypeError("Illegal invocation");var a=h.get(this),b=i.get(this);this.cancelable&&!b._passive&&(b.defaultPrevented=!0,"function"==typeof a.preventDefault&&a.preventDefault())},j.prototype.stopImmediatePropagation=function(){i.get(this)._stopImmediatePropagation=!0},j.prototype.stopPropagation=function(){i.get(this)._stopPropagation=!0},j.prototype.initEvent=function(a,b,c){var d=i.get(this);d._dispatched||(d.type=a,void 0!==b&&(d.bubbles=b),void 0!==c&&(d.cancelable=c))},["type","target","currentTarget"].forEach(function(a){Object.defineProperty(j.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),["eventPhase","defaultPrevented","bubbles","cancelable","timeStamp"].forEach(function(a){Object.defineProperty(j.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),["NONE","CAPTURING_PHASE","AT_TARGET","BUBBLING_PHASE"].forEach(function(a,b){Object.defineProperty(j,a,{enumerable:!0,writable:!1,value:b}),Object.defineProperty(j.prototype,a,{writable:!1,value:b})}),j[Symbol.toStringTag]="Function",j.prototype[Symbol.toStringTag]="EventPrototype",Object.defineProperty(j,"prototype",{writable:!1});var k=function(a){var b=arguments[1],c=arguments[2];j.call(this,a,b,c),this[Symbol.toStringTag]="CustomEvent",this.toString=function(){return"[object CustomEvent]"};i.get(this);b=b||{},this.initCustomEvent(a,evInit.bubbles,evInit.cancelable,"detail"in evInit?evInit.detail:null)};Object.defineProperty(k.prototype,"constructor",{enumerable:!1,writable:!0,configurable:!0,value:k}),k.prototype.initCustomEvent=function(a,b,c,d){if(!(this instanceof k))throw new TypeError("Illegal invocation");var e=i.get(this);k.call(this,a,{bubbles:b,cancelable:c,detail:d},arguments[4]),e._dispatched||(void 0!==d&&(e.detail=d),Object.defineProperty(this,"detail",{get:function(){return e.detail}}))},k[Symbol.toStringTag]="Function",k.prototype[Symbol.toStringTag]="CustomEventPrototype",Object.setPrototypeOf(k,j),Object.defineProperty(k.prototype,"detail",{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}}),Object.setPrototypeOf(k.prototype,j.prototype),Object.defineProperty(k,"prototype",{writable:!1});var l={addListener:function(a,b,c,e){var f=d(a,c,e),g=f.listenersByTypeOptions;e=f.options;var h=f.listenersByType;g.some(function(a){return a.listener===b})||h.push({listener:b,options:e})},removeListener:function(a,b,c,e){var f=d(a,c,e),g=f.listenersByType,h=JSON.stringify(f.options);g.some(function(d,e){if(d.listener===b&&h===JSON.stringify(d.options))return g.splice(e,1),g.length||delete a[c],!0})},hasListener:function(a,b,c,e){return d(a,c,e).listenersByTypeOptions.some(function(a){return a.listener===b})}};Object.assign(e.prototype,["Early","","Late","Default"].reduce(function(a,b){return["add","remove","has"].forEach(function(c){a[c+b+"EventListener"]=function(a,d){var e=arguments[2];if(arguments.length<2)throw new TypeError("2 or more arguments required");if("string"!=typeof a)throw new f("UNSPECIFIED_EVENT_TYPE_ERR","UNSPECIFIED_EVENT_TYPE_ERR");d.handleEvent&&(d=d.handleEvent.bind(d));var g="_"+b.toLowerCase()+(""===b?"l":"L")+"isteners";return this[g]||Object.defineProperty(this,g,{value:{}}),l[c+"Listener"](this[g],d,a,e)}}),a},{})),Object.assign(e.prototype,{__setOptions:function(a){a=a||{},this._defaultSync=a.defaultSync,this._extraProperties=a.extraProperties},dispatchEvent:function(a){return this._dispatchEvent(a,!0)},_dispatchEvent:function(b,c){function d(){k.eventPhase=g.NONE,k.currentTarget=null,delete k._children}function e(){k._stopImmediatePropagation=void 0,k._stopPropagation=void 0,l.defaultPrevented&&k.cancelable||(k.eventPhase=g.AT_TARGET,l.target.invokeCurrentListeners(l.target._defaultListeners,l,m)),d()}function h(){return k._stopImmediatePropagation=void 0,k._stopPropagation=void 0,j._defaultSync?e():setTimeout(e,0),k.eventPhase=g.AT_TARGET,k._stopPropagation||(k._stopImmediatePropagation=void 0,k._stopPropagation=void 0,l.target.invokeCurrentListeners(l.target._lateListeners,l,m)),d(),!l.defaultPrevented}var j=this;["early","","late","default"].forEach(function(a){var b="_"+a+(""===a?"l":"L")+"isteners";this[b]||Object.defineProperty(this,b,{value:{}})},this);var k=i.get(b);if(k&&c&&k._dispatched)throw new f("The object is in an invalid state.","InvalidStateError");var l;k?l=b:(l=a(b),k=i.get(l),k._dispatched=!0,(this._extraProperties||[]).forEach(function(a){a in b&&(l[a]=b[a])}));var m=l.type;switch(c&&(k.target=this),l.eventPhase){default:case g.NONE:if(k.eventPhase=g.AT_TARGET,this.invokeCurrentListeners(this._earlyListeners,l,m),!this.__getParent)return k.eventPhase=g.AT_TARGET,this._dispatchEvent(l,!1);for(var n=this,o=this;n.__getParent&&null!==(n=n.__getParent());)k._children||(k._children=[]),k._children.push(o),o=n;return o._defaultSync=j._defaultSync,k.eventPhase=g.CAPTURING_PHASE,o._dispatchEvent(l,!1);case g.CAPTURING_PHASE:if(k._stopPropagation)return h();this.invokeCurrentListeners(this._listeners,l,m);var p=k._children&&k._children.length&&k._children.pop();return p&&p!==l.target||(k.eventPhase=g.AT_TARGET),p&&(p._defaultSync=j._defaultSync),(p||this)._dispatchEvent(l,!1);case g.AT_TARGET:return k._stopPropagation?h():(this.invokeCurrentListeners(this._listeners,l,m,!0),k.bubbles?(k.eventPhase=g.BUBBLING_PHASE,this._dispatchEvent(l,!1)):h());case g.BUBBLING_PHASE:if(k._stopPropagation)return h();var q=this.__getParent&&this.__getParent();return q?(q.invokeCurrentListeners(q._listeners,l,m,!0),q._defaultSync=j._defaultSync,q._dispatchEvent(l,!1)):h()}},invokeCurrentListeners:function(a,b,c,e){var f=i.get(b),h=this;f.currentTarget=this;var j=d(a,c,{}),k=j.listenersByType.concat(),l=k.length?1:0;return k.some(function(a,d){var i=e?h["on"+c]:null;if(f._stopImmediatePropagation)return!0;d===l&&"function"==typeof i&&this.tryCatch(function(){i.call(b.currentTarget,b)===!1&&b.preventDefault()});var j=a.options,k=j.once,m=j.passive,n=j.capture;if(f._passive=m,n&&b.target!==b.currentTarget&&b.eventPhase===g.CAPTURING_PHASE||b.eventPhase===g.AT_TARGET||!n&&b.target!==b.currentTarget&&b.eventPhase===g.BUBBLING_PHASE){var o=a.listener;this.tryCatch(function(){o.call(b.currentTarget,b)}), -k&&this.removeEventListener(c,o,j)}},this),this.tryCatch(function(){var a=e?h["on"+c]:null;if("function"==typeof a&&k.length<2){a.call(b.currentTarget,b)===!1&&b.preventDefault()}}),!b.defaultPrevented},tryCatch:function(a){try{a()}catch(a){this.triggerErrorEvent(a)}},triggerErrorEvent:function(a){var b=a;"string"==typeof a&&(b=new Error("Uncaught exception: "+a));var c;c="undefined"==typeof window||"undefined"==typeof ErrorEvent||window&&"object"==typeof window&&!window.dispatchEvent?function(){setTimeout(function(){throw b})}:function(){var c=new ErrorEvent("error",{error:a,message:b.message||"",filename:b.fileName||"",lineno:b.lineNumber||0,colno:b.columnNumber||0});window.dispatchEvent(c)},this.__userErrorEventHandler?this.__userErrorEventHandler(b,c):c()}}),e.prototype[Symbol.toStringTag]="EventTargetPrototype",Object.defineProperty(e,"prototype",{writable:!1});var m=e,n={createInstance:function(a){function b(){this.__setOptions(a)}return b.prototype=m.prototype,new b}},o=void 0!==b&&b.exports?c:window;o.ShimEvent=j,o.ShimCustomEvent=k,o.ShimDOMException=f,o.ShimEventTarget=e,o.EventTargetFactory=n}()},{}],298:[function(a,b,c){(function(a){!function(a){"use strict";function c(a,b,c,d){var f=b&&b.prototype instanceof e?b:e,g=Object.create(f.prototype),h=new n(d||[]);return g._invoke=j(a,c,h),g}function d(a,b,c){try{return{type:"normal",arg:a.call(b,c)}}catch(a){return{type:"throw",arg:a}}}function e(){}function f(){}function g(){}function h(a){["next","throw","return"].forEach(function(b){a[b]=function(a){return this._invoke(b,a)}})}function i(a){function b(c,e,f,g){var h=d(a[c],a,e);if("throw"!==h.type){var i=h.arg,j=i.value;return j&&"object"==typeof j&&s.call(j,"__await")?Promise.resolve(j.__await).then(function(a){b("next",a,f,g)},function(a){b("throw",a,f,g)}):Promise.resolve(j).then(function(a){i.value=a,f(i)},g)}g(h.arg)}function c(a,c){function d(){return new Promise(function(d,e){b(a,c,d,e)})}return e=e?e.then(d,d):d()}"object"==typeof process&&process.domain&&(b=process.domain.bind(b));var e;this._invoke=c}function j(a,b,c){var e=y;return function(f,g){if(e===A)throw new Error("Generator is already running");if(e===B){if("throw"===f)throw g;return p()}for(c.method=f,c.arg=g;;){var h=c.delegate;if(h){var i=k(h,c);if(i){if(i===C)continue;return i}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(e===y)throw e=B,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);e=A;var j=d(a,b,c);if("normal"===j.type){if(e=c.done?B:z,j.arg===C)continue;return{value:j.arg,done:c.done}}"throw"===j.type&&(e=B,c.method="throw",c.arg=j.arg)}}}function k(a,b){var c=a.iterator[b.method];if(c===q){if(b.delegate=null,"throw"===b.method){if(a.iterator.return&&(b.method="return",b.arg=q,k(a,b),"throw"===b.method))return C;b.method="throw",b.arg=new TypeError("The iterator does not provide a 'throw' method")}return C}var e=d(c,a.iterator,b.arg);if("throw"===e.type)return b.method="throw",b.arg=e.arg,b.delegate=null,C;var f=e.arg;return f?f.done?(b[a.resultName]=f.value,b.next=a.nextLoc,"return"!==b.method&&(b.method="next",b.arg=q),b.delegate=null,C):f:(b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,C)}function l(a){var b={tryLoc:a[0]};1 in a&&(b.catchLoc=a[1]),2 in a&&(b.finallyLoc=a[2],b.afterLoc=a[3]),this.tryEntries.push(b)}function m(a){var b=a.completion||{};b.type="normal",delete b.arg,a.completion=b}function n(a){this.tryEntries=[{tryLoc:"root"}],a.forEach(l,this),this.reset(!0)}function o(a){if(a){var b=a[u];if(b)return b.call(a);if("function"==typeof a.next)return a;if(!isNaN(a.length)){var c=-1,d=function b(){for(;++c=0;--d){var e=this.tryEntries[d],f=e.completion;if("root"===e.tryLoc)return b("end");if(e.tryLoc<=this.prev){var g=s.call(e,"catchLoc"),h=s.call(e,"finallyLoc");if(g&&h){if(this.prev=0;--c){var d=this.tryEntries[c];if(d.tryLoc<=this.prev&&s.call(d,"finallyLoc")&&this.prev=0;--b){var c=this.tryEntries[b];if(c.finallyLoc===a)return this.complete(c.completion,c.afterLoc),m(c),C}},catch:function(a){for(var b=this.tryEntries.length-1;b>=0;--b){var c=this.tryEntries[b];if(c.tryLoc===a){var d=c.completion;if("throw"===d.type){var e=d.arg;m(c)}return e}}throw new Error("illegal catch attempt")},delegateYield:function(a,b,c){return this.delegate={iterator:o(a),resultName:b,nextLoc:c},"next"===this.method&&(this.arg=q),C}}}("object"==typeof a?a:"object"==typeof window?window:"object"==typeof self?self:this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],299:[function(a,b,c){function d(a){return a&&"function"==typeof a.then}function e(a,b){a.then(null,b)}function f(a){function b(a,b){j.v=a,j.s=b,j.c[b].forEach(function(b){b(a)}),j.c[b].length&&(j.c=null)}function c(a){j.c&&(d(a)?e(a.then(c),f):b(a,h))}function f(a){j.c&&(d(a)?e(a.then(f),f):b(a,i))}var j=this;j.v=0,j.s=g,j.c=[[],[]];try{a(c,f)}catch(a){f(a)}}var g=2,h=0,i=1,j=f.prototype;j.then=function(a,b){var c=this;return new f(function(d,e){function f(){try{d(a?a(c.v):c.v)}catch(a){g(a)}}var g="function"==typeof b?b:e;c.s===h?f():c.s===i?g(c.v):(c.c[h].push(f),c.c[i].push(g))})},j.catch=function(a){var b=this;return new f(function(c,d){function e(){try{c(a(b.v))}catch(a){d(a)}}b.s===i?e():b.s===h?c(b.v):(b.c[i].push(e),b.c[h].push(c))})},f.all=function(a){return new f(function(b,c,f){f=a.length;var g=[];if(!f)return void b(g);a.forEach(function(h,i){d(h)?e(h.then(function(a){g[i]=a,--f||b(g)}),c):(g[i]=h,--f||b(a))})})},f.race=function(a){var b=!1;return new f(function(c,f){a.some(function(a,g){if(!d(a))return c(a),b=!0,!0;e(a.then(function(a){b||(c(a),b=!0)}),f)})})},f.resolve=function(a){return new f(function(b,c){b(a)})},f.reject=function(a){return new f(function(b,c){c(a)})},b.exports=f},{}],300:[function(a,b,c){b.exports=[{sparseArrays:{testPlainObjects:!0,test:function(a){return Array.isArray(a)},replace:function(a,b){return b.iterateUnsetNumeric=!0,a}}},{sparseUndefined:{test:function(a,b){return void 0===a&&b.ownKeys===!1},replace:function(a){return null},revive:function(a){}}}]},{}],301:[function(a,b,c){b.exports=a("./structured-cloning").concat({checkDataCloneException:[function(a){var b={}.toString.call(a).slice(8,-1);if(["symbol","function"].includes(typeof a)||["Arguments","Module","Error","Promise","WeakMap","WeakSet"].includes(b)||a===Object.prototype||("Blob"===b||"File"===b)&&a.isClosed||a&&"object"==typeof a&&"number"==typeof a.nodeType&&"function"==typeof a.insertBefore)throw new DOMException("The object cannot be cloned.","DataCloneError");return!1}]})},{"./structured-cloning":302}],302:[function(a,b,c){b.exports=[a("../types/user-object"),a("../presets/undefined"),a("../types/primitive-objects"),a("../types/special-numbers"),a("../types/date"),a("../types/regexp"),"function"==typeof Map&&a("../types/map"),"function"==typeof Set&&a("../types/set"),"function"==typeof ArrayBuffer&&a("../types/arraybuffer"),"function"==typeof Uint8Array&&a("../types/typed-arrays"),"function"==typeof DataView&&a("../types/dataview"),"undefined"!=typeof Intl&&a("../types/intl-types"),a("../types/imagedata"),a("../types/imagebitmap"),a("../types/file"),a("../types/filelist"),a("../types/blob")]},{"../presets/undefined":303,"../types/arraybuffer":304,"../types/blob":305,"../types/dataview":306,"../types/date":307,"../types/file":308,"../types/filelist":309,"../types/imagebitmap":310,"../types/imagedata":311,"../types/intl-types":312,"../types/map":313,"../types/primitive-objects":314,"../types/regexp":315,"../types/set":316,"../types/special-numbers":317,"../types/typed-arrays":318,"../types/user-object":320}],303:[function(a,b,c){b.exports=[a("../presets/sparse-undefined"),a("../types/undefined")]},{"../presets/sparse-undefined":300,"../types/undefined":319}],304:[function(a,b,c){var d=a("typeson"),e=a("base64-arraybuffer");c.ArrayBuffer=[function(a){return"ArrayBuffer"===d.toStringTag(a)},function(a){return e.encode(a)},function(a){return e.decode(a)}]},{"base64-arraybuffer":2,typeson:322}],305:[function(a,b,c){var d=a("typeson");c.Blob={test:function(a){return"Blob"===d.toStringTag(a)},replace:function(a){var b=new XMLHttpRequest;if(b.open("GET",URL.createObjectURL(a),!1),200!==b.status&&0!==b.status)throw new Error("Bad Blob access: "+b.status);return b.send(),{type:a.type,stringContents:b.responseText}},revive:function(a){return new Blob([a.stringContents],{type:a.type})},replaceAsync:function(a){return new d.Promise(function(b,c){if(a.isClosed)return void c(new Error("The Blob is closed"));var d=new FileReader;d.addEventListener("load",function(){b({type:a.type,stringContents:d.result})}),d.addEventListener("error",function(){c(d.error)}),d.readAsText(a)})}}},{typeson:322}],306:[function(a,b,c){var d=a("typeson"),e=a("base64-arraybuffer");c.DataView=[function(a){return"DataView"===d.toStringTag(a)},function(a){return{buffer:e.encode(a.buffer),byteOffset:a.byteOffset,byteLength:a.byteLength}},function(a){return new DataView(e.decode(a.buffer),a.byteOffset,a.byteLength)}]},{"base64-arraybuffer":2,typeson:322}],307:[function(a,b,c){var d=a("typeson");c.Date=[function(a){return"Date"===d.toStringTag(a)},function(a){return a.getTime()},function(a){return new Date(a)}]},{typeson:322}],308:[function(a,b,c){var d=a("typeson");c.File={test:function(a){return"File"===d.toStringTag(a)},replace:function(a){var b=new XMLHttpRequest;if(b.open("GET",URL.createObjectURL(a),!1),200!==b.status&&0!==b.status)throw new Error("Bad Blob access: "+b.status);return b.send(),{type:a.type,stringContents:b.responseText,name:a.name,lastModified:a.lastModified}},revive:function(a){return new File([a.stringContents],a.name,{type:a.type,lastModified:a.lastModified})},replaceAsync:function(a){return new d.Promise(function(b,c){if(a.isClosed)return void c(new Error("The File is closed"));var d=new FileReader;d.addEventListener("load",function(){b({type:a.type,stringContents:d.result,name:a.name,lastModified:a.lastModified})}),d.addEventListener("error",function(){c(d.error)}),d.readAsText(a)})}}},{typeson:322}],309:[function(a,b,c){var d=a("typeson");c.File=a("./file").File,c.FileList={test:function(a){return"FileList"===d.toStringTag(a)},replace:function(a){for(var b=[],c=0;c0?"Infinity":"-Infinity"},function(a){return{NaN:0/0,Infinity:1/0,"-Infinity":-1/0}[a]}]},{}],318:[function(a,b,c){(function(b){var d=a("typeson"),e=a("base64-arraybuffer"),f="undefined"==typeof self?b:self;["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"].forEach(function(a){var b=f[a];b&&(c[a]=[function(b){return d.toStringTag(b)===a},function(a){return e.encode(a.buffer,a.byteOffset,a.byteLength)},function(a){return new b(e.decode(a))}])})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-arraybuffer":2,typeson:322}],319:[function(a,b,c){var d=a("typeson");b.exports={undefined:[function(a,b){return void 0===a&&(b.ownKeys||!("ownKeys"in b))},function(a){return null},function(a){return new d.Undefined}]}},{typeson:322}],320:[function(a,b,c){var d=a("typeson");c.userObjects=[function(a,b){return d.isUserObject(a)},function(a){return Object.assign({},a)},function(a){return a}]},{typeson:322}],321:[function(a,b,c){b.exports=Array.from||function(a){for(var b=[],c=a.next();!c.done;c=a.next())b.push(c.value);return b}},{}],322:[function(a,b,c){function d(a,b){return j.isObject(a)&&"function"==typeof a.then&&(!b||"function"==typeof a.catch)}function e(a){return q.call(a).slice(8,-1)}function f(a,b){if(!a||"object"!=typeof a)return!1;var c=r(a);if(!c)return!1;var d=s.call(c,"constructor")&&c.constructor;return"function"!=typeof d?null===b:"function"==typeof d&&null!==b&&t.call(d)===t.call(b)}function g(a){return!(!a||"Object"!==e(a))&&(!r(a)||f(a,Object))}function h(a){if(!a||"Object"!==e(a))return!1;var b=r(a);return!b||(f(a,Object)||h(b))}function i(a){return a&&"object"==typeof a}function j(a){var b=[],c=[],e={},h=this.types={},j=this.stringify=function(b,c,d,e){e=Object.assign({},a,e,{stringification:!0});var f=r(b,null,e);return p(f)?JSON.stringify(f[0],c,d):f.then(function(a){return JSON.stringify(a,c,d)})};this.stringifySync=function(a,b,c,d){return j(a,b,c,Object.assign({},{throwOnBadSyncType:!0},d,{sync:!0}))},this.stringifyAsync=function(a,b,c,d){return j(a,b,c,Object.assign({},{throwOnBadSyncType:!0},d,{sync:!1}))};var q=this.parse=function(b,c,d){return d=Object.assign({},a,d,{parse:!0}),s(JSON.parse(b,c),d)};this.parseSync=function(a,b,c){return q(a,b,Object.assign({},{throwOnBadSyncType:!0},c,{sync:!0}))},this.parseAsync=function(a,b,c){return q(a,b,Object.assign({},{throwOnBadSyncType:!0},c,{sync:!1}))};var r=this.encapsulate=function(d,h,j){function k(a){return o(s).length?a&&g(a)&&!a.hasOwnProperty("$types")?a.$types=s:a={$:a,$types:{$:s}}:i(a)&&a.hasOwnProperty("$types")&&(a={$:a,$types:!0}),a}function l(a,b){return Promise.all(b.map(function(a){return a[1].p})).then(function(c){return Promise.all(c.map(function(c){var d=[],e=b.splice(0,1)[0],g=e[0],h=e[2],i=e[3],j=e[4],k=e[5],o=m(g,c,h,i,d),p=f(o,n);return g&&p?o.p.then(function(b){return j[k]=b,l(a,d)}):(g?j[k]=o:a=p?o.p:o,l(a,d))}))}).then(function(){return a})}function m(a,c,d,e,h){var i=typeof c;if(i in{string:1,boolean:1,number:1,undefined:1})return void 0===c||"number"===i&&(isNaN(c)||c===-1/0||1/0===c)?q(a,c,e,h):c;if(null===c)return c;if(d&&!e.iterateIn&&!e.iterateUnsetNumeric){var j=t.indexOf(c);if(!(j<0))return s[a]="#","#"+u[j];d===!0&&(t.push(c),u.push(a))}var k=g(c),l=p(c),r=(k||l)&&(!b.length||e.replaced)||e.iterateIn?c:q(a,c,e,h,k||l);if(r!==c)return r;var v;if(l||"array"===e.iterateIn)v=new Array(c.length);else{if(!k&&"object"!==e.iterateIn)return""===a&&f(c,n)?(h.push([a,c,d,e]),c):c;v={}}if(e.iterateIn)for(var w in c){var x={ownKeys:c.hasOwnProperty(w)},y=a+(a?".":"")+w,z=m(y,c[w],!!d,x,h);f(z,n)?h.push([y,z,!!d,x,v,w]):void 0!==z&&(v[w]=z)}else o(c).forEach(function(b){var e=a+(a?".":"")+b,g=m(e,c[b],!!d,{ownKeys:!0},h);f(g,n)?h.push([e,g,!!d,{ownKeys:!0},v,b]):void 0!==g&&(v[b]=g)});if(e.iterateUnsetNumeric)for(var A=0,B=c.length;A=this.length||!Number.isInteger(a)?null:this._items[a]},clone:function(){var a=h.__createInstance();return a._items=this._items.slice(),a._length=this.length,a.addIndexes(),a},addIndexes:function(){for(var a=0;a":"<";void 0!==b&&(k.push("AND",j,n+"= ?"),l.push(v.encode(b))),void 0!==a?(k.push("AND",i,n+"= ?"),l.push(v.encode(a))):g&&void 0!==h.__key&&(k.push("AND",i,n+" ?"),l.push(v.encode(h.__key))),h.__count||(k.push("ORDER BY",i,m),h.__unique||"key"===h.__keyColumnName||k.push(",",j,m),!h.__unique&&h.__indexSource&&k.push(",",r.sqlQuote(h.__valueColumnName),m),k.push("LIMIT",f)),k=k.join(" "),B.default.DEBUG&&console.log(k,l),c.executeSql(k,l,function(a,b){h.__count?d(void 0,b.rows.length,void 0):b.rows.length>1?(h.__prefetchedIndex=0,h.__prefetchedData=b.rows,B.default.DEBUG&&console.log("Preloaded "+h.__prefetchedData.length+" records for cursor"),h.__decode(b.rows.item(0),d)):1===b.rows.length?h.__decode(b.rows.item(0),d):(B.default.DEBUG&&console.log("Reached end of cursors"),d(void 0,void 0,void 0))},function(a,b){B.default.DEBUG&&console.log("Could not execute Cursor.continue",k,l),e(b)})},i.prototype.__findMultiEntry=function(a,b,c,d,e){var f=this;if(f.__prefetchedData&&f.__prefetchedData.length===f.__prefetchedIndex)return B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),void d(void 0,void 0,void 0);var g=r.sqlQuote(f.__keyColumnName),h=["SELECT * FROM",r.escapeStoreNameForSQL(f.__store.__currentName)],i=[];h.push("WHERE",g,"NOT NULL"),f.__range&&void 0!==f.__range.lower&&Array.isArray(f.__range.upper)&&0===f.__range.upper.indexOf(f.__range.lower)&&(h.push("AND",g,"LIKE ? ESCAPE '^'"),i.push("%"+r.sqlLIKEEscape(f.__range.__lowerCached.slice(0,-1))+"%"));var j=f.__sqlDirection,k="ASC"===j?">":"<",l=r.sqlQuote("key");void 0!==b&&(h.push("AND",l,k+"= ?"),i.push(v.encode(b))),void 0!==a?(h.push("AND",g,k+"= ?"),i.push(v.encode(a))):void 0!==f.__key&&(h.push("AND",g,k+" ?"),i.push(v.encode(f.__key))),f.__count||(h.push("ORDER BY",g,j),f.__unique||"key"===f.__keyColumnName||h.push(",",r.sqlQuote("key"),j),!f.__unique&&f.__indexSource&&h.push(",",r.sqlQuote(f.__valueColumnName),j)),h=h.join(" "),B.default.DEBUG&&console.log(h,i),c.executeSql(h,i,function(a,b){if(b.rows.length>0){if(f.__count){for(var c=0,e=0;eb.matchingKey.replace("[","z")?q?-1:1:a.keyb.key?"prev"===f.direction?-1:1:0}),i.length>1?(f.__prefetchedIndex=0,f.__prefetchedData={data:i,length:i.length,item:function(a){return this.data[a]}},B.default.DEBUG&&console.log("Preloaded "+f.__prefetchedData.length+" records for multiEntry cursor"),f.__decode(i[0],d)):1===i.length?(B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),f.__decode(i[0],d)):(B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),d(void 0,void 0,void 0))}else B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),d(void 0,void 0,void 0)},function(a,b){B.default.DEBUG&&console.log("Could not execute Cursor.continue",h,i),e(b)})},i.prototype.__onsuccess=function(a){var b=this;return function(c,d,e){if(b.__count)a(d,b.__req);else{void 0!==c&&(b.__gotValue=!0),b.__key=void 0===c?null:c,b.__primaryKey=void 0===e?null:e,b.__value=void 0===d?null:d;a(void 0===c?null:b,b.__req)}}},i.prototype.__decode=function(a,b){var c=this;if(c.__multiEntryIndex&&c.__unique){if(c.__matchedKeys||(c.__matchedKeys={}),c.__matchedKeys[a.matchingKey])return void b(void 0,void 0,void 0);c.__matchedKeys[a.matchingKey]=!0}var d=r.unescapeSQLiteResponse(c.__multiEntryIndex?a.matchingKey:a[c.__keyColumnName]),e=r.unescapeSQLiteResponse(a[c.__valueColumnName]),f=r.unescapeSQLiteResponse(a.key);b(v.decode(d,c.__multiEntryIndex),c.__valueDecoder.decode(e),v.decode(f),d)},i.prototype.__sourceOrEffectiveObjStoreDeleted=function(){m.default.__invalidStateIfDeleted(this.__store,"The cursor's effective object store has been deleted"),this.__indexSource&&z.default.__invalidStateIfDeleted(this.source,"The cursor's index source has been deleted")},i.prototype.__invalidateCache=function(){this.__prefetchedData=null},i.prototype.__continue=function(a,b){var c=this,d=void 0!==c.__advanceCount;if(t.default.__assertActive(c.__store.transaction),c.__sourceOrEffectiveObjStoreDeleted(),!c.__gotValue&&!b)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");if(void 0!==a){v.convertValueToKeyRethrowingAndIfInvalid(a);var e=(0,p.cmp)(a,c.key);if(0===e||c.direction.includes("next")&&e===-1||c.direction.includes("prev")&&1===e)throw(0,n.createDOMException)("DataError","Cannot "+(d?"advance":"continue")+" the cursor in an unexpected direction")}this.__continueFinish(a,void 0,d)},i.prototype.__continueFinish=function(a,b,c){var d=this,e=d.__advanceCount||B.default.cursorPreloadPackSize||100;d.__gotValue=!1,d.__req.__readyState="pending",d.__store.transaction.__pushToQueue(d.__req,function f(g,h,i,j,k){function l(a,b,e){if(c){if(d.__advanceCount>=2&&void 0!==a)return d.__advanceCount--,d.__key=a,d.__continue(void 0,!0),void k();d.__advanceCount=void 0}d.__onsuccess(i)(a,b,e)}if(d.__prefetchedData&&++d.__prefetchedIndex0||0===m&&(d.__unique||void 0===b||(0,p.cmp)(k,b)>=0))return void l(c,e,k);f(g,h,i,j)}()});d.__find(a,b,g,l,function(){d.__advanceCount=void 0,j.apply(void 0,arguments)},e)})},i.prototype.continue=function(){this.__continue(arguments[0])},i.prototype.continuePrimaryKey=function(a,b){function c(){d.__continueFinish(a,b,!1)}var d=this;if(t.default.__assertActive(d.__store.transaction),d.__sourceOrEffectiveObjStoreDeleted(),!d.__indexSource)throw(0,n.createDOMException)("InvalidAccessError","`continuePrimaryKey` may only be called on an index source.");if(!["next","prev"].includes(d.direction))throw(0,n.createDOMException)("InvalidAccessError","`continuePrimaryKey` may not be called with unique cursors.");if(!d.__gotValue)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");v.convertValueToKeyRethrowingAndIfInvalid(a),v.convertValueToKeyRethrowingAndIfInvalid(b);var e=(0,p.cmp)(a,d.key);if("next"===d.direction&&e===-1||"prev"===d.direction&&1===e)throw(0,n.createDOMException)("DataError","Cannot continue the cursor in an unexpected direction");0===e?x.encode(b,function(a){x.encode(d.primaryKey,function(b){if(a===b||"next"===d.direction&&ab)throw(0,n.createDOMException)("DataError","Cannot continue the cursor in an unexpected direction");c()})}):c()},i.prototype.advance=function(a){var b=this;if(0===(a=r.enforceRange(a,"unsigned long")))throw new TypeError("Calling advance() with count argument 0");b.__gotValue&&(b.__advanceCount=a),b.__continue()},i.prototype.update=function(a){function b(a){m.default.__storingRecordObjectStore(d,c.__store,a,!1,e)}var c=this;if(!arguments.length)throw new TypeError("A value must be passed to update()");if(t.default.__assertActive(c.__store.transaction),c.__store.transaction.__assertWritable(),c.__sourceOrEffectiveObjStoreDeleted(),!c.__gotValue)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");if(c.__keyOnly)throw(0,n.createDOMException)("InvalidStateError","This cursor method cannot be called when the key only flag has been set.");var d=c.__store.transaction.__createRequest(c),e=c.primaryKey;if(null!==c.__store.keyPath){var f=c.__store.__validateKeyAndValueAndCloneValue(a,void 0,!0),g=j(f,2),h=g[0],i=g[1];if(0!==(0,p.cmp)(c.primaryKey,h))throw(0,n.createDOMException)("DataError","The key of the supplied value to `update` is not equal to the cursor's effective key");b(i)}else{b(x.clone(a))}return d},i.prototype.delete=function(){var a=this;if(t.default.__assertActive(a.__store.transaction),a.__store.transaction.__assertWritable(),a.__sourceOrEffectiveObjStoreDeleted(),!a.__gotValue)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");if(a.__keyOnly)throw(0,n.createDOMException)("InvalidStateError","This cursor method cannot be called when the key only flag has been set.");return this.__store.transaction.__addToTransactionQueue(function(b,c,d,e){a.__find(void 0,void 0,b,function(c,f,g){var h="DELETE FROM "+r.escapeStoreNameForSQL(a.__store.__currentName)+' WHERE "key" = ?';B.default.DEBUG&&console.log(h,c,g),b.executeSql(h,[r.escapeSQLiteStatement(v.encode(g))],function(b,f){1===f.rowsAffected?(a.__store.__cursors.forEach(function(a){a.__invalidateCache()}),d(void 0)):e("No rows with key found"+c)},function(a,b){e(b)})},e)},void 0,a)},i.prototype[Symbol.toStringTag]="IDBCursorPrototype",["source","direction","key","primaryKey"].forEach(function(a){Object.defineProperty(i.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),Object.defineProperty(i,"prototype",{writable:!1});var D=function(a){function b(){return f(this,b),g(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return h(b,a),b}(i),E=D;D.__createInstance=function(){function a(){var a;(a=i.__super).call.apply(a,[this].concat(c)),this[Symbol.toStringTag]="IDBCursorWithValue",r.defineReadonlyProperties(this,"value")}for(var b=arguments.length,c=Array(b),d=0;dd?1:c===d?0:-1;if(A.default.DEBUG){var f=u.decode(c),g=u.decode(d);"object"===(void 0===a?"undefined":j(a))&&(a=JSON.stringify(a),f=JSON.stringify(f)),"object"===(void 0===b?"undefined":j(b))&&(b=JSON.stringify(b),g=JSON.stringify(g)),f!==a&&console.warn(a+" was incorrectly encoded as "+f),g!==b&&console.warn(b+" was incorrectly encoded as "+g)}return e}Object.defineProperty(c,"__esModule",{value:!0}),c.shimIndexedDB=c.cmp=c.IDBFactory=void 0;var j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},k=a("./Event"),l=a("./IDBVersionChangeEvent"),m=e(l),n=a("./DOMException"),o=a("./IDBRequest"),p=a("./DOMStringList"),q=e(p),r=a("./util"),s=d(r),t=a("./Key"),u=d(t),v=a("./IDBTransaction"),w=e(v),x=a("./IDBDatabase"),y=e(x),z=a("./CFG"),A=e(z),B=void 0,C=h;h.__createInstance=function(){function a(){this[Symbol.toStringTag]="IDBFactory",this.modules={Event:"undefined"!=typeof Event?Event:k.ShimEvent,Error:Error,ShimEvent:k.ShimEvent,ShimCustomEvent:k.ShimCustomEvent,ShimEventTarget:k.ShimEventTarget,ShimDOMException:n.ShimDOMException,ShimDOMStringList:q.default,IDBFactory:C},this.utils={createDOMException:n.createDOMException},this.__connections=[]}return a.prototype=C.prototype,new a},h.prototype.open=function(a){function b(a,b){if(!j){b=b?(0,n.webSQLErrback)(b):a,j=!0;var c=(0,k.createEvent)("error",b,{bubbles:!0,cancelable:!0});i.__readyState="done",i.__error=b,i.__result=void 0,i.dispatchEvent(c)}}function c(c){var f=A.default.win.openDatabase(p,1,a,A.default.DEFAULT_DB_SIZE);if(i.__readyState="done",void 0===e&&(e=c||1),c>e){return void b((0,n.createDOMException)("VersionError","An attempt was made to open a database using a lower version than the existing version.",e))}f.transaction(function(g){g.executeSql("CREATE TABLE IF NOT EXISTS __sys__ (name VARCHAR(255), keyPath VARCHAR(255), autoInc BOOLEAN, indexList BLOB, currNum INTEGER)",[],function(){g.executeSql('SELECT "name", "keyPath", "autoInc", "indexList" FROM __sys__',[],function(g,h){if(i.__result=y.default.__createInstance(f,a,c,e,h),d.__connections.push(i.result),c=d.length?a.executeSql("DROP TABLE IF EXISTS __sys__",[],function(){f()},c):a.executeSql("DROP TABLE "+s.escapeStoreNameForSQL(s.unescapeSQLiteResponse(d.item(e).name)),[],function(){b(e+1)},function(){b(e+1)})}(0)},function(a){f()})})},c)},c,null,function(a,b,c,d,e){return!(!a.readOnly&&!b)||(p=function(a,b){a?d(a,b):e(b)},!1)})},c)},c)},c),i},h.prototype.cmp=function(a,b){if(!(this instanceof h))throw new TypeError("Illegal invocation");if(arguments.length<2)throw new TypeError("You must provide two keys to be compared");return u.convertValueToKeyRethrowingAndIfInvalid(a),u.convertValueToKeyRethrowingAndIfInvalid(b),i(a,b)},h.prototype.webkitGetDatabaseNames=function(){function a(a,d){if(!b){d=d?(0,n.webSQLErrback)(d):a,b=!0;var e=(0,k.createEvent)("error",d,{bubbles:!0,cancelable:!0});c.__readyState="done",c.__error=d,c.__result=void 0,c.dispatchEvent(e)}}if(!(this instanceof h))throw new TypeError("Illegal invocation");if(f())throw(0,n.createDOMException)("SecurityError","Cannot get IndexedDB database names from an opaque origin.");var b=!1,c=o.IDBRequest.__createInstance();return g(function(){B.readTransaction(function(b){b.executeSql('SELECT "name" FROM dbVersions',[],function(a,b){for(var d=q.default.__createInstance(),e=0;ed.__connections.length-1)throw new TypeError("If providing an argument, __forceClose must be called with a numeric index to indicate a specific connection to lose");c(d.__connections[a])}},h.prototype[Symbol.toStringTag]="IDBFactoryPrototype",Object.defineProperty(h,"prototype",{writable:!1});var D=h.__createInstance();c.IDBFactory=h,c.cmp=i,c.shimIndexedDB=D},{"./CFG":323,"./DOMException":324,"./DOMStringList":325,"./Event":326,"./IDBDatabase":328,"./IDBRequest":333,"./IDBTransaction":334,"./IDBVersionChangeEvent":335,"./Key":336,"./util":343,fs:void 0,path:void 0}],330:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function f(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b0&&h.push("OR"),h.push(m.escapeIndexNameForSQL(b.name),"LIKE ? ESCAPE '^' "),i.push("%"+m.sqlLIKEEscape(o.encode(a,b.multiEntry))+"%")}), -h.push(")");else if(b.multiEntry)h.push("AND",m.escapeIndexNameForSQL(b.name),"LIKE ? ESCAPE '^'"),i.push("%"+m.sqlLIKEEscape(o.encode(c,b.multiEntry))+"%");else{var j=(0,p.convertValueToKeyRange)(c,a);(0,p.setSQLForKeyRange)(j,m.escapeIndexNameForSQL(b.name),h,i,!0,!1)}return[a,b,f,c,d,e,h,i]}Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.IDBIndex=c.executeFetchIndexData=c.buildFetchIndexDataSQL=void 0;var j=a("./DOMException"),k=a("./IDBCursor"),l=a("./util"),m=e(l),n=a("./Key"),o=e(n),p=a("./IDBKeyRange"),q=a("./IDBTransaction"),r=d(q),s=a("./Sca"),t=e(s),u=a("./CFG"),v=d(u),w=a("./IDBObjectStore"),x=d(w),y=["objectStore","keyPath","multiEntry","unique"],z=g;g.__createInstance=function(a,b){function c(){var c=this;c[Symbol.toStringTag]="IDBIndex",m.defineReadonlyProperties(c,y),c.__objectStore=a,c.__name=c.__originalName=b.columnName,c.__keyPath=Array.isArray(b.keyPath)?b.keyPath.slice():b.keyPath;var d=b.optionalParams;c.__multiEntry=!(!d||!d.multiEntry),c.__unique=!(!d||!d.unique),c.__deleted=!!b.__deleted,c.__objectStore.__cursors=b.cursors||[],Object.defineProperty(c,"__currentName",{get:function(){return"__pendingName"in c?c.__pendingName:c.name}}),Object.defineProperty(c,"name",{enumerable:!1,configurable:!1,get:function(){return this.__name},set:function(b){var c=this;b=m.convertToDOMString(b);var d=c.name;if(r.default.__assertVersionChange(c.objectStore.transaction),r.default.__assertActive(c.objectStore.transaction),z.__invalidStateIfDeleted(c),x.default.__invalidStateIfDeleted(c),b!==d){if(c.objectStore.__indexes[b]&&!c.objectStore.__indexes[b].__deleted&&!c.objectStore.__indexes[b].__pendingDelete)throw(0,j.createDOMException)("ConstraintError",'Index "'+b+'" already exists on '+c.objectStore.__currentName);c.__name=b;var e=c.objectStore;delete e.__indexes[d],e.__indexes[b]=c,e.indexNames.splice(e.indexNames.indexOf(d),1,b);var f=e.transaction.__storeHandles[e.name],g=f.__indexHandles[d];g.__name=b,f.__indexHandles[b]=g,c.__pendingName=d;var h=[["key","BLOB "+(e.autoIncrement?"UNIQUE, inc INTEGER PRIMARY KEY AUTOINCREMENT":"PRIMARY KEY")],["value","BLOB"]].concat(Array.from(e.indexNames).filter(function(a){return a!==b}).map(function(a){return[m.escapeIndexNameForSQL(a),"BLOB"]}));c.__renameIndex(e,d,b,h,function(b,c){z.__updateIndexList(a,b,function(a){delete f.__pendingName,c(a)})})}}})}return c.prototype=z.prototype,new c},g.__invalidStateIfDeleted=function(a,b){if(a.__deleted||a.__pendingDelete||a.__pendingCreate&&a.objectStore.transaction&&a.objectStore.transaction.__errored)throw(0,j.createDOMException)("InvalidStateError",b||"This index has been deleted")},g.__clone=function(a,b){var c=g.__createInstance(b,{columnName:a.name,keyPath:a.keyPath,optionalParams:{multiEntry:a.multiEntry,unique:a.unique}});return["__pendingCreate","__pendingDelete","__deleted","__originalName","__recreated"].forEach(function(b){c[b]=a[b]}),c},g.__createIndex=function(a,b){var c=b.name,d=a.__currentName,e=a.__indexes[c];b.__pendingCreate=!0,a.indexNames.push(c),a.__indexes[c]=b;var f=a.__indexHandles[c];(!f||b.__pendingDelete||b.__deleted||f.__pendingDelete||f.__deleted)&&(f=a.__indexHandles[c]=g.__clone(b,a)),a.transaction.__addNonRequestToTransactionQueue(function(h,i,k,l){function n(a,b){l((0,j.createDOMException)("UnknownError",'Could not create index "'+c+'"'+b.code+"::"+b.message,b))}function p(e){g.__updateIndexList(a,e,function(){e.executeSql('SELECT "key", "value" FROM '+m.escapeStoreNameForSQL(d),[],function(e,g){function h(i){if(i3&&void 0!==arguments[3]?arguments[3]:[],e=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,f=a.__currentName,g=m.escapeStoreNameForSQL(f),h=m.escapeStoreNameForSQL("tmp_"+f),i=d.map(function(a){return a[0]}),j=d.map(function(a){return a.join(" ")}),k=j.length?j.join(", ")+", ":"",l=i.length?i.join(", ")+", ":"";a.transaction.__addNonRequestToTransactionQueue(function(a,d,f,i){var j="ALTER TABLE "+g+" RENAME TO "+h;a.executeSql(j,[],function(a,d){var j="CREATE TABLE "+g+"("+k+m.escapeIndexNameForSQL(c)+" BLOB)";a.executeSql(j,[],function(a,d){var j="INSERT INTO "+g+"("+l+m.escapeIndexNameForSQL(c)+") SELECT "+l+m.escapeIndexNameForSQL(b)+" FROM "+h;a.executeSql(j,[],function(a,b){var c="DROP TABLE "+h;a.executeSql(c,[],function(a,b){if(e)return void e(a,f);f()},function(a,b){i(b)})},function(a,b){i(b)})})},function(a,b){i(b)})})},Object.defineProperty(g,Symbol.hasInstance,{value:function(a){return m.isObj(a)&&"function"==typeof a.openCursor&&"boolean"==typeof a.multiEntry}}),y.forEach(function(a){Object.defineProperty(g.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),Object.defineProperty(g.prototype,"name",{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")},set:function(a){throw new TypeError("Illegal invocation")}}),g.prototype[Symbol.toStringTag]="IDBIndexPrototype",Object.defineProperty(g,"prototype",{writable:!1}),c.buildFetchIndexDataSQL=i,c.executeFetchIndexData=h,c.IDBIndex=g,c.default=g},{"./CFG":323,"./DOMException":324,"./IDBCursor":327,"./IDBKeyRange":331,"./IDBObjectStore":332,"./IDBTransaction":334,"./Key":336,"./Sca":337,"./util":343}],331:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function e(){throw new TypeError("Illegal constructor")}function f(a,b,c,d,e,f){if(a&&(void 0!==a.lower||void 0!==a.upper)){e&&c.push("AND");var g=void 0,h=void 0,i=void 0!==a.lower,k=void 0!==a.upper;if(i&&(g=f?a.__lowerCached:j.encode(a.lower)),k&&(h=f?a.__upperCached:j.encode(a.upper)),i){if(d.push(l.escapeSQLiteStatement(g)),k&&g===h&&!a.lowerOpen&&!a.upperOpen)return void c.push(b,"=","?");c.push(b,a.lowerOpen?">":">=","?")}i&&k&&c.push("AND"),k&&(c.push(b,a.upperOpen?"<":"<=","?"),d.push(l.escapeSQLiteStatement(h)))}}function g(a,b){if(l.instanceOf(a,e))return"[object IDBKeyRange]"!==!a.toString()?e.__createInstance(a.lower,a.upper,a.lowerOpen,a.upperOpen):a;{if(null!=a)return j.convertValueToKeyRethrowingAndIfInvalid(a),e.only(a);if(b)throw(0,h.createDOMException)("DataError","No key or range was specified")}}Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.convertValueToKeyRange=c.IDBKeyRange=c.setSQLForKeyRange=void 0;var h=a("./DOMException"),i=a("./Key"),j=d(i),k=a("./util"),l=d(k),m=["lower","upper","lowerOpen","upperOpen"],n=e;e.__createInstance=function(a,b,c,d){function e(){if(this[Symbol.toStringTag]="IDBKeyRange",void 0===a&&void 0===b)throw(0,h.createDOMException)("DataError","Both arguments to the key range method cannot be undefined");var e=void 0,f=void 0;if(void 0!==a&&(e=j.roundTrip(a),j.convertValueToKeyRethrowingAndIfInvalid(a)),void 0!==b&&(f=j.roundTrip(b),j.convertValueToKeyRethrowingAndIfInvalid(b)),void 0!==a&&void 0!==b&&a!==b&&j.encode(a)>j.encode(b))throw(0,h.createDOMException)("DataError","`lower` must not be greater than `upper` argument in `bound()` call.");this.__lower=e,this.__upper=f,this.__lowerOpen=!!c,this.__upperOpen=!!d}return e.prototype=n.prototype,new e},e.prototype.includes=function(a){if(!l.isObj(this)||"boolean"!=typeof this.__lowerOpen)throw new TypeError("Illegal invocation");if(!arguments.length)throw new TypeError("IDBKeyRange.includes requires a key argument");return j.convertValueToKeyRethrowingAndIfInvalid(a),j.isKeyInRange(a,this)},e.only=function(a){if(!arguments.length)throw new TypeError("IDBKeyRange.only requires a value argument");return e.__createInstance(a,a,!1,!1)},e.lowerBound=function(a){if(!arguments.length)throw new TypeError("IDBKeyRange.lowerBound requires a value argument");return e.__createInstance(a,void 0,arguments[1],!0)},e.upperBound=function(a){if(!arguments.length)throw new TypeError("IDBKeyRange.upperBound requires a value argument");return e.__createInstance(void 0,a,!0,arguments[1])},e.bound=function(a,b){if(arguments.length<=1)throw new TypeError("IDBKeyRange.bound requires lower and upper arguments");return e.__createInstance(a,b,arguments[2],arguments[3])},e.prototype[Symbol.toStringTag]="IDBKeyRangePrototype",m.forEach(function(a){Object.defineProperty(e.prototype,"__"+a,{enumerable:!1,configurable:!1,writable:!0}),Object.defineProperty(e.prototype,a,{enumerable:!0,configurable:!0,get:function(){if(!l.isObj(this)||"boolean"!=typeof this.__lowerOpen)throw new TypeError("Illegal invocation");return this["__"+a]}})}),Object.defineProperty(e,Symbol.hasInstance,{value:function(a){return l.isObj(a)&&"upper"in a&&"boolean"==typeof a.lowerOpen}}),Object.defineProperty(e,"prototype",{writable:!1}),c.setSQLForKeyRange=f,c.IDBKeyRange=e,c.convertValueToKeyRange=g,c.default=e},{"./DOMException":324,"./Key":336,"./util":343}],332:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function e(a){return a&&a.__esModule?a:{default:a}}function f(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b0&&a.executeSql("DROP TABLE "+o.escapeStoreNameForSQL(b.__currentName),[],function(){a.executeSql('DELETE FROM __sys__ WHERE "name" = ?',[o.escapeSQLiteStatement(b.__currentName)],function(){delete b.__pendingDelete,b.__deleted=!0,c&&(delete c.__pendingDelete,c.__deleted=!0),e()},g)},g)})})},g.prototype.__validateKeyAndValueAndCloneValue=function(a,b,c){var d=this;if(null!==d.keyPath){if(void 0!==b)throw(0,i.createDOMException)("DataError","The object store uses in-line keys and the key parameter was provided",d);var e=v.clone(a);if(b=q.extractKeyValueDecodedFromValueUsingKeyPath(e,d.keyPath),b.invalid)throw(0,i.createDOMException)("DataError","KeyPath was specified, but key was invalid.");if(b.failure){if(!c){if(!d.autoIncrement)throw(0,i.createDOMException)("DataError","Could not evaluate a key from keyPath and there is no key generator");if(!q.checkKeyCouldBeInjectedIntoValue(e,d.keyPath))throw(0,i.createDOMException)("DataError","A key could not be injected into a value");return[void 0,e]}throw(0,i.createDOMException)("DataError","Could not evaluate a key from keyPath")}return[b.value,e]}if(void 0===b){if(!d.autoIncrement)throw(0,i.createDOMException)("DataError","The object store uses out-of-line keys and has no key generator and the key parameter was not provided.",d);b=void 0}else q.convertValueToKeyRethrowingAndIfInvalid(b);return[b,v.clone(a)]},g.prototype.__deriveKey=function(a,b,c,d,e){function f(){v.encode(c,function(a){a=v.decode(a),d(a)})}var g=this;g.autoIncrement?void 0===c?q.generateKeyForStore(a,g,function(a,c){if(a)return void e((0,i.createDOMException)("ConstraintError","The key generator's current number has reached the maximum safe integer limit"));null!==g.keyPath&&q.injectKeyIntoValueUsingKeyPath(b,c,g.keyPath),d(c)},e):q.possiblyUpdateKeyGenerator(a,g,c,f,e):f()},g.prototype.__insertData=function(a,b,c,d,e,g){var h=this,j={},k=Object.keys(h.__indexes).map(function(b){return new z.default(function(d,e){function g(a){void 0!==l&&(j[a.__currentName]=q.encode(l,a.multiEntry))}var k=h.__indexes[b];if(k.__pendingCreate||k.__deleted)return void d();var l=void 0;try{if(l=q.extractKeyValueDecodedFromValueUsingKeyPath(c,k.keyPath,k.multiEntry),l.invalid||l.failure)throw new Error("Go to catch")}catch(a){return void d()}if(l=l.value,k.unique){var m=k.multiEntry&&Array.isArray(l),n=(0,r.buildFetchIndexDataSQL)(!0,k,l,"key",m);r.executeFetchIndexData.apply(void 0,[null].concat(f(n),[a,null,function(a){if(void 0===a)return g(k),void d();e((0,i.createDOMException)("ConstraintError","Index already contains a record equal to "+(m?"one of the subkeys of":"")+"`indexKey`"))},e]))}else g(k),d()})});z.default.all(k).then(function(){var c=["INSERT INTO",o.escapeStoreNameForSQL(h.__currentName),"("],f=[" VALUES ("],k=[];void 0!==d&&(c.push(o.sqlQuote("key"),","),f.push("?,"),k.push(o.escapeSQLiteStatement(q.encode(d))));for(var l in j)c.push(o.escapeIndexNameForSQL(l)+","),f.push("?,"),k.push(o.escapeSQLiteStatement(j[l]));c.push(o.sqlQuote("value")+" )"),f.push("?)"),k.push(o.escapeSQLiteStatement(b));var m=c.join(" ")+f.join(" ");x.default.DEBUG&&console.log("SQL for adding",m,k),a.executeSql(m,k,function(a,b){e(d)},function(a,b){g((0,i.createDOMException)("ConstraintError",b.message,b))})}).catch(function(a){g(a)})},g.prototype.add=function(a){var b=this,c=arguments[1];if(!(b instanceof g))throw new TypeError("Illegal invocation");if(0===arguments.length)throw new TypeError("No value was specified");g.__invalidStateIfDeleted(b),t.default.__assertActive(b.transaction),b.transaction.__assertWritable();var d=b.transaction.__createRequest(b),e=b.__validateKeyAndValueAndCloneValue(a,c,!1),f=h(e,2),i=f[0],j=f[1];return g.__storingRecordObjectStore(d,b,j,!0,i),d},g.prototype.put=function(a){var b=this,c=arguments[1];if(!(b instanceof g))throw new TypeError("Illegal invocation");if(0===arguments.length)throw new TypeError("No value was specified");g.__invalidStateIfDeleted(b),t.default.__assertActive(b.transaction),b.transaction.__assertWritable();var d=b.transaction.__createRequest(b),e=b.__validateKeyAndValueAndCloneValue(a,c,!1),f=h(e,2),i=f[0],j=f[1];return g.__storingRecordObjectStore(d,b,j,!1,i),d},g.prototype.__overwrite=function(a,b,c,d){var e=this,f="DELETE FROM "+o.escapeStoreNameForSQL(e.__currentName)+' WHERE "key" = ?',g=q.encode(b);a.executeSql(f,[o.escapeSQLiteStatement(g)],function(a,d){x.default.DEBUG&&console.log("Did the row with the",b,"exist? ",d.rowsAffected),c(a)},function(a,b){d(b)})},g.__storingRecordObjectStore=function(a,b,c,d){var e=arguments[4];b.transaction.__pushToQueue(a,function(a,f,g,h){b.__deriveKey(a,c,e,function(e){v.encode(c,function(f){function i(a){b.__insertData(a,f,c,e,function(){b.__cursors.forEach(function(a){a.__invalidateCache()}),g.apply(void 0,arguments)},h)}if(!d)return void b.__overwrite(a,e,i,h);i(a)})},h)})},g.prototype.__get=function(a,b,c,d){var e=this;void 0!==d&&(d=o.enforceRange(d,"unsigned long")),g.__invalidStateIfDeleted(e),t.default.__assertActive(e.transaction);var f=(0,k.convertValueToKeyRange)(a,!c),h=b?"key":"value",i=["SELECT",o.sqlQuote(h),"FROM",o.escapeStoreNameForSQL(e.__currentName)],j=[];if(void 0!==f&&(i.push("WHERE"),(0,k.setSQLForKeyRange)(f,o.sqlQuote("key"),i,j)),c||(d=1),d){if("number"!=typeof d||isNaN(d)||!isFinite(d))throw new TypeError("The count parameter must be a finite number");i.push("LIMIT",d)}return i=i.join(" "),e.transaction.__addToTransactionQueue(function(a,d,f,g){x.default.DEBUG&&console.log("Fetching",e.__currentName,j),a.executeSql(i,j,function(a,d){x.default.DEBUG&&console.log("Fetched data",d);var e=void 0;try{if(0===d.rows.length)return c?f([]):f();if(e=[],b)for(var g=0;g=b.__requests.length)b.__requests=[],b.__active&&a();else try{if(i=b.__requests[j],!i.req)return void i.op(c,i.args,h,e);if("done"===i.req.__readyState)return;i.op(c,i.args,d,e,h)}catch(a){e(a)}}b.__tx=c;var i=null,j=-1;h()},function(a){if(a!==!0){var c=(0,g.webSQLErrback)(a);b.__abortTransaction(c)}},function(){if(b.__transFinishedCb===e.prototype.__transFinishedCb)return b.__transactionEndCallback||b.__requestsFinished?void(b.__transactionEndCallback&&!b.__completed&&b.__transFinishedCb(b.__errored,b.__transactionEndCallback)):void(b.__transactionFinished=!0)},function(a,c,d,e,f){return!(!a.readOnly&&!c)||(b.__transFinishedCb=function(a,b){a?e(a,b):f(b)},b.__transactionEndCallback&&!b.__completed&&b.__transFinishedCb(b.__errored,b.__transactionEndCallback),!1)})},e.prototype.__createRequest=function(a){var b=this,c=h.IDBRequest.__createInstance();return c.__source=void 0!==a?a:b.db,c.__transaction=b,c},e.prototype.__addToTransactionQueue=function(a,b,c){var d=this.__createRequest(c);return this.__pushToQueue(d,a,b),d},e.prototype.__addNonRequestToTransactionQueue=function(a,b,c){this.__pushToQueue(null,a,b)},e.prototype.__pushToQueue=function(a,b,c){this.__assertActive(),this.__requests.push({op:b,args:c,req:a})},e.prototype.__assertActive=function(){if(!this.__active)throw(0,g.createDOMException)("TransactionInactiveError","A request was placed against a transaction which is currently not active, or which is finished")},e.prototype.__assertWritable=function(){if("readonly"===this.mode)throw(0,g.createDOMException)("ReadOnlyError","The transaction is read only")},e.prototype.__assertVersionChange=function(){e.__assertVersionChange(this)},e.prototype.objectStore=function(a){var b=this;if(!(b instanceof e))throw new TypeError("Illegal invocation");if(0===arguments.length)throw new TypeError("No object store name was specified");if(e.__assertNotFinished(b),b.__objectStoreNames.indexOf(a)===-1)throw(0,g.createDOMException)("NotFoundError",a+" is not participating in this transaction");var c=b.db.__objectStores[a];if(!c)throw(0,g.createDOMException)("NotFoundError",a+" does not exist in "+b.db.name);return(!b.__storeHandles[a]||b.__storeHandles[a].__pendingDelete||b.__storeHandles[a].__deleted)&&(b.__storeHandles[a]=l.default.__clone(c,b)),b.__storeHandles[a]},e.prototype.__abortTransaction=function(a){function b(b,d){b?d&&"number"==typeof d.code?n.default.DEBUG&&console.log("Rollback erred; feature is probably not supported as per WebSQL",c):n.default.DEBUG&&console.log("Rollback succeeded",c):n.default.DEBUG&&console.log("Rollback not possible due to missing transaction",c),c.__requests.filter(function(a){return a.req&&"done"!==a.req.__readyState}).reduce(function(a,b){return a.then(function(){b.req.__readyState="done",b.req.__result=void 0,b.req.__error=(0,g.createDOMException)("AbortError","A request was aborted.");var a=(0,f.createEvent)("error",b.req.__error,{bubbles:!0,cancelable:!0});return new q.default(function(c){setTimeout(function(){b.req.dispatchEvent(a),c()})})})},q.default.resolve()).then(function(){var b=(0,f.createEvent)("abort",a,{bubbles:!0,cancelable:!1});setTimeout(function(){c.__abortFinished=!0,c.dispatchEvent(b),c.__storeHandles={},c.dispatchEvent((0,f.createEvent)("__abort"))})})}var c=this;(0,g.logError)("Error","An error occurred in a transaction",a),c.__errored||(c.__errored=!0,"versionchange"===c.mode&&(c.db.__version=c.db.__oldVersion,c.db.__objectStoreNames=c.db.__oldObjectStoreNames,c.__objectStoreNames=c.db.__oldObjectStoreNames,Object.values(c.db.__objectStores).concat(Object.values(c.__storeHandles)).forEach(function(a){"__pendingName"in a&&c.db.__oldObjectStoreNames.indexOf(a.__pendingName)>-1&&(a.__name=a.__originalName),a.__indexNames=a.__oldIndexNames,delete a.__pendingDelete,Object.values(a.__indexes).concat(Object.values(a.__indexHandles)).forEach(function(b){"__pendingName"in b&&a.__oldIndexNames.indexOf(b.__pendingName)>-1&&(b.__name=b.__originalName),delete b.__pendingDelete})})),c.__active=!1,null!==a&&(c.__error=a),c.__requestsFinished&&setTimeout(function(){throw a},0),c.__transFinishedCb(!0,function(a){if(a&&c.__tx){if("readwrite"===c.mode)return c.__transactionFinished?void b():void(c.__transactionEndCallback=b);try{c.__tx.executeSql("ROLLBACK",[],b,b)}catch(a){b()}}else b(null,{code:0})}))},e.prototype.abort=function(){var a=this;if(!(a instanceof e))throw new TypeError("Illegal invocation");n.default.DEBUG&&console.log("The transaction was aborted",a),e.__assertNotFinished(a),a.__abortTransaction(null)},e.prototype[Symbol.toStringTag]="IDBTransactionPrototype",e.__assertVersionChange=function(a){if(!a||"versionchange"!==a.mode)throw(0,g.createDOMException)("InvalidStateError","Not a version transaction")},e.__assertNotVersionChange=function(a){if(a&&"versionchange"===a.mode)throw(0,g.createDOMException)("InvalidStateError","Cannot be called during a version transaction")},e.__assertNotFinished=function(a){if(!a||a.__completed||a.__abortFinished)throw(0,g.createDOMException)("InvalidStateError","Transaction finished by commit or abort")},e.__assertActive=function(a){if(!a||!a.__active)throw(0,g.createDOMException)("TransactionInactiveError","A request was placed against a transaction which is currently not active, or which is finished")},e.prototype.__getParent=function(){return this.db},e.prototype.__userErrorEventHandler=function(a,b){if(this.__internal)throw this.__internal=!1,a;b()},s.forEach(function(a){Object.defineProperty(e.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")},set:function(a){throw new TypeError("Illegal invocation")}})}),t.forEach(function(a){Object.defineProperty(e.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),Object.defineProperty(e.prototype,"constructor",{enumerable:!1,writable:!0,configurable:!0,value:e}),Object.defineProperty(e,"prototype",{writable:!1}),c.default=e,b.exports=c.default},{"./CFG":323,"./DOMException":324,"./Event":326,"./IDBObjectStore":332,"./IDBRequest":333,"./util":343,eventtarget:297,"sync-promise":299}],335:[function(a,b,c){"use strict";function d(a){e.ShimEvent.call(this,a),this[Symbol.toStringTag]="IDBVersionChangeEvent",this.toString=function(){return"[object IDBVersionChangeEvent]"},this.__eventInitDict=arguments[1]||{}}Object.defineProperty(c,"__esModule",{value:!0});var e=a("./Event"),f=a("./util"),g=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(f),h=["oldVersion","newVersion"];d.prototype=Object.create(e.ShimEvent.prototype),d.prototype[Symbol.toStringTag]="IDBVersionChangeEventPrototype",h.forEach(function(a){Object.defineProperty(d.prototype,a,{enumerable:!0,configurable:!0,get:function(){if(!(this instanceof d))throw new TypeError("Illegal invocation");return this.__eventInitDict&&this.__eventInitDict[a]||("oldVersion"===a?0:null)}})}),Object.defineProperty(d,Symbol.hasInstance,{value:function(a){return g.isObj(a)&&"oldVersion"in a&&"boolean"==typeof a.defaultPrevented}}),Object.defineProperty(d.prototype,"constructor",{enumerable:!1,writable:!0,configurable:!0,value:d}),Object.defineProperty(d,"prototype",{writable:!1}),c.default=d,b.exports=c.default},{"./Event":326,"./util":343}],336:[function(a,b,c){"use strict";function d(a,b,c){return new Array(b-String(a).length+1).join(c)+a}function e(a){return a=a.toString(32),1===a.length?"0"+a:a}function f(a){return(a+j(11)).slice(0,11)}function g(a){for(var b="",c=0;cg&&(d=!0),!b.lowerOpen&&f>=g&&(d=!0)),void 0!==b.upper&&(b.upperOpen&&f1:b===a}function A(a,b){var c=[];if(Array.isArray(a))for(var d=0;d0&&c.push(e);continue}e=e[0]}(null==b||y(e,b,!0))&&c.push(e)}else(null==b||y(a,b,!0))&&c.push(a);return c}function B(a){var b=a.type,c=a.value;switch(b){case"number":case"string":return c;case"array":for(var d=[],e=c.length,f=0;fT)return c("failure");G(a,b,e,function(){c(null,e)},d)},d)}function I(a,b,c,d,e){"number"!=typeof c||c<1?d():F(a,b,function(f){var g=Math.floor(Math.min(c,T));g>=f?G(a,b,g,d,e):d()},e)}Object.defineProperty(c,"__esModule",{value:!0}),c.possiblyUpdateKeyGenerator=c.generateKeyForStore=c.findMultiEntryMatches=c.isKeyInRange=c.isMultiEntryMatch=c.checkKeyCouldBeInjectedIntoValue=c.injectKeyIntoValueUsingKeyPath=c.extractKeyValueDecodedFromValueUsingKeyPath=c.evaluateKeyPathOnValue=c.extractKeyFromValueUsingKeyPath=c.convertValueToKeyRethrowingAndIfInvalid=c.convertValueToMultiEntryKey=c.convertValueToKey=c.convertValueToMultiEntryKeyDecoded=c.convertValueToKeyValueDecoded=c.convertKeyToValue=c.roundTrip=c.decode=c.encode=void 0;var J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},K=a("./DOMException"),L=a("./util"),M=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(L),N=a("./IDBFactory"),O=a("./CFG"),P=function(a){return a&&a.__esModule?a:{default:a}}(O),Q=["invalid","number","date","string","binary","array"],R=["negativeInfinity","bigNegative","smallNegative","smallPositive","bigPositive","positiveInfinity"],S={invalid:{encode:function(a){return Q.indexOf("invalid")+"-"},decode:function(a){}},number:{encode:function(a){var b=Math.abs(a).toString(32),c=b.indexOf(".");b=c!==-1?b.replace(".",""):b;var d=b.search(/[^0]/);b=b.slice(d);var h=void 0,i=void 0,k=void 0;return isFinite(a)?a<0?a>-1?(h=R.indexOf("smallNegative"),i=e(d),k=g(f(b))):(h=R.indexOf("bigNegative"),i=g(e(c!==-1?c:b.length)),k=g(f(b))):a<1?(h=R.indexOf("smallPositive"),i=g(e(d)),k=f(b)):(h=R.indexOf("bigPositive"),i=e(c!==-1?c:b.length),k=f(b)):(i=j(2),k=j(11),h=R.indexOf(a>0?"positiveInfinity":"negativeInfinity")),Q.indexOf("number")+"-"+h+i+k},decode:function(a){var b=+a.substr(2,1),c=a.substr(3,2),d=a.substr(5,11);switch(R[b]){case"negativeInfinity":return-1/0;case"positiveInfinity":return 1/0;case"bigPositive":return h(d,c);case"smallPositive":return c=k(g(c)),h(d,c);case"smallNegative":return c=k(c),d=g(d),-h(d,c);case"bigNegative":return c=g(c),d=g(d),-h(d,c);default:throw new Error("Invalid number.")}}},string:{encode:function(a,b){return b&&(a=a.replace(/(.)/g,"-$1")+" "),Q.indexOf("string")+"-"+a},decode:function(a,b){return a=a.slice(2),b&&(a=a.substr(0,a.length-1).replace(/-(.)/g,"$1")),a}},array:{encode:function(a){for(var b=[],c=0;c889)throw(0,o.createDOMException)("DataError","The encoded key is "+a.length+" characters long, but IE only allows 889 characters. Consider replacing numeric keys with strings to reduce the encoded length.")}Object.defineProperty(c,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},o=a("./DOMException"),p=a("./Key"),q=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(p),r="__$$compoundKey",s=/\$\$/g,t="$$$$",u="$_$";c.default=d,b.exports=c.default},{"./DOMException":324,"./Key":336}],342:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{default:a}}function f(a,b){if(a&&"object"===(void 0===a?"undefined":i(a)))for(var c in a)f(c,a[c]);else{if(!(a in C.default))throw new Error(a+" is not a valid configuration property");C.default[a]=b}}function g(a,b){function c(a,b,c){if(!c||!Object.defineProperty)try{e[a]=b}catch(a){console.log(a)}if(e[a]!==b&&Object.defineProperty)try{var d=c||{};d.get=function(){return b},Object.defineProperty(e,a,d)}catch(a){}e[a]!==b&&"undefined"!=typeof console&&console.warn&&console.warn("Unable to shim "+a)}b&&f(b);var e=a||("undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==d?d:{});c("shimIndexedDB",o.shimIndexedDB,{enumerable:!1,configurable:!0}),e.shimIndexedDB&&(e.shimIndexedDB.__useShim=function(){var a=e.shimIndexedDB.modules.IDBFactory;if(void 0!==C.default.win.openDatabase){if(C.default.fullIDLSupport){var b=e.shimIndexedDB.modules.ShimEvent,d=e.shimIndexedDB.modules.ShimEventTarget;Object.setPrototypeOf(y.default,d),Object.setPrototypeOf(m.IDBRequest,d),Object.setPrototypeOf(w.default,d),Object.setPrototypeOf(k.default,b),Object.setPrototypeOf(n.ShimDOMException,Error),Object.setPrototypeOf(n.ShimDOMException.prototype,Error.prototype)}[["indexedDB",o.shimIndexedDB],["IDBFactory",a],["IDBDatabase",y.default],["IDBObjectStore",s.default],["IDBIndex",u.default],["IDBTransaction",w.default],["IDBCursor",l.IDBCursor],["IDBCursorWithValue",l.IDBCursorWithValue],["IDBKeyRange",q.default],["IDBRequest",m.IDBRequest],["IDBOpenDBRequest",m.IDBOpenDBRequest],["IDBVersionChangeEvent",k.default]].forEach(function(a){var b=h(a,2);c(b[0],b[1],{enumerable:!1,configurable:!0})}),C.default.addNonIDBGlobals&&e.indexedDB&&e.indexedDB.modules&&(c("ShimDOMStringList",e.indexedDB.modules.ShimDOMStringList,{enumerable:!1,configurable:!0}),c("ShimEvent",e.indexedDB.modules.ShimEvent),c("ShimCustomEvent",e.indexedDB.modules.ShimCustomEvent),c("ShimEventTarget",e.indexedDB.modules.ShimEventTarget),c("ShimDOMException",e.indexedDB.modules.ShimDOMException))}else"object"===i(e.indexedDB)&&(0,A.default)(l.IDBCursor,l.IDBCursorWithValue,y.default,a,u.default,q.default,s.default,m.IDBRequest,w.default)},e.shimIndexedDB.__debug=function(a){C.default.DEBUG=a},e.shimIndexedDB.__setConfig=f,e.shimIndexedDB.__getConfig=function(a){if(!(a in C.default))throw new Error(a+" is not a valid configuration property");return C.default[a]},e.shimIndexedDB.__setUnicodeIdentifiers=function(a){f({UnicodeIDStart:a.UnicodeIDStart,UnicodeIDContinue:a.UnicodeIDContinue})}),"indexedDB"in e||"undefined"==typeof window||(e.indexedDB=e.indexedDB||e.webkitIndexedDB||e.mozIndexedDB||e.oIndexedDB||e.msIndexedDB);var g=!1;return"undefined"!=typeof navigator&&(navigator.userAgent.match(/Android (?:2|3|4\.[0-3])/)&&!navigator.userAgent.match(/Chrome/)||(navigator.userAgent.indexOf("Safari")===-1||navigator.userAgent.indexOf("Chrome")>-1)&&/(iPad|iPhone|iPod).* os 9_/i.test(navigator.userAgent)&&!window.MSStream)&&(g=!0),C.default.DEFAULT_DB_SIZE||(C.default.DEFAULT_DB_SIZE=1024*("undefined"!=typeof navigator&&navigator.userAgent.indexOf("Safari")>-1&&navigator.userAgent.indexOf("Chrome")===-1?25:4)*1024),e.indexedDB&&!g||void 0===C.default.win.openDatabase?(e.IDBDatabase=e.IDBDatabase||e.webkitIDBDatabase,e.IDBTransaction=e.IDBTransaction||e.webkitIDBTransaction||{},e.IDBCursor=e.IDBCursor||e.webkitIDBCursor,e.IDBKeyRange=e.IDBKeyRange||e.webkitIDBKeyRange):e.shimIndexedDB.__useShim(),e}Object.defineProperty(c,"__esModule",{value:!0});var h=function(){function a(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!b||c.length!==b);d=!0);}catch(a){e=!0,f=a}finally{try{!d&&h.return&&h.return()}finally{if(e)throw f}}return c}return function(b,c){if(Array.isArray(b))return b;if(Symbol.iterator in Object(b))return a(b,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};a("babel-polyfill");var j=a("./IDBVersionChangeEvent"),k=e(j),l=a("./IDBCursor"),m=a("./IDBRequest"),n=a("./DOMException"),o=a("./IDBFactory"),p=a("./IDBKeyRange"),q=e(p),r=a("./IDBObjectStore"),s=e(r),t=a("./IDBIndex"),u=e(t),v=a("./IDBTransaction"),w=e(v),x=a("./IDBDatabase"),y=e(x),z=a("./polyfill"),A=e(z),B=a("./CFG"),C=e(B);(void 0!==d?d:"undefined"!=typeof window?window:self)._babelPolyfill=!1,c.default=g,b.exports=c.default}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./CFG":323,"./DOMException":324,"./IDBCursor":327,"./IDBDatabase":328,"./IDBFactory":329,"./IDBIndex":330,"./IDBKeyRange":331,"./IDBObjectStore":332,"./IDBRequest":333,"./IDBTransaction":334,"./IDBVersionChangeEvent":335,"./polyfill":341,"babel-polyfill":1}],343:[function(a,b,c){"use strict";function d(a){return"_"+a.replace(/\^/g,"^^").replace(/\0/g,"^0").replace(/([A-Z])/g,"^$1").replace(/([\uD800-\uDBFF])(?![\uDC00-\uDFFF])|(^|[^\uD800-\uDBFF])([\uDC00-\uDFFF])/g,function(a,b,c){return b?"^2"+b+"�":"^3�"+c})}function e(a){return a.replace(/\^/g,"^^").replace(/\0/g,"^0")}function f(a){return a.replace(/\^0/g,"\0").replace(/\^\^/g,"^")}function g(a){return a.replace(/"/g,'""')}function h(a){return'"'+g(a)+'"'}function i(a){if(G.default.escapeDatabaseName)return G.default.escapeDatabaseName(e(a));if(a="D"+d(a),G.default.databaseCharacterEscapeList!==!1&&(a=a.replace(G.default.databaseCharacterEscapeList?new RegExp(G.default.databaseCharacterEscapeList,"g"):/[\u0000-\u001F\u007F"*\/:<>?\\|]/g,function(a){return"^1"+a.charCodeAt().toString(16).padStart(2,"0")})),G.default.databaseNameLengthLimit!==!1&&a.length>=(G.default.databaseNameLengthLimit||254)-(G.default.addSQLiteExtension!==!1?7:0))throw new Error("Unexpectedly long database name supplied; length limit required for Node compatibility; passed length: "+a.length+"; length limit setting: "+(G.default.databaseNameLengthLimit||254)+".");return a+(G.default.addSQLiteExtension!==!1?".sqlite":"")}function j(a){return G.default.unescapeDatabaseName?G.default.unescapeDatabaseName(f(a)):a.slice(2).replace(/(\^+)1([0-9a-f]{2})/g,function(a,b,c){return b%2?String.fromCharCode(parseInt(c,16)):a}).replace(/(\^+)3\uD800([\uDC00-\uDFFF])/g,function(a,b,c){return b%2?c:a}).replace(/(\^+)2([\uD800-\uDBFF])\uDC00/g,function(a,b,c){return b%2?c:a}).replace(/(\^+)([A-Z])/g,function(a,b,c){return b%2?c:a}).replace(/(\^+)0/g,function(a,b){return b%2?"\0":a}).replace(/\^\^/g,"^")}function k(a){return h("S"+d(a))}function l(a){return h("I"+d(a))}function m(a){return"I"+d(a)}function n(a){return g(a).replace(/\^/g,"^^")}function o(a,b){return b[Symbol.hasInstance](a)}function p(a){return a&&"object"===(void 0===a?"undefined":E(a))}function q(a){return p(a)&&"function"==typeof a.getDate}function r(a){return p(a)&&"number"==typeof a.size&&"function"==typeof a.slice&&!("lastModified"in a)}function s(a){return p(a)&&"string"==typeof a.flags&&"function"==typeof a.exec}function t(a){return p(a)&&"string"==typeof a.name&&"function"==typeof a.slice&&"lastModified"in a}function u(a){return p(a)&&"number"==typeof a.byteLength&&("function"==typeof a.slice||"function"==typeof a.getFloat64)}function v(a){return p(a)&&"function"==typeof a[Symbol.iterator]}function w(a,b){b="string"==typeof b?[b]:b,b.forEach(function(b){Object.defineProperty(a,"__"+b,{enumerable:!1,configurable:!1,writable:!0}),Object.defineProperty(a,b,{enumerable:!0,configurable:!0,get:function(){return this["__"+b]}})})}function x(a){var b=G.default.UnicodeIDStart||"[$A-Z_a-z]",c=G.default.UnicodeIDContinue||"[$0-9A-Z_a-z]",d="(?:"+b+"|[$_]|\\\\"+H+")",e="(?:"+c+"|[$_]|\\\\"+H+"|\\u200C|\\u200D)";return new RegExp("^"+d+e+"*$").test(a)}function y(a){return"string"==typeof a&&(""===a||x(a)||a.split(".").every(x))}function z(a){return y(a)||Array.isArray(a)&&a.length&&Array.apply(null,a).every(function(a){return y(a)})}function A(a,b){a=Math.floor(Number(a));var c=void 0,d=void 0;switch(b){case"unsigned long long":c=9007199254740991,d=0;break;case"unsigned long":c=4294967295,d=0;break;default:throw new Error("Unrecognized type supplied to enforceRange")}if(isNaN(a)||!isFinite(a)||a>c||a=0;--d){var e=this.tryEntries[d],f=e.completion;if("root"===e.tryLoc)return b("end");if(e.tryLoc<=this.prev){var g=s.call(e,"catchLoc"),h=s.call(e,"finallyLoc");if(g&&h){if(this.prev=0;--c){var d=this.tryEntries[c];if(d.tryLoc<=this.prev&&s.call(d,"finallyLoc")&&this.prev=0;--b){var c=this.tryEntries[b];if(c.finallyLoc===a)return this.complete(c.completion,c.afterLoc),m(c),C}},catch:function(a){for(var b=this.tryEntries.length-1;b>=0;--b){var c=this.tryEntries[b];if(c.tryLoc===a){var d=c.completion;if("throw"===d.type){var e=d.arg;m(c)}return e}}throw new Error("illegal catch attempt")},delegateYield:function(a,b,c){return this.delegate={iterator:o(a),resultName:b,nextLoc:c},"next"===this.method&&(this.arg=q),C}}}("object"==typeof a?a:"object"==typeof window?window:"object"==typeof self?self:this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],299:[function(a,b,c){function d(a){return a&&"function"==typeof a.then}function e(a,b){a.then(null,b)}function f(a){function b(a,b){j.v=a,j.s=b,j.c[b].forEach(function(b){b(a)}),j.c[b].length&&(j.c=null)}function c(a){j.c&&(d(a)?e(a.then(c),f):b(a,h))}function f(a){j.c&&(d(a)?e(a.then(f),f):b(a,i))}var j=this;j.v=0,j.s=g,j.c=[[],[]];try{a(c,f)}catch(a){f(a)}}var g=2,h=0,i=1,j=f.prototype;j.then=function(a,b){var c=this;return new f(function(d,e){function f(){try{d(a?a(c.v):c.v)}catch(a){g(a)}}var g="function"==typeof b?b:e;c.s===h?f():c.s===i?g(c.v):(c.c[h].push(f),c.c[i].push(g))})},j.catch=function(a){var b=this;return new f(function(c,d){function e(){try{c(a(b.v))}catch(a){d(a)}}b.s===i?e():b.s===h?c(b.v):(b.c[i].push(e),b.c[h].push(c))})},f.all=function(a){return new f(function(b,c,f){f=a.length;var g=[];if(!f)return void b(g);a.forEach(function(h,i){d(h)?e(h.then(function(a){g[i]=a,--f||b(g)}),c):(g[i]=h,--f||b(a))})})},f.race=function(a){var b=!1;return new f(function(c,f){a.some(function(a,g){if(!d(a))return c(a),b=!0,!0;e(a.then(function(a){b||(c(a),b=!0)}),f)})})},f.resolve=function(a){return new f(function(b,c){b(a)})},f.reject=function(a){return new f(function(b,c){c(a)})},b.exports=f},{}],300:[function(a,b,c){b.exports=[{sparseArrays:{testPlainObjects:!0,test:function(a){return Array.isArray(a)},replace:function(a,b){return b.iterateUnsetNumeric=!0,a}}},{sparseUndefined:{test:function(a,b){return void 0===a&&b.ownKeys===!1},replace:function(a){return null},revive:function(a){}}}]},{}],301:[function(a,b,c){b.exports=a("./structured-cloning").concat({checkDataCloneException:[function(a){var b={}.toString.call(a).slice(8,-1);if(["symbol","function"].includes(typeof a)||["Arguments","Module","Error","Promise","WeakMap","WeakSet"].includes(b)||a===Object.prototype||("Blob"===b||"File"===b)&&a.isClosed||a&&"object"==typeof a&&"number"==typeof a.nodeType&&"function"==typeof a.insertBefore)throw new DOMException("The object cannot be cloned.","DataCloneError");return!1}]})},{"./structured-cloning":302}],302:[function(a,b,c){b.exports=[a("../types/user-object"),a("../presets/undefined"),a("../types/primitive-objects"),a("../types/special-numbers"),a("../types/date"),a("../types/regexp"),"function"==typeof Map&&a("../types/map"),"function"==typeof Set&&a("../types/set"),"function"==typeof ArrayBuffer&&a("../types/arraybuffer"),"function"==typeof Uint8Array&&a("../types/typed-arrays"),"function"==typeof DataView&&a("../types/dataview"),"undefined"!=typeof Intl&&a("../types/intl-types"),a("../types/imagedata"),a("../types/imagebitmap"),a("../types/file"),a("../types/filelist"),a("../types/blob")]},{"../presets/undefined":303,"../types/arraybuffer":304,"../types/blob":305,"../types/dataview":306,"../types/date":307,"../types/file":308,"../types/filelist":309,"../types/imagebitmap":310,"../types/imagedata":311,"../types/intl-types":312,"../types/map":313,"../types/primitive-objects":314,"../types/regexp":315,"../types/set":316,"../types/special-numbers":317,"../types/typed-arrays":318,"../types/user-object":320}],303:[function(a,b,c){b.exports=[a("../presets/sparse-undefined"),a("../types/undefined")]},{"../presets/sparse-undefined":300,"../types/undefined":319}],304:[function(a,b,c){var d=a("typeson"),e=a("base64-arraybuffer");c.ArrayBuffer=[function(a){return"ArrayBuffer"===d.toStringTag(a)},function(a){return e.encode(a)},function(a){return e.decode(a)}]},{"base64-arraybuffer":2,typeson:322}],305:[function(a,b,c){var d=a("typeson");c.Blob={test:function(a){return"Blob"===d.toStringTag(a)},replace:function(a){var b=new XMLHttpRequest;if(b.open("GET",URL.createObjectURL(a),!1),200!==b.status&&0!==b.status)throw new Error("Bad Blob access: "+b.status);return b.send(),{type:a.type,stringContents:b.responseText}},revive:function(a){return new Blob([a.stringContents],{type:a.type})},replaceAsync:function(a){return new d.Promise(function(b,c){if(a.isClosed)return void c(new Error("The Blob is closed"));var d=new FileReader;d.addEventListener("load",function(){b({type:a.type,stringContents:d.result})}),d.addEventListener("error",function(){c(d.error)}),d.readAsText(a)})}}},{typeson:322}],306:[function(a,b,c){var d=a("typeson"),e=a("base64-arraybuffer");c.DataView=[function(a){return"DataView"===d.toStringTag(a)},function(a){return{buffer:e.encode(a.buffer),byteOffset:a.byteOffset,byteLength:a.byteLength}},function(a){return new DataView(e.decode(a.buffer),a.byteOffset,a.byteLength)}]},{"base64-arraybuffer":2,typeson:322}],307:[function(a,b,c){var d=a("typeson");c.Date=[function(a){return"Date"===d.toStringTag(a)},function(a){return a.getTime()},function(a){return new Date(a)}]},{typeson:322}],308:[function(a,b,c){var d=a("typeson");c.File={test:function(a){return"File"===d.toStringTag(a)},replace:function(a){var b=new XMLHttpRequest;if(b.open("GET",URL.createObjectURL(a),!1),200!==b.status&&0!==b.status)throw new Error("Bad Blob access: "+b.status);return b.send(),{type:a.type,stringContents:b.responseText,name:a.name,lastModified:a.lastModified}},revive:function(a){return new File([a.stringContents],a.name,{type:a.type,lastModified:a.lastModified})},replaceAsync:function(a){return new d.Promise(function(b,c){if(a.isClosed)return void c(new Error("The File is closed"));var d=new FileReader;d.addEventListener("load",function(){b({type:a.type,stringContents:d.result,name:a.name,lastModified:a.lastModified})}),d.addEventListener("error",function(){c(d.error)}),d.readAsText(a)})}}},{typeson:322}],309:[function(a,b,c){var d=a("typeson");c.File=a("./file").File,c.FileList={test:function(a){return"FileList"===d.toStringTag(a)},replace:function(a){for(var b=[],c=0;c0?"Infinity":"-Infinity"},function(a){return{NaN:0/0,Infinity:1/0,"-Infinity":-1/0}[a]}]},{}],318:[function(a,b,c){(function(b){var d=a("typeson"),e=a("base64-arraybuffer"),f="undefined"==typeof self?b:self;["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"].forEach(function(a){var b=f[a];b&&(c[a]=[function(b){return d.toStringTag(b)===a},function(a){return e.encode(a.buffer,a.byteOffset,a.byteLength)},function(a){return new b(e.decode(a))}])})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-arraybuffer":2,typeson:322}],319:[function(a,b,c){var d=a("typeson");b.exports={undefined:[function(a,b){return void 0===a&&(b.ownKeys||!("ownKeys"in b))},function(a){return null},function(a){return new d.Undefined}]}},{typeson:322}],320:[function(a,b,c){var d=a("typeson");c.userObjects=[function(a,b){return d.isUserObject(a)},function(a){return Object.assign({},a)},function(a){return a}]},{typeson:322}],321:[function(a,b,c){b.exports=Array.from||function(a){for(var b=[],c=a.next();!c.done;c=a.next())b.push(c.value);return b}},{}],322:[function(a,b,c){function d(a,b){return j.isObject(a)&&"function"==typeof a.then&&(!b||"function"==typeof a.catch)}function e(a){return q.call(a).slice(8,-1)}function f(a,b){if(!a||"object"!=typeof a)return!1;var c=r(a);if(!c)return!1;var d=s.call(c,"constructor")&&c.constructor;return"function"!=typeof d?null===b:"function"==typeof d&&null!==b&&t.call(d)===t.call(b)}function g(a){return!(!a||"Object"!==e(a))&&(!r(a)||f(a,Object))}function h(a){if(!a||"Object"!==e(a))return!1;var b=r(a);return!b||(f(a,Object)||h(b))}function i(a){return a&&"object"==typeof a}function j(a){var b=[],c=[],e={},h=this.types={},j=this.stringify=function(b,c,d,e){e=Object.assign({},a,e,{stringification:!0});var f=r(b,null,e);return p(f)?JSON.stringify(f[0],c,d):f.then(function(a){return JSON.stringify(a,c,d)})};this.stringifySync=function(a,b,c,d){return j(a,b,c,Object.assign({},{throwOnBadSyncType:!0},d,{sync:!0}))},this.stringifyAsync=function(a,b,c,d){return j(a,b,c,Object.assign({},{throwOnBadSyncType:!0},d,{sync:!1}))};var q=this.parse=function(b,c,d){return d=Object.assign({},a,d,{parse:!0}),s(JSON.parse(b,c),d)};this.parseSync=function(a,b,c){return q(a,b,Object.assign({},{throwOnBadSyncType:!0},c,{sync:!0}))},this.parseAsync=function(a,b,c){return q(a,b,Object.assign({},{throwOnBadSyncType:!0},c,{sync:!1}))};var r=this.encapsulate=function(d,h,j){function k(a){return o(s).length?a&&g(a)&&!a.hasOwnProperty("$types")?a.$types=s:a={$:a,$types:{$:s}}:i(a)&&a.hasOwnProperty("$types")&&(a={$:a,$types:!0}),a}function l(a,b){return Promise.all(b.map(function(a){return a[1].p})).then(function(c){return Promise.all(c.map(function(c){var d=[],e=b.splice(0,1)[0],g=e[0],h=e[2],i=e[3],j=e[4],k=e[5],o=m(g,c,h,i,d),p=f(o,n);return g&&p?o.p.then(function(b){return j[k]=b,l(a,d)}):(g?j[k]=o:a=p?o.p:o,l(a,d))}))}).then(function(){return a})}function m(a,c,d,e,h){var i=typeof c;if(i in{string:1,boolean:1,number:1,undefined:1})return void 0===c||"number"===i&&(isNaN(c)||c===-1/0||1/0===c)?q(a,c,e,h):c;if(null===c)return c;if(d&&!e.iterateIn&&!e.iterateUnsetNumeric){var j=t.indexOf(c);if(!(j<0))return s[a]="#","#"+u[j];d===!0&&(t.push(c),u.push(a))}var k=g(c),l=p(c),r=(k||l)&&(!b.length||e.replaced)||e.iterateIn?c:q(a,c,e,h,k||l);if(r!==c)return r;var v;if(l||"array"===e.iterateIn)v=new Array(c.length);else{if(!k&&"object"!==e.iterateIn)return""===a&&f(c,n)?(h.push([a,c,d,e]),c):c;v={}}if(e.iterateIn)for(var w in c){var x={ownKeys:c.hasOwnProperty(w)},y=a+(a?".":"")+w,z=m(y,c[w],!!d,x,h);f(z,n)?h.push([y,z,!!d,x,v,w]):void 0!==z&&(v[w]=z)}else o(c).forEach(function(b){var e=a+(a?".":"")+b,g=m(e,c[b],!!d,{ownKeys:!0},h);f(g,n)?h.push([e,g,!!d,{ownKeys:!0},v,b]):void 0!==g&&(v[b]=g)});if(e.iterateUnsetNumeric)for(var A=0,B=c.length;A=this.length||!Number.isInteger(a)?null:this._items[a]},clone:function(){var a=h.__createInstance();return a._items=this._items.slice(),a._length=this.length,a.addIndexes(),a},addIndexes:function(){for(var a=0;a":"<";void 0!==b&&(k.push("AND",j,n+"= ?"),l.push(v.encode(b))),void 0!==a?(k.push("AND",i,n+"= ?"),l.push(v.encode(a))):g&&void 0!==h.__key&&(k.push("AND",i,n+" ?"),l.push(v.encode(h.__key))),h.__count||(k.push("ORDER BY",i,m),h.__unique||"key"===h.__keyColumnName||k.push(",",j,m),!h.__unique&&h.__indexSource&&k.push(",",r.sqlQuote(h.__valueColumnName),m),k.push("LIMIT",f)),k=k.join(" "),B.default.DEBUG&&console.log(k,l),c.executeSql(k,l,function(a,b){h.__count?d(void 0,b.rows.length,void 0):b.rows.length>1?(h.__prefetchedIndex=0,h.__prefetchedData=b.rows,B.default.DEBUG&&console.log("Preloaded "+h.__prefetchedData.length+" records for cursor"),h.__decode(b.rows.item(0),d)):1===b.rows.length?h.__decode(b.rows.item(0),d):(B.default.DEBUG&&console.log("Reached end of cursors"),d(void 0,void 0,void 0))},function(a,b){B.default.DEBUG&&console.log("Could not execute Cursor.continue",k,l),e(b)})},i.prototype.__findMultiEntry=function(a,b,c,d,e){var f=this;if(f.__prefetchedData&&f.__prefetchedData.length===f.__prefetchedIndex)return B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),void d(void 0,void 0,void 0);var g=r.sqlQuote(f.__keyColumnName),h=["SELECT * FROM",r.escapeStoreNameForSQL(f.__store.__currentName)],i=[];h.push("WHERE",g,"NOT NULL"),f.__range&&void 0!==f.__range.lower&&Array.isArray(f.__range.upper)&&0===f.__range.upper.indexOf(f.__range.lower)&&(h.push("AND",g,"LIKE ? ESCAPE '^'"),i.push("%"+r.sqlLIKEEscape(f.__range.__lowerCached.slice(0,-1))+"%"));var j=f.__sqlDirection,k="ASC"===j?">":"<",l=r.sqlQuote("key");void 0!==b&&(h.push("AND",l,k+"= ?"),i.push(v.encode(b))),void 0!==a?(h.push("AND",g,k+"= ?"),i.push(v.encode(a))):void 0!==f.__key&&(h.push("AND",g,k+" ?"),i.push(v.encode(f.__key))),f.__count||(h.push("ORDER BY",g,j),f.__unique||"key"===f.__keyColumnName||h.push(",",r.sqlQuote("key"),j),!f.__unique&&f.__indexSource&&h.push(",",r.sqlQuote(f.__valueColumnName),j)),h=h.join(" "),B.default.DEBUG&&console.log(h,i),c.executeSql(h,i,function(a,b){if(b.rows.length>0){if(f.__count){for(var c=0,e=0;eb.matchingKey.replace("[","z")?q?-1:1:a.keyb.key?"prev"===f.direction?-1:1:0}),i.length>1?(f.__prefetchedIndex=0,f.__prefetchedData={data:i,length:i.length,item:function(a){return this.data[a]}},B.default.DEBUG&&console.log("Preloaded "+f.__prefetchedData.length+" records for multiEntry cursor"),f.__decode(i[0],d)):1===i.length?(B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),f.__decode(i[0],d)):(B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),d(void 0,void 0,void 0))}else B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),d(void 0,void 0,void 0)},function(a,b){B.default.DEBUG&&console.log("Could not execute Cursor.continue",h,i),e(b)})},i.prototype.__onsuccess=function(a){var b=this;return function(c,d,e){if(b.__count)a(d,b.__req);else{void 0!==c&&(b.__gotValue=!0),b.__key=void 0===c?null:c,b.__primaryKey=void 0===e?null:e,b.__value=void 0===d?null:d;a(void 0===c?null:b,b.__req)}}},i.prototype.__decode=function(a,b){var c=this;if(c.__multiEntryIndex&&c.__unique){if(c.__matchedKeys||(c.__matchedKeys={}),c.__matchedKeys[a.matchingKey])return void b(void 0,void 0,void 0);c.__matchedKeys[a.matchingKey]=!0}var d=r.unescapeSQLiteResponse(c.__multiEntryIndex?a.matchingKey:a[c.__keyColumnName]),e=r.unescapeSQLiteResponse(a[c.__valueColumnName]),f=r.unescapeSQLiteResponse(a.key);b(v.decode(d,c.__multiEntryIndex),c.__valueDecoder.decode(e),v.decode(f),d)},i.prototype.__sourceOrEffectiveObjStoreDeleted=function(){m.default.__invalidStateIfDeleted(this.__store,"The cursor's effective object store has been deleted"),this.__indexSource&&z.default.__invalidStateIfDeleted(this.source,"The cursor's index source has been deleted")},i.prototype.__invalidateCache=function(){this.__prefetchedData=null},i.prototype.__continue=function(a,b){var c=this,d=void 0!==c.__advanceCount;if(t.default.__assertActive(c.__store.transaction),c.__sourceOrEffectiveObjStoreDeleted(),!c.__gotValue&&!b)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");if(void 0!==a){v.convertValueToKeyRethrowingAndIfInvalid(a);var e=(0,p.cmp)(a,c.key);if(0===e||c.direction.includes("next")&&e===-1||c.direction.includes("prev")&&1===e)throw(0,n.createDOMException)("DataError","Cannot "+(d?"advance":"continue")+" the cursor in an unexpected direction")}this.__continueFinish(a,void 0,d)},i.prototype.__continueFinish=function(a,b,c){var d=this,e=d.__advanceCount||B.default.cursorPreloadPackSize||100;d.__gotValue=!1,d.__req.__readyState="pending",d.__store.transaction.__pushToQueue(d.__req,function f(g,h,i,j,k){function l(a,b,e){if(c){if(d.__advanceCount>=2&&void 0!==a)return d.__advanceCount--,d.__key=a,d.__continue(void 0,!0),void k();d.__advanceCount=void 0}d.__onsuccess(i)(a,b,e)}if(d.__prefetchedData&&++d.__prefetchedIndex0||0===m&&(d.__unique||void 0===b||(0,p.cmp)(k,b)>=0))return void l(c,e,k);f(g,h,i,j)}()});d.__find(a,b,g,l,function(){d.__advanceCount=void 0,j.apply(void 0,arguments)},e)})},i.prototype.continue=function(){this.__continue(arguments[0])},i.prototype.continuePrimaryKey=function(a,b){function c(){d.__continueFinish(a,b,!1)}var d=this;if(t.default.__assertActive(d.__store.transaction),d.__sourceOrEffectiveObjStoreDeleted(),!d.__indexSource)throw(0,n.createDOMException)("InvalidAccessError","`continuePrimaryKey` may only be called on an index source.");if(!["next","prev"].includes(d.direction))throw(0,n.createDOMException)("InvalidAccessError","`continuePrimaryKey` may not be called with unique cursors.");if(!d.__gotValue)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");v.convertValueToKeyRethrowingAndIfInvalid(a),v.convertValueToKeyRethrowingAndIfInvalid(b);var e=(0,p.cmp)(a,d.key);if("next"===d.direction&&e===-1||"prev"===d.direction&&1===e)throw(0,n.createDOMException)("DataError","Cannot continue the cursor in an unexpected direction");0===e?x.encode(b,function(a){x.encode(d.primaryKey,function(b){if(a===b||"next"===d.direction&&ab)throw(0,n.createDOMException)("DataError","Cannot continue the cursor in an unexpected direction");c()})}):c()},i.prototype.advance=function(a){var b=this;if(0===(a=r.enforceRange(a,"unsigned long")))throw new TypeError("Calling advance() with count argument 0");b.__gotValue&&(b.__advanceCount=a),b.__continue()},i.prototype.update=function(a){function b(a){m.default.__storingRecordObjectStore(d,c.__store,a,!1,e)}var c=this;if(!arguments.length)throw new TypeError("A value must be passed to update()");if(t.default.__assertActive(c.__store.transaction),c.__store.transaction.__assertWritable(),c.__sourceOrEffectiveObjStoreDeleted(),!c.__gotValue)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");if(c.__keyOnly)throw(0,n.createDOMException)("InvalidStateError","This cursor method cannot be called when the key only flag has been set.");var d=c.__store.transaction.__createRequest(c),e=c.primaryKey;if(null!==c.__store.keyPath){var f=c.__store.__validateKeyAndValueAndCloneValue(a,void 0,!0),g=j(f,2),h=g[0],i=g[1];if(0!==(0,p.cmp)(c.primaryKey,h))throw(0,n.createDOMException)("DataError","The key of the supplied value to `update` is not equal to the cursor's effective key");b(i)}else{b(x.clone(a))}return d},i.prototype.delete=function(){var a=this;if(t.default.__assertActive(a.__store.transaction),a.__store.transaction.__assertWritable(),a.__sourceOrEffectiveObjStoreDeleted(),!a.__gotValue)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");if(a.__keyOnly)throw(0,n.createDOMException)("InvalidStateError","This cursor method cannot be called when the key only flag has been set.");return this.__store.transaction.__addToTransactionQueue(function(b,c,d,e){a.__find(void 0,void 0,b,function(c,f,g){var h="DELETE FROM "+r.escapeStoreNameForSQL(a.__store.__currentName)+' WHERE "key" = ?';B.default.DEBUG&&console.log(h,c,g),b.executeSql(h,[r.escapeSQLiteStatement(v.encode(g))],function(b,f){1===f.rowsAffected?(a.__store.__cursors.forEach(function(a){a.__invalidateCache()}),d(void 0)):e("No rows with key found"+c)},function(a,b){e(b)})},e)},void 0,a)},i.prototype[Symbol.toStringTag]="IDBCursorPrototype",["source","direction","key","primaryKey"].forEach(function(a){Object.defineProperty(i.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),Object.defineProperty(i,"prototype",{writable:!1});var D=function(a){function b(){return f(this,b),g(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return h(b,a),b}(i),E=D;D.__createInstance=function(){function a(){var a;(a=i.__super).call.apply(a,[this].concat(c)),this[Symbol.toStringTag]="IDBCursorWithValue",r.defineReadonlyProperties(this,"value")}for(var b=arguments.length,c=Array(b),d=0;dd?1:c===d?0:-1;if(A.default.DEBUG){var f=u.decode(c),g=u.decode(d);"object"===(void 0===a?"undefined":j(a))&&(a=JSON.stringify(a),f=JSON.stringify(f)),"object"===(void 0===b?"undefined":j(b))&&(b=JSON.stringify(b),g=JSON.stringify(g)),f!==a&&console.warn(a+" was incorrectly encoded as "+f),g!==b&&console.warn(b+" was incorrectly encoded as "+g)}return e}Object.defineProperty(c,"__esModule",{value:!0}),c.shimIndexedDB=c.cmp=c.IDBFactory=void 0;var j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},k=a("./Event"),l=a("./IDBVersionChangeEvent"),m=e(l),n=a("./DOMException"),o=a("./IDBRequest"),p=a("./DOMStringList"),q=e(p),r=a("./util"),s=d(r),t=a("./Key"),u=d(t),v=a("./IDBTransaction"),w=e(v),x=a("./IDBDatabase"),y=e(x),z=a("./CFG"),A=e(z),B=void 0,C=h;h.__createInstance=function(){function a(){this[Symbol.toStringTag]="IDBFactory",this.modules={Event:"undefined"!=typeof Event?Event:k.ShimEvent,Error:Error,ShimEvent:k.ShimEvent,ShimCustomEvent:k.ShimCustomEvent,ShimEventTarget:k.ShimEventTarget,ShimDOMException:n.ShimDOMException,ShimDOMStringList:q.default,IDBFactory:C},this.utils={createDOMException:n.createDOMException},this.__connections=[]}return a.prototype=C.prototype,new a},h.prototype.open=function(a){function b(a,b){if(!j){b=b?(0,n.webSQLErrback)(b):a,j=!0;var c=(0,k.createEvent)("error",b,{bubbles:!0,cancelable:!0});i.__readyState="done",i.__error=b,i.__result=void 0,i.dispatchEvent(c)}}function c(c){var f=A.default.win.openDatabase(p,1,a,A.default.DEFAULT_DB_SIZE);if(i.__readyState="done",void 0===e&&(e=c||1),c>e){return void b((0,n.createDOMException)("VersionError","An attempt was made to open a database using a lower version than the existing version.",e))}f.transaction(function(g){g.executeSql("CREATE TABLE IF NOT EXISTS __sys__ (name VARCHAR(255), keyPath VARCHAR(255), autoInc BOOLEAN, indexList BLOB, currNum INTEGER)",[],function(){g.executeSql('SELECT "name", "keyPath", "autoInc", "indexList" FROM __sys__',[],function(g,h){if(i.__result=y.default.__createInstance(f,a,c,e,h),d.__connections.push(i.result),c=d.length?a.executeSql("DROP TABLE IF EXISTS __sys__",[],function(){f()},c):a.executeSql("DROP TABLE "+s.escapeStoreNameForSQL(s.unescapeSQLiteResponse(d.item(e).name)),[],function(){b(e+1)},function(){b(e+1)})}(0)},function(a){f()})})},c)},c,null,function(a,b,c,d,e){return!(!a.readOnly&&!b)||(p=function(a,b){a?d(a,b):e(b)},!1)})},c)},c)},c),i},h.prototype.cmp=function(a,b){if(!(this instanceof h))throw new TypeError("Illegal invocation");if(arguments.length<2)throw new TypeError("You must provide two keys to be compared");return u.convertValueToKeyRethrowingAndIfInvalid(a),u.convertValueToKeyRethrowingAndIfInvalid(b),i(a,b)},h.prototype.webkitGetDatabaseNames=function(){function a(a,d){if(!b){d=d?(0,n.webSQLErrback)(d):a,b=!0;var e=(0,k.createEvent)("error",d,{bubbles:!0,cancelable:!0});c.__readyState="done",c.__error=d,c.__result=void 0,c.dispatchEvent(e)}}if(!(this instanceof h))throw new TypeError("Illegal invocation");if(f())throw(0,n.createDOMException)("SecurityError","Cannot get IndexedDB database names from an opaque origin.");var b=!1,c=o.IDBRequest.__createInstance();return g(function(){B.readTransaction(function(b){b.executeSql('SELECT "name" FROM dbVersions',[],function(a,b){for(var d=q.default.__createInstance(),e=0;ed.__connections.length-1)throw new TypeError("If providing an argument, __forceClose must be called with a numeric index to indicate a specific connection to lose");c(d.__connections[a])}},h.prototype[Symbol.toStringTag]="IDBFactoryPrototype",Object.defineProperty(h,"prototype",{writable:!1});var D=h.__createInstance();c.IDBFactory=h, +c.cmp=i,c.shimIndexedDB=D},{"./CFG":324,"./DOMException":325,"./DOMStringList":326,"./Event":327,"./IDBDatabase":329,"./IDBRequest":334,"./IDBTransaction":335,"./IDBVersionChangeEvent":336,"./Key":337,"./util":344,fs:void 0,path:void 0}],331:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function f(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b0&&h.push("OR"),h.push(m.escapeIndexNameForSQL(b.name),"LIKE ? ESCAPE '^' "),i.push("%"+m.sqlLIKEEscape(o.encode(a,b.multiEntry))+"%")}),h.push(")");else if(b.multiEntry)h.push("AND",m.escapeIndexNameForSQL(b.name),"LIKE ? ESCAPE '^'"),i.push("%"+m.sqlLIKEEscape(o.encode(c,b.multiEntry))+"%");else{var j=(0,p.convertValueToKeyRange)(c,a);(0,p.setSQLForKeyRange)(j,m.escapeIndexNameForSQL(b.name),h,i,!0,!1)}return[a,b,f,c,d,e,h,i]}Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.IDBIndex=c.executeFetchIndexData=c.buildFetchIndexDataSQL=void 0;var j=a("./DOMException"),k=a("./IDBCursor"),l=a("./util"),m=e(l),n=a("./Key"),o=e(n),p=a("./IDBKeyRange"),q=a("./IDBTransaction"),r=d(q),s=a("./Sca"),t=e(s),u=a("./CFG"),v=d(u),w=a("./IDBObjectStore"),x=d(w),y=["objectStore","keyPath","multiEntry","unique"],z=g;g.__createInstance=function(a,b){function c(){var c=this;c[Symbol.toStringTag]="IDBIndex",m.defineReadonlyProperties(c,y),c.__objectStore=a,c.__name=c.__originalName=b.columnName,c.__keyPath=Array.isArray(b.keyPath)?b.keyPath.slice():b.keyPath;var d=b.optionalParams;c.__multiEntry=!(!d||!d.multiEntry),c.__unique=!(!d||!d.unique),c.__deleted=!!b.__deleted,c.__objectStore.__cursors=b.cursors||[],Object.defineProperty(c,"__currentName",{get:function(){return"__pendingName"in c?c.__pendingName:c.name}}),Object.defineProperty(c,"name",{enumerable:!1,configurable:!1,get:function(){return this.__name},set:function(b){var c=this;b=m.convertToDOMString(b);var d=c.name;if(r.default.__assertVersionChange(c.objectStore.transaction),r.default.__assertActive(c.objectStore.transaction),z.__invalidStateIfDeleted(c),x.default.__invalidStateIfDeleted(c),b!==d){if(c.objectStore.__indexes[b]&&!c.objectStore.__indexes[b].__deleted&&!c.objectStore.__indexes[b].__pendingDelete)throw(0,j.createDOMException)("ConstraintError",'Index "'+b+'" already exists on '+c.objectStore.__currentName);c.__name=b;var e=c.objectStore;delete e.__indexes[d],e.__indexes[b]=c,e.indexNames.splice(e.indexNames.indexOf(d),1,b);var f=e.transaction.__storeHandles[e.name],g=f.__indexHandles[d];g.__name=b,f.__indexHandles[b]=g,c.__pendingName=d;var h=[["key","BLOB "+(e.autoIncrement?"UNIQUE, inc INTEGER PRIMARY KEY AUTOINCREMENT":"PRIMARY KEY")],["value","BLOB"]].concat(Array.from(e.indexNames).filter(function(a){return a!==b}).map(function(a){return[m.escapeIndexNameForSQL(a),"BLOB"]}));c.__renameIndex(e,d,b,h,function(b,c){z.__updateIndexList(a,b,function(a){delete f.__pendingName,c(a)})})}}})}return c.prototype=z.prototype,new c},g.__invalidStateIfDeleted=function(a,b){if(a.__deleted||a.__pendingDelete||a.__pendingCreate&&a.objectStore.transaction&&a.objectStore.transaction.__errored)throw(0,j.createDOMException)("InvalidStateError",b||"This index has been deleted")},g.__clone=function(a,b){var c=g.__createInstance(b,{columnName:a.name,keyPath:a.keyPath,optionalParams:{multiEntry:a.multiEntry,unique:a.unique}});return["__pendingCreate","__pendingDelete","__deleted","__originalName","__recreated"].forEach(function(b){c[b]=a[b]}),c},g.__createIndex=function(a,b){var c=b.name,d=a.__currentName,e=a.__indexes[c];b.__pendingCreate=!0,a.indexNames.push(c),a.__indexes[c]=b;var f=a.__indexHandles[c];(!f||b.__pendingDelete||b.__deleted||f.__pendingDelete||f.__deleted)&&(f=a.__indexHandles[c]=g.__clone(b,a)),a.transaction.__addNonRequestToTransactionQueue(function(h,i,k,l){function n(a,b){l((0,j.createDOMException)("UnknownError",'Could not create index "'+c+'"'+b.code+"::"+b.message,b))}function p(e){g.__updateIndexList(a,e,function(){e.executeSql('SELECT "key", "value" FROM '+m.escapeStoreNameForSQL(d),[],function(e,g){function h(i){if(i3&&void 0!==arguments[3]?arguments[3]:[],e=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,f=a.__currentName,g=m.escapeStoreNameForSQL(f),h=m.escapeStoreNameForSQL("tmp_"+f),i=d.map(function(a){return a[0]}),j=d.map(function(a){return a.join(" ")}),k=j.length?j.join(", ")+", ":"",l=i.length?i.join(", ")+", ":"";a.transaction.__addNonRequestToTransactionQueue(function(a,d,f,i){var j="ALTER TABLE "+g+" RENAME TO "+h;a.executeSql(j,[],function(a,d){var j="CREATE TABLE "+g+"("+k+m.escapeIndexNameForSQL(c)+" BLOB)";a.executeSql(j,[],function(a,d){var j="INSERT INTO "+g+"("+l+m.escapeIndexNameForSQL(c)+") SELECT "+l+m.escapeIndexNameForSQL(b)+" FROM "+h;a.executeSql(j,[],function(a,b){var c="DROP TABLE "+h;a.executeSql(c,[],function(a,b){if(e)return void e(a,f);f()},function(a,b){i(b)})},function(a,b){i(b)})})},function(a,b){i(b)})})},Object.defineProperty(g,Symbol.hasInstance,{value:function(a){return m.isObj(a)&&"function"==typeof a.openCursor&&"boolean"==typeof a.multiEntry}}),y.forEach(function(a){Object.defineProperty(g.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),Object.defineProperty(g.prototype,"name",{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")},set:function(a){throw new TypeError("Illegal invocation")}}),g.prototype[Symbol.toStringTag]="IDBIndexPrototype",Object.defineProperty(g,"prototype",{writable:!1}),c.buildFetchIndexDataSQL=i,c.executeFetchIndexData=h,c.IDBIndex=g,c.default=g},{"./CFG":324,"./DOMException":325,"./IDBCursor":328,"./IDBKeyRange":332,"./IDBObjectStore":333,"./IDBTransaction":335,"./Key":337,"./Sca":338,"./util":344}],332:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function e(){throw new TypeError("Illegal constructor")}function f(a,b,c,d,e,f){if(a&&(void 0!==a.lower||void 0!==a.upper)){e&&c.push("AND");var g=void 0,h=void 0,i=void 0!==a.lower,k=void 0!==a.upper;if(i&&(g=f?a.__lowerCached:j.encode(a.lower)),k&&(h=f?a.__upperCached:j.encode(a.upper)),i){if(d.push(l.escapeSQLiteStatement(g)),k&&g===h&&!a.lowerOpen&&!a.upperOpen)return void c.push(b,"=","?");c.push(b,a.lowerOpen?">":">=","?")}i&&k&&c.push("AND"),k&&(c.push(b,a.upperOpen?"<":"<=","?"),d.push(l.escapeSQLiteStatement(h)))}}function g(a,b){if(l.instanceOf(a,e))return"[object IDBKeyRange]"!==!a.toString()?e.__createInstance(a.lower,a.upper,a.lowerOpen,a.upperOpen):a;{if(null!=a)return j.convertValueToKeyRethrowingAndIfInvalid(a),e.only(a);if(b)throw(0,h.createDOMException)("DataError","No key or range was specified")}}Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.convertValueToKeyRange=c.IDBKeyRange=c.setSQLForKeyRange=void 0;var h=a("./DOMException"),i=a("./Key"),j=d(i),k=a("./util"),l=d(k),m=["lower","upper","lowerOpen","upperOpen"],n=e;e.__createInstance=function(a,b,c,d){function e(){if(this[Symbol.toStringTag]="IDBKeyRange",void 0===a&&void 0===b)throw(0,h.createDOMException)("DataError","Both arguments to the key range method cannot be undefined");var e=void 0,f=void 0;if(void 0!==a&&(e=j.roundTrip(a),j.convertValueToKeyRethrowingAndIfInvalid(a)),void 0!==b&&(f=j.roundTrip(b),j.convertValueToKeyRethrowingAndIfInvalid(b)),void 0!==a&&void 0!==b&&a!==b&&j.encode(a)>j.encode(b))throw(0,h.createDOMException)("DataError","`lower` must not be greater than `upper` argument in `bound()` call.");this.__lower=e,this.__upper=f,this.__lowerOpen=!!c,this.__upperOpen=!!d}return e.prototype=n.prototype,new e},e.prototype.includes=function(a){if(!l.isObj(this)||"boolean"!=typeof this.__lowerOpen)throw new TypeError("Illegal invocation");if(!arguments.length)throw new TypeError("IDBKeyRange.includes requires a key argument");return j.convertValueToKeyRethrowingAndIfInvalid(a),j.isKeyInRange(a,this)},e.only=function(a){if(!arguments.length)throw new TypeError("IDBKeyRange.only requires a value argument");return e.__createInstance(a,a,!1,!1)},e.lowerBound=function(a){if(!arguments.length)throw new TypeError("IDBKeyRange.lowerBound requires a value argument");return e.__createInstance(a,void 0,arguments[1],!0)},e.upperBound=function(a){if(!arguments.length)throw new TypeError("IDBKeyRange.upperBound requires a value argument");return e.__createInstance(void 0,a,!0,arguments[1])},e.bound=function(a,b){if(arguments.length<=1)throw new TypeError("IDBKeyRange.bound requires lower and upper arguments");return e.__createInstance(a,b,arguments[2],arguments[3])},e.prototype[Symbol.toStringTag]="IDBKeyRangePrototype",m.forEach(function(a){Object.defineProperty(e.prototype,"__"+a,{enumerable:!1,configurable:!1,writable:!0}),Object.defineProperty(e.prototype,a,{enumerable:!0,configurable:!0,get:function(){if(!l.isObj(this)||"boolean"!=typeof this.__lowerOpen)throw new TypeError("Illegal invocation");return this["__"+a]}})}),Object.defineProperty(e,Symbol.hasInstance,{value:function(a){return l.isObj(a)&&"upper"in a&&"boolean"==typeof a.lowerOpen}}),Object.defineProperty(e,"prototype",{writable:!1}),c.setSQLForKeyRange=f,c.IDBKeyRange=e,c.convertValueToKeyRange=g,c.default=e},{"./DOMException":325,"./Key":337,"./util":344}],333:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function e(a){return a&&a.__esModule?a:{default:a}}function f(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b0&&a.executeSql("DROP TABLE "+o.escapeStoreNameForSQL(b.__currentName),[],function(){a.executeSql('DELETE FROM __sys__ WHERE "name" = ?',[o.escapeSQLiteStatement(b.__currentName)],function(){delete b.__pendingDelete,b.__deleted=!0,c&&(delete c.__pendingDelete,c.__deleted=!0),e()},g)},g)})})},g.prototype.__validateKeyAndValueAndCloneValue=function(a,b,c){var d=this;if(null!==d.keyPath){if(void 0!==b)throw(0,i.createDOMException)("DataError","The object store uses in-line keys and the key parameter was provided",d);var e=v.clone(a);if(b=q.extractKeyValueDecodedFromValueUsingKeyPath(e,d.keyPath),b.invalid)throw(0,i.createDOMException)("DataError","KeyPath was specified, but key was invalid.");if(b.failure){if(!c){if(!d.autoIncrement)throw(0,i.createDOMException)("DataError","Could not evaluate a key from keyPath and there is no key generator");if(!q.checkKeyCouldBeInjectedIntoValue(e,d.keyPath))throw(0,i.createDOMException)("DataError","A key could not be injected into a value");return[void 0,e]}throw(0,i.createDOMException)("DataError","Could not evaluate a key from keyPath")}return[b.value,e]}if(void 0===b){if(!d.autoIncrement)throw(0,i.createDOMException)("DataError","The object store uses out-of-line keys and has no key generator and the key parameter was not provided.",d);b=void 0}else q.convertValueToKeyRethrowingAndIfInvalid(b);return[b,v.clone(a)]},g.prototype.__deriveKey=function(a,b,c,d,e){function f(){v.encode(c,function(a){a=v.decode(a),d(a)})}var g=this;g.autoIncrement?void 0===c?q.generateKeyForStore(a,g,function(a,c){if(a)return void e((0,i.createDOMException)("ConstraintError","The key generator's current number has reached the maximum safe integer limit"));null!==g.keyPath&&q.injectKeyIntoValueUsingKeyPath(b,c,g.keyPath),d(c)},e):q.possiblyUpdateKeyGenerator(a,g,c,f,e):f()},g.prototype.__insertData=function(a,b,c,d,e,g){var h=this,j={},k=Object.keys(h.__indexes).map(function(b){return new z.default(function(d,e){function g(a){void 0!==l&&(j[a.__currentName]=q.encode(l,a.multiEntry))}var k=h.__indexes[b];if(k.__pendingCreate||k.__deleted)return void d();var l=void 0;try{if(l=q.extractKeyValueDecodedFromValueUsingKeyPath(c,k.keyPath,k.multiEntry),l.invalid||l.failure)throw new Error("Go to catch")}catch(a){return void d()}if(l=l.value,k.unique){var m=k.multiEntry&&Array.isArray(l),n=(0,r.buildFetchIndexDataSQL)(!0,k,l,"key",m);r.executeFetchIndexData.apply(void 0,[null].concat(f(n),[a,null,function(a){if(void 0===a)return g(k),void d();e((0,i.createDOMException)("ConstraintError","Index already contains a record equal to "+(m?"one of the subkeys of":"")+"`indexKey`"))},e]))}else g(k),d()})});z.default.all(k).then(function(){var c=["INSERT INTO",o.escapeStoreNameForSQL(h.__currentName),"("],f=[" VALUES ("],k=[];void 0!==d&&(c.push(o.sqlQuote("key"),","),f.push("?,"),k.push(o.escapeSQLiteStatement(q.encode(d))));for(var l in j)c.push(o.escapeIndexNameForSQL(l)+","),f.push("?,"),k.push(o.escapeSQLiteStatement(j[l]));c.push(o.sqlQuote("value")+" )"),f.push("?)"),k.push(o.escapeSQLiteStatement(b));var m=c.join(" ")+f.join(" ");x.default.DEBUG&&console.log("SQL for adding",m,k),a.executeSql(m,k,function(a,b){e(d)},function(a,b){g((0,i.createDOMException)("ConstraintError",b.message,b))})}).catch(function(a){g(a)})},g.prototype.add=function(a){var b=this,c=arguments[1];if(!(b instanceof g))throw new TypeError("Illegal invocation");if(0===arguments.length)throw new TypeError("No value was specified");g.__invalidStateIfDeleted(b),t.default.__assertActive(b.transaction),b.transaction.__assertWritable();var d=b.transaction.__createRequest(b),e=b.__validateKeyAndValueAndCloneValue(a,c,!1),f=h(e,2),i=f[0],j=f[1];return g.__storingRecordObjectStore(d,b,j,!0,i),d},g.prototype.put=function(a){var b=this,c=arguments[1];if(!(b instanceof g))throw new TypeError("Illegal invocation");if(0===arguments.length)throw new TypeError("No value was specified");g.__invalidStateIfDeleted(b),t.default.__assertActive(b.transaction),b.transaction.__assertWritable();var d=b.transaction.__createRequest(b),e=b.__validateKeyAndValueAndCloneValue(a,c,!1),f=h(e,2),i=f[0],j=f[1];return g.__storingRecordObjectStore(d,b,j,!1,i),d},g.prototype.__overwrite=function(a,b,c,d){var e=this,f="DELETE FROM "+o.escapeStoreNameForSQL(e.__currentName)+' WHERE "key" = ?',g=q.encode(b);a.executeSql(f,[o.escapeSQLiteStatement(g)],function(a,d){x.default.DEBUG&&console.log("Did the row with the",b,"exist? ",d.rowsAffected),c(a)},function(a,b){d(b)})},g.__storingRecordObjectStore=function(a,b,c,d){var e=arguments[4];b.transaction.__pushToQueue(a,function(a,f,g,h){b.__deriveKey(a,c,e,function(e){v.encode(c,function(f){function i(a){b.__insertData(a,f,c,e,function(){b.__cursors.forEach(function(a){a.__invalidateCache()}),g.apply(void 0,arguments)},h)}if(!d)return void b.__overwrite(a,e,i,h);i(a)})},h)})},g.prototype.__get=function(a,b,c,d){var e=this;void 0!==d&&(d=o.enforceRange(d,"unsigned long")),g.__invalidStateIfDeleted(e),t.default.__assertActive(e.transaction);var f=(0,k.convertValueToKeyRange)(a,!c),h=b?"key":"value",i=["SELECT",o.sqlQuote(h),"FROM",o.escapeStoreNameForSQL(e.__currentName)],j=[];if(void 0!==f&&(i.push("WHERE"),(0,k.setSQLForKeyRange)(f,o.sqlQuote("key"),i,j)),c||(d=1),d){if("number"!=typeof d||isNaN(d)||!isFinite(d))throw new TypeError("The count parameter must be a finite number");i.push("LIMIT",d)}return i=i.join(" "),e.transaction.__addToTransactionQueue(function(a,d,f,g){x.default.DEBUG&&console.log("Fetching",e.__currentName,j),a.executeSql(i,j,function(a,d){x.default.DEBUG&&console.log("Fetched data",d);var e=void 0;try{if(0===d.rows.length)return c?f([]):f();if(e=[],b)for(var g=0;g=b.__requests.length)b.__requests=[],b.__active&&a();else try{if(i=b.__requests[j],!i.req)return void i.op(c,i.args,h,e);if("done"===i.req.__readyState)return;i.op(c,i.args,d,e,h)}catch(a){e(a)}}b.__tx=c;var i=null,j=-1;h()},function(a){if(a!==!0){var c=(0,g.webSQLErrback)(a);b.__abortTransaction(c)}},function(){if(b.__transFinishedCb===e.prototype.__transFinishedCb)return b.__transactionEndCallback||b.__requestsFinished?void(b.__transactionEndCallback&&!b.__completed&&b.__transFinishedCb(b.__errored,b.__transactionEndCallback)):void(b.__transactionFinished=!0)},function(a,c,d,e,f){return!(!a.readOnly&&!c)||(b.__transFinishedCb=function(a,b){a?e(a,b):f(b)},b.__transactionEndCallback&&!b.__completed&&b.__transFinishedCb(b.__errored,b.__transactionEndCallback),!1)})},e.prototype.__createRequest=function(a){var b=this,c=h.IDBRequest.__createInstance();return c.__source=void 0!==a?a:b.db,c.__transaction=b,c},e.prototype.__addToTransactionQueue=function(a,b,c){var d=this.__createRequest(c);return this.__pushToQueue(d,a,b),d},e.prototype.__addNonRequestToTransactionQueue=function(a,b,c){this.__pushToQueue(null,a,b)},e.prototype.__pushToQueue=function(a,b,c){this.__assertActive(),this.__requests.push({op:b,args:c,req:a})},e.prototype.__assertActive=function(){if(!this.__active)throw(0,g.createDOMException)("TransactionInactiveError","A request was placed against a transaction which is currently not active, or which is finished")},e.prototype.__assertWritable=function(){if("readonly"===this.mode)throw(0,g.createDOMException)("ReadOnlyError","The transaction is read only")},e.prototype.__assertVersionChange=function(){e.__assertVersionChange(this)},e.prototype.objectStore=function(a){var b=this;if(!(b instanceof e))throw new TypeError("Illegal invocation");if(0===arguments.length)throw new TypeError("No object store name was specified");if(e.__assertNotFinished(b),b.__objectStoreNames.indexOf(a)===-1)throw(0,g.createDOMException)("NotFoundError",a+" is not participating in this transaction");var c=b.db.__objectStores[a];if(!c)throw(0,g.createDOMException)("NotFoundError",a+" does not exist in "+b.db.name);return(!b.__storeHandles[a]||b.__storeHandles[a].__pendingDelete||b.__storeHandles[a].__deleted)&&(b.__storeHandles[a]=l.default.__clone(c,b)),b.__storeHandles[a]},e.prototype.__abortTransaction=function(a){function b(b,d){b?d&&"number"==typeof d.code?n.default.DEBUG&&console.log("Rollback erred; feature is probably not supported as per WebSQL",c):n.default.DEBUG&&console.log("Rollback succeeded",c):n.default.DEBUG&&console.log("Rollback not possible due to missing transaction",c),c.__requests.filter(function(a){return a.req&&"done"!==a.req.__readyState}).reduce(function(a,b){return a.then(function(){b.req.__readyState="done",b.req.__result=void 0,b.req.__error=(0,g.createDOMException)("AbortError","A request was aborted.");var a=(0,f.createEvent)("error",b.req.__error,{bubbles:!0,cancelable:!0});return new q.default(function(c){setTimeout(function(){b.req.dispatchEvent(a),c()})})})},q.default.resolve()).then(function(){var b=(0,f.createEvent)("abort",a,{bubbles:!0,cancelable:!1});setTimeout(function(){c.__abortFinished=!0,c.dispatchEvent(b),c.__storeHandles={},c.dispatchEvent((0,f.createEvent)("__abort"))})})}var c=this;(0,g.logError)("Error","An error occurred in a transaction",a),c.__errored||(c.__errored=!0,"versionchange"===c.mode&&(c.db.__version=c.db.__oldVersion,c.db.__objectStoreNames=c.db.__oldObjectStoreNames,c.__objectStoreNames=c.db.__oldObjectStoreNames,Object.values(c.db.__objectStores).concat(Object.values(c.__storeHandles)).forEach(function(a){"__pendingName"in a&&c.db.__oldObjectStoreNames.indexOf(a.__pendingName)>-1&&(a.__name=a.__originalName),a.__indexNames=a.__oldIndexNames,delete a.__pendingDelete,Object.values(a.__indexes).concat(Object.values(a.__indexHandles)).forEach(function(b){"__pendingName"in b&&a.__oldIndexNames.indexOf(b.__pendingName)>-1&&(b.__name=b.__originalName),delete b.__pendingDelete})})),c.__active=!1,null!==a&&(c.__error=a),c.__requestsFinished&&setTimeout(function(){throw a},0),c.__transFinishedCb(!0,function(a){if(a&&c.__tx){if("readwrite"===c.mode)return c.__transactionFinished?void b():void(c.__transactionEndCallback=b);try{c.__tx.executeSql("ROLLBACK",[],b,b)}catch(a){b()}}else b(null,{code:0})}))},e.prototype.abort=function(){var a=this;if(!(a instanceof e))throw new TypeError("Illegal invocation");n.default.DEBUG&&console.log("The transaction was aborted",a),e.__assertNotFinished(a),a.__abortTransaction(null)},e.prototype[Symbol.toStringTag]="IDBTransactionPrototype",e.__assertVersionChange=function(a){if(!a||"versionchange"!==a.mode)throw(0,g.createDOMException)("InvalidStateError","Not a version transaction")},e.__assertNotVersionChange=function(a){if(a&&"versionchange"===a.mode)throw(0,g.createDOMException)("InvalidStateError","Cannot be called during a version transaction")},e.__assertNotFinished=function(a){if(!a||a.__completed||a.__abortFinished)throw(0,g.createDOMException)("InvalidStateError","Transaction finished by commit or abort")},e.__assertActive=function(a){if(!a||!a.__active)throw(0,g.createDOMException)("TransactionInactiveError","A request was placed against a transaction which is currently not active, or which is finished")},e.prototype.__getParent=function(){return this.db},e.prototype.__userErrorEventHandler=function(a,b){if(this.__internal)throw this.__internal=!1,a;b()},s.forEach(function(a){Object.defineProperty(e.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")},set:function(a){throw new TypeError("Illegal invocation")}})}),t.forEach(function(a){Object.defineProperty(e.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),Object.defineProperty(e.prototype,"constructor",{enumerable:!1,writable:!0,configurable:!0,value:e}),Object.defineProperty(e,"prototype",{writable:!1}),c.default=e,b.exports=c.default},{"./CFG":324,"./DOMException":325,"./Event":327,"./IDBObjectStore":333,"./IDBRequest":334,"./util":344,eventtarget:297,"sync-promise":299}],336:[function(a,b,c){"use strict";function d(a){e.ShimEvent.call(this,a),this[Symbol.toStringTag]="IDBVersionChangeEvent",this.toString=function(){return"[object IDBVersionChangeEvent]"},this.__eventInitDict=arguments[1]||{}}Object.defineProperty(c,"__esModule",{value:!0});var e=a("./Event"),f=a("./util"),g=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(f),h=["oldVersion","newVersion"];d.prototype=Object.create(e.ShimEvent.prototype),d.prototype[Symbol.toStringTag]="IDBVersionChangeEventPrototype",h.forEach(function(a){Object.defineProperty(d.prototype,a,{enumerable:!0,configurable:!0,get:function(){if(!(this instanceof d))throw new TypeError("Illegal invocation");return this.__eventInitDict&&this.__eventInitDict[a]||("oldVersion"===a?0:null)}})}),Object.defineProperty(d,Symbol.hasInstance,{value:function(a){return g.isObj(a)&&"oldVersion"in a&&"boolean"==typeof a.defaultPrevented}}),Object.defineProperty(d.prototype,"constructor",{enumerable:!1,writable:!0,configurable:!0,value:d}),Object.defineProperty(d,"prototype",{writable:!1}),c.default=d,b.exports=c.default},{"./Event":327,"./util":344}],337:[function(a,b,c){"use strict";function d(a,b,c){return new Array(b-String(a).length+1).join(c)+a}function e(a){return a=a.toString(32),1===a.length?"0"+a:a}function f(a){return(a+j(11)).slice(0,11)}function g(a){for(var b="",c=0;cg&&(d=!0),!b.lowerOpen&&f>=g&&(d=!0)),void 0!==b.upper&&(b.upperOpen&&f1:b===a}function A(a,b){var c=[];if(Array.isArray(a))for(var d=0;d0&&c.push(e);continue}e=e[0]}(null==b||y(e,b,!0))&&c.push(e)}else(null==b||y(a,b,!0))&&c.push(a);return c}function B(a){var b=a.type,c=a.value;switch(b){case"number":case"string":return c;case"array":for(var d=[],e=c.length,f=0;fT)return c("failure");G(a,b,e,function(){c(null,e)},d)},d)}function I(a,b,c,d,e){"number"!=typeof c||c<1?d():F(a,b,function(f){var g=Math.floor(Math.min(c,T));g>=f?G(a,b,g,d,e):d()},e)}Object.defineProperty(c,"__esModule",{value:!0}),c.possiblyUpdateKeyGenerator=c.generateKeyForStore=c.findMultiEntryMatches=c.isKeyInRange=c.isMultiEntryMatch=c.checkKeyCouldBeInjectedIntoValue=c.injectKeyIntoValueUsingKeyPath=c.extractKeyValueDecodedFromValueUsingKeyPath=c.evaluateKeyPathOnValue=c.extractKeyFromValueUsingKeyPath=c.convertValueToKeyRethrowingAndIfInvalid=c.convertValueToMultiEntryKey=c.convertValueToKey=c.convertValueToMultiEntryKeyDecoded=c.convertValueToKeyValueDecoded=c.convertKeyToValue=c.roundTrip=c.decode=c.encode=void 0;var J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},K=a("./DOMException"),L=a("./util"),M=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(L),N=a("./IDBFactory"),O=a("./CFG"),P=function(a){return a&&a.__esModule?a:{default:a}}(O),Q=["invalid","number","date","string","binary","array"],R=["negativeInfinity","bigNegative","smallNegative","smallPositive","bigPositive","positiveInfinity"],S={invalid:{encode:function(a){return Q.indexOf("invalid")+"-"},decode:function(a){}},number:{encode:function(a){var b=Math.abs(a).toString(32),c=b.indexOf(".");b=c!==-1?b.replace(".",""):b;var d=b.search(/[^0]/);b=b.slice(d);var h=void 0,i=void 0,k=void 0;return isFinite(a)?a<0?a>-1?(h=R.indexOf("smallNegative"),i=e(d),k=g(f(b))):(h=R.indexOf("bigNegative"),i=g(e(c!==-1?c:b.length)),k=g(f(b))):a<1?(h=R.indexOf("smallPositive"),i=g(e(d)),k=f(b)):(h=R.indexOf("bigPositive"),i=e(c!==-1?c:b.length),k=f(b)):(i=j(2),k=j(11),h=R.indexOf(a>0?"positiveInfinity":"negativeInfinity")),Q.indexOf("number")+"-"+h+i+k},decode:function(a){var b=+a.substr(2,1),c=a.substr(3,2),d=a.substr(5,11);switch(R[b]){case"negativeInfinity":return-1/0;case"positiveInfinity":return 1/0;case"bigPositive":return h(d,c);case"smallPositive":return c=k(g(c)),h(d,c);case"smallNegative":return c=k(c),d=g(d),-h(d,c);case"bigNegative":return c=g(c),d=g(d),-h(d,c);default:throw new Error("Invalid number.")}}},string:{encode:function(a,b){return b&&(a=a.replace(/(.)/g,"-$1")+" "),Q.indexOf("string")+"-"+a},decode:function(a,b){return a=a.slice(2),b&&(a=a.substr(0,a.length-1).replace(/-(.)/g,"$1")),a}},array:{encode:function(a){for(var b=[],c=0;c889)throw(0,o.createDOMException)("DataError","The encoded key is "+a.length+" characters long, but IE only allows 889 characters. Consider replacing numeric keys with strings to reduce the encoded length.")}Object.defineProperty(c,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},o=a("./DOMException"),p=a("./Key"),q=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(p),r="__$$compoundKey",s=/\$\$/g,t="$$$$",u="$_$";c.default=d,b.exports=c.default},{"./DOMException":325,"./Key":337}],343:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{default:a}}function f(a,b){if(a&&"object"===(void 0===a?"undefined":i(a)))for(var c in a)f(c,a[c]);else{if(!(a in C.default))throw new Error(a+" is not a valid configuration property");C.default[a]=b}}function g(a,b){function c(a,b,c){if(!c||!Object.defineProperty)try{e[a]=b}catch(a){console.log(a)}if(e[a]!==b&&Object.defineProperty)try{var d=c||{};d.get=function(){return b},Object.defineProperty(e,a,d)}catch(a){}e[a]!==b&&"undefined"!=typeof console&&console.warn&&console.warn("Unable to shim "+a)}b&&f(b);var e=a||("undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==d?d:{});c("shimIndexedDB",o.shimIndexedDB,{enumerable:!1,configurable:!0}),e.shimIndexedDB&&(e.shimIndexedDB.__useShim=function(){var a=e.shimIndexedDB.modules.IDBFactory;if(void 0!==C.default.win.openDatabase){if(C.default.fullIDLSupport){var b=e.shimIndexedDB.modules.ShimEvent,d=e.shimIndexedDB.modules.ShimEventTarget;Object.setPrototypeOf(y.default,d),Object.setPrototypeOf(m.IDBRequest,d),Object.setPrototypeOf(w.default,d),Object.setPrototypeOf(k.default,b),Object.setPrototypeOf(n.ShimDOMException,Error),Object.setPrototypeOf(n.ShimDOMException.prototype,Error.prototype)}[["indexedDB",o.shimIndexedDB],["IDBFactory",a],["IDBDatabase",y.default],["IDBObjectStore",s.default],["IDBIndex",u.default],["IDBTransaction",w.default],["IDBCursor",l.IDBCursor],["IDBCursorWithValue",l.IDBCursorWithValue],["IDBKeyRange",q.default],["IDBRequest",m.IDBRequest],["IDBOpenDBRequest",m.IDBOpenDBRequest],["IDBVersionChangeEvent",k.default]].forEach(function(a){var b=h(a,2);c(b[0],b[1],{enumerable:!1,configurable:!0})}),C.default.addNonIDBGlobals&&e.indexedDB&&e.indexedDB.modules&&(c("ShimDOMStringList",e.indexedDB.modules.ShimDOMStringList,{enumerable:!1,configurable:!0}),c("ShimEvent",e.indexedDB.modules.ShimEvent),c("ShimCustomEvent",e.indexedDB.modules.ShimCustomEvent),c("ShimEventTarget",e.indexedDB.modules.ShimEventTarget),c("ShimDOMException",e.indexedDB.modules.ShimDOMException))}else"object"===i(e.indexedDB)&&(0,A.default)(l.IDBCursor,l.IDBCursorWithValue,y.default,a,u.default,q.default,s.default,m.IDBRequest,w.default)},e.shimIndexedDB.__debug=function(a){C.default.DEBUG=a},e.shimIndexedDB.__setConfig=f,e.shimIndexedDB.__getConfig=function(a){if(!(a in C.default))throw new Error(a+" is not a valid configuration property");return C.default[a]},e.shimIndexedDB.__setUnicodeIdentifiers=function(a){f({UnicodeIDStart:a.UnicodeIDStart,UnicodeIDContinue:a.UnicodeIDContinue})}),"indexedDB"in e||"undefined"==typeof window||(e.indexedDB=e.indexedDB||e.webkitIndexedDB||e.mozIndexedDB||e.oIndexedDB||e.msIndexedDB);var g=!1;return"undefined"!=typeof navigator&&(navigator.userAgent.match(/Android (?:2|3|4\.[0-3])/)&&!navigator.userAgent.match(/Chrome/)||(navigator.userAgent.indexOf("Safari")===-1||navigator.userAgent.indexOf("Chrome")>-1)&&/(iPad|iPhone|iPod).* os 9_/i.test(navigator.userAgent)&&!window.MSStream)&&(g=!0),C.default.DEFAULT_DB_SIZE||(C.default.DEFAULT_DB_SIZE=1024*("undefined"!=typeof navigator&&navigator.userAgent.indexOf("Safari")>-1&&navigator.userAgent.indexOf("Chrome")===-1?25:4)*1024),e.indexedDB&&!g||void 0===C.default.win.openDatabase?(e.IDBDatabase=e.IDBDatabase||e.webkitIDBDatabase,e.IDBTransaction=e.IDBTransaction||e.webkitIDBTransaction||{},e.IDBCursor=e.IDBCursor||e.webkitIDBCursor,e.IDBKeyRange=e.IDBKeyRange||e.webkitIDBKeyRange):e.shimIndexedDB.__useShim(),e}Object.defineProperty(c,"__esModule",{value:!0});var h=function(){function a(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!b||c.length!==b);d=!0);}catch(a){e=!0,f=a}finally{try{!d&&h.return&&h.return()}finally{if(e)throw f}}return c}return function(b,c){if(Array.isArray(b))return b;if(Symbol.iterator in Object(b))return a(b,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};a("babel-polyfill");var j=a("./IDBVersionChangeEvent"),k=e(j),l=a("./IDBCursor"),m=a("./IDBRequest"),n=a("./DOMException"),o=a("./IDBFactory"),p=a("./IDBKeyRange"),q=e(p),r=a("./IDBObjectStore"),s=e(r),t=a("./IDBIndex"),u=e(t),v=a("./IDBTransaction"),w=e(v),x=a("./IDBDatabase"),y=e(x),z=a("./polyfill"),A=e(z),B=a("./CFG"),C=e(B);(void 0!==d?d:"undefined"!=typeof window?window:self)._babelPolyfill=!1,c.default=g,b.exports=c.default}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./CFG":324,"./DOMException":325,"./IDBCursor":328,"./IDBDatabase":329,"./IDBFactory":330,"./IDBIndex":331,"./IDBKeyRange":332,"./IDBObjectStore":333,"./IDBRequest":334,"./IDBTransaction":335,"./IDBVersionChangeEvent":336,"./polyfill":342,"babel-polyfill":1}],344:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a){return"_"+a.replace(/\^/g,"^^").replace(/\0/g,"^0").replace(/([A-Z])/g,"^$1").replace(/([\uD800-\uDBFF])(?![\uDC00-\uDFFF])|(^|[^\uD800-\uDBFF])([\uDC00-\uDFFF])/g,function(a,b,c){return b?"^2"+b+"�":"^3�"+c})}function f(a){return a.replace(/\^/g,"^^").replace(/\0/g,"^0")}function g(a){return a.replace(/\^0/g,"\0").replace(/\^\^/g,"^")}function h(a){return a.replace(/"/g,'""')}function i(a){return'"'+h(a)+'"'}function j(a){if(H.default.escapeDatabaseName)return H.default.escapeDatabaseName(f(a));if(a="D"+e(a),H.default.escapeNFDForDatabaseNames!==!1&&(a=a.replace(new RegExp(J.default,"g"),function(a){return"^4"+a.codePointAt().toString(16).padStart(6,"0")})),H.default.databaseCharacterEscapeList!==!1&&(a=a.replace(H.default.databaseCharacterEscapeList?new RegExp(H.default.databaseCharacterEscapeList,"g"):/[\u0000-\u001F\u007F"*\/:<>?\\|]/g,function(a){return"^1"+a.charCodeAt().toString(16).padStart(2,"0")})),H.default.databaseNameLengthLimit!==!1&&a.length>=(H.default.databaseNameLengthLimit||254)-(H.default.addSQLiteExtension!==!1?7:0))throw new Error("Unexpectedly long database name supplied; length limit required for Node compatibility; passed length: "+a.length+"; length limit setting: "+(H.default.databaseNameLengthLimit||254)+".");return a+(H.default.addSQLiteExtension!==!1?".sqlite":"")}function k(a){return H.default.unescapeDatabaseName?H.default.unescapeDatabaseName(g(a)):a.slice(2).replace(/(\^+)1([0-9a-f]{2})/g,function(a,b,c){return b.length%2?String.fromCharCode(parseInt(c,16)):a}).replace(/(\^+)4([0-9a-f]{6})/g,function(a,b,c){return b.length%2?String.fromCodePoint(parseInt(c,16)):a}).replace(/(\^+)3\uD800([\uDC00-\uDFFF])/g,function(a,b,c){return b.length%2?c:a}).replace(/(\^+)2([\uD800-\uDBFF])\uDC00/g,function(a,b,c){return b.length%2?c:a}).replace(/(\^+)([A-Z])/g,function(a,b,c){return b.length%2?c:a}).replace(/(\^+)0/g,function(a,b){return b.length%2?"\0":a}).replace(/\^\^/g,"^")}function l(a){return i("S"+e(a))}function m(a){return i("I"+e(a))}function n(a){return"I"+e(a)}function o(a){return h(a).replace(/\^/g,"^^")}function p(a,b){return b[Symbol.hasInstance](a)}function q(a){return a&&"object"===(void 0===a?"undefined":F(a))}function r(a){return q(a)&&"function"==typeof a.getDate}function s(a){return q(a)&&"number"==typeof a.size&&"function"==typeof a.slice&&!("lastModified"in a)}function t(a){return q(a)&&"string"==typeof a.flags&&"function"==typeof a.exec}function u(a){return q(a)&&"string"==typeof a.name&&"function"==typeof a.slice&&"lastModified"in a} +function v(a){return q(a)&&"number"==typeof a.byteLength&&("function"==typeof a.slice||"function"==typeof a.getFloat64)}function w(a){return q(a)&&"function"==typeof a[Symbol.iterator]}function x(a,b){b="string"==typeof b?[b]:b,b.forEach(function(b){Object.defineProperty(a,"__"+b,{enumerable:!1,configurable:!1,writable:!0}),Object.defineProperty(a,b,{enumerable:!0,configurable:!0,get:function(){return this["__"+b]}})})}function y(a){var b=H.default.UnicodeIDStart||"[$A-Z_a-z]",c=H.default.UnicodeIDContinue||"[$0-9A-Z_a-z]",d="(?:"+b+"|[$_]|\\\\"+K+")",e="(?:"+c+"|[$_]|\\\\"+K+"|\\u200C|\\u200D)";return new RegExp("^"+d+e+"*$").test(a)}function z(a){return"string"==typeof a&&(""===a||y(a)||a.split(".").every(y))}function A(a){return z(a)||Array.isArray(a)&&a.length&&Array.apply(null,a).every(function(a){return z(a)})}function B(a,b){a=Math.floor(Number(a));var c=void 0,d=void 0;switch(b){case"unsigned long long":c=9007199254740991,d=0;break;case"unsigned long":c=4294967295,d=0;break;default:throw new Error("Unrecognized type supplied to enforceRange")}if(isNaN(a)||!isFinite(a)||a>c||a ? \ | 'databaseNameLengthLimit', // Defaults to 254 (shortest typical modern file length limit) +'escapeNFDForDatabaseNames', // Boolean defaulting to true on whether to escape NFD-escaping +// characters to avoid clashes on MacOS which performs NFD on files +// Boolean on whether to add the `.sqlite` extension to file names; +// defaults to `true` +'addSQLiteExtension', + +// NODE-SPECIFIC CONFIG +// Boolean on whether to delete the database file itself after `deleteDatabase`; +// defaults to `true` as the database will be empty +'deleteDatabaseFiles', -// Optional Node WebSQL config +// NODE-SPECIFIC WEBSQL CONFIG 'sqlBusyTimeout', // Defaults to 1000 'sqlTrace', // Callback not used by default 'sqlProfile' // Callback not used by default @@ -9072,7 +9079,7 @@ var CFG = {}; exports.default = CFG; module.exports = exports['default']; -},{}],327:[function(require,module,exports){ +},{}],328:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -9380,7 +9387,7 @@ exports.ShimDOMException = ShimDOMException; exports.createDOMException = createDOMException; exports.webSQLErrback = webSQLErrback; -},{"./CFG":326}],328:[function(require,module,exports){ +},{"./CFG":327}],329:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -9566,7 +9573,7 @@ if (cleanInterface) { exports.default = DOMStringList; module.exports = exports['default']; -},{}],329:[function(require,module,exports){ +},{}],330:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -9600,7 +9607,7 @@ exports.ShimEvent = _eventtarget.ShimEvent; exports.ShimCustomEvent = _eventtarget.ShimCustomEvent; exports.ShimEventTarget = _eventtarget.ShimEventTarget; -},{"./util":345,"eventtarget":298}],330:[function(require,module,exports){ +},{"./util":346,"eventtarget":298}],331:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -10245,7 +10252,7 @@ Object.defineProperty(IDBCursorWithValue, 'prototype', { exports.IDBCursor = IDBCursor; exports.IDBCursorWithValue = IDBCursorWithValue; -},{"./CFG":326,"./DOMException":327,"./IDBFactory":332,"./IDBIndex":333,"./IDBKeyRange":334,"./IDBObjectStore":335,"./IDBRequest":336,"./IDBTransaction":337,"./Key":339,"./Sca":340,"./util":345}],331:[function(require,module,exports){ +},{"./CFG":327,"./DOMException":328,"./IDBFactory":333,"./IDBIndex":334,"./IDBKeyRange":335,"./IDBObjectStore":336,"./IDBRequest":337,"./IDBTransaction":338,"./Key":340,"./Sca":341,"./util":346}],332:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -10553,7 +10560,7 @@ Object.defineProperty(IDBDatabase, 'prototype', { exports.default = IDBDatabase; module.exports = exports['default']; -},{"./CFG":326,"./DOMException":327,"./DOMStringList":328,"./Event":329,"./IDBObjectStore":335,"./IDBTransaction":337,"./Sca":340,"./util":345,"eventtarget":298}],332:[function(require,module,exports){ +},{"./CFG":327,"./DOMException":328,"./DOMStringList":329,"./Event":330,"./IDBObjectStore":336,"./IDBTransaction":338,"./Sca":341,"./util":346,"eventtarget":298}],333:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -11106,7 +11113,7 @@ exports.IDBFactory = IDBFactory; exports.cmp = cmp; exports.shimIndexedDB = shimIndexedDB; -},{"./CFG":326,"./DOMException":327,"./DOMStringList":328,"./Event":329,"./IDBDatabase":331,"./IDBRequest":336,"./IDBTransaction":337,"./IDBVersionChangeEvent":338,"./Key":339,"./util":345,"fs":3,"path":299}],333:[function(require,module,exports){ +},{"./CFG":327,"./DOMException":328,"./DOMStringList":329,"./Event":330,"./IDBDatabase":332,"./IDBRequest":337,"./IDBTransaction":338,"./IDBVersionChangeEvent":339,"./Key":340,"./util":346,"fs":3,"path":299}],334:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -11722,7 +11729,7 @@ exports.executeFetchIndexData = executeFetchIndexData; exports.IDBIndex = IDBIndex; exports.default = IDBIndex; -},{"./CFG":326,"./DOMException":327,"./IDBCursor":330,"./IDBKeyRange":334,"./IDBObjectStore":335,"./IDBTransaction":337,"./Key":339,"./Sca":340,"./util":345}],334:[function(require,module,exports){ +},{"./CFG":327,"./DOMException":328,"./IDBCursor":331,"./IDBKeyRange":335,"./IDBObjectStore":336,"./IDBTransaction":338,"./Key":340,"./Sca":341,"./util":346}],335:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -11906,7 +11913,7 @@ exports.IDBKeyRange = IDBKeyRange; exports.convertValueToKeyRange = convertValueToKeyRange; exports.default = IDBKeyRange; -},{"./DOMException":327,"./Key":339,"./util":345}],335:[function(require,module,exports){ +},{"./DOMException":328,"./Key":340,"./util":346}],336:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -12790,7 +12797,7 @@ Object.defineProperty(IDBObjectStore, 'prototype', { exports.default = IDBObjectStore; module.exports = exports['default']; -},{"./CFG":326,"./DOMException":327,"./DOMStringList":328,"./IDBCursor":330,"./IDBIndex":333,"./IDBKeyRange":334,"./IDBTransaction":337,"./Key":339,"./Sca":340,"./util":345,"sync-promise":302}],336:[function(require,module,exports){ +},{"./CFG":327,"./DOMException":328,"./DOMStringList":329,"./IDBCursor":331,"./IDBIndex":334,"./IDBKeyRange":335,"./IDBTransaction":338,"./Key":340,"./Sca":341,"./util":346,"sync-promise":302}],337:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -13007,7 +13014,7 @@ Object.defineProperty(IDBOpenDBRequest, 'prototype', { exports.IDBRequest = IDBRequest; exports.IDBOpenDBRequest = IDBOpenDBRequest; -},{"./DOMException":327,"./util":345,"eventtarget":298}],337:[function(require,module,exports){ +},{"./DOMException":328,"./util":346,"eventtarget":298}],338:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -13623,7 +13630,7 @@ Object.defineProperty(IDBTransaction, 'prototype', { exports.default = IDBTransaction; module.exports = exports['default']; -},{"./CFG":326,"./DOMException":327,"./Event":329,"./IDBObjectStore":335,"./IDBRequest":336,"./util":345,"eventtarget":298,"sync-promise":302}],338:[function(require,module,exports){ +},{"./CFG":327,"./DOMException":328,"./Event":330,"./IDBObjectStore":336,"./IDBRequest":337,"./util":346,"eventtarget":298,"sync-promise":302}],339:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -13688,7 +13695,7 @@ Object.defineProperty(IDBVersionChangeEvent, 'prototype', { exports.default = IDBVersionChangeEvent; module.exports = exports['default']; -},{"./Event":329,"./util":345}],339:[function(require,module,exports){ +},{"./Event":330,"./util":346}],340:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -14502,7 +14509,7 @@ exports.findMultiEntryMatches = findMultiEntryMatches; exports.generateKeyForStore = generateKeyForStore; exports.possiblyUpdateKeyGenerator = possiblyUpdateKeyGenerator; -},{"./CFG":326,"./DOMException":327,"./IDBFactory":332,"./util":345}],340:[function(require,module,exports){ +},{"./CFG":327,"./DOMException":328,"./IDBFactory":333,"./util":346}],341:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -14566,7 +14573,7 @@ exports.encode = encode; exports.decode = decode; exports.clone = clone; -},{"./DOMException":327,"typeson":325,"typeson-registry/presets/structured-cloning-throwing":304}],341:[function(require,module,exports){ +},{"./DOMException":328,"typeson":325,"typeson-registry/presets/structured-cloning-throwing":304}],342:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -14581,7 +14588,7 @@ var UnicodeIDContinue = '(?:[$0-9A-Z_a-z\\xAA\\xB5\\xB7\\xBA\\xC0-\\xD6\\xD8-\\x exports.UnicodeIDStart = UnicodeIDStart; exports.UnicodeIDContinue = UnicodeIDContinue; -},{}],342:[function(require,module,exports){ +},{}],343:[function(require,module,exports){ 'use strict'; var _UnicodeIdentifiers = require('./UnicodeIdentifiers'); @@ -14615,7 +14622,7 @@ shimIndexedDB.__setUnicodeIdentifiers = function () { shimIndexedDB.__setUnicodeIdentifiers(); -},{"./CFG":326,"./UnicodeIdentifiers":341,"./setGlobalVars":344}],343:[function(require,module,exports){ +},{"./CFG":327,"./UnicodeIdentifiers":342,"./setGlobalVars":345}],344:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -14977,7 +14984,7 @@ function validateKeyLength(key) { exports.default = polyfill; module.exports = exports['default']; -},{"./DOMException":327,"./Key":339}],344:[function(require,module,exports){ +},{"./DOMException":328,"./Key":340}],345:[function(require,module,exports){ (function (global){ 'use strict'; @@ -15204,7 +15211,7 @@ exports.default = setGlobalVars; module.exports = exports['default']; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"./CFG":326,"./DOMException":327,"./IDBCursor":330,"./IDBDatabase":331,"./IDBFactory":332,"./IDBIndex":333,"./IDBKeyRange":334,"./IDBObjectStore":335,"./IDBRequest":336,"./IDBTransaction":337,"./IDBVersionChangeEvent":338,"./polyfill":343,"babel-polyfill":1}],345:[function(require,module,exports){ +},{"./CFG":327,"./DOMException":328,"./IDBCursor":331,"./IDBDatabase":332,"./IDBFactory":333,"./IDBIndex":334,"./IDBKeyRange":335,"./IDBObjectStore":336,"./IDBRequest":337,"./IDBTransaction":338,"./IDBVersionChangeEvent":339,"./polyfill":344,"babel-polyfill":1}],346:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -15218,6 +15225,10 @@ var _CFG = require('./CFG'); var _CFG2 = _interopRequireDefault(_CFG); +var _regex = require('unicode-9.0.0/Binary_Property/Expands_On_NFD/regex'); + +var _regex2 = _interopRequireDefault(_regex); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function escapeNameForSQLiteIdentifier(arg) { @@ -15268,6 +15279,12 @@ function escapeDatabaseNameForSQLAndFiles(db) { return _CFG2.default.escapeDatabaseName(escapeSQLiteStatement(db)); } db = 'D' + escapeNameForSQLiteIdentifier(db); + if (_CFG2.default.escapeNFDForDatabaseNames !== false) { + // ES6 copying of regex with different flags + db = db.replace(new RegExp(_regex2.default, 'g'), function (expandable) { + return '^4' + expandable.codePointAt().toString(16).padStart(6, '0'); + }); + } if (_CFG2.default.databaseCharacterEscapeList !== false) { db = db.replace(_CFG2.default.databaseCharacterEscapeList ? new RegExp(_CFG2.default.databaseCharacterEscapeList, 'g') : /[\u0000-\u001F\u007F"*/:<>?\\|]/g, function (n0) { return '^1' + n0.charCodeAt().toString(16).padStart(2, '0'); @@ -15290,17 +15307,23 @@ function unescapeDatabaseNameForSQLAndFiles(db) { } return db.slice(2) // D_ + // CFG.databaseCharacterEscapeList .replace(/(\^+)1([0-9a-f]{2})/g, function (_, esc, hex) { - return esc % 2 ? String.fromCharCode(parseInt(hex, 16)) : _; - }) // databaseCharacterEscapeList + return esc.length % 2 ? String.fromCharCode(parseInt(hex, 16)) : _; + }) + // CFG.escapeNFDForDatabaseNames + .replace(/(\^+)4([0-9a-f]{6})/g, function (_, esc, hex) { + return esc.length % 2 ? String.fromCodePoint(parseInt(hex, 16)) : _; + }) + // escapeNameForSQLiteIdentifier .replace(/(\^+)3\uD800([\uDC00-\uDFFF])/g, function (_, esc, lowSurr) { - return esc % 2 ? lowSurr : _; + return esc.length % 2 ? lowSurr : _; }).replace(/(\^+)2([\uD800-\uDBFF])\uDC00/g, function (_, esc, highSurr) { - return esc % 2 ? highSurr : _; + return esc.length % 2 ? highSurr : _; }).replace(/(\^+)([A-Z])/g, function (_, esc, upperCase) { - return esc % 2 ? upperCase : _; + return esc.length % 2 ? upperCase : _; }).replace(/(\^+)0/g, function (_, esc) { - return esc % 2 ? '\0' : _; + return esc.length % 2 ? '\0' : _; }).replace(/\^\^/g, '^'); } @@ -15476,4 +15499,4 @@ exports.enforceRange = enforceRange; exports.convertToDOMString = convertToDOMString; exports.convertToSequenceDOMString = convertToSequenceDOMString; -},{"./CFG":326}]},{},[342]); +},{"./CFG":327,"unicode-9.0.0/Binary_Property/Expands_On_NFD/regex":326}]},{},[343]); diff --git a/dist/indexeddbshim-UnicodeIdentifiers.min.js b/dist/indexeddbshim-UnicodeIdentifiers.min.js index 14dc9357..528f218e 100644 --- a/dist/indexeddbshim-UnicodeIdentifiers.min.js +++ b/dist/indexeddbshim-UnicodeIdentifiers.min.js @@ -2,9 +2,9 @@ "./_defined":29,"./_to-integer":108}],100:[function(a,b,c){var d=a("./_is-regexp"),e=a("./_defined");b.exports=function(a,b,c){if(d(b))throw TypeError("String#"+c+" doesn't accept regex!");return String(e(a))}},{"./_defined":29,"./_is-regexp":52}],101:[function(a,b,c){var d=a("./_export"),e=a("./_fails"),f=a("./_defined"),g=function(a,b,c,d){var e=String(f(a)),g="<"+b;return""!==c&&(g+=" "+c+'="'+String(d).replace(/"/g,""")+'"'),g+">"+e+""};b.exports=function(a,b){var c={};c[a]=b(g),d(d.P+d.F*e(function(){var b=""[a]('"');return b!==b.toLowerCase()||b.split('"').length>3}),"String",c)}},{"./_defined":29,"./_export":34,"./_fails":36}],102:[function(a,b,c){var d=a("./_to-length"),e=a("./_string-repeat"),f=a("./_defined");b.exports=function(a,b,c,g){var h=String(f(a)),i=h.length,j=void 0===c?" ":String(c),k=d(b);if(k<=i||""==j)return h;var l=k-i,m=e.call(j,Math.ceil(l/j.length));return m.length>l&&(m=m.slice(0,l)),g?m+h:h+m}},{"./_defined":29,"./_string-repeat":103,"./_to-length":110}],103:[function(a,b,c){"use strict";var d=a("./_to-integer"),e=a("./_defined");b.exports=function(a){var b=String(e(this)),c="",f=d(a);if(f<0||1/0==f)throw RangeError("Count can't be negative");for(;f>0;(f>>>=1)&&(b+=b))1&f&&(c+=b);return c}},{"./_defined":29,"./_to-integer":108}],104:[function(a,b,c){var d=a("./_export"),e=a("./_defined"),f=a("./_fails"),g=a("./_string-ws"),h="["+g+"]",i="​…",j=RegExp("^"+h+h+"*"),k=RegExp(h+h+"*$"),l=function(a,b,c){var e={},h=f(function(){return!!g[a]()||i[a]()!=i}),j=e[a]=h?b(m):g[a];c&&(e[c]=j),d(d.P+d.F*h,"String",e)},m=l.trim=function(a,b){return a=String(e(a)),1&b&&(a=a.replace(j,"")),2&b&&(a=a.replace(k,"")),a};b.exports=l},{"./_defined":29,"./_export":34,"./_fails":36,"./_string-ws":105}],105:[function(a,b,c){b.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},{}],106:[function(a,b,c){var d,e,f,g=a("./_ctx"),h=a("./_invoke"),i=a("./_html"),j=a("./_dom-create"),k=a("./_global"),l=k.process,m=k.setImmediate,n=k.clearImmediate,o=k.MessageChannel,p=0,q={},r=function(){var a=+this;if(q.hasOwnProperty(a)){var b=q[a];delete q[a],b()}},s=function(a){r.call(a.data)};m&&n||(m=function(a){for(var b=[],c=1;arguments.length>c;)b.push(arguments[c++]);return q[++p]=function(){h("function"==typeof a?a:Function(a),b)},d(p),p},n=function(a){delete q[a]},"process"==a("./_cof")(l)?d=function(a){l.nextTick(g(r,a,1))}:o?(e=new o,f=e.port2,e.port1.onmessage=s,d=g(f.postMessage,f,1)):k.addEventListener&&"function"==typeof postMessage&&!k.importScripts?(d=function(a){k.postMessage(a+"","*")},k.addEventListener("message",s,!1)):d="onreadystatechange"in j("script")?function(a){i.appendChild(j("script")).onreadystatechange=function(){i.removeChild(this),r.call(a)}}:function(a){setTimeout(g(r,a,1),0)}),b.exports={set:m,clear:n}},{"./_cof":20,"./_ctx":27,"./_dom-create":31,"./_global":40,"./_html":43,"./_invoke":46}],107:[function(a,b,c){var d=a("./_to-integer"),e=Math.max,f=Math.min;b.exports=function(a,b){return a=d(a),a<0?e(a+b,0):f(a,b)}},{"./_to-integer":108}],108:[function(a,b,c){var d=Math.ceil,e=Math.floor;b.exports=function(a){return isNaN(a=+a)?0:(a>0?e:d)(a)}},{}],109:[function(a,b,c){var d=a("./_iobject"),e=a("./_defined");b.exports=function(a){return d(e(a))}},{"./_defined":29,"./_iobject":47}],110:[function(a,b,c){var d=a("./_to-integer"),e=Math.min;b.exports=function(a){return a>0?e(d(a),9007199254740991):0}},{"./_to-integer":108}],111:[function(a,b,c){var d=a("./_defined");b.exports=function(a){return Object(d(a))}},{"./_defined":29}],112:[function(a,b,c){var d=a("./_is-object");b.exports=function(a,b){if(!d(a))return a;var c,e;if(b&&"function"==typeof(c=a.toString)&&!d(e=c.call(a)))return e;if("function"==typeof(c=a.valueOf)&&!d(e=c.call(a)))return e;if(!b&&"function"==typeof(c=a.toString)&&!d(e=c.call(a)))return e;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":51}],113:[function(a,b,c){"use strict";if(a("./_descriptors")){var d=a("./_library"),e=a("./_global"),f=a("./_fails"),g=a("./_export"),h=a("./_typed"),i=a("./_typed-buffer"),j=a("./_ctx"),k=a("./_an-instance"),l=a("./_property-desc"),m=a("./_hide"),n=a("./_redefine-all"),o=a("./_to-integer"),p=a("./_to-length"),q=a("./_to-index"),r=a("./_to-primitive"),s=a("./_has"),t=a("./_same-value"),u=a("./_classof"),v=a("./_is-object"),w=a("./_to-object"),x=a("./_is-array-iter"),y=a("./_object-create"),z=a("./_object-gpo"),A=a("./_object-gopn").f,B=a("./core.get-iterator-method"),C=a("./_uid"),D=a("./_wks"),E=a("./_array-methods"),F=a("./_array-includes"),G=a("./_species-constructor"),H=a("./es6.array.iterator"),I=a("./_iterators"),J=a("./_iter-detect"),K=a("./_set-species"),L=a("./_array-fill"),M=a("./_array-copy-within"),N=a("./_object-dp"),O=a("./_object-gopd"),P=N.f,Q=O.f,R=e.RangeError,S=e.TypeError,T=e.Uint8Array,U=Array.prototype,V=i.ArrayBuffer,W=i.DataView,X=E(0),Y=E(2),Z=E(3),$=E(4),_=E(5),aa=E(6),ba=F(!0),ca=F(!1),da=H.values,ea=H.keys,fa=H.entries,ga=U.lastIndexOf,ha=U.reduce,ia=U.reduceRight,ja=U.join,ka=U.sort,la=U.slice,ma=U.toString,na=U.toLocaleString,oa=D("iterator"),pa=D("toStringTag"),qa=C("typed_constructor"),ra=C("def_constructor"),sa=h.CONSTR,ta=h.TYPED,ua=h.VIEW,va=E(1,function(a,b){return Ba(G(a,a[ra]),b)}),wa=f(function(){return 1===new T(new Uint16Array([1]).buffer)[0]}),xa=!!T&&!!T.prototype.set&&f(function(){new T(1).set({})}),ya=function(a,b){if(void 0===a)throw S("Wrong length!");var c=+a,d=p(a);if(b&&!t(c,d))throw R("Wrong length!");return d},za=function(a,b){var c=o(a);if(c<0||c%b)throw R("Wrong offset!");return c},Aa=function(a){if(v(a)&&ta in a)return a;throw S(a+" is not a typed array!")},Ba=function(a,b){if(!(v(a)&&qa in a))throw S("It is not a typed array constructor!");return new a(b)},Ca=function(a,b){return Da(G(a,a[ra]),b)},Da=function(a,b){for(var c=0,d=b.length,e=Ba(a,d);d>c;)e[c]=b[c++];return e},Ea=function(a,b,c){P(a,b,{get:function(){return this._d[c]}})},Fa=function(a){var b,c,d,e,f,g,h=w(a),i=arguments.length,k=i>1?arguments[1]:void 0,l=void 0!==k,m=B(h);if(void 0!=m&&!x(m)){for(g=m.call(h),d=[],b=0;!(f=g.next()).done;b++)d.push(f.value);h=d}for(l&&i>2&&(k=j(k,arguments[2],2)),b=0,c=p(h.length),e=Ba(this,c);c>b;b++)e[b]=l?k(h[b],b):h[b];return e},Ga=function(){for(var a=0,b=arguments.length,c=Ba(this,b);b>a;)c[a]=arguments[a++];return c},Ha=!!T&&f(function(){na.call(new T(1))}),Ia=function(){return na.apply(Ha?la.call(Aa(this)):Aa(this),arguments)},Ja={copyWithin:function(a,b){return M.call(Aa(this),a,b,arguments.length>2?arguments[2]:void 0)},every:function(a){return $(Aa(this),a,arguments.length>1?arguments[1]:void 0)},fill:function(a){return L.apply(Aa(this),arguments)},filter:function(a){return Ca(this,Y(Aa(this),a,arguments.length>1?arguments[1]:void 0))},find:function(a){return _(Aa(this),a,arguments.length>1?arguments[1]:void 0)},findIndex:function(a){return aa(Aa(this),a,arguments.length>1?arguments[1]:void 0)},forEach:function(a){X(Aa(this),a,arguments.length>1?arguments[1]:void 0)},indexOf:function(a){return ca(Aa(this),a,arguments.length>1?arguments[1]:void 0)},includes:function(a){return ba(Aa(this),a,arguments.length>1?arguments[1]:void 0)},join:function(a){return ja.apply(Aa(this),arguments)},lastIndexOf:function(a){return ga.apply(Aa(this),arguments)},map:function(a){return va(Aa(this),a,arguments.length>1?arguments[1]:void 0)},reduce:function(a){return ha.apply(Aa(this),arguments)},reduceRight:function(a){return ia.apply(Aa(this),arguments)},reverse:function(){for(var a,b=this,c=Aa(b).length,d=Math.floor(c/2),e=0;e1?arguments[1]:void 0)},sort:function(a){return ka.call(Aa(this),a)},subarray:function(a,b){var c=Aa(this),d=c.length,e=q(a,d);return new(G(c,c[ra]))(c.buffer,c.byteOffset+e*c.BYTES_PER_ELEMENT,p((void 0===b?d:q(b,d))-e))}},Ka=function(a,b){return Ca(this,la.call(Aa(this),a,b))},La=function(a){Aa(this);var b=za(arguments[1],1),c=this.length,d=w(a),e=p(d.length),f=0;if(e+b>c)throw R("Wrong length!");for(;f255?255:255&d),e.v[o](c*b+e.o,d,wa)},D=function(a,b){P(a,b,{get:function(){return B(this,b)},set:function(a){return C(this,b,a)},enumerable:!0})};t?(q=c(function(a,c,d,e){k(a,q,j,"_d");var f,g,h,i,l=0,n=0;if(v(c)){if(!(c instanceof V||"ArrayBuffer"==(i=u(c))||"SharedArrayBuffer"==i))return ta in c?Da(q,c):Fa.call(q,c);f=c,n=za(d,b);var o=c.byteLength;if(void 0===e){if(o%b)throw R("Wrong length!");if((g=o-n)<0)throw R("Wrong length!")}else if((g=p(e)*b)+n>o)throw R("Wrong length!");h=g/b}else h=ya(c,!0),g=h*b,f=new V(g);for(m(a,"_d",{b:f,o:n,l:g,e:h,v:new W(f)});l>1,k=23===b?y(2,-24)-y(2,-77):0,l=0,m=a<0||0===a&&1/a<0?1:0;for(a=x(a),a!=a||a===v?(e=a!=a?1:0,d=i):(d=z(A(a)/B),a*(f=y(2,-d))<1&&(d--,f*=2),a+=d+j>=1?k/f:k*y(2,1-j),a*f>=2&&(d++,f/=2),d+j>=i?(e=0,d=i):d+j>=1?(e=(a*f-1)*y(2,b),d+=j):(e=a*y(2,j-1)*y(2,b),d=0));b>=8;g[l++]=255&e,e/=256,b-=8);for(d=d<0;g[l++]=255&d,d/=256,h-=8);return g[--l]|=128*m,g},G=function(a,b,c){var d,e=8*c-b-1,f=(1<>1,h=e-7,i=c-1,j=a[i--],k=127&j;for(j>>=7;h>0;k=256*k+a[i],i--,h-=8);for(d=k&(1<<-h)-1,k>>=-h,h+=b;h>0;d=256*d+a[i],i--,h-=8);if(0===k)k=1-g;else{if(k===f)return d?0/0:j?-v:v;d+=y(2,b),k-=g}return(j?-1:1)*d*y(2,k-b)},H=function(a){return a[3]<<24|a[2]<<16|a[1]<<8|a[0]},I=function(a){return[255&a]},J=function(a){return[255&a,a>>8&255]},K=function(a){return[255&a,a>>8&255,a>>16&255,a>>24&255]},L=function(a){return F(a,52,8)},M=function(a){return F(a,23,4)},N=function(a,b,c){o(a.prototype,b,{get:function(){return this[c]}})},O=function(a,b,c,d){var e=+c,f=l(e);if(e!=f||f<0||f+b>a[D])throw u("Wrong index!");var g=a[C]._b,h=f+a[E],i=g.slice(h,h+b);return d?i:i.reverse()},P=function(a,b,c,d,e,f){var g=+c,h=l(g);if(g!=h||h<0||h+b>a[D])throw u("Wrong index!");for(var i=a[C]._b,j=h+a[E],k=d(+e),m=0;mU;)(R=T[U++])in r||h(r,R,w[R]);f||(S.constructor=r)}var V=new s(new r(2)),W=s.prototype.setInt8;V.setInt8(0,2147483648),V.setInt8(1,2147483649),!V.getInt8(0)&&V.getInt8(1)||i(s.prototype,{setInt8:function(a,b){W.call(this,a,b<<24>>24)},setUint8:function(a,b){W.call(this,a,b<<24>>24)}},!0)}else r=function(a){var b=Q(this,a);this._b=p.call(Array(b),0),this[D]=b},s=function(a,b,c){k(this,s,"DataView"),k(a,r,"DataView");var d=a[D],e=l(b);if(e<0||e>d)throw u("Wrong offset!");if(c=void 0===c?d-e:m(c),e+c>d)throw u("Wrong length!");this[C]=a,this[E]=e,this[D]=c},e&&(N(r,"byteLength","_l"),N(s,"buffer","_b"),N(s,"byteLength","_l"),N(s,"byteOffset","_o")),i(s.prototype,{getInt8:function(a){return O(this,1,a)[0]<<24>>24},getUint8:function(a){return O(this,1,a)[0]},getInt16:function(a){var b=O(this,2,a,arguments[1]);return(b[1]<<8|b[0])<<16>>16},getUint16:function(a){var b=O(this,2,a,arguments[1]);return b[1]<<8|b[0]},getInt32:function(a){return H(O(this,4,a,arguments[1]))},getUint32:function(a){return H(O(this,4,a,arguments[1]))>>>0},getFloat32:function(a){return G(O(this,4,a,arguments[1]),23,4)},getFloat64:function(a){return G(O(this,8,a,arguments[1]),52,8)},setInt8:function(a,b){P(this,1,a,I,b)},setUint8:function(a,b){P(this,1,a,I,b)},setInt16:function(a,b){P(this,2,a,J,b,arguments[2])},setUint16:function(a,b){P(this,2,a,J,b,arguments[2])},setInt32:function(a,b){P(this,4,a,K,b,arguments[2])},setUint32:function(a,b){P(this,4,a,K,b,arguments[2])},setFloat32:function(a,b){P(this,4,a,M,b,arguments[2])},setFloat64:function(a,b){P(this,8,a,L,b,arguments[2])}});q(r,"ArrayBuffer"),q(s,"DataView"),h(s.prototype,g.VIEW,!0),c.ArrayBuffer=r,c.DataView=s},{"./_an-instance":8,"./_array-fill":11,"./_descriptors":30,"./_fails":36,"./_global":40,"./_hide":42,"./_library":60,"./_object-dp":69,"./_object-gopn":74,"./_redefine-all":88,"./_set-to-string-tag":94,"./_to-integer":108,"./_to-length":110,"./_typed":115}],115:[function(a,b,c){for(var d,e=a("./_global"),f=a("./_hide"),g=a("./_uid"),h=g("typed_array"),i=g("view"),j=!(!e.ArrayBuffer||!e.DataView),k=j,l=0,m="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(d=e[m[l++]])?(f(d.prototype,h,!0),f(d.prototype,i,!0)):k=!1;b.exports={ABV:j,CONSTR:k,TYPED:h,VIEW:i}},{"./_global":40,"./_hide":42,"./_uid":116}],116:[function(a,b,c){var d=0,e=Math.random();b.exports=function(a){return"Symbol(".concat(void 0===a?"":a,")_",(++d+e).toString(36))}},{}],117:[function(a,b,c){var d=a("./_global"),e=a("./_core"),f=a("./_library"),g=a("./_wks-ext"),h=a("./_object-dp").f;b.exports=function(a){var b=e.Symbol||(e.Symbol=f?{}:d.Symbol||{});"_"==a.charAt(0)||a in b||h(b,a,{value:g.f(a)})}},{"./_core":25,"./_global":40,"./_library":60,"./_object-dp":69,"./_wks-ext":118}],118:[function(a,b,c){c.f=a("./_wks")},{"./_wks":119}],119:[function(a,b,c){var d=a("./_shared")("wks"),e=a("./_uid"),f=a("./_global").Symbol,g="function"==typeof f;(b.exports=function(a){return d[a]||(d[a]=g&&f[a]||(g?f:e)("Symbol."+a))}).store=d},{"./_global":40,"./_shared":96,"./_uid":116}],120:[function(a,b,c){var d=a("./_classof"),e=a("./_wks")("iterator"),f=a("./_iterators");b.exports=a("./_core").getIteratorMethod=function(a){if(void 0!=a)return a[e]||a["@@iterator"]||f[d(a)]}},{"./_classof":19,"./_core":25,"./_iterators":58,"./_wks":119}],121:[function(a,b,c){var d=a("./_export"),e=a("./_replacer")(/[\\^$*+?.()|[\]{}]/g,"\\$&");d(d.S,"RegExp",{escape:function(a){return e(a)}})},{"./_export":34,"./_replacer":90}],122:[function(a,b,c){var d=a("./_export");d(d.P,"Array",{copyWithin:a("./_array-copy-within")}),a("./_add-to-unscopables")("copyWithin")},{"./_add-to-unscopables":7,"./_array-copy-within":10,"./_export":34}],123:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-methods")(4);d(d.P+d.F*!a("./_strict-method")([].every,!0),"Array",{every:function(a){return e(this,a,arguments[1])}})},{"./_array-methods":14,"./_export":34,"./_strict-method":98}],124:[function(a,b,c){var d=a("./_export");d(d.P,"Array",{fill:a("./_array-fill")}),a("./_add-to-unscopables")("fill")},{"./_add-to-unscopables":7,"./_array-fill":11,"./_export":34}],125:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-methods")(2);d(d.P+d.F*!a("./_strict-method")([].filter,!0),"Array",{filter:function(a){return e(this,a,arguments[1])}})},{"./_array-methods":14,"./_export":34,"./_strict-method":98}],126:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-methods")(6),f="findIndex",g=!0;f in[]&&Array(1)[f](function(){g=!1}),d(d.P+d.F*g,"Array",{findIndex:function(a){return e(this,a,arguments.length>1?arguments[1]:void 0)}}),a("./_add-to-unscopables")(f)},{"./_add-to-unscopables":7,"./_array-methods":14,"./_export":34}],127:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-methods")(5),f=!0;"find"in[]&&Array(1).find(function(){f=!1}),d(d.P+d.F*f,"Array",{find:function(a){return e(this,a,arguments.length>1?arguments[1]:void 0)}}),a("./_add-to-unscopables")("find")},{"./_add-to-unscopables":7,"./_array-methods":14,"./_export":34}],128:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-methods")(0),f=a("./_strict-method")([].forEach,!0);d(d.P+d.F*!f,"Array",{forEach:function(a){return e(this,a,arguments[1])}})},{"./_array-methods":14,"./_export":34,"./_strict-method":98}],129:[function(a,b,c){"use strict";var d=a("./_ctx"),e=a("./_export"),f=a("./_to-object"),g=a("./_iter-call"),h=a("./_is-array-iter"),i=a("./_to-length"),j=a("./_create-property"),k=a("./core.get-iterator-method");e(e.S+e.F*!a("./_iter-detect")(function(a){Array.from(a)}),"Array",{from:function(a){var b,c,e,l,m=f(a),n="function"==typeof this?this:Array,o=arguments.length,p=o>1?arguments[1]:void 0,q=void 0!==p,r=0,s=k(m);if(q&&(p=d(p,o>2?arguments[2]:void 0,2)),void 0==s||n==Array&&h(s))for(b=i(m.length),c=new n(b);b>r;r++)j(c,r,q?p(m[r],r):m[r]);else for(l=s.call(m),c=new n;!(e=l.next()).done;r++)j(c,r,q?g(l,p,[e.value,r],!0):e.value);return c.length=r,c}})},{"./_create-property":26,"./_ctx":27,"./_export":34,"./_is-array-iter":48,"./_iter-call":53,"./_iter-detect":56,"./_to-length":110,"./_to-object":111,"./core.get-iterator-method":120}],130:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-includes")(!1),f=[].indexOf,g=!!f&&1/[1].indexOf(1,-0)<0;d(d.P+d.F*(g||!a("./_strict-method")(f)),"Array",{indexOf:function(a){return g?f.apply(this,arguments)||0:e(this,a,arguments[1])}})},{"./_array-includes":13,"./_export":34,"./_strict-method":98}],131:[function(a,b,c){var d=a("./_export");d(d.S,"Array",{isArray:a("./_is-array")})},{"./_export":34,"./_is-array":49}],132:[function(a,b,c){"use strict";var d=a("./_add-to-unscopables"),e=a("./_iter-step"),f=a("./_iterators"),g=a("./_to-iobject");b.exports=a("./_iter-define")(Array,"Array",function(a,b){this._t=g(a),this._i=0,this._k=b},function(){var a=this._t,b=this._k,c=this._i++;return!a||c>=a.length?(this._t=void 0,e(1)):"keys"==b?e(0,c):"values"==b?e(0,a[c]):e(0,[c,a[c]])},"values"),f.Arguments=f.Array,d("keys"),d("values"),d("entries")},{"./_add-to-unscopables":7,"./_iter-define":55,"./_iter-step":57,"./_iterators":58,"./_to-iobject":109}],133:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-iobject"),f=[].join;d(d.P+d.F*(a("./_iobject")!=Object||!a("./_strict-method")(f)),"Array",{join:function(a){return f.call(e(this),void 0===a?",":a)}})},{"./_export":34,"./_iobject":47,"./_strict-method":98,"./_to-iobject":109}],134:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-iobject"),f=a("./_to-integer"),g=a("./_to-length"),h=[].lastIndexOf,i=!!h&&1/[1].lastIndexOf(1,-0)<0;d(d.P+d.F*(i||!a("./_strict-method")(h)),"Array",{lastIndexOf:function(a){if(i)return h.apply(this,arguments)||0;var b=e(this),c=g(b.length),d=c-1;for(arguments.length>1&&(d=Math.min(d,f(arguments[1]))),d<0&&(d=c+d);d>=0;d--)if(d in b&&b[d]===a)return d||0;return-1}})},{"./_export":34,"./_strict-method":98,"./_to-integer":108,"./_to-iobject":109,"./_to-length":110}],135:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-methods")(1);d(d.P+d.F*!a("./_strict-method")([].map,!0),"Array",{map:function(a){return e(this,a,arguments[1])}})},{"./_array-methods":14,"./_export":34,"./_strict-method":98}],136:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_create-property");d(d.S+d.F*a("./_fails")(function(){function a(){}return!(Array.of.call(a)instanceof a)}),"Array",{of:function(){for(var a=0,b=arguments.length,c=new("function"==typeof this?this:Array)(b);b>a;)e(c,a,arguments[a++]);return c.length=b,c}})},{"./_create-property":26,"./_export":34,"./_fails":36}],137:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-reduce");d(d.P+d.F*!a("./_strict-method")([].reduceRight,!0),"Array",{reduceRight:function(a){return e(this,a,arguments.length,arguments[1],!0)}})},{"./_array-reduce":15,"./_export":34,"./_strict-method":98}],138:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-reduce");d(d.P+d.F*!a("./_strict-method")([].reduce,!0),"Array",{reduce:function(a){return e(this,a,arguments.length,arguments[1],!1)}})},{"./_array-reduce":15,"./_export":34,"./_strict-method":98}],139:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_html"),f=a("./_cof"),g=a("./_to-index"),h=a("./_to-length"),i=[].slice;d(d.P+d.F*a("./_fails")(function(){e&&i.call(e)}),"Array",{slice:function(a,b){var c=h(this.length),d=f(this);if(b=void 0===b?c:b,"Array"==d)return i.call(this,a,b);for(var e=g(a,c),j=g(b,c),k=h(j-e),l=Array(k),m=0;m9?a:"0"+a};d(d.P+d.F*(e(function(){return"0385-07-25T07:06:39.999Z"!=new Date(-5e13-1).toISOString()})||!e(function(){new Date(0/0).toISOString()})),"Date",{toISOString:function(){if(!isFinite(f.call(this)))throw RangeError("Invalid time value");var a=this,b=a.getUTCFullYear(),c=a.getUTCMilliseconds(),d=b<0?"-":b>9999?"+":"";return d+("00000"+Math.abs(b)).slice(d?-6:-4)+"-"+g(a.getUTCMonth()+1)+"-"+g(a.getUTCDate())+"T"+g(a.getUTCHours())+":"+g(a.getUTCMinutes())+":"+g(a.getUTCSeconds())+"."+(c>99?c:"0"+g(c))+"Z"}})},{"./_export":34,"./_fails":36}],145:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-object"),f=a("./_to-primitive");d(d.P+d.F*a("./_fails")(function(){return null!==new Date(0/0).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(a){var b=e(this),c=f(b);return"number"!=typeof c||isFinite(c)?b.toISOString():null}})},{"./_export":34,"./_fails":36,"./_to-object":111,"./_to-primitive":112}],146:[function(a,b,c){var d=a("./_wks")("toPrimitive"),e=Date.prototype;d in e||a("./_hide")(e,d,a("./_date-to-primitive"))},{"./_date-to-primitive":28,"./_hide":42,"./_wks":119}],147:[function(a,b,c){var d=Date.prototype,e=d.toString,f=d.getTime;new Date(0/0)+""!="Invalid Date"&&a("./_redefine")(d,"toString",function(){var a=f.call(this);return a===a?e.call(this):"Invalid Date"})},{"./_redefine":89}],148:[function(a,b,c){var d=a("./_export");d(d.P,"Function",{bind:a("./_bind")})},{"./_bind":18,"./_export":34}],149:[function(a,b,c){"use strict";var d=a("./_is-object"),e=a("./_object-gpo"),f=a("./_wks")("hasInstance"),g=Function.prototype;f in g||a("./_object-dp").f(g,f,{value:function(a){if("function"!=typeof this||!d(a))return!1;if(!d(this.prototype))return a instanceof this;for(;a=e(a);)if(this.prototype===a)return!0;return!1}})},{"./_is-object":51,"./_object-dp":69,"./_object-gpo":76,"./_wks":119}],150:[function(a,b,c){var d=a("./_object-dp").f,e=a("./_property-desc"),f=a("./_has"),g=Function.prototype,h=Object.isExtensible||function(){return!0};"name"in g||a("./_descriptors")&&d(g,"name",{configurable:!0,get:function(){try{var a=this,b=(""+a).match(/^\s*function ([^ (]*)/)[1];return f(a,"name")||!h(a)||d(a,"name",e(5,b)),b}catch(a){return""}}})},{"./_descriptors":30,"./_has":41,"./_object-dp":69,"./_property-desc":87}],151:[function(a,b,c){"use strict";var d=a("./_collection-strong");b.exports=a("./_collection")("Map",function(a){return function(){return a(this,arguments.length>0?arguments[0]:void 0)}},{get:function(a){var b=d.getEntry(this,a);return b&&b.v},set:function(a,b){return d.def(this,0===a?0:a,b)}},d,!0)},{"./_collection":24,"./_collection-strong":21}],152:[function(a,b,c){var d=a("./_export"),e=a("./_math-log1p"),f=Math.sqrt,g=Math.acosh;d(d.S+d.F*!(g&&710==Math.floor(g(Number.MAX_VALUE))&&1/0==g(1/0)),"Math",{acosh:function(a){return(a=+a)<1?0/0:a>94906265.62425156?Math.log(a)+Math.LN2:e(a-1+f(a-1)*f(a+1))}})},{"./_export":34,"./_math-log1p":62}],153:[function(a,b,c){function d(a){return isFinite(a=+a)&&0!=a?a<0?-d(-a):Math.log(a+Math.sqrt(a*a+1)):a}var e=a("./_export"),f=Math.asinh;e(e.S+e.F*!(f&&1/f(0)>0),"Math",{asinh:d})},{"./_export":34}],154:[function(a,b,c){var d=a("./_export"),e=Math.atanh;d(d.S+d.F*!(e&&1/e(-0)<0),"Math",{atanh:function(a){return 0==(a=+a)?a:Math.log((1+a)/(1-a))/2}})},{"./_export":34}],155:[function(a,b,c){var d=a("./_export"),e=a("./_math-sign");d(d.S,"Math",{cbrt:function(a){return e(a=+a)*Math.pow(Math.abs(a),1/3)}})},{"./_export":34,"./_math-sign":63}],156:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{clz32:function(a){return(a>>>=0)?31-Math.floor(Math.log(a+.5)*Math.LOG2E):32}})},{"./_export":34}],157:[function(a,b,c){var d=a("./_export"),e=Math.exp;d(d.S,"Math",{cosh:function(a){return(e(a=+a)+e(-a))/2}})},{"./_export":34}],158:[function(a,b,c){var d=a("./_export"),e=a("./_math-expm1");d(d.S+d.F*(e!=Math.expm1),"Math",{expm1:e})},{"./_export":34,"./_math-expm1":61}],159:[function(a,b,c){var d=a("./_export"),e=a("./_math-sign"),f=Math.pow,g=f(2,-52),h=f(2,-23),i=f(2,127)*(2-h),j=f(2,-126),k=function(a){return a+1/g-1/g};d(d.S,"Math",{fround:function(a){var b,c,d=Math.abs(a),f=e(a);return di||c!=c?1/0*f:f*c)}})},{"./_export":34,"./_math-sign":63}],160:[function(a,b,c){var d=a("./_export"),e=Math.abs;d(d.S,"Math",{hypot:function(a,b){for(var c,d,f=0,g=0,h=arguments.length,i=0;g0?(d=c/i,f+=d*d):f+=c;return 1/0===i?1/0:i*Math.sqrt(f)}})},{"./_export":34}],161:[function(a,b,c){var d=a("./_export"),e=Math.imul;d(d.S+d.F*a("./_fails")(function(){return e(4294967295,5)!=-5||2!=e.length}),"Math",{imul:function(a,b){var c=+a,d=+b,e=65535&c,f=65535&d;return 0|e*f+((65535&c>>>16)*f+e*(65535&d>>>16)<<16>>>0)}})},{"./_export":34,"./_fails":36}],162:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{log10:function(a){return Math.log(a)/Math.LN10}})},{"./_export":34}],163:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{log1p:a("./_math-log1p")})},{"./_export":34,"./_math-log1p":62}],164:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{log2:function(a){return Math.log(a)/Math.LN2}})},{"./_export":34}],165:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{sign:a("./_math-sign")})},{"./_export":34,"./_math-sign":63}],166:[function(a,b,c){var d=a("./_export"),e=a("./_math-expm1"),f=Math.exp;d(d.S+d.F*a("./_fails")(function(){return!Math.sinh(-2e-17)!=-2e-17}),"Math",{sinh:function(a){return Math.abs(a=+a)<1?(e(a)-e(-a))/2:(f(a-1)-f(-a-1))*(Math.E/2)}})},{"./_export":34,"./_fails":36,"./_math-expm1":61}],167:[function(a,b,c){var d=a("./_export"),e=a("./_math-expm1"),f=Math.exp;d(d.S,"Math",{tanh:function(a){var b=e(a=+a),c=e(-a);return 1/0==b?1:1/0==c?-1:(b-c)/(f(a)+f(-a))}})},{"./_export":34,"./_math-expm1":61}],168:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{trunc:function(a){return(a>0?Math.floor:Math.ceil)(a)}})},{"./_export":34}],169:[function(a,b,c){"use strict";var d=a("./_global"),e=a("./_has"),f=a("./_cof"),g=a("./_inherit-if-required"),h=a("./_to-primitive"),i=a("./_fails"),j=a("./_object-gopn").f,k=a("./_object-gopd").f,l=a("./_object-dp").f,m=a("./_string-trim").trim,n=d.Number,o=n,p=n.prototype,q="Number"==f(a("./_object-create")(p)),r="trim"in String.prototype,s=function(a){var b=h(a,!1);if("string"==typeof b&&b.length>2){b=r?b.trim():m(b,3);var c,d,e,f=b.charCodeAt(0);if(43===f||45===f){if(88===(c=b.charCodeAt(2))||120===c)return 0/0}else if(48===f){switch(b.charCodeAt(1)){case 66:case 98:d=2,e=49;break;case 79:case 111:d=8,e=55;break;default:return+b}for(var g,i=b.slice(2),j=0,k=i.length;je)return 0/0;return parseInt(i,d)}}return+b};if(!n(" 0o1")||!n("0b1")||n("+0x1")){n=function(a){var b=arguments.length<1?0:a,c=this;return c instanceof n&&(q?i(function(){p.valueOf.call(c)}):"Number"!=f(c))?g(new o(s(b)),c,n):s(b)};for(var t,u=a("./_descriptors")?j(o):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),v=0;u.length>v;v++)e(o,t=u[v])&&!e(n,t)&&l(n,t,k(o,t));n.prototype=p,p.constructor=n,a("./_redefine")(d,"Number",n)}},{"./_cof":20,"./_descriptors":30,"./_fails":36,"./_global":40,"./_has":41,"./_inherit-if-required":45,"./_object-create":68,"./_object-dp":69,"./_object-gopd":72,"./_object-gopn":74,"./_redefine":89,"./_string-trim":104,"./_to-primitive":112}],170:[function(a,b,c){var d=a("./_export");d(d.S,"Number",{EPSILON:Math.pow(2,-52)})},{"./_export":34}],171:[function(a,b,c){ var d=a("./_export"),e=a("./_global").isFinite;d(d.S,"Number",{isFinite:function(a){return"number"==typeof a&&e(a)}})},{"./_export":34,"./_global":40}],172:[function(a,b,c){var d=a("./_export");d(d.S,"Number",{isInteger:a("./_is-integer")})},{"./_export":34,"./_is-integer":50}],173:[function(a,b,c){var d=a("./_export");d(d.S,"Number",{isNaN:function(a){return a!=a}})},{"./_export":34}],174:[function(a,b,c){var d=a("./_export"),e=a("./_is-integer"),f=Math.abs;d(d.S,"Number",{isSafeInteger:function(a){return e(a)&&f(a)<=9007199254740991}})},{"./_export":34,"./_is-integer":50}],175:[function(a,b,c){var d=a("./_export");d(d.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},{"./_export":34}],176:[function(a,b,c){var d=a("./_export");d(d.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},{"./_export":34}],177:[function(a,b,c){var d=a("./_export"),e=a("./_parse-float");d(d.S+d.F*(Number.parseFloat!=e),"Number",{parseFloat:e})},{"./_export":34,"./_parse-float":83}],178:[function(a,b,c){var d=a("./_export"),e=a("./_parse-int");d(d.S+d.F*(Number.parseInt!=e),"Number",{parseInt:e})},{"./_export":34,"./_parse-int":84}],179:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-integer"),f=a("./_a-number-value"),g=a("./_string-repeat"),h=1..toFixed,i=Math.floor,j=[0,0,0,0,0,0],k="Number.toFixed: incorrect invocation!",l=function(a,b){for(var c=-1,d=b;++c<6;)d+=a*j[c],j[c]=d%1e7,d=i(d/1e7)},m=function(a){for(var b=6,c=0;--b>=0;)c+=j[b],j[b]=i(c/a),c=c%a*1e7},n=function(){for(var a=6,b="";--a>=0;)if(""!==b||0===a||0!==j[a]){var c=String(j[a]);b=""===b?c:b+g.call("0",7-c.length)+c}return b},o=function(a,b,c){return 0===b?c:b%2==1?o(a,b-1,c*a):o(a*a,b/2,c)},p=function(a){for(var b=0,c=a;c>=4096;)b+=12,c/=4096;for(;c>=2;)b+=1,c/=2;return b};d(d.P+d.F*(!!h&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!a("./_fails")(function(){h.call({})})),"Number",{toFixed:function(a){var b,c,d,h,i=f(this,k),j=e(a),q="",r="0";if(j<0||j>20)throw RangeError(k);if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return String(i);if(i<0&&(q="-",i=-i),i>1e-21)if(b=p(i*o(2,69,1))-69,c=b<0?i*o(2,-b,1):i/o(2,b,1),c*=4503599627370496,(b=52-b)>0){for(l(0,c),d=j;d>=7;)l(1e7,0),d-=7;for(l(o(10,d,1),0),d=b-1;d>=23;)m(1<<23),d-=23;m(1<0?(h=r.length,r=q+(h<=j?"0."+g.call("0",j-h)+r:r.slice(0,h-j)+"."+r.slice(h-j))):r=q+r,r}})},{"./_a-number-value":6,"./_export":34,"./_fails":36,"./_string-repeat":103,"./_to-integer":108}],180:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_fails"),f=a("./_a-number-value"),g=1..toPrecision;d(d.P+d.F*(e(function(){return"1"!==g.call(1,void 0)})||!e(function(){g.call({})})),"Number",{toPrecision:function(a){var b=f(this,"Number#toPrecision: incorrect invocation!");return void 0===a?g.call(b):g.call(b,a)}})},{"./_a-number-value":6,"./_export":34,"./_fails":36}],181:[function(a,b,c){var d=a("./_export");d(d.S+d.F,"Object",{assign:a("./_object-assign")})},{"./_export":34,"./_object-assign":67}],182:[function(a,b,c){var d=a("./_export");d(d.S,"Object",{create:a("./_object-create")})},{"./_export":34,"./_object-create":68}],183:[function(a,b,c){var d=a("./_export");d(d.S+d.F*!a("./_descriptors"),"Object",{defineProperties:a("./_object-dps")})},{"./_descriptors":30,"./_export":34,"./_object-dps":70}],184:[function(a,b,c){var d=a("./_export");d(d.S+d.F*!a("./_descriptors"),"Object",{defineProperty:a("./_object-dp").f})},{"./_descriptors":30,"./_export":34,"./_object-dp":69}],185:[function(a,b,c){var d=a("./_is-object"),e=a("./_meta").onFreeze;a("./_object-sap")("freeze",function(a){return function(b){return a&&d(b)?a(e(b)):b}})},{"./_is-object":51,"./_meta":64,"./_object-sap":80}],186:[function(a,b,c){var d=a("./_to-iobject"),e=a("./_object-gopd").f;a("./_object-sap")("getOwnPropertyDescriptor",function(){return function(a,b){return e(d(a),b)}})},{"./_object-gopd":72,"./_object-sap":80,"./_to-iobject":109}],187:[function(a,b,c){a("./_object-sap")("getOwnPropertyNames",function(){return a("./_object-gopn-ext").f})},{"./_object-gopn-ext":73,"./_object-sap":80}],188:[function(a,b,c){var d=a("./_to-object"),e=a("./_object-gpo");a("./_object-sap")("getPrototypeOf",function(){return function(a){return e(d(a))}})},{"./_object-gpo":76,"./_object-sap":80,"./_to-object":111}],189:[function(a,b,c){var d=a("./_is-object");a("./_object-sap")("isExtensible",function(a){return function(b){return!!d(b)&&(!a||a(b))}})},{"./_is-object":51,"./_object-sap":80}],190:[function(a,b,c){var d=a("./_is-object");a("./_object-sap")("isFrozen",function(a){return function(b){return!d(b)||!!a&&a(b)}})},{"./_is-object":51,"./_object-sap":80}],191:[function(a,b,c){var d=a("./_is-object");a("./_object-sap")("isSealed",function(a){return function(b){return!d(b)||!!a&&a(b)}})},{"./_is-object":51,"./_object-sap":80}],192:[function(a,b,c){var d=a("./_export");d(d.S,"Object",{is:a("./_same-value")})},{"./_export":34,"./_same-value":91}],193:[function(a,b,c){var d=a("./_to-object"),e=a("./_object-keys");a("./_object-sap")("keys",function(){return function(a){return e(d(a))}})},{"./_object-keys":78,"./_object-sap":80,"./_to-object":111}],194:[function(a,b,c){var d=a("./_is-object"),e=a("./_meta").onFreeze;a("./_object-sap")("preventExtensions",function(a){return function(b){return a&&d(b)?a(e(b)):b}})},{"./_is-object":51,"./_meta":64,"./_object-sap":80}],195:[function(a,b,c){var d=a("./_is-object"),e=a("./_meta").onFreeze;a("./_object-sap")("seal",function(a){return function(b){return a&&d(b)?a(e(b)):b}})},{"./_is-object":51,"./_meta":64,"./_object-sap":80}],196:[function(a,b,c){var d=a("./_export");d(d.S,"Object",{setPrototypeOf:a("./_set-proto").set})},{"./_export":34,"./_set-proto":92}],197:[function(a,b,c){"use strict";var d=a("./_classof"),e={};e[a("./_wks")("toStringTag")]="z",e+""!="[object z]"&&a("./_redefine")(Object.prototype,"toString",function(){return"[object "+d(this)+"]"},!0)},{"./_classof":19,"./_redefine":89,"./_wks":119}],198:[function(a,b,c){var d=a("./_export"),e=a("./_parse-float");d(d.G+d.F*(parseFloat!=e),{parseFloat:e})},{"./_export":34,"./_parse-float":83}],199:[function(a,b,c){var d=a("./_export"),e=a("./_parse-int");d(d.G+d.F*(parseInt!=e),{parseInt:e})},{"./_export":34,"./_parse-int":84}],200:[function(a,b,c){"use strict";var d,e,f,g=a("./_library"),h=a("./_global"),i=a("./_ctx"),j=a("./_classof"),k=a("./_export"),l=a("./_is-object"),m=a("./_a-function"),n=a("./_an-instance"),o=a("./_for-of"),p=a("./_species-constructor"),q=a("./_task").set,r=a("./_microtask")(),s=h.TypeError,t=h.process,u=h.Promise,t=h.process,v="process"==j(t),w=function(){},x=!!function(){try{var b=u.resolve(1),c=(b.constructor={})[a("./_wks")("species")]=function(a){a(w,w)};return(v||"function"==typeof PromiseRejectionEvent)&&b.then(w)instanceof c}catch(a){}}(),y=function(a,b){return a===b||a===u&&b===f},z=function(a){var b;return!(!l(a)||"function"!=typeof(b=a.then))&&b},A=function(a){return y(u,a)?new B(a):new e(a)},B=e=function(a){var b,c;this.promise=new a(function(a,d){if(void 0!==b||void 0!==c)throw s("Bad Promise constructor");b=a,c=d}),this.resolve=m(b),this.reject=m(c)},C=function(a){try{a()}catch(a){return{error:a}}},D=function(a,b){if(!a._n){a._n=!0;var c=a._c;r(function(){for(var d=a._v,e=1==a._s,f=0;c.length>f;)!function(b){var c,f,g=e?b.ok:b.fail,h=b.resolve,i=b.reject,j=b.domain;try{g?(e||(2==a._h&&G(a),a._h=1),g===!0?c=d:(j&&j.enter(),c=g(d),j&&j.exit()),c===b.promise?i(s("Promise-chain cycle")):(f=z(c))?f.call(c,h,i):h(c)):i(d)}catch(a){i(a)}}(c[f++]);a._c=[],a._n=!1,b&&!a._h&&E(a)})}},E=function(a){q.call(h,function(){var b,c,d,e=a._v;if(F(a)&&(b=C(function(){v?t.emit("unhandledRejection",e,a):(c=h.onunhandledrejection)?c({promise:a,reason:e}):(d=h.console)&&d.error&&d.error("Unhandled promise rejection",e)}),a._h=v||F(a)?2:1),a._a=void 0,b)throw b.error})},F=function(a){if(1==a._h)return!1;for(var b,c=a._a||a._c,d=0;c.length>d;)if(b=c[d++],b.fail||!F(b.promise))return!1;return!0},G=function(a){q.call(h,function(){var b;v?t.emit("rejectionHandled",a):(b=h.onrejectionhandled)&&b({promise:a,reason:a._v})})},H=function(a){var b=this;b._d||(b._d=!0,b=b._w||b,b._v=a,b._s=2,b._a||(b._a=b._c.slice()),D(b,!0))},I=function(a){var b,c=this;if(!c._d){c._d=!0,c=c._w||c;try{if(c===a)throw s("Promise can't be resolved itself");(b=z(a))?r(function(){var d={_w:c,_d:!1};try{b.call(a,i(I,d,1),i(H,d,1))}catch(a){H.call(d,a)}}):(c._v=a,c._s=1,D(c,!1))}catch(a){H.call({_w:c,_d:!1},a)}}};x||(u=function(a){n(this,u,"Promise","_h"),m(a),d.call(this);try{a(i(I,this,1),i(H,this,1))}catch(a){H.call(this,a)}},d=function(a){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},d.prototype=a("./_redefine-all")(u.prototype,{then:function(a,b){var c=A(p(this,u));return c.ok="function"!=typeof a||a,c.fail="function"==typeof b&&b,c.domain=v?t.domain:void 0,this._c.push(c),this._a&&this._a.push(c),this._s&&D(this,!1),c.promise},catch:function(a){return this.then(void 0,a)}}),B=function(){var a=new d;this.promise=a,this.resolve=i(I,a,1),this.reject=i(H,a,1)}),k(k.G+k.W+k.F*!x,{Promise:u}),a("./_set-to-string-tag")(u,"Promise"),a("./_set-species")("Promise"),f=a("./_core").Promise,k(k.S+k.F*!x,"Promise",{reject:function(a){var b=A(this);return(0,b.reject)(a),b.promise}}),k(k.S+k.F*(g||!x),"Promise",{resolve:function(a){if(a instanceof u&&y(a.constructor,this))return a;var b=A(this);return(0,b.resolve)(a),b.promise}}),k(k.S+k.F*!(x&&a("./_iter-detect")(function(a){u.all(a).catch(w)})),"Promise",{all:function(a){var b=this,c=A(b),d=c.resolve,e=c.reject,f=C(function(){var c=[],f=0,g=1;o(a,!1,function(a){var h=f++,i=!1;c.push(void 0),g++,b.resolve(a).then(function(a){i||(i=!0,c[h]=a,--g||d(c))},e)}),--g||d(c)});return f&&e(f.error),c.promise},race:function(a){var b=this,c=A(b),d=c.reject,e=C(function(){o(a,!1,function(a){b.resolve(a).then(c.resolve,d)})});return e&&d(e.error),c.promise}})},{"./_a-function":5,"./_an-instance":8,"./_classof":19,"./_core":25,"./_ctx":27,"./_export":34,"./_for-of":39,"./_global":40,"./_is-object":51,"./_iter-detect":56,"./_library":60,"./_microtask":66,"./_redefine-all":88,"./_set-species":93,"./_set-to-string-tag":94,"./_species-constructor":97,"./_task":106,"./_wks":119}],201:[function(a,b,c){var d=a("./_export"),e=a("./_a-function"),f=a("./_an-object"),g=(a("./_global").Reflect||{}).apply,h=Function.apply;d(d.S+d.F*!a("./_fails")(function(){g(function(){})}),"Reflect",{apply:function(a,b,c){var d=e(a),i=f(c);return g?g(d,b,i):h.call(d,b,i)}})},{"./_a-function":5,"./_an-object":9,"./_export":34,"./_fails":36,"./_global":40}],202:[function(a,b,c){var d=a("./_export"),e=a("./_object-create"),f=a("./_a-function"),g=a("./_an-object"),h=a("./_is-object"),i=a("./_fails"),j=a("./_bind"),k=(a("./_global").Reflect||{}).construct,l=i(function(){function a(){}return!(k(function(){},[],a)instanceof a)}),m=!i(function(){k(function(){})});d(d.S+d.F*(l||m),"Reflect",{construct:function(a,b){f(a),g(b);var c=arguments.length<3?a:f(arguments[2]);if(m&&!l)return k(a,b,c);if(a==c){switch(b.length){case 0:return new a;case 1:return new a(b[0]);case 2:return new a(b[0],b[1]);case 3:return new a(b[0],b[1],b[2]);case 4:return new a(b[0],b[1],b[2],b[3])}var d=[null];return d.push.apply(d,b),new(j.apply(a,d))}var i=c.prototype,n=e(h(i)?i:Object.prototype),o=Function.apply.call(a,n,b);return h(o)?o:n}})},{"./_a-function":5,"./_an-object":9,"./_bind":18,"./_export":34,"./_fails":36,"./_global":40,"./_is-object":51,"./_object-create":68}],203:[function(a,b,c){var d=a("./_object-dp"),e=a("./_export"),f=a("./_an-object"),g=a("./_to-primitive");e(e.S+e.F*a("./_fails")(function(){Reflect.defineProperty(d.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(a,b,c){f(a),b=g(b,!0),f(c);try{return d.f(a,b,c),!0}catch(a){return!1}}})},{"./_an-object":9,"./_export":34,"./_fails":36,"./_object-dp":69,"./_to-primitive":112}],204:[function(a,b,c){var d=a("./_export"),e=a("./_object-gopd").f,f=a("./_an-object");d(d.S,"Reflect",{deleteProperty:function(a,b){var c=e(f(a),b);return!(c&&!c.configurable)&&delete a[b]}})},{"./_an-object":9,"./_export":34,"./_object-gopd":72}],205:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_an-object"),f=function(a){this._t=e(a),this._i=0;var b,c=this._k=[];for(b in a)c.push(b)};a("./_iter-create")(f,"Object",function(){var a,b=this,c=b._k;do{if(b._i>=c.length)return{value:void 0,done:!0}}while(!((a=c[b._i++])in b._t));return{value:a,done:!1}}),d(d.S,"Reflect",{enumerate:function(a){return new f(a)}})},{"./_an-object":9,"./_export":34,"./_iter-create":54}],206:[function(a,b,c){var d=a("./_object-gopd"),e=a("./_export"),f=a("./_an-object");e(e.S,"Reflect",{getOwnPropertyDescriptor:function(a,b){return d.f(f(a),b)}})},{"./_an-object":9,"./_export":34,"./_object-gopd":72}],207:[function(a,b,c){var d=a("./_export"),e=a("./_object-gpo"),f=a("./_an-object");d(d.S,"Reflect",{getPrototypeOf:function(a){return e(f(a))}})},{"./_an-object":9,"./_export":34,"./_object-gpo":76}],208:[function(a,b,c){function d(a,b){var c,h,k=arguments.length<3?a:arguments[2];return j(a)===k?a[b]:(c=e.f(a,b))?g(c,"value")?c.value:void 0!==c.get?c.get.call(k):void 0:i(h=f(a))?d(h,b,k):void 0}var e=a("./_object-gopd"),f=a("./_object-gpo"),g=a("./_has"),h=a("./_export"),i=a("./_is-object"),j=a("./_an-object");h(h.S,"Reflect",{get:d})},{"./_an-object":9,"./_export":34,"./_has":41,"./_is-object":51,"./_object-gopd":72,"./_object-gpo":76}],209:[function(a,b,c){var d=a("./_export");d(d.S,"Reflect",{has:function(a,b){return b in a}})},{"./_export":34}],210:[function(a,b,c){var d=a("./_export"),e=a("./_an-object"),f=Object.isExtensible;d(d.S,"Reflect",{isExtensible:function(a){return e(a),!f||f(a)}})},{"./_an-object":9,"./_export":34}],211:[function(a,b,c){var d=a("./_export");d(d.S,"Reflect",{ownKeys:a("./_own-keys")})},{"./_export":34,"./_own-keys":82}],212:[function(a,b,c){var d=a("./_export"),e=a("./_an-object"),f=Object.preventExtensions;d(d.S,"Reflect",{preventExtensions:function(a){e(a);try{return f&&f(a),!0}catch(a){return!1}}})},{"./_an-object":9,"./_export":34}],213:[function(a,b,c){var d=a("./_export"),e=a("./_set-proto");e&&d(d.S,"Reflect",{setPrototypeOf:function(a,b){e.check(a,b);try{return e.set(a,b),!0}catch(a){return!1}}})},{"./_export":34,"./_set-proto":92}],214:[function(a,b,c){function d(a,b,c){var i,m,n=arguments.length<4?a:arguments[3],o=f.f(k(a),b);if(!o){if(l(m=g(a)))return d(m,b,c,n);o=j(0)}return h(o,"value")?!(o.writable===!1||!l(n))&&(i=f.f(n,b)||j(0),i.value=c,e.f(n,b,i),!0):void 0!==o.set&&(o.set.call(n,c),!0)}var e=a("./_object-dp"),f=a("./_object-gopd"),g=a("./_object-gpo"),h=a("./_has"),i=a("./_export"),j=a("./_property-desc"),k=a("./_an-object"),l=a("./_is-object");i(i.S,"Reflect",{set:d})},{"./_an-object":9,"./_export":34,"./_has":41,"./_is-object":51,"./_object-dp":69,"./_object-gopd":72,"./_object-gpo":76,"./_property-desc":87}],215:[function(a,b,c){var d=a("./_global"),e=a("./_inherit-if-required"),f=a("./_object-dp").f,g=a("./_object-gopn").f,h=a("./_is-regexp"),i=a("./_flags"),j=d.RegExp,k=j,l=j.prototype,m=/a/g,n=/a/g!==new j(/a/g);if(a("./_descriptors")&&(!n||a("./_fails")(function(){return m[a("./_wks")("match")]=!1,/a/g!=j(/a/g)||j(m)==m||"/a/i"!=j(/a/g,"i")}))){j=function(a,b){var c=this instanceof j,d=h(a),f=void 0===b;return!c&&d&&a.constructor===j&&f?a:e(n?new k(d&&!f?a.source:a,b):k((d=a instanceof j)?a.source:a,d&&f?i.call(a):b),c?this:l,j)};for(var o=g(k),p=0;o.length>p;)!function(a){a in j||f(j,a,{configurable:!0,get:function(){return k[a]},set:function(b){k[a]=b}})}(o[p++]);l.constructor=j,j.prototype=l,a("./_redefine")(d,"RegExp",j)}a("./_set-species")("RegExp")},{"./_descriptors":30,"./_fails":36,"./_flags":38,"./_global":40,"./_inherit-if-required":45,"./_is-regexp":52,"./_object-dp":69,"./_object-gopn":74,"./_redefine":89,"./_set-species":93,"./_wks":119}],216:[function(a,b,c){a("./_descriptors")&&"g"!=/./g.flags&&a("./_object-dp").f(RegExp.prototype,"flags",{configurable:!0,get:a("./_flags")})},{"./_descriptors":30,"./_flags":38,"./_object-dp":69}],217:[function(a,b,c){a("./_fix-re-wks")("match",1,function(a,b,c){return[function(c){"use strict";var d=a(this),e=void 0==c?void 0:c[b];return void 0!==e?e.call(c,d):new RegExp(c)[b](String(d))},c]})},{"./_fix-re-wks":37}],218:[function(a,b,c){a("./_fix-re-wks")("replace",2,function(a,b,c){return[function(d,e){"use strict";var f=a(this),g=void 0==d?void 0:d[b];return void 0!==g?g.call(d,f,e):c.call(String(f),d,e)},c]})},{"./_fix-re-wks":37}],219:[function(a,b,c){a("./_fix-re-wks")("search",1,function(a,b,c){return[function(c){"use strict";var d=a(this),e=void 0==c?void 0:c[b];return void 0!==e?e.call(c,d):new RegExp(c)[b](String(d))},c]})},{"./_fix-re-wks":37}],220:[function(a,b,c){a("./_fix-re-wks")("split",2,function(b,c,d){"use strict";var e=a("./_is-regexp"),f=d,g=[].push,h="length";if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[h]||2!="ab".split(/(?:ab)*/)[h]||4!=".".split(/(.?)(.?)/)[h]||".".split(/()()/)[h]>1||"".split(/.?/)[h]){var i=void 0===/()??/.exec("")[1];d=function(a,b){var c=String(this);if(void 0===a&&0===b)return[];if(!e(a))return f.call(c,a,b);var d,j,k,l,m,n=[],o=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(a.sticky?"y":""),p=0,q=void 0===b?4294967295:b>>>0,r=new RegExp(a.source,o+"g");for(i||(d=new RegExp("^"+r.source+"$(?!\\s)",o));(j=r.exec(c))&&!((k=j.index+j[0][h])>p&&(n.push(c.slice(p,j.index)),!i&&j[h]>1&&j[0].replace(d,function(){for(m=1;m1&&j.index=q));)r.lastIndex===j.index&&r.lastIndex++;return p===c[h]?!l&&r.test("")||n.push(""):n.push(c.slice(p)),n[h]>q?n.slice(0,q):n}}else"0".split(void 0,0)[h]&&(d=function(a,b){return void 0===a&&0===b?[]:f.call(this,a,b)});return[function(a,e){var f=b(this),g=void 0==a?void 0:a[c];return void 0!==g?g.call(a,f,e):d.call(String(f),a,e)},d]})},{"./_fix-re-wks":37,"./_is-regexp":52}],221:[function(a,b,c){"use strict";a("./es6.regexp.flags");var d=a("./_an-object"),e=a("./_flags"),f=a("./_descriptors"),g=/./.toString,h=function(b){a("./_redefine")(RegExp.prototype,"toString",b,!0)};a("./_fails")(function(){return"/a/b"!=g.call({source:"a",flags:"b"})})?h(function(){var a=d(this);return"/".concat(a.source,"/","flags"in a?a.flags:!f&&a instanceof RegExp?e.call(a):void 0)}):"toString"!=g.name&&h(function(){return g.call(this)})},{"./_an-object":9,"./_descriptors":30,"./_fails":36,"./_flags":38,"./_redefine":89,"./es6.regexp.flags":216}],222:[function(a,b,c){"use strict";var d=a("./_collection-strong");b.exports=a("./_collection")("Set",function(a){return function(){return a(this,arguments.length>0?arguments[0]:void 0)}},{add:function(a){return d.def(this,a=0===a?0:a,a)}},d)},{"./_collection":24,"./_collection-strong":21}],223:[function(a,b,c){"use strict";a("./_string-html")("anchor",function(a){return function(b){return a(this,"a","name",b)}})},{"./_string-html":101}],224:[function(a,b,c){"use strict";a("./_string-html")("big",function(a){return function(){return a(this,"big","","")}})},{"./_string-html":101}],225:[function(a,b,c){"use strict";a("./_string-html")("blink",function(a){return function(){return a(this,"blink","","")}})},{"./_string-html":101}],226:[function(a,b,c){"use strict";a("./_string-html")("bold",function(a){return function(){return a(this,"b","","")}})},{"./_string-html":101}],227:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_string-at")(!1);d(d.P,"String",{codePointAt:function(a){return e(this,a)}})},{"./_export":34,"./_string-at":99}],228:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-length"),f=a("./_string-context"),g="".endsWith;d(d.P+d.F*a("./_fails-is-regexp")("endsWith"),"String",{endsWith:function(a){var b=f(this,a,"endsWith"),c=arguments.length>1?arguments[1]:void 0,d=e(b.length),h=void 0===c?d:Math.min(e(c),d),i=String(a);return g?g.call(b,i,h):b.slice(h-i.length,h)===i}})},{"./_export":34,"./_fails-is-regexp":35,"./_string-context":100,"./_to-length":110}],229:[function(a,b,c){"use strict";a("./_string-html")("fixed",function(a){return function(){return a(this,"tt","","")}})},{"./_string-html":101}],230:[function(a,b,c){"use strict";a("./_string-html")("fontcolor",function(a){return function(b){return a(this,"font","color",b)}})},{"./_string-html":101}],231:[function(a,b,c){"use strict";a("./_string-html")("fontsize",function(a){return function(b){return a(this,"font","size",b)}})},{"./_string-html":101}],232:[function(a,b,c){var d=a("./_export"),e=a("./_to-index"),f=String.fromCharCode,g=String.fromCodePoint;d(d.S+d.F*(!!g&&1!=g.length),"String",{fromCodePoint:function(a){for(var b,c=[],d=arguments.length,g=0;d>g;){if(b=+arguments[g++],e(b,1114111)!==b)throw RangeError(b+" is not a valid code point");c.push(b<65536?f(b):f(55296+((b-=65536)>>10),b%1024+56320))}return c.join("")}})},{"./_export":34,"./_to-index":107}],233:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_string-context");d(d.P+d.F*a("./_fails-is-regexp")("includes"),"String",{includes:function(a){return!!~e(this,a,"includes").indexOf(a,arguments.length>1?arguments[1]:void 0)}})},{"./_export":34,"./_fails-is-regexp":35,"./_string-context":100}],234:[function(a,b,c){"use strict";a("./_string-html")("italics",function(a){return function(){return a(this,"i","","")}})},{"./_string-html":101}],235:[function(a,b,c){"use strict";var d=a("./_string-at")(!0);a("./_iter-define")(String,"String",function(a){this._t=String(a),this._i=0},function(){var a,b=this._t,c=this._i;return c>=b.length?{value:void 0,done:!0}:(a=d(b,c),this._i+=a.length,{value:a,done:!1})})},{"./_iter-define":55,"./_string-at":99}],236:[function(a,b,c){"use strict";a("./_string-html")("link",function(a){return function(b){return a(this,"a","href",b)}})},{"./_string-html":101}],237:[function(a,b,c){var d=a("./_export"),e=a("./_to-iobject"),f=a("./_to-length");d(d.S,"String",{raw:function(a){for(var b=e(a.raw),c=f(b.length),d=arguments.length,g=[],h=0;c>h;)g.push(String(b[h++])),h1?arguments[1]:void 0,b.length)),d=String(a);return g?g.call(b,d,c):b.slice(c,c+d.length)===d}})},{"./_export":34,"./_fails-is-regexp":35,"./_string-context":100,"./_to-length":110}],241:[function(a,b,c){"use strict";a("./_string-html")("strike",function(a){return function(){return a(this,"strike","","")}})},{"./_string-html":101}],242:[function(a,b,c){"use strict";a("./_string-html")("sub",function(a){return function(){return a(this,"sub","","")}})},{"./_string-html":101}],243:[function(a,b,c){"use strict";a("./_string-html")("sup",function(a){return function(){return a(this,"sup","","")}})},{"./_string-html":101}],244:[function(a,b,c){"use strict";a("./_string-trim")("trim",function(a){return function(){return a(this,3)}})},{"./_string-trim":104}],245:[function(a,b,c){"use strict";var d=a("./_global"),e=a("./_has"),f=a("./_descriptors"),g=a("./_export"),h=a("./_redefine"),i=a("./_meta").KEY,j=a("./_fails"),k=a("./_shared"),l=a("./_set-to-string-tag"),m=a("./_uid"),n=a("./_wks"),o=a("./_wks-ext"),p=a("./_wks-define"),q=a("./_keyof"),r=a("./_enum-keys"),s=a("./_is-array"),t=a("./_an-object"),u=a("./_to-iobject"),v=a("./_to-primitive"),w=a("./_property-desc"),x=a("./_object-create"),y=a("./_object-gopn-ext"),z=a("./_object-gopd"),A=a("./_object-dp"),B=a("./_object-keys"),C=z.f,D=A.f,E=y.f,F=d.Symbol,G=d.JSON,H=G&&G.stringify,I=n("_hidden"),J=n("toPrimitive"),K={}.propertyIsEnumerable,L=k("symbol-registry"),M=k("symbols"),N=k("op-symbols"),O=Object.prototype,P="function"==typeof F,Q=d.QObject,R=!Q||!Q.prototype||!Q.prototype.findChild,S=f&&j(function(){return 7!=x(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a})?function(a,b,c){var d=C(O,b);d&&delete O[b],D(a,b,c),d&&a!==O&&D(O,b,d)}:D,T=function(a){var b=M[a]=x(F.prototype);return b._k=a,b},U=P&&"symbol"==typeof F.iterator?function(a){return"symbol"==typeof a}:function(a){return a instanceof F},V=function(a,b,c){return a===O&&V(N,b,c),t(a),b=v(b,!0),t(c),e(M,b)?(c.enumerable?(e(a,I)&&a[I][b]&&(a[I][b]=!1),c=x(c,{enumerable:w(0,!1)})):(e(a,I)||D(a,I,w(1,{})),a[I][b]=!0),S(a,b,c)):D(a,b,c)},W=function(a,b){t(a);for(var c,d=r(b=u(b)),e=0,f=d.length;f>e;)V(a,c=d[e++],b[c]);return a},X=function(a,b){return void 0===b?x(a):W(x(a),b)},Y=function(a){var b=K.call(this,a=v(a,!0));return!(this===O&&e(M,a)&&!e(N,a))&&(!(b||!e(this,a)||!e(M,a)||e(this,I)&&this[I][a])||b)},Z=function(a,b){if(a=u(a),b=v(b,!0),a!==O||!e(M,b)||e(N,b)){var c=C(a,b);return!c||!e(M,b)||e(a,I)&&a[I][b]||(c.enumerable=!0),c}},$=function(a){for(var b,c=E(u(a)),d=[],f=0;c.length>f;)e(M,b=c[f++])||b==I||b==i||d.push(b);return d},_=function(a){for(var b,c=a===O,d=E(c?N:u(a)),f=[],g=0;d.length>g;)!e(M,b=d[g++])||c&&!e(O,b)||f.push(M[b]);return f};P||(F=function(){if(this instanceof F)throw TypeError("Symbol is not a constructor!");var a=m(arguments.length>0?arguments[0]:void 0),b=function(c){this===O&&b.call(N,c),e(this,I)&&e(this[I],a)&&(this[I][a]=!1),S(this,a,w(1,c))};return f&&R&&S(O,a,{configurable:!0,set:b}),T(a)},h(F.prototype,"toString",function(){return this._k}),z.f=Z,A.f=V,a("./_object-gopn").f=y.f=$,a("./_object-pie").f=Y,a("./_object-gops").f=_,f&&!a("./_library")&&h(O,"propertyIsEnumerable",Y,!0),o.f=function(a){return T(n(a))}),g(g.G+g.W+g.F*!P,{Symbol:F});for(var aa="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ba=0;aa.length>ba;)n(aa[ba++]);for(var aa=B(n.store),ba=0;aa.length>ba;)p(aa[ba++]);g(g.S+g.F*!P,"Symbol",{for:function(a){return e(L,a+="")?L[a]:L[a]=F(a)},keyFor:function(a){if(U(a))return q(L,a);throw TypeError(a+" is not a symbol!")},useSetter:function(){R=!0},useSimple:function(){R=!1}}),g(g.S+g.F*!P,"Object",{create:X,defineProperty:V,defineProperties:W,getOwnPropertyDescriptor:Z,getOwnPropertyNames:$,getOwnPropertySymbols:_}),G&&g(g.S+g.F*(!P||j(function(){var a=F();return"[null]"!=H([a])||"{}"!=H({a:a})||"{}"!=H(Object(a))})),"JSON",{stringify:function(a){if(void 0!==a&&!U(a)){for(var b,c,d=[a],e=1;arguments.length>e;)d.push(arguments[e++]);return b=d[1],"function"==typeof b&&(c=b),!c&&s(b)||(b=function(a,b){if(c&&(b=c.call(this,a,b)),!U(b))return b}),d[1]=b,H.apply(G,d)}}}),F.prototype[J]||a("./_hide")(F.prototype,J,F.prototype.valueOf),l(F,"Symbol"),l(Math,"Math",!0),l(d.JSON,"JSON",!0)},{"./_an-object":9,"./_descriptors":30,"./_enum-keys":33,"./_export":34,"./_fails":36,"./_global":40,"./_has":41,"./_hide":42,"./_is-array":49,"./_keyof":59,"./_library":60,"./_meta":64,"./_object-create":68,"./_object-dp":69,"./_object-gopd":72,"./_object-gopn":74,"./_object-gopn-ext":73,"./_object-gops":75,"./_object-keys":78,"./_object-pie":79,"./_property-desc":87,"./_redefine":89,"./_set-to-string-tag":94,"./_shared":96,"./_to-iobject":109,"./_to-primitive":112,"./_uid":116,"./_wks":119,"./_wks-define":117,"./_wks-ext":118}],246:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_typed"),f=a("./_typed-buffer"),g=a("./_an-object"),h=a("./_to-index"),i=a("./_to-length"),j=a("./_is-object"),k=a("./_global").ArrayBuffer,l=a("./_species-constructor"),m=f.ArrayBuffer,n=f.DataView,o=e.ABV&&k.isView,p=m.prototype.slice,q=e.VIEW;d(d.G+d.W+d.F*(k!==m),{ArrayBuffer:m}),d(d.S+d.F*!e.CONSTR,"ArrayBuffer",{isView:function(a){return o&&o(a)||j(a)&&q in a}}),d(d.P+d.U+d.F*a("./_fails")(function(){return!new m(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(a,b){if(void 0!==p&&void 0===b)return p.call(g(this),a);for(var c=g(this).byteLength,d=h(a,c),e=h(void 0===b?c:b,c),f=new(l(this,m))(i(e-d)),j=new n(this),k=new n(f),o=0;d0?arguments[0]:void 0)}},p={get:function(a){if(j(a)){var b=k(a);return b===!0?m(this).get(a):b?b[this._i]:void 0}},set:function(a,b){return i.def(this,a,b)}},q=b.exports=a("./_collection")("WeakMap",o,p,i,!0,!0);7!=(new q).set((Object.freeze||Object)(n),7).get(n)&&(d=i.getConstructor(o),h(d.prototype,p),g.NEED=!0,e(["delete","has","get","set"],function(a){var b=q.prototype,c=b[a];f(b,a,function(b,e){if(j(b)&&!l(b)){this._f||(this._f=new d);var f=this._f[a](b,e);return"set"==a?this:f}return c.call(this,b,e)})}))},{"./_array-methods":14,"./_collection":24,"./_collection-weak":23,"./_is-object":51,"./_meta":64,"./_object-assign":67,"./_redefine":89}],258:[function(a,b,c){"use strict";var d=a("./_collection-weak");a("./_collection")("WeakSet",function(a){return function(){return a(this,arguments.length>0?arguments[0]:void 0)}},{add:function(a){return d.def(this,a,!0)}},d,!1,!0)},{"./_collection":24,"./_collection-weak":23}],259:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-includes")(!0);d(d.P,"Array",{includes:function(a){return e(this,a,arguments.length>1?arguments[1]:void 0)}}),a("./_add-to-unscopables")("includes")},{"./_add-to-unscopables":7,"./_array-includes":13,"./_export":34}],260:[function(a,b,c){var d=a("./_export"),e=a("./_microtask")(),f=a("./_global").process,g="process"==a("./_cof")(f);d(d.G,{asap:function(a){var b=g&&f.domain;e(b?b.bind(a):a)}})},{"./_cof":20,"./_export":34,"./_global":40,"./_microtask":66}],261:[function(a,b,c){var d=a("./_export"),e=a("./_cof");d(d.S,"Error",{isError:function(a){return"Error"===e(a)}})},{"./_cof":20,"./_export":34}],262:[function(a,b,c){var d=a("./_export");d(d.P+d.R,"Map",{toJSON:a("./_collection-to-json")("Map")})},{ "./_collection-to-json":22,"./_export":34}],263:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{iaddh:function(a,b,c,d){var e=a>>>0,f=b>>>0,g=c>>>0;return f+(d>>>0)+((e&g|(e|g)&~(e+g>>>0))>>>31)|0}})},{"./_export":34}],264:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{imulh:function(a,b){var c=+a,d=+b,e=65535&c,f=65535&d,g=c>>16,h=d>>16,i=(g*f>>>0)+(e*f>>>16);return g*h+(i>>16)+((e*h>>>0)+(65535&i)>>16)}})},{"./_export":34}],265:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{isubh:function(a,b,c,d){var e=a>>>0,f=b>>>0,g=c>>>0;return f-(d>>>0)-((~e&g|~(e^g)&e-g>>>0)>>>31)|0}})},{"./_export":34}],266:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{umulh:function(a,b){var c=+a,d=+b,e=65535&c,f=65535&d,g=c>>>16,h=d>>>16,i=(g*f>>>0)+(e*f>>>16);return g*h+(i>>>16)+((e*h>>>0)+(65535&i)>>>16)}})},{"./_export":34}],267:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-object"),f=a("./_a-function"),g=a("./_object-dp");a("./_descriptors")&&d(d.P+a("./_object-forced-pam"),"Object",{__defineGetter__:function(a,b){g.f(e(this),a,{get:f(b),enumerable:!0,configurable:!0})}})},{"./_a-function":5,"./_descriptors":30,"./_export":34,"./_object-dp":69,"./_object-forced-pam":71,"./_to-object":111}],268:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-object"),f=a("./_a-function"),g=a("./_object-dp");a("./_descriptors")&&d(d.P+a("./_object-forced-pam"),"Object",{__defineSetter__:function(a,b){g.f(e(this),a,{set:f(b),enumerable:!0,configurable:!0})}})},{"./_a-function":5,"./_descriptors":30,"./_export":34,"./_object-dp":69,"./_object-forced-pam":71,"./_to-object":111}],269:[function(a,b,c){var d=a("./_export"),e=a("./_object-to-array")(!0);d(d.S,"Object",{entries:function(a){return e(a)}})},{"./_export":34,"./_object-to-array":81}],270:[function(a,b,c){var d=a("./_export"),e=a("./_own-keys"),f=a("./_to-iobject"),g=a("./_object-gopd"),h=a("./_create-property");d(d.S,"Object",{getOwnPropertyDescriptors:function(a){for(var b,c=f(a),d=g.f,i=e(c),j={},k=0;i.length>k;)h(j,b=i[k++],d(c,b));return j}})},{"./_create-property":26,"./_export":34,"./_object-gopd":72,"./_own-keys":82,"./_to-iobject":109}],271:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-object"),f=a("./_to-primitive"),g=a("./_object-gpo"),h=a("./_object-gopd").f;a("./_descriptors")&&d(d.P+a("./_object-forced-pam"),"Object",{__lookupGetter__:function(a){var b,c=e(this),d=f(a,!0);do{if(b=h(c,d))return b.get}while(c=g(c))}})},{"./_descriptors":30,"./_export":34,"./_object-forced-pam":71,"./_object-gopd":72,"./_object-gpo":76,"./_to-object":111,"./_to-primitive":112}],272:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-object"),f=a("./_to-primitive"),g=a("./_object-gpo"),h=a("./_object-gopd").f;a("./_descriptors")&&d(d.P+a("./_object-forced-pam"),"Object",{__lookupSetter__:function(a){var b,c=e(this),d=f(a,!0);do{if(b=h(c,d))return b.set}while(c=g(c))}})},{"./_descriptors":30,"./_export":34,"./_object-forced-pam":71,"./_object-gopd":72,"./_object-gpo":76,"./_to-object":111,"./_to-primitive":112}],273:[function(a,b,c){var d=a("./_export"),e=a("./_object-to-array")(!1);d(d.S,"Object",{values:function(a){return e(a)}})},{"./_export":34,"./_object-to-array":81}],274:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_global"),f=a("./_core"),g=a("./_microtask")(),h=a("./_wks")("observable"),i=a("./_a-function"),j=a("./_an-object"),k=a("./_an-instance"),l=a("./_redefine-all"),m=a("./_hide"),n=a("./_for-of"),o=n.RETURN,p=function(a){return null==a?void 0:i(a)},q=function(a){var b=a._c;b&&(a._c=void 0,b())},r=function(a){return void 0===a._o},s=function(a){r(a)||(a._o=void 0,q(a))},t=function(a,b){j(a),this._c=void 0,this._o=a,a=new u(this);try{var c=b(a),d=c;null!=c&&("function"==typeof c.unsubscribe?c=function(){d.unsubscribe()}:i(c),this._c=c)}catch(b){return void a.error(b)}r(this)&&q(this)};t.prototype=l({},{unsubscribe:function(){s(this)}});var u=function(a){this._s=a};u.prototype=l({},{next:function(a){var b=this._s;if(!r(b)){var c=b._o;try{var d=p(c.next);if(d)return d.call(c,a)}catch(a){try{s(b)}finally{throw a}}}},error:function(a){var b=this._s;if(r(b))throw a;var c=b._o;b._o=void 0;try{var d=p(c.error);if(!d)throw a;a=d.call(c,a)}catch(a){try{q(b)}finally{throw a}}return q(b),a},complete:function(a){var b=this._s;if(!r(b)){var c=b._o;b._o=void 0;try{var d=p(c.complete);a=d?d.call(c,a):void 0}catch(a){try{q(b)}finally{throw a}}return q(b),a}}});var v=function(a){k(this,v,"Observable","_f")._f=i(a)};l(v.prototype,{subscribe:function(a){return new t(a,this._f)},forEach:function(a){var b=this;return new(f.Promise||e.Promise)(function(c,d){i(a);var e=b.subscribe({next:function(b){try{return a(b)}catch(a){d(a),e.unsubscribe()}},error:d,complete:c})})}}),l(v,{from:function(a){var b="function"==typeof this?this:v,c=p(j(a)[h]);if(c){var d=j(c.call(a));return d.constructor===b?d:new b(function(a){return d.subscribe(a)})}return new b(function(b){var c=!1;return g(function(){if(!c){try{if(n(a,!1,function(a){if(b.next(a),c)return o})===o)return}catch(a){if(c)throw a;return void b.error(a)}b.complete()}}),function(){c=!0}})},of:function(){for(var a=0,b=arguments.length,c=Array(b);a1?arguments[1]:void 0,!1)}})},{"./_export":34,"./_string-pad":102}],288:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_string-pad");d(d.P,"String",{padStart:function(a){return e(this,a,arguments.length>1?arguments[1]:void 0,!0)}})},{"./_export":34,"./_string-pad":102}],289:[function(a,b,c){"use strict";a("./_string-trim")("trimLeft",function(a){return function(){return a(this,1)}},"trimStart")},{"./_string-trim":104}],290:[function(a,b,c){"use strict";a("./_string-trim")("trimRight",function(a){return function(){return a(this,2)}},"trimEnd")},{"./_string-trim":104}],291:[function(a,b,c){a("./_wks-define")("asyncIterator")},{"./_wks-define":117}],292:[function(a,b,c){a("./_wks-define")("observable")},{"./_wks-define":117}],293:[function(a,b,c){var d=a("./_export");d(d.S,"System",{global:a("./_global")})},{"./_export":34,"./_global":40}],294:[function(a,b,c){for(var d=a("./es6.array.iterator"),e=a("./_redefine"),f=a("./_global"),g=a("./_hide"),h=a("./_iterators"),i=a("./_wks"),j=i("iterator"),k=i("toStringTag"),l=h.Array,m=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],n=0;n<5;n++){var o,p=m[n],q=f[p],r=q&&q.prototype;if(r){r[j]||g(r,j,l),r[k]||g(r,k,p),h[p]=l;for(o in d)r[o]||e(r,o,d[o],!0)}}},{"./_global":40,"./_hide":42,"./_iterators":58,"./_redefine":89,"./_wks":119,"./es6.array.iterator":132}],295:[function(a,b,c){var d=a("./_export"),e=a("./_task");d(d.G+d.B,{setImmediate:e.set,clearImmediate:e.clear})},{"./_export":34,"./_task":106}],296:[function(a,b,c){var d=a("./_global"),e=a("./_export"),f=a("./_invoke"),g=a("./_partial"),h=d.navigator,i=!!h&&/MSIE .\./.test(h.userAgent),j=function(a){return i?function(b,c){return a(f(g,[].slice.call(arguments,2),"function"==typeof b?b:Function(b)),c)}:a};e(e.G+e.B+e.F*i,{setTimeout:j(d.setTimeout),setInterval:j(d.setInterval)})},{"./_export":34,"./_global":40,"./_invoke":46,"./_partial":85}],297:[function(a,b,c){a("./modules/es6.symbol"),a("./modules/es6.object.create"),a("./modules/es6.object.define-property"),a("./modules/es6.object.define-properties"),a("./modules/es6.object.get-own-property-descriptor"),a("./modules/es6.object.get-prototype-of"),a("./modules/es6.object.keys"),a("./modules/es6.object.get-own-property-names"),a("./modules/es6.object.freeze"),a("./modules/es6.object.seal"),a("./modules/es6.object.prevent-extensions"),a("./modules/es6.object.is-frozen"),a("./modules/es6.object.is-sealed"),a("./modules/es6.object.is-extensible"),a("./modules/es6.object.assign"),a("./modules/es6.object.is"),a("./modules/es6.object.set-prototype-of"),a("./modules/es6.object.to-string"),a("./modules/es6.function.bind"),a("./modules/es6.function.name"),a("./modules/es6.function.has-instance"),a("./modules/es6.parse-int"),a("./modules/es6.parse-float"),a("./modules/es6.number.constructor"),a("./modules/es6.number.to-fixed"),a("./modules/es6.number.to-precision"),a("./modules/es6.number.epsilon"),a("./modules/es6.number.is-finite"),a("./modules/es6.number.is-integer"),a("./modules/es6.number.is-nan"),a("./modules/es6.number.is-safe-integer"),a("./modules/es6.number.max-safe-integer"),a("./modules/es6.number.min-safe-integer"),a("./modules/es6.number.parse-float"),a("./modules/es6.number.parse-int"),a("./modules/es6.math.acosh"),a("./modules/es6.math.asinh"),a("./modules/es6.math.atanh"),a("./modules/es6.math.cbrt"),a("./modules/es6.math.clz32"),a("./modules/es6.math.cosh"),a("./modules/es6.math.expm1"),a("./modules/es6.math.fround"),a("./modules/es6.math.hypot"),a("./modules/es6.math.imul"),a("./modules/es6.math.log10"),a("./modules/es6.math.log1p"),a("./modules/es6.math.log2"),a("./modules/es6.math.sign"),a("./modules/es6.math.sinh"),a("./modules/es6.math.tanh"),a("./modules/es6.math.trunc"),a("./modules/es6.string.from-code-point"),a("./modules/es6.string.raw"),a("./modules/es6.string.trim"),a("./modules/es6.string.iterator"),a("./modules/es6.string.code-point-at"),a("./modules/es6.string.ends-with"),a("./modules/es6.string.includes"),a("./modules/es6.string.repeat"),a("./modules/es6.string.starts-with"),a("./modules/es6.string.anchor"),a("./modules/es6.string.big"),a("./modules/es6.string.blink"),a("./modules/es6.string.bold"),a("./modules/es6.string.fixed"),a("./modules/es6.string.fontcolor"),a("./modules/es6.string.fontsize"),a("./modules/es6.string.italics"),a("./modules/es6.string.link"),a("./modules/es6.string.small"),a("./modules/es6.string.strike"),a("./modules/es6.string.sub"),a("./modules/es6.string.sup"),a("./modules/es6.date.now"),a("./modules/es6.date.to-json"),a("./modules/es6.date.to-iso-string"),a("./modules/es6.date.to-string"),a("./modules/es6.date.to-primitive"),a("./modules/es6.array.is-array"),a("./modules/es6.array.from"),a("./modules/es6.array.of"),a("./modules/es6.array.join"),a("./modules/es6.array.slice"),a("./modules/es6.array.sort"),a("./modules/es6.array.for-each"),a("./modules/es6.array.map"),a("./modules/es6.array.filter"),a("./modules/es6.array.some"),a("./modules/es6.array.every"),a("./modules/es6.array.reduce"),a("./modules/es6.array.reduce-right"),a("./modules/es6.array.index-of"),a("./modules/es6.array.last-index-of"),a("./modules/es6.array.copy-within"),a("./modules/es6.array.fill"),a("./modules/es6.array.find"),a("./modules/es6.array.find-index"),a("./modules/es6.array.species"),a("./modules/es6.array.iterator"),a("./modules/es6.regexp.constructor"),a("./modules/es6.regexp.to-string"),a("./modules/es6.regexp.flags"),a("./modules/es6.regexp.match"),a("./modules/es6.regexp.replace"),a("./modules/es6.regexp.search"),a("./modules/es6.regexp.split"),a("./modules/es6.promise"),a("./modules/es6.map"),a("./modules/es6.set"),a("./modules/es6.weak-map"),a("./modules/es6.weak-set"),a("./modules/es6.typed.array-buffer"),a("./modules/es6.typed.data-view"),a("./modules/es6.typed.int8-array"),a("./modules/es6.typed.uint8-array"),a("./modules/es6.typed.uint8-clamped-array"),a("./modules/es6.typed.int16-array"),a("./modules/es6.typed.uint16-array"),a("./modules/es6.typed.int32-array"),a("./modules/es6.typed.uint32-array"),a("./modules/es6.typed.float32-array"),a("./modules/es6.typed.float64-array"),a("./modules/es6.reflect.apply"),a("./modules/es6.reflect.construct"),a("./modules/es6.reflect.define-property"),a("./modules/es6.reflect.delete-property"),a("./modules/es6.reflect.enumerate"),a("./modules/es6.reflect.get"),a("./modules/es6.reflect.get-own-property-descriptor"),a("./modules/es6.reflect.get-prototype-of"),a("./modules/es6.reflect.has"),a("./modules/es6.reflect.is-extensible"),a("./modules/es6.reflect.own-keys"),a("./modules/es6.reflect.prevent-extensions"),a("./modules/es6.reflect.set"),a("./modules/es6.reflect.set-prototype-of"),a("./modules/es7.array.includes"),a("./modules/es7.string.at"),a("./modules/es7.string.pad-start"),a("./modules/es7.string.pad-end"),a("./modules/es7.string.trim-left"),a("./modules/es7.string.trim-right"),a("./modules/es7.string.match-all"),a("./modules/es7.symbol.async-iterator"),a("./modules/es7.symbol.observable"),a("./modules/es7.object.get-own-property-descriptors"),a("./modules/es7.object.values"),a("./modules/es7.object.entries"),a("./modules/es7.object.define-getter"),a("./modules/es7.object.define-setter"),a("./modules/es7.object.lookup-getter"),a("./modules/es7.object.lookup-setter"),a("./modules/es7.map.to-json"),a("./modules/es7.set.to-json"),a("./modules/es7.system.global"),a("./modules/es7.error.is-error"),a("./modules/es7.math.iaddh"),a("./modules/es7.math.isubh"),a("./modules/es7.math.imulh"),a("./modules/es7.math.umulh"),a("./modules/es7.reflect.define-metadata"),a("./modules/es7.reflect.delete-metadata"),a("./modules/es7.reflect.get-metadata"),a("./modules/es7.reflect.get-metadata-keys"),a("./modules/es7.reflect.get-own-metadata"),a("./modules/es7.reflect.get-own-metadata-keys"),a("./modules/es7.reflect.has-metadata"),a("./modules/es7.reflect.has-own-metadata"),a("./modules/es7.reflect.metadata"),a("./modules/es7.asap"),a("./modules/es7.observable"),a("./modules/web.timers"),a("./modules/web.immediate"),a("./modules/web.dom.iterable"),b.exports=a("./modules/_core")},{"./modules/_core":25,"./modules/es6.array.copy-within":122,"./modules/es6.array.every":123,"./modules/es6.array.fill":124,"./modules/es6.array.filter":125,"./modules/es6.array.find":127,"./modules/es6.array.find-index":126,"./modules/es6.array.for-each":128,"./modules/es6.array.from":129,"./modules/es6.array.index-of":130,"./modules/es6.array.is-array":131,"./modules/es6.array.iterator":132,"./modules/es6.array.join":133,"./modules/es6.array.last-index-of":134,"./modules/es6.array.map":135,"./modules/es6.array.of":136,"./modules/es6.array.reduce":138,"./modules/es6.array.reduce-right":137,"./modules/es6.array.slice":139,"./modules/es6.array.some":140,"./modules/es6.array.sort":141,"./modules/es6.array.species":142,"./modules/es6.date.now":143,"./modules/es6.date.to-iso-string":144,"./modules/es6.date.to-json":145,"./modules/es6.date.to-primitive":146,"./modules/es6.date.to-string":147,"./modules/es6.function.bind":148,"./modules/es6.function.has-instance":149,"./modules/es6.function.name":150,"./modules/es6.map":151,"./modules/es6.math.acosh":152,"./modules/es6.math.asinh":153,"./modules/es6.math.atanh":154,"./modules/es6.math.cbrt":155,"./modules/es6.math.clz32":156,"./modules/es6.math.cosh":157,"./modules/es6.math.expm1":158,"./modules/es6.math.fround":159,"./modules/es6.math.hypot":160,"./modules/es6.math.imul":161,"./modules/es6.math.log10":162,"./modules/es6.math.log1p":163,"./modules/es6.math.log2":164,"./modules/es6.math.sign":165,"./modules/es6.math.sinh":166,"./modules/es6.math.tanh":167,"./modules/es6.math.trunc":168,"./modules/es6.number.constructor":169,"./modules/es6.number.epsilon":170,"./modules/es6.number.is-finite":171,"./modules/es6.number.is-integer":172,"./modules/es6.number.is-nan":173,"./modules/es6.number.is-safe-integer":174,"./modules/es6.number.max-safe-integer":175,"./modules/es6.number.min-safe-integer":176,"./modules/es6.number.parse-float":177,"./modules/es6.number.parse-int":178,"./modules/es6.number.to-fixed":179,"./modules/es6.number.to-precision":180,"./modules/es6.object.assign":181,"./modules/es6.object.create":182,"./modules/es6.object.define-properties":183,"./modules/es6.object.define-property":184,"./modules/es6.object.freeze":185,"./modules/es6.object.get-own-property-descriptor":186,"./modules/es6.object.get-own-property-names":187,"./modules/es6.object.get-prototype-of":188,"./modules/es6.object.is":192,"./modules/es6.object.is-extensible":189,"./modules/es6.object.is-frozen":190,"./modules/es6.object.is-sealed":191,"./modules/es6.object.keys":193,"./modules/es6.object.prevent-extensions":194,"./modules/es6.object.seal":195,"./modules/es6.object.set-prototype-of":196,"./modules/es6.object.to-string":197,"./modules/es6.parse-float":198,"./modules/es6.parse-int":199,"./modules/es6.promise":200,"./modules/es6.reflect.apply":201,"./modules/es6.reflect.construct":202,"./modules/es6.reflect.define-property":203,"./modules/es6.reflect.delete-property":204,"./modules/es6.reflect.enumerate":205,"./modules/es6.reflect.get":208,"./modules/es6.reflect.get-own-property-descriptor":206,"./modules/es6.reflect.get-prototype-of":207,"./modules/es6.reflect.has":209,"./modules/es6.reflect.is-extensible":210,"./modules/es6.reflect.own-keys":211,"./modules/es6.reflect.prevent-extensions":212,"./modules/es6.reflect.set":214,"./modules/es6.reflect.set-prototype-of":213,"./modules/es6.regexp.constructor":215,"./modules/es6.regexp.flags":216,"./modules/es6.regexp.match":217,"./modules/es6.regexp.replace":218,"./modules/es6.regexp.search":219,"./modules/es6.regexp.split":220,"./modules/es6.regexp.to-string":221,"./modules/es6.set":222,"./modules/es6.string.anchor":223,"./modules/es6.string.big":224,"./modules/es6.string.blink":225,"./modules/es6.string.bold":226,"./modules/es6.string.code-point-at":227,"./modules/es6.string.ends-with":228,"./modules/es6.string.fixed":229,"./modules/es6.string.fontcolor":230,"./modules/es6.string.fontsize":231,"./modules/es6.string.from-code-point":232,"./modules/es6.string.includes":233,"./modules/es6.string.italics":234,"./modules/es6.string.iterator":235,"./modules/es6.string.link":236,"./modules/es6.string.raw":237,"./modules/es6.string.repeat":238,"./modules/es6.string.small":239,"./modules/es6.string.starts-with":240,"./modules/es6.string.strike":241,"./modules/es6.string.sub":242,"./modules/es6.string.sup":243,"./modules/es6.string.trim":244,"./modules/es6.symbol":245,"./modules/es6.typed.array-buffer":246,"./modules/es6.typed.data-view":247,"./modules/es6.typed.float32-array":248,"./modules/es6.typed.float64-array":249,"./modules/es6.typed.int16-array":250,"./modules/es6.typed.int32-array":251,"./modules/es6.typed.int8-array":252,"./modules/es6.typed.uint16-array":253,"./modules/es6.typed.uint32-array":254,"./modules/es6.typed.uint8-array":255,"./modules/es6.typed.uint8-clamped-array":256,"./modules/es6.weak-map":257,"./modules/es6.weak-set":258,"./modules/es7.array.includes":259,"./modules/es7.asap":260,"./modules/es7.error.is-error":261,"./modules/es7.map.to-json":262,"./modules/es7.math.iaddh":263,"./modules/es7.math.imulh":264,"./modules/es7.math.isubh":265,"./modules/es7.math.umulh":266,"./modules/es7.object.define-getter":267,"./modules/es7.object.define-setter":268,"./modules/es7.object.entries":269,"./modules/es7.object.get-own-property-descriptors":270,"./modules/es7.object.lookup-getter":271,"./modules/es7.object.lookup-setter":272,"./modules/es7.object.values":273,"./modules/es7.observable":274,"./modules/es7.reflect.define-metadata":275,"./modules/es7.reflect.delete-metadata":276,"./modules/es7.reflect.get-metadata":278,"./modules/es7.reflect.get-metadata-keys":277,"./modules/es7.reflect.get-own-metadata":280,"./modules/es7.reflect.get-own-metadata-keys":279,"./modules/es7.reflect.has-metadata":281,"./modules/es7.reflect.has-own-metadata":282,"./modules/es7.reflect.metadata":283,"./modules/es7.set.to-json":284,"./modules/es7.string.at":285,"./modules/es7.string.match-all":286,"./modules/es7.string.pad-end":287,"./modules/es7.string.pad-start":288,"./modules/es7.string.trim-left":289,"./modules/es7.string.trim-right":290,"./modules/es7.symbol.async-iterator":291,"./modules/es7.symbol.observable":292,"./modules/es7.system.global":293,"./modules/web.dom.iterable":294,"./modules/web.immediate":295,"./modules/web.timers":296}],298:[function(a,b,c){!function(){"use strict";function a(a){return"detail"in a?new k(a.type,{bubbles:a.bubbles,cancelable:a.cancelable,detail:a.detail},a):new j(a.type,{bubbles:a.bubbles,cancelable:a.cancelable},a)}function d(a,b,c){var d=a[b];void 0===d&&(a[b]=d=[]),c="boolean"==typeof c?{capture:c}:c||{};var e=JSON.stringify(c);return{listenersByTypeOptions:d.filter(function(a){return e===JSON.stringify(a.options)}),options:c,listenersByType:d}}function e(){throw new TypeError("Illegal constructor")}var f,g={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3};f="undefined"==typeof DOMException?function(a,b){var c=new Error(a);return c.name=b,c}:DOMException;var h=new WeakMap,i=new WeakMap,j=function(a){this[Symbol.toStringTag]="Event",this.toString=function(){return"[object Event]"};var b=arguments[1],c=arguments[2];if(!arguments.length)throw new TypeError("Failed to construct 'Event': 1 argument required, but only 0 present.");b=b||{},c=c||{};var d={};"composed"in b&&(d.composed=b.composed),h.set(this,c),i.set(this,d),this.initEvent(a,b.bubbles,b.cancelable),Object.defineProperties(this,["target","currentTarget","eventPhase","defaultPrevented"].reduce(function(a,b){return a[b]={get:function(){return void 0!==d[b]?d[b]:b in c?c[b]:"eventPhase"===b?0:"defaultPrevented"!==b&&null}},a},{}));var e=["type","bubbles","cancelable","isTrusted","timeStamp","initEvent","composedPath","composed"];"[object CustomEvent]"===this.toString()&&e.push("detail","initCustomEvent"),Object.defineProperties(this,e.reduce(function(a,b){return a[b]={get:function(){return b in d?d[b]:b in c?c[b]:!(["bubbles","cancelable","composed"].indexOf(b)>-1)&&void 0}},a},{}))};j.prototype.preventDefault=function(){if(!(this instanceof j))throw new TypeError("Illegal invocation");var a=h.get(this),b=i.get(this);this.cancelable&&!b._passive&&(b.defaultPrevented=!0,"function"==typeof a.preventDefault&&a.preventDefault())},j.prototype.stopImmediatePropagation=function(){i.get(this)._stopImmediatePropagation=!0},j.prototype.stopPropagation=function(){i.get(this)._stopPropagation=!0},j.prototype.initEvent=function(a,b,c){var d=i.get(this);d._dispatched||(d.type=a,void 0!==b&&(d.bubbles=b),void 0!==c&&(d.cancelable=c))},["type","target","currentTarget"].forEach(function(a){Object.defineProperty(j.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),["eventPhase","defaultPrevented","bubbles","cancelable","timeStamp"].forEach(function(a){Object.defineProperty(j.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),["NONE","CAPTURING_PHASE","AT_TARGET","BUBBLING_PHASE"].forEach(function(a,b){Object.defineProperty(j,a,{enumerable:!0,writable:!1,value:b}),Object.defineProperty(j.prototype,a,{writable:!1,value:b})}),j[Symbol.toStringTag]="Function",j.prototype[Symbol.toStringTag]="EventPrototype",Object.defineProperty(j,"prototype",{writable:!1});var k=function(a){var b=arguments[1],c=arguments[2];j.call(this,a,b,c),this[Symbol.toStringTag]="CustomEvent",this.toString=function(){return"[object CustomEvent]"};i.get(this);b=b||{},this.initCustomEvent(a,evInit.bubbles,evInit.cancelable,"detail"in evInit?evInit.detail:null)};Object.defineProperty(k.prototype,"constructor",{enumerable:!1,writable:!0,configurable:!0,value:k}),k.prototype.initCustomEvent=function(a,b,c,d){if(!(this instanceof k))throw new TypeError("Illegal invocation");var e=i.get(this);k.call(this,a,{bubbles:b,cancelable:c,detail:d},arguments[4]),e._dispatched||(void 0!==d&&(e.detail=d),Object.defineProperty(this,"detail",{get:function(){return e.detail}}))},k[Symbol.toStringTag]="Function",k.prototype[Symbol.toStringTag]="CustomEventPrototype",Object.setPrototypeOf(k,j),Object.defineProperty(k.prototype,"detail",{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}}),Object.setPrototypeOf(k.prototype,j.prototype),Object.defineProperty(k,"prototype",{writable:!1});var l={addListener:function(a,b,c,e){var f=d(a,c,e),g=f.listenersByTypeOptions;e=f.options;var h=f.listenersByType;g.some(function(a){return a.listener===b})||h.push({listener:b,options:e})},removeListener:function(a,b,c,e){var f=d(a,c,e),g=f.listenersByType,h=JSON.stringify(f.options);g.some(function(d,e){if(d.listener===b&&h===JSON.stringify(d.options))return g.splice(e,1),g.length||delete a[c],!0})},hasListener:function(a,b,c,e){return d(a,c,e).listenersByTypeOptions.some(function(a){return a.listener===b})}};Object.assign(e.prototype,["Early","","Late","Default"].reduce(function(a,b){return["add","remove","has"].forEach(function(c){a[c+b+"EventListener"]=function(a,d){var e=arguments[2];if(arguments.length<2)throw new TypeError("2 or more arguments required");if("string"!=typeof a)throw new f("UNSPECIFIED_EVENT_TYPE_ERR","UNSPECIFIED_EVENT_TYPE_ERR");d.handleEvent&&(d=d.handleEvent.bind(d));var g="_"+b.toLowerCase()+(""===b?"l":"L")+"isteners";return this[g]||Object.defineProperty(this,g,{value:{}}),l[c+"Listener"](this[g],d,a,e)}}),a},{})),Object.assign(e.prototype,{__setOptions:function(a){a=a||{},this._defaultSync=a.defaultSync,this._extraProperties=a.extraProperties},dispatchEvent:function(a){return this._dispatchEvent(a,!0)},_dispatchEvent:function(b,c){function d(){k.eventPhase=g.NONE,k.currentTarget=null,delete k._children}function e(){k._stopImmediatePropagation=void 0,k._stopPropagation=void 0,l.defaultPrevented&&k.cancelable||(k.eventPhase=g.AT_TARGET,l.target.invokeCurrentListeners(l.target._defaultListeners,l,m)),d()}function h(){return k._stopImmediatePropagation=void 0,k._stopPropagation=void 0,j._defaultSync?e():setTimeout(e,0),k.eventPhase=g.AT_TARGET,k._stopPropagation||(k._stopImmediatePropagation=void 0,k._stopPropagation=void 0,l.target.invokeCurrentListeners(l.target._lateListeners,l,m)),d(),!l.defaultPrevented}var j=this;["early","","late","default"].forEach(function(a){var b="_"+a+(""===a?"l":"L")+"isteners";this[b]||Object.defineProperty(this,b,{value:{}})},this);var k=i.get(b);if(k&&c&&k._dispatched)throw new f("The object is in an invalid state.","InvalidStateError");var l;k?l=b:(l=a(b),k=i.get(l),k._dispatched=!0,(this._extraProperties||[]).forEach(function(a){a in b&&(l[a]=b[a])}));var m=l.type;switch(c&&(k.target=this),l.eventPhase){default:case g.NONE:if(k.eventPhase=g.AT_TARGET,this.invokeCurrentListeners(this._earlyListeners,l,m),!this.__getParent)return k.eventPhase=g.AT_TARGET,this._dispatchEvent(l,!1);for(var n=this,o=this;n.__getParent&&null!==(n=n.__getParent());)k._children||(k._children=[]),k._children.push(o),o=n;return o._defaultSync=j._defaultSync,k.eventPhase=g.CAPTURING_PHASE,o._dispatchEvent(l,!1);case g.CAPTURING_PHASE:if(k._stopPropagation)return h();this.invokeCurrentListeners(this._listeners,l,m);var p=k._children&&k._children.length&&k._children.pop();return p&&p!==l.target||(k.eventPhase=g.AT_TARGET),p&&(p._defaultSync=j._defaultSync),(p||this)._dispatchEvent(l,!1);case g.AT_TARGET:return k._stopPropagation?h():(this.invokeCurrentListeners(this._listeners,l,m,!0),k.bubbles?(k.eventPhase=g.BUBBLING_PHASE,this._dispatchEvent(l,!1)):h());case g.BUBBLING_PHASE:if(k._stopPropagation)return h();var q=this.__getParent&&this.__getParent();return q?(q.invokeCurrentListeners(q._listeners,l,m,!0),q._defaultSync=j._defaultSync,q._dispatchEvent(l,!1)):h()}},invokeCurrentListeners:function(a,b,c,e){var f=i.get(b),h=this;f.currentTarget=this;var j=d(a,c,{}),k=j.listenersByType.concat(),l=k.length?1:0;return k.some(function(a,d){var i=e?h["on"+c]:null;if(f._stopImmediatePropagation)return!0;d===l&&"function"==typeof i&&this.tryCatch(function(){i.call(b.currentTarget,b)===!1&&b.preventDefault()});var j=a.options,k=j.once,m=j.passive,n=j.capture;if(f._passive=m,n&&b.target!==b.currentTarget&&b.eventPhase===g.CAPTURING_PHASE||b.eventPhase===g.AT_TARGET||!n&&b.target!==b.currentTarget&&b.eventPhase===g.BUBBLING_PHASE){var o=a.listener;this.tryCatch(function(){o.call(b.currentTarget,b)}),k&&this.removeEventListener(c,o,j)}},this),this.tryCatch(function(){var a=e?h["on"+c]:null;if("function"==typeof a&&k.length<2){a.call(b.currentTarget,b)===!1&&b.preventDefault()}}),!b.defaultPrevented},tryCatch:function(a){try{a()}catch(a){this.triggerErrorEvent(a)}}, -triggerErrorEvent:function(a){var b=a;"string"==typeof a&&(b=new Error("Uncaught exception: "+a));var c;c="undefined"==typeof window||"undefined"==typeof ErrorEvent||window&&"object"==typeof window&&!window.dispatchEvent?function(){setTimeout(function(){throw b})}:function(){var c=new ErrorEvent("error",{error:a,message:b.message||"",filename:b.fileName||"",lineno:b.lineNumber||0,colno:b.columnNumber||0});window.dispatchEvent(c)},this.__userErrorEventHandler?this.__userErrorEventHandler(b,c):c()}}),e.prototype[Symbol.toStringTag]="EventTargetPrototype",Object.defineProperty(e,"prototype",{writable:!1});var m=e,n={createInstance:function(a){function b(){this.__setOptions(a)}return b.prototype=m.prototype,new b}},o=void 0!==b&&b.exports?c:window;o.ShimEvent=j,o.ShimCustomEvent=k,o.ShimDOMException=f,o.ShimEventTarget=e,o.EventTargetFactory=n}()},{}],299:[function(a,b,c){(function(a){function b(a,b){for(var c=0,d=a.length-1;d>=0;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c--;c)a.unshift("..");return a}function d(a,b){if(a.filter)return a.filter(b);for(var c=[],d=0;d=-1&&!e;f--){var g=f>=0?arguments[f]:a.cwd();if("string"!=typeof g)throw new TypeError("Arguments to path.resolve must be strings");g&&(c=g+"/"+c,e="/"===g.charAt(0))}return c=b(d(c.split("/"),function(a){return!!a}),!e).join("/"),(e?"/":"")+c||"."},c.normalize=function(a){var e=c.isAbsolute(a),f="/"===g(a,-1);return a=b(d(a.split("/"),function(a){return!!a}),!e).join("/"),a||e||(a="."),a&&f&&(a+="/"),(e?"/":"")+a},c.isAbsolute=function(a){return"/"===a.charAt(0)},c.join=function(){var a=Array.prototype.slice.call(arguments,0);return c.normalize(d(a,function(a,b){if("string"!=typeof a)throw new TypeError("Arguments to path.join must be strings");return a}).join("/"))},c.relative=function(a,b){function d(a){for(var b=0;b=0&&""===a[c];c--);return b>c?[]:a.slice(b,c-b+1)}a=c.resolve(a).substr(1),b=c.resolve(b).substr(1);for(var e=d(a.split("/")),f=d(b.split("/")),g=Math.min(e.length,f.length),h=g,i=0;i1)for(var c=1;c=0;--d){var e=this.tryEntries[d],f=e.completion;if("root"===e.tryLoc)return b("end");if(e.tryLoc<=this.prev){var g=t.call(e,"catchLoc"),h=t.call(e,"finallyLoc");if(g&&h){if(this.prev=0;--c){var d=this.tryEntries[c];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev=0;--b){var c=this.tryEntries[b];if(c.finallyLoc===a)return this.complete(c.completion,c.afterLoc),n(c),D}},catch:function(a){for(var b=this.tryEntries.length-1;b>=0;--b){var c=this.tryEntries[b];if(c.tryLoc===a){var d=c.completion;if("throw"===d.type){var e=d.arg;n(c)}return e}}throw new Error("illegal catch attempt")},delegateYield:function(a,b,c){return this.delegate={iterator:p(a),resultName:b,nextLoc:c},"next"===this.method&&(this.arg=r),D}}}("object"==typeof c?c:"object"==typeof window?window:"object"==typeof self?self:this)}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:300}],302:[function(a,b,c){function d(a){return a&&"function"==typeof a.then}function e(a,b){a.then(null,b)}function f(a){function b(a,b){j.v=a,j.s=b,j.c[b].forEach(function(b){b(a)}),j.c[b].length&&(j.c=null)}function c(a){j.c&&(d(a)?e(a.then(c),f):b(a,h))}function f(a){j.c&&(d(a)?e(a.then(f),f):b(a,i))}var j=this;j.v=0,j.s=g,j.c=[[],[]];try{a(c,f)}catch(a){f(a)}}var g=2,h=0,i=1,j=f.prototype;j.then=function(a,b){var c=this;return new f(function(d,e){function f(){try{d(a?a(c.v):c.v)}catch(a){g(a)}}var g="function"==typeof b?b:e;c.s===h?f():c.s===i?g(c.v):(c.c[h].push(f),c.c[i].push(g))})},j.catch=function(a){var b=this;return new f(function(c,d){function e(){try{c(a(b.v))}catch(a){d(a)}}b.s===i?e():b.s===h?c(b.v):(b.c[i].push(e),b.c[h].push(c))})},f.all=function(a){return new f(function(b,c,f){f=a.length;var g=[];if(!f)return void b(g);a.forEach(function(h,i){d(h)?e(h.then(function(a){g[i]=a,--f||b(g)}),c):(g[i]=h,--f||b(a))})})},f.race=function(a){var b=!1;return new f(function(c,f){a.some(function(a,g){if(!d(a))return c(a),b=!0,!0;e(a.then(function(a){b||(c(a),b=!0)}),f)})})},f.resolve=function(a){return new f(function(b,c){b(a)})},f.reject=function(a){return new f(function(b,c){c(a)})},b.exports=f},{}],303:[function(a,b,c){b.exports=[{sparseArrays:{testPlainObjects:!0,test:function(a){return Array.isArray(a)},replace:function(a,b){return b.iterateUnsetNumeric=!0,a}}},{sparseUndefined:{test:function(a,b){return void 0===a&&b.ownKeys===!1},replace:function(a){return null},revive:function(a){}}}]},{}],304:[function(a,b,c){b.exports=a("./structured-cloning").concat({checkDataCloneException:[function(a){var b={}.toString.call(a).slice(8,-1);if(["symbol","function"].includes(typeof a)||["Arguments","Module","Error","Promise","WeakMap","WeakSet"].includes(b)||a===Object.prototype||("Blob"===b||"File"===b)&&a.isClosed||a&&"object"==typeof a&&"number"==typeof a.nodeType&&"function"==typeof a.insertBefore)throw new DOMException("The object cannot be cloned.","DataCloneError");return!1}]})},{"./structured-cloning":305}],305:[function(a,b,c){b.exports=[a("../types/user-object"),a("../presets/undefined"),a("../types/primitive-objects"),a("../types/special-numbers"),a("../types/date"),a("../types/regexp"),"function"==typeof Map&&a("../types/map"),"function"==typeof Set&&a("../types/set"),"function"==typeof ArrayBuffer&&a("../types/arraybuffer"),"function"==typeof Uint8Array&&a("../types/typed-arrays"),"function"==typeof DataView&&a("../types/dataview"),"undefined"!=typeof Intl&&a("../types/intl-types"),a("../types/imagedata"),a("../types/imagebitmap"),a("../types/file"),a("../types/filelist"),a("../types/blob")]},{"../presets/undefined":306,"../types/arraybuffer":307,"../types/blob":308,"../types/dataview":309,"../types/date":310,"../types/file":311,"../types/filelist":312,"../types/imagebitmap":313,"../types/imagedata":314,"../types/intl-types":315,"../types/map":316,"../types/primitive-objects":317,"../types/regexp":318,"../types/set":319,"../types/special-numbers":320,"../types/typed-arrays":321,"../types/user-object":323}],306:[function(a,b,c){b.exports=[a("../presets/sparse-undefined"),a("../types/undefined")]},{"../presets/sparse-undefined":303,"../types/undefined":322}],307:[function(a,b,c){var d=a("typeson"),e=a("base64-arraybuffer");c.ArrayBuffer=[function(a){return"ArrayBuffer"===d.toStringTag(a)},function(a){return e.encode(a)},function(a){return e.decode(a)}]},{"base64-arraybuffer":2,typeson:325}],308:[function(a,b,c){var d=a("typeson");c.Blob={test:function(a){return"Blob"===d.toStringTag(a)},replace:function(a){var b=new XMLHttpRequest;if(b.open("GET",URL.createObjectURL(a),!1),200!==b.status&&0!==b.status)throw new Error("Bad Blob access: "+b.status);return b.send(),{type:a.type,stringContents:b.responseText}},revive:function(a){return new Blob([a.stringContents],{type:a.type})},replaceAsync:function(a){return new d.Promise(function(b,c){if(a.isClosed)return void c(new Error("The Blob is closed"));var d=new FileReader;d.addEventListener("load",function(){b({type:a.type,stringContents:d.result})}),d.addEventListener("error",function(){c(d.error)}),d.readAsText(a)})}}},{typeson:325}],309:[function(a,b,c){var d=a("typeson"),e=a("base64-arraybuffer");c.DataView=[function(a){return"DataView"===d.toStringTag(a)},function(a){return{buffer:e.encode(a.buffer),byteOffset:a.byteOffset,byteLength:a.byteLength}},function(a){return new DataView(e.decode(a.buffer),a.byteOffset,a.byteLength)}]},{"base64-arraybuffer":2,typeson:325}],310:[function(a,b,c){var d=a("typeson");c.Date=[function(a){return"Date"===d.toStringTag(a)},function(a){return a.getTime()},function(a){return new Date(a)}]},{typeson:325}],311:[function(a,b,c){var d=a("typeson");c.File={test:function(a){return"File"===d.toStringTag(a)},replace:function(a){var b=new XMLHttpRequest;if(b.open("GET",URL.createObjectURL(a),!1),200!==b.status&&0!==b.status)throw new Error("Bad Blob access: "+b.status);return b.send(),{type:a.type,stringContents:b.responseText,name:a.name,lastModified:a.lastModified}},revive:function(a){return new File([a.stringContents],a.name,{type:a.type,lastModified:a.lastModified})},replaceAsync:function(a){return new d.Promise(function(b,c){if(a.isClosed)return void c(new Error("The File is closed"));var d=new FileReader;d.addEventListener("load",function(){b({type:a.type,stringContents:d.result,name:a.name,lastModified:a.lastModified})}),d.addEventListener("error",function(){c(d.error)}),d.readAsText(a)})}}},{typeson:325}],312:[function(a,b,c){var d=a("typeson");c.File=a("./file").File,c.FileList={test:function(a){return"FileList"===d.toStringTag(a)},replace:function(a){for(var b=[],c=0;c0?"Infinity":"-Infinity"},function(a){return{NaN:0/0,Infinity:1/0,"-Infinity":-1/0}[a]}]},{}],321:[function(a,b,c){(function(b){var d=a("typeson"),e=a("base64-arraybuffer"),f="undefined"==typeof self?b:self;["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"].forEach(function(a){var b=f[a];b&&(c[a]=[function(b){return d.toStringTag(b)===a},function(a){return e.encode(a.buffer,a.byteOffset,a.byteLength)},function(a){return new b(e.decode(a))}])})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-arraybuffer":2,typeson:325}],322:[function(a,b,c){var d=a("typeson");b.exports={undefined:[function(a,b){return void 0===a&&(b.ownKeys||!("ownKeys"in b))},function(a){return null},function(a){return new d.Undefined}]}},{typeson:325}],323:[function(a,b,c){var d=a("typeson");c.userObjects=[function(a,b){return d.isUserObject(a)},function(a){return Object.assign({},a)},function(a){return a}]},{typeson:325}],324:[function(a,b,c){b.exports=Array.from||function(a){for(var b=[],c=a.next();!c.done;c=a.next())b.push(c.value);return b}},{}],325:[function(a,b,c){function d(a,b){return j.isObject(a)&&"function"==typeof a.then&&(!b||"function"==typeof a.catch)}function e(a){return q.call(a).slice(8,-1)}function f(a,b){if(!a||"object"!=typeof a)return!1;var c=r(a);if(!c)return!1;var d=s.call(c,"constructor")&&c.constructor;return"function"!=typeof d?null===b:"function"==typeof d&&null!==b&&t.call(d)===t.call(b)}function g(a){return!(!a||"Object"!==e(a))&&(!r(a)||f(a,Object))}function h(a){if(!a||"Object"!==e(a))return!1;var b=r(a);return!b||(f(a,Object)||h(b))}function i(a){return a&&"object"==typeof a}function j(a){var b=[],c=[],e={},h=this.types={},j=this.stringify=function(b,c,d,e){e=Object.assign({},a,e,{stringification:!0});var f=r(b,null,e);return p(f)?JSON.stringify(f[0],c,d):f.then(function(a){return JSON.stringify(a,c,d)})};this.stringifySync=function(a,b,c,d){return j(a,b,c,Object.assign({},{throwOnBadSyncType:!0},d,{sync:!0}))},this.stringifyAsync=function(a,b,c,d){return j(a,b,c,Object.assign({},{throwOnBadSyncType:!0},d,{sync:!1}))};var q=this.parse=function(b,c,d){return d=Object.assign({},a,d,{parse:!0}),s(JSON.parse(b,c),d)};this.parseSync=function(a,b,c){return q(a,b,Object.assign({},{throwOnBadSyncType:!0},c,{sync:!0}))},this.parseAsync=function(a,b,c){return q(a,b,Object.assign({},{throwOnBadSyncType:!0},c,{sync:!1}))};var r=this.encapsulate=function(d,h,j){function k(a){return o(s).length?a&&g(a)&&!a.hasOwnProperty("$types")?a.$types=s:a={$:a,$types:{$:s}}:i(a)&&a.hasOwnProperty("$types")&&(a={$:a,$types:!0}),a}function l(a,b){return Promise.all(b.map(function(a){return a[1].p})).then(function(c){return Promise.all(c.map(function(c){var d=[],e=b.splice(0,1)[0],g=e[0],h=e[2],i=e[3],j=e[4],k=e[5],o=m(g,c,h,i,d),p=f(o,n);return g&&p?o.p.then(function(b){return j[k]=b,l(a,d)}):(g?j[k]=o:a=p?o.p:o,l(a,d))}))}).then(function(){return a})}function m(a,c,d,e,h){var i=typeof c;if(i in{string:1,boolean:1,number:1,undefined:1})return void 0===c||"number"===i&&(isNaN(c)||c===-1/0||1/0===c)?q(a,c,e,h):c;if(null===c)return c;if(d&&!e.iterateIn&&!e.iterateUnsetNumeric){var j=t.indexOf(c);if(!(j<0))return s[a]="#","#"+u[j];d===!0&&(t.push(c),u.push(a))}var k=g(c),l=p(c),r=(k||l)&&(!b.length||e.replaced)||e.iterateIn?c:q(a,c,e,h,k||l);if(r!==c)return r;var v;if(l||"array"===e.iterateIn)v=new Array(c.length);else{if(!k&&"object"!==e.iterateIn)return""===a&&f(c,n)?(h.push([a,c,d,e]),c):c;v={}}if(e.iterateIn)for(var w in c){var x={ownKeys:c.hasOwnProperty(w)},y=a+(a?".":"")+w,z=m(y,c[w],!!d,x,h);f(z,n)?h.push([y,z,!!d,x,v,w]):void 0!==z&&(v[w]=z)}else o(c).forEach(function(b){var e=a+(a?".":"")+b,g=m(e,c[b],!!d,{ownKeys:!0},h);f(g,n)?h.push([e,g,!!d,{ownKeys:!0},v,b]):void 0!==g&&(v[b]=g)});if(e.iterateUnsetNumeric)for(var A=0,B=c.length;A=this.length||!Number.isInteger(a)?null:this._items[a]},clone:function(){var a=h.__createInstance();return a._items=this._items.slice(),a._length=this.length,a.addIndexes(),a},addIndexes:function(){for(var a=0;a":"<";void 0!==b&&(k.push("AND",j,n+"= ?"),l.push(v.encode(b))),void 0!==a?(k.push("AND",i,n+"= ?"),l.push(v.encode(a))):g&&void 0!==h.__key&&(k.push("AND",i,n+" ?"),l.push(v.encode(h.__key))),h.__count||(k.push("ORDER BY",i,m),h.__unique||"key"===h.__keyColumnName||k.push(",",j,m),!h.__unique&&h.__indexSource&&k.push(",",r.sqlQuote(h.__valueColumnName),m),k.push("LIMIT",f)),k=k.join(" "),B.default.DEBUG&&console.log(k,l),c.executeSql(k,l,function(a,b){h.__count?d(void 0,b.rows.length,void 0):b.rows.length>1?(h.__prefetchedIndex=0,h.__prefetchedData=b.rows,B.default.DEBUG&&console.log("Preloaded "+h.__prefetchedData.length+" records for cursor"),h.__decode(b.rows.item(0),d)):1===b.rows.length?h.__decode(b.rows.item(0),d):(B.default.DEBUG&&console.log("Reached end of cursors"),d(void 0,void 0,void 0))},function(a,b){B.default.DEBUG&&console.log("Could not execute Cursor.continue",k,l),e(b)})},i.prototype.__findMultiEntry=function(a,b,c,d,e){var f=this;if(f.__prefetchedData&&f.__prefetchedData.length===f.__prefetchedIndex)return B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),void d(void 0,void 0,void 0);var g=r.sqlQuote(f.__keyColumnName),h=["SELECT * FROM",r.escapeStoreNameForSQL(f.__store.__currentName)],i=[];h.push("WHERE",g,"NOT NULL"),f.__range&&void 0!==f.__range.lower&&Array.isArray(f.__range.upper)&&0===f.__range.upper.indexOf(f.__range.lower)&&(h.push("AND",g,"LIKE ? ESCAPE '^'"),i.push("%"+r.sqlLIKEEscape(f.__range.__lowerCached.slice(0,-1))+"%"));var j=f.__sqlDirection,k="ASC"===j?">":"<",l=r.sqlQuote("key");void 0!==b&&(h.push("AND",l,k+"= ?"),i.push(v.encode(b))),void 0!==a?(h.push("AND",g,k+"= ?"),i.push(v.encode(a))):void 0!==f.__key&&(h.push("AND",g,k+" ?"),i.push(v.encode(f.__key))),f.__count||(h.push("ORDER BY",g,j),f.__unique||"key"===f.__keyColumnName||h.push(",",r.sqlQuote("key"),j),!f.__unique&&f.__indexSource&&h.push(",",r.sqlQuote(f.__valueColumnName),j)),h=h.join(" "),B.default.DEBUG&&console.log(h,i),c.executeSql(h,i,function(a,b){if(b.rows.length>0){if(f.__count){for(var c=0,e=0;eb.matchingKey.replace("[","z")?q?-1:1:a.keyb.key?"prev"===f.direction?-1:1:0}),i.length>1?(f.__prefetchedIndex=0,f.__prefetchedData={data:i,length:i.length,item:function(a){return this.data[a]}},B.default.DEBUG&&console.log("Preloaded "+f.__prefetchedData.length+" records for multiEntry cursor"),f.__decode(i[0],d)):1===i.length?(B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),f.__decode(i[0],d)):(B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),d(void 0,void 0,void 0))}else B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),d(void 0,void 0,void 0)},function(a,b){B.default.DEBUG&&console.log("Could not execute Cursor.continue",h,i),e(b)})},i.prototype.__onsuccess=function(a){var b=this;return function(c,d,e){if(b.__count)a(d,b.__req);else{void 0!==c&&(b.__gotValue=!0),b.__key=void 0===c?null:c,b.__primaryKey=void 0===e?null:e,b.__value=void 0===d?null:d;a(void 0===c?null:b,b.__req)}}},i.prototype.__decode=function(a,b){var c=this;if(c.__multiEntryIndex&&c.__unique){if(c.__matchedKeys||(c.__matchedKeys={}),c.__matchedKeys[a.matchingKey])return void b(void 0,void 0,void 0);c.__matchedKeys[a.matchingKey]=!0}var d=r.unescapeSQLiteResponse(c.__multiEntryIndex?a.matchingKey:a[c.__keyColumnName]),e=r.unescapeSQLiteResponse(a[c.__valueColumnName]),f=r.unescapeSQLiteResponse(a.key);b(v.decode(d,c.__multiEntryIndex),c.__valueDecoder.decode(e),v.decode(f),d)},i.prototype.__sourceOrEffectiveObjStoreDeleted=function(){m.default.__invalidStateIfDeleted(this.__store,"The cursor's effective object store has been deleted"),this.__indexSource&&z.default.__invalidStateIfDeleted(this.source,"The cursor's index source has been deleted")},i.prototype.__invalidateCache=function(){this.__prefetchedData=null},i.prototype.__continue=function(a,b){var c=this,d=void 0!==c.__advanceCount;if(t.default.__assertActive(c.__store.transaction),c.__sourceOrEffectiveObjStoreDeleted(),!c.__gotValue&&!b)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");if(void 0!==a){v.convertValueToKeyRethrowingAndIfInvalid(a);var e=(0,p.cmp)(a,c.key);if(0===e||c.direction.includes("next")&&e===-1||c.direction.includes("prev")&&1===e)throw(0,n.createDOMException)("DataError","Cannot "+(d?"advance":"continue")+" the cursor in an unexpected direction")}this.__continueFinish(a,void 0,d)},i.prototype.__continueFinish=function(a,b,c){var d=this,e=d.__advanceCount||B.default.cursorPreloadPackSize||100;d.__gotValue=!1,d.__req.__readyState="pending",d.__store.transaction.__pushToQueue(d.__req,function f(g,h,i,j,k){function l(a,b,e){if(c){if(d.__advanceCount>=2&&void 0!==a)return d.__advanceCount--,d.__key=a,d.__continue(void 0,!0),void k();d.__advanceCount=void 0}d.__onsuccess(i)(a,b,e)}if(d.__prefetchedData&&++d.__prefetchedIndex0||0===m&&(d.__unique||void 0===b||(0,p.cmp)(k,b)>=0))return void l(c,e,k);f(g,h,i,j)}()});d.__find(a,b,g,l,function(){d.__advanceCount=void 0,j.apply(void 0,arguments)},e)})},i.prototype.continue=function(){this.__continue(arguments[0])},i.prototype.continuePrimaryKey=function(a,b){function c(){d.__continueFinish(a,b,!1)}var d=this;if(t.default.__assertActive(d.__store.transaction),d.__sourceOrEffectiveObjStoreDeleted(),!d.__indexSource)throw(0,n.createDOMException)("InvalidAccessError","`continuePrimaryKey` may only be called on an index source.");if(!["next","prev"].includes(d.direction))throw(0,n.createDOMException)("InvalidAccessError","`continuePrimaryKey` may not be called with unique cursors.");if(!d.__gotValue)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");v.convertValueToKeyRethrowingAndIfInvalid(a),v.convertValueToKeyRethrowingAndIfInvalid(b);var e=(0,p.cmp)(a,d.key);if("next"===d.direction&&e===-1||"prev"===d.direction&&1===e)throw(0,n.createDOMException)("DataError","Cannot continue the cursor in an unexpected direction");0===e?x.encode(b,function(a){x.encode(d.primaryKey,function(b){if(a===b||"next"===d.direction&&ab)throw(0,n.createDOMException)("DataError","Cannot continue the cursor in an unexpected direction");c()})}):c()},i.prototype.advance=function(a){var b=this;if(0===(a=r.enforceRange(a,"unsigned long")))throw new TypeError("Calling advance() with count argument 0");b.__gotValue&&(b.__advanceCount=a),b.__continue()},i.prototype.update=function(a){function b(a){m.default.__storingRecordObjectStore(d,c.__store,a,!1,e)}var c=this;if(!arguments.length)throw new TypeError("A value must be passed to update()");if(t.default.__assertActive(c.__store.transaction),c.__store.transaction.__assertWritable(),c.__sourceOrEffectiveObjStoreDeleted(),!c.__gotValue)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");if(c.__keyOnly)throw(0,n.createDOMException)("InvalidStateError","This cursor method cannot be called when the key only flag has been set.");var d=c.__store.transaction.__createRequest(c),e=c.primaryKey;if(null!==c.__store.keyPath){var f=c.__store.__validateKeyAndValueAndCloneValue(a,void 0,!0),g=j(f,2),h=g[0],i=g[1];if(0!==(0,p.cmp)(c.primaryKey,h))throw(0,n.createDOMException)("DataError","The key of the supplied value to `update` is not equal to the cursor's effective key");b(i)}else{b(x.clone(a))}return d},i.prototype.delete=function(){var a=this;if(t.default.__assertActive(a.__store.transaction),a.__store.transaction.__assertWritable(),a.__sourceOrEffectiveObjStoreDeleted(),!a.__gotValue)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");if(a.__keyOnly)throw(0,n.createDOMException)("InvalidStateError","This cursor method cannot be called when the key only flag has been set.");return this.__store.transaction.__addToTransactionQueue(function(b,c,d,e){a.__find(void 0,void 0,b,function(c,f,g){var h="DELETE FROM "+r.escapeStoreNameForSQL(a.__store.__currentName)+' WHERE "key" = ?';B.default.DEBUG&&console.log(h,c,g),b.executeSql(h,[r.escapeSQLiteStatement(v.encode(g))],function(b,f){1===f.rowsAffected?(a.__store.__cursors.forEach(function(a){a.__invalidateCache()}),d(void 0)):e("No rows with key found"+c)},function(a,b){e(b)})},e)},void 0,a)},i.prototype[Symbol.toStringTag]="IDBCursorPrototype",["source","direction","key","primaryKey"].forEach(function(a){Object.defineProperty(i.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),Object.defineProperty(i,"prototype",{writable:!1});var D=function(a){function b(){return f(this,b),g(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return h(b,a),b}(i),E=D;D.__createInstance=function(){function a(){var a;(a=i.__super).call.apply(a,[this].concat(c)),this[Symbol.toStringTag]="IDBCursorWithValue",r.defineReadonlyProperties(this,"value")}for(var b=arguments.length,c=Array(b),d=0;dd?1:c===d?0:-1;if(A.default.DEBUG){var f=u.decode(c),g=u.decode(d);"object"===(void 0===a?"undefined":j(a))&&(a=JSON.stringify(a),f=JSON.stringify(f)),"object"===(void 0===b?"undefined":j(b))&&(b=JSON.stringify(b),g=JSON.stringify(g)),f!==a&&console.warn(a+" was incorrectly encoded as "+f),g!==b&&console.warn(b+" was incorrectly encoded as "+g)}return e}Object.defineProperty(c,"__esModule",{value:!0}),c.shimIndexedDB=c.cmp=c.IDBFactory=void 0;var j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},k=a("./Event"),l=a("./IDBVersionChangeEvent"),m=e(l),n=a("./DOMException"),o=a("./IDBRequest"),p=a("./DOMStringList"),q=e(p),r=a("./util"),s=d(r),t=a("./Key"),u=d(t),v=a("./IDBTransaction"),w=e(v),x=a("./IDBDatabase"),y=e(x),z=a("./CFG"),A=e(z),B=void 0,C=h;h.__createInstance=function(){function a(){this[Symbol.toStringTag]="IDBFactory",this.modules={Event:"undefined"!=typeof Event?Event:k.ShimEvent,Error:Error,ShimEvent:k.ShimEvent,ShimCustomEvent:k.ShimCustomEvent,ShimEventTarget:k.ShimEventTarget,ShimDOMException:n.ShimDOMException,ShimDOMStringList:q.default,IDBFactory:C},this.utils={createDOMException:n.createDOMException},this.__connections=[]}return a.prototype=C.prototype,new a},h.prototype.open=function(a){function b(a,b){if(!j){b=b?(0,n.webSQLErrback)(b):a,j=!0;var c=(0,k.createEvent)("error",b,{bubbles:!0,cancelable:!0});i.__readyState="done",i.__error=b,i.__result=void 0,i.dispatchEvent(c)}}function c(c){var f=A.default.win.openDatabase(p,1,a,A.default.DEFAULT_DB_SIZE);if(i.__readyState="done",void 0===e&&(e=c||1),c>e){return void b((0,n.createDOMException)("VersionError","An attempt was made to open a database using a lower version than the existing version.",e))}f.transaction(function(g){g.executeSql("CREATE TABLE IF NOT EXISTS __sys__ (name VARCHAR(255), keyPath VARCHAR(255), autoInc BOOLEAN, indexList BLOB, currNum INTEGER)",[],function(){g.executeSql('SELECT "name", "keyPath", "autoInc", "indexList" FROM __sys__',[],function(g,h){if(i.__result=y.default.__createInstance(f,a,c,e,h),d.__connections.push(i.result),c=d.length?a.executeSql("DROP TABLE IF EXISTS __sys__",[],function(){f()},c):a.executeSql("DROP TABLE "+s.escapeStoreNameForSQL(s.unescapeSQLiteResponse(d.item(e).name)),[],function(){b(e+1)},function(){b(e+1)})}(0)},function(a){f()})})},c)},c,null,function(a,b,c,d,e){return!(!a.readOnly&&!b)||(p=function(a,b){a?d(a,b):e(b)},!1)})},c)},c)},c),i},h.prototype.cmp=function(a,b){if(!(this instanceof h))throw new TypeError("Illegal invocation") -;if(arguments.length<2)throw new TypeError("You must provide two keys to be compared");return u.convertValueToKeyRethrowingAndIfInvalid(a),u.convertValueToKeyRethrowingAndIfInvalid(b),i(a,b)},h.prototype.webkitGetDatabaseNames=function(){function a(a,d){if(!b){d=d?(0,n.webSQLErrback)(d):a,b=!0;var e=(0,k.createEvent)("error",d,{bubbles:!0,cancelable:!0});c.__readyState="done",c.__error=d,c.__result=void 0,c.dispatchEvent(e)}}if(!(this instanceof h))throw new TypeError("Illegal invocation");if(f())throw(0,n.createDOMException)("SecurityError","Cannot get IndexedDB database names from an opaque origin.");var b=!1,c=o.IDBRequest.__createInstance();return g(function(){B.readTransaction(function(b){b.executeSql('SELECT "name" FROM dbVersions',[],function(a,b){for(var d=q.default.__createInstance(),e=0;ed.__connections.length-1)throw new TypeError("If providing an argument, __forceClose must be called with a numeric index to indicate a specific connection to lose");c(d.__connections[a])}},h.prototype[Symbol.toStringTag]="IDBFactoryPrototype",Object.defineProperty(h,"prototype",{writable:!1});var D=h.__createInstance();c.IDBFactory=h,c.cmp=i,c.shimIndexedDB=D},{"./CFG":326,"./DOMException":327,"./DOMStringList":328,"./Event":329,"./IDBDatabase":331,"./IDBRequest":336,"./IDBTransaction":337,"./IDBVersionChangeEvent":338,"./Key":339,"./util":345,fs:3,path:299}],333:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function f(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b0&&h.push("OR"),h.push(m.escapeIndexNameForSQL(b.name),"LIKE ? ESCAPE '^' "),i.push("%"+m.sqlLIKEEscape(o.encode(a,b.multiEntry))+"%")}),h.push(")");else if(b.multiEntry)h.push("AND",m.escapeIndexNameForSQL(b.name),"LIKE ? ESCAPE '^'"),i.push("%"+m.sqlLIKEEscape(o.encode(c,b.multiEntry))+"%");else{var j=(0,p.convertValueToKeyRange)(c,a);(0,p.setSQLForKeyRange)(j,m.escapeIndexNameForSQL(b.name),h,i,!0,!1)}return[a,b,f,c,d,e,h,i]}Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.IDBIndex=c.executeFetchIndexData=c.buildFetchIndexDataSQL=void 0;var j=a("./DOMException"),k=a("./IDBCursor"),l=a("./util"),m=e(l),n=a("./Key"),o=e(n),p=a("./IDBKeyRange"),q=a("./IDBTransaction"),r=d(q),s=a("./Sca"),t=e(s),u=a("./CFG"),v=d(u),w=a("./IDBObjectStore"),x=d(w),y=["objectStore","keyPath","multiEntry","unique"],z=g;g.__createInstance=function(a,b){function c(){var c=this;c[Symbol.toStringTag]="IDBIndex",m.defineReadonlyProperties(c,y),c.__objectStore=a,c.__name=c.__originalName=b.columnName,c.__keyPath=Array.isArray(b.keyPath)?b.keyPath.slice():b.keyPath;var d=b.optionalParams;c.__multiEntry=!(!d||!d.multiEntry),c.__unique=!(!d||!d.unique),c.__deleted=!!b.__deleted,c.__objectStore.__cursors=b.cursors||[],Object.defineProperty(c,"__currentName",{get:function(){return"__pendingName"in c?c.__pendingName:c.name}}),Object.defineProperty(c,"name",{enumerable:!1,configurable:!1,get:function(){return this.__name},set:function(b){var c=this;b=m.convertToDOMString(b);var d=c.name;if(r.default.__assertVersionChange(c.objectStore.transaction),r.default.__assertActive(c.objectStore.transaction),z.__invalidStateIfDeleted(c),x.default.__invalidStateIfDeleted(c),b!==d){if(c.objectStore.__indexes[b]&&!c.objectStore.__indexes[b].__deleted&&!c.objectStore.__indexes[b].__pendingDelete)throw(0,j.createDOMException)("ConstraintError",'Index "'+b+'" already exists on '+c.objectStore.__currentName);c.__name=b;var e=c.objectStore;delete e.__indexes[d],e.__indexes[b]=c,e.indexNames.splice(e.indexNames.indexOf(d),1,b);var f=e.transaction.__storeHandles[e.name],g=f.__indexHandles[d];g.__name=b,f.__indexHandles[b]=g,c.__pendingName=d;var h=[["key","BLOB "+(e.autoIncrement?"UNIQUE, inc INTEGER PRIMARY KEY AUTOINCREMENT":"PRIMARY KEY")],["value","BLOB"]].concat(Array.from(e.indexNames).filter(function(a){return a!==b}).map(function(a){return[m.escapeIndexNameForSQL(a),"BLOB"]}));c.__renameIndex(e,d,b,h,function(b,c){z.__updateIndexList(a,b,function(a){delete f.__pendingName,c(a)})})}}})}return c.prototype=z.prototype,new c},g.__invalidStateIfDeleted=function(a,b){if(a.__deleted||a.__pendingDelete||a.__pendingCreate&&a.objectStore.transaction&&a.objectStore.transaction.__errored)throw(0,j.createDOMException)("InvalidStateError",b||"This index has been deleted")},g.__clone=function(a,b){var c=g.__createInstance(b,{columnName:a.name,keyPath:a.keyPath,optionalParams:{multiEntry:a.multiEntry,unique:a.unique}});return["__pendingCreate","__pendingDelete","__deleted","__originalName","__recreated"].forEach(function(b){c[b]=a[b]}),c},g.__createIndex=function(a,b){var c=b.name,d=a.__currentName,e=a.__indexes[c];b.__pendingCreate=!0,a.indexNames.push(c),a.__indexes[c]=b;var f=a.__indexHandles[c];(!f||b.__pendingDelete||b.__deleted||f.__pendingDelete||f.__deleted)&&(f=a.__indexHandles[c]=g.__clone(b,a)),a.transaction.__addNonRequestToTransactionQueue(function(h,i,k,l){function n(a,b){l((0,j.createDOMException)("UnknownError",'Could not create index "'+c+'"'+b.code+"::"+b.message,b))}function p(e){g.__updateIndexList(a,e,function(){e.executeSql('SELECT "key", "value" FROM '+m.escapeStoreNameForSQL(d),[],function(e,g){function h(i){if(i3&&void 0!==arguments[3]?arguments[3]:[],e=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,f=a.__currentName,g=m.escapeStoreNameForSQL(f),h=m.escapeStoreNameForSQL("tmp_"+f),i=d.map(function(a){return a[0]}),j=d.map(function(a){return a.join(" ")}),k=j.length?j.join(", ")+", ":"",l=i.length?i.join(", ")+", ":"";a.transaction.__addNonRequestToTransactionQueue(function(a,d,f,i){var j="ALTER TABLE "+g+" RENAME TO "+h;a.executeSql(j,[],function(a,d){var j="CREATE TABLE "+g+"("+k+m.escapeIndexNameForSQL(c)+" BLOB)";a.executeSql(j,[],function(a,d){var j="INSERT INTO "+g+"("+l+m.escapeIndexNameForSQL(c)+") SELECT "+l+m.escapeIndexNameForSQL(b)+" FROM "+h;a.executeSql(j,[],function(a,b){var c="DROP TABLE "+h;a.executeSql(c,[],function(a,b){if(e)return void e(a,f);f()},function(a,b){i(b)})},function(a,b){i(b)})})},function(a,b){i(b)})})},Object.defineProperty(g,Symbol.hasInstance,{value:function(a){return m.isObj(a)&&"function"==typeof a.openCursor&&"boolean"==typeof a.multiEntry}}),y.forEach(function(a){Object.defineProperty(g.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),Object.defineProperty(g.prototype,"name",{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")},set:function(a){throw new TypeError("Illegal invocation")}}),g.prototype[Symbol.toStringTag]="IDBIndexPrototype",Object.defineProperty(g,"prototype",{writable:!1}),c.buildFetchIndexDataSQL=i,c.executeFetchIndexData=h,c.IDBIndex=g,c.default=g},{"./CFG":326,"./DOMException":327,"./IDBCursor":330,"./IDBKeyRange":334,"./IDBObjectStore":335,"./IDBTransaction":337,"./Key":339,"./Sca":340,"./util":345}],334:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function e(){throw new TypeError("Illegal constructor")}function f(a,b,c,d,e,f){if(a&&(void 0!==a.lower||void 0!==a.upper)){e&&c.push("AND");var g=void 0,h=void 0,i=void 0!==a.lower,k=void 0!==a.upper;if(i&&(g=f?a.__lowerCached:j.encode(a.lower)),k&&(h=f?a.__upperCached:j.encode(a.upper)),i){if(d.push(l.escapeSQLiteStatement(g)),k&&g===h&&!a.lowerOpen&&!a.upperOpen)return void c.push(b,"=","?");c.push(b,a.lowerOpen?">":">=","?")}i&&k&&c.push("AND"),k&&(c.push(b,a.upperOpen?"<":"<=","?"),d.push(l.escapeSQLiteStatement(h)))}}function g(a,b){if(l.instanceOf(a,e))return"[object IDBKeyRange]"!==!a.toString()?e.__createInstance(a.lower,a.upper,a.lowerOpen,a.upperOpen):a;{if(null!=a)return j.convertValueToKeyRethrowingAndIfInvalid(a),e.only(a);if(b)throw(0,h.createDOMException)("DataError","No key or range was specified")}}Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.convertValueToKeyRange=c.IDBKeyRange=c.setSQLForKeyRange=void 0;var h=a("./DOMException"),i=a("./Key"),j=d(i),k=a("./util"),l=d(k),m=["lower","upper","lowerOpen","upperOpen"],n=e;e.__createInstance=function(a,b,c,d){function e(){if(this[Symbol.toStringTag]="IDBKeyRange",void 0===a&&void 0===b)throw(0,h.createDOMException)("DataError","Both arguments to the key range method cannot be undefined");var e=void 0,f=void 0;if(void 0!==a&&(e=j.roundTrip(a),j.convertValueToKeyRethrowingAndIfInvalid(a)),void 0!==b&&(f=j.roundTrip(b),j.convertValueToKeyRethrowingAndIfInvalid(b)),void 0!==a&&void 0!==b&&a!==b&&j.encode(a)>j.encode(b))throw(0,h.createDOMException)("DataError","`lower` must not be greater than `upper` argument in `bound()` call.");this.__lower=e,this.__upper=f,this.__lowerOpen=!!c,this.__upperOpen=!!d}return e.prototype=n.prototype,new e},e.prototype.includes=function(a){if(!l.isObj(this)||"boolean"!=typeof this.__lowerOpen)throw new TypeError("Illegal invocation");if(!arguments.length)throw new TypeError("IDBKeyRange.includes requires a key argument");return j.convertValueToKeyRethrowingAndIfInvalid(a),j.isKeyInRange(a,this)},e.only=function(a){if(!arguments.length)throw new TypeError("IDBKeyRange.only requires a value argument");return e.__createInstance(a,a,!1,!1)},e.lowerBound=function(a){if(!arguments.length)throw new TypeError("IDBKeyRange.lowerBound requires a value argument");return e.__createInstance(a,void 0,arguments[1],!0)},e.upperBound=function(a){if(!arguments.length)throw new TypeError("IDBKeyRange.upperBound requires a value argument");return e.__createInstance(void 0,a,!0,arguments[1])},e.bound=function(a,b){if(arguments.length<=1)throw new TypeError("IDBKeyRange.bound requires lower and upper arguments");return e.__createInstance(a,b,arguments[2],arguments[3])},e.prototype[Symbol.toStringTag]="IDBKeyRangePrototype",m.forEach(function(a){Object.defineProperty(e.prototype,"__"+a,{enumerable:!1,configurable:!1,writable:!0}),Object.defineProperty(e.prototype,a,{enumerable:!0,configurable:!0,get:function(){if(!l.isObj(this)||"boolean"!=typeof this.__lowerOpen)throw new TypeError("Illegal invocation");return this["__"+a]}})}),Object.defineProperty(e,Symbol.hasInstance,{value:function(a){return l.isObj(a)&&"upper"in a&&"boolean"==typeof a.lowerOpen}}),Object.defineProperty(e,"prototype",{writable:!1}),c.setSQLForKeyRange=f,c.IDBKeyRange=e,c.convertValueToKeyRange=g,c.default=e},{"./DOMException":327,"./Key":339,"./util":345}],335:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function e(a){return a&&a.__esModule?a:{default:a}}function f(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b0&&a.executeSql("DROP TABLE "+o.escapeStoreNameForSQL(b.__currentName),[],function(){a.executeSql('DELETE FROM __sys__ WHERE "name" = ?',[o.escapeSQLiteStatement(b.__currentName)],function(){delete b.__pendingDelete,b.__deleted=!0,c&&(delete c.__pendingDelete,c.__deleted=!0),e()},g)},g)})})},g.prototype.__validateKeyAndValueAndCloneValue=function(a,b,c){var d=this;if(null!==d.keyPath){if(void 0!==b)throw(0,i.createDOMException)("DataError","The object store uses in-line keys and the key parameter was provided",d);var e=v.clone(a);if(b=q.extractKeyValueDecodedFromValueUsingKeyPath(e,d.keyPath),b.invalid)throw(0,i.createDOMException)("DataError","KeyPath was specified, but key was invalid.");if(b.failure){if(!c){if(!d.autoIncrement)throw(0,i.createDOMException)("DataError","Could not evaluate a key from keyPath and there is no key generator");if(!q.checkKeyCouldBeInjectedIntoValue(e,d.keyPath))throw(0,i.createDOMException)("DataError","A key could not be injected into a value");return[void 0,e]}throw(0,i.createDOMException)("DataError","Could not evaluate a key from keyPath")}return[b.value,e]}if(void 0===b){if(!d.autoIncrement)throw(0,i.createDOMException)("DataError","The object store uses out-of-line keys and has no key generator and the key parameter was not provided.",d);b=void 0}else q.convertValueToKeyRethrowingAndIfInvalid(b);return[b,v.clone(a)]},g.prototype.__deriveKey=function(a,b,c,d,e){function f(){v.encode(c,function(a){a=v.decode(a),d(a)})}var g=this;g.autoIncrement?void 0===c?q.generateKeyForStore(a,g,function(a,c){if(a)return void e((0,i.createDOMException)("ConstraintError","The key generator's current number has reached the maximum safe integer limit"));null!==g.keyPath&&q.injectKeyIntoValueUsingKeyPath(b,c,g.keyPath),d(c)},e):q.possiblyUpdateKeyGenerator(a,g,c,f,e):f()},g.prototype.__insertData=function(a,b,c,d,e,g){var h=this,j={},k=Object.keys(h.__indexes).map(function(b){return new z.default(function(d,e){function g(a){void 0!==l&&(j[a.__currentName]=q.encode(l,a.multiEntry))}var k=h.__indexes[b];if(k.__pendingCreate||k.__deleted)return void d();var l=void 0;try{if(l=q.extractKeyValueDecodedFromValueUsingKeyPath(c,k.keyPath,k.multiEntry),l.invalid||l.failure)throw new Error("Go to catch")}catch(a){return void d()}if(l=l.value,k.unique){var m=k.multiEntry&&Array.isArray(l),n=(0,r.buildFetchIndexDataSQL)(!0,k,l,"key",m);r.executeFetchIndexData.apply(void 0,[null].concat(f(n),[a,null,function(a){if(void 0===a)return g(k),void d();e((0,i.createDOMException)("ConstraintError","Index already contains a record equal to "+(m?"one of the subkeys of":"")+"`indexKey`"))},e]))}else g(k),d()})});z.default.all(k).then(function(){var c=["INSERT INTO",o.escapeStoreNameForSQL(h.__currentName),"("],f=[" VALUES ("],k=[];void 0!==d&&(c.push(o.sqlQuote("key"),","),f.push("?,"),k.push(o.escapeSQLiteStatement(q.encode(d))));for(var l in j)c.push(o.escapeIndexNameForSQL(l)+","),f.push("?,"),k.push(o.escapeSQLiteStatement(j[l]));c.push(o.sqlQuote("value")+" )"),f.push("?)"),k.push(o.escapeSQLiteStatement(b));var m=c.join(" ")+f.join(" ");x.default.DEBUG&&console.log("SQL for adding",m,k),a.executeSql(m,k,function(a,b){e(d)},function(a,b){g((0,i.createDOMException)("ConstraintError",b.message,b))})}).catch(function(a){g(a)})},g.prototype.add=function(a){var b=this,c=arguments[1];if(!(b instanceof g))throw new TypeError("Illegal invocation");if(0===arguments.length)throw new TypeError("No value was specified");g.__invalidStateIfDeleted(b),t.default.__assertActive(b.transaction),b.transaction.__assertWritable();var d=b.transaction.__createRequest(b),e=b.__validateKeyAndValueAndCloneValue(a,c,!1),f=h(e,2),i=f[0],j=f[1];return g.__storingRecordObjectStore(d,b,j,!0,i),d},g.prototype.put=function(a){var b=this,c=arguments[1];if(!(b instanceof g))throw new TypeError("Illegal invocation");if(0===arguments.length)throw new TypeError("No value was specified");g.__invalidStateIfDeleted(b),t.default.__assertActive(b.transaction),b.transaction.__assertWritable();var d=b.transaction.__createRequest(b),e=b.__validateKeyAndValueAndCloneValue(a,c,!1),f=h(e,2),i=f[0],j=f[1];return g.__storingRecordObjectStore(d,b,j,!1,i),d},g.prototype.__overwrite=function(a,b,c,d){var e=this,f="DELETE FROM "+o.escapeStoreNameForSQL(e.__currentName)+' WHERE "key" = ?',g=q.encode(b);a.executeSql(f,[o.escapeSQLiteStatement(g)],function(a,d){x.default.DEBUG&&console.log("Did the row with the",b,"exist? ",d.rowsAffected),c(a)},function(a,b){d(b)})},g.__storingRecordObjectStore=function(a,b,c,d){var e=arguments[4];b.transaction.__pushToQueue(a,function(a,f,g,h){b.__deriveKey(a,c,e,function(e){v.encode(c,function(f){function i(a){b.__insertData(a,f,c,e,function(){b.__cursors.forEach(function(a){a.__invalidateCache()}),g.apply(void 0,arguments)},h)}if(!d)return void b.__overwrite(a,e,i,h);i(a)})},h)})},g.prototype.__get=function(a,b,c,d){var e=this;void 0!==d&&(d=o.enforceRange(d,"unsigned long")),g.__invalidStateIfDeleted(e),t.default.__assertActive(e.transaction);var f=(0,k.convertValueToKeyRange)(a,!c),h=b?"key":"value",i=["SELECT",o.sqlQuote(h),"FROM",o.escapeStoreNameForSQL(e.__currentName)],j=[];if(void 0!==f&&(i.push("WHERE"),(0,k.setSQLForKeyRange)(f,o.sqlQuote("key"),i,j)),c||(d=1),d){if("number"!=typeof d||isNaN(d)||!isFinite(d))throw new TypeError("The count parameter must be a finite number");i.push("LIMIT",d)}return i=i.join(" "),e.transaction.__addToTransactionQueue(function(a,d,f,g){x.default.DEBUG&&console.log("Fetching",e.__currentName,j),a.executeSql(i,j,function(a,d){x.default.DEBUG&&console.log("Fetched data",d);var e=void 0;try{if(0===d.rows.length)return c?f([]):f();if(e=[],b)for(var g=0;g=b.__requests.length)b.__requests=[],b.__active&&a();else try{if(i=b.__requests[j],!i.req)return void i.op(c,i.args,h,e);if("done"===i.req.__readyState)return;i.op(c,i.args,d,e,h)}catch(a){e(a)}}b.__tx=c;var i=null,j=-1;h()},function(a){if(a!==!0){var c=(0,g.webSQLErrback)(a);b.__abortTransaction(c)}},function(){if(b.__transFinishedCb===e.prototype.__transFinishedCb)return b.__transactionEndCallback||b.__requestsFinished?void(b.__transactionEndCallback&&!b.__completed&&b.__transFinishedCb(b.__errored,b.__transactionEndCallback)):void(b.__transactionFinished=!0)},function(a,c,d,e,f){return!(!a.readOnly&&!c)||(b.__transFinishedCb=function(a,b){a?e(a,b):f(b)},b.__transactionEndCallback&&!b.__completed&&b.__transFinishedCb(b.__errored,b.__transactionEndCallback),!1)})},e.prototype.__createRequest=function(a){var b=this,c=h.IDBRequest.__createInstance();return c.__source=void 0!==a?a:b.db,c.__transaction=b,c},e.prototype.__addToTransactionQueue=function(a,b,c){var d=this.__createRequest(c);return this.__pushToQueue(d,a,b),d},e.prototype.__addNonRequestToTransactionQueue=function(a,b,c){this.__pushToQueue(null,a,b)},e.prototype.__pushToQueue=function(a,b,c){this.__assertActive(),this.__requests.push({op:b,args:c,req:a})},e.prototype.__assertActive=function(){if(!this.__active)throw(0,g.createDOMException)("TransactionInactiveError","A request was placed against a transaction which is currently not active, or which is finished")},e.prototype.__assertWritable=function(){if("readonly"===this.mode)throw(0,g.createDOMException)("ReadOnlyError","The transaction is read only")},e.prototype.__assertVersionChange=function(){e.__assertVersionChange(this)},e.prototype.objectStore=function(a){var b=this;if(!(b instanceof e))throw new TypeError("Illegal invocation");if(0===arguments.length)throw new TypeError("No object store name was specified");if(e.__assertNotFinished(b),b.__objectStoreNames.indexOf(a)===-1)throw(0,g.createDOMException)("NotFoundError",a+" is not participating in this transaction");var c=b.db.__objectStores[a];if(!c)throw(0,g.createDOMException)("NotFoundError",a+" does not exist in "+b.db.name);return(!b.__storeHandles[a]||b.__storeHandles[a].__pendingDelete||b.__storeHandles[a].__deleted)&&(b.__storeHandles[a]=l.default.__clone(c,b)),b.__storeHandles[a]},e.prototype.__abortTransaction=function(a){function b(b,d){b?d&&"number"==typeof d.code?n.default.DEBUG&&console.log("Rollback erred; feature is probably not supported as per WebSQL",c):n.default.DEBUG&&console.log("Rollback succeeded",c):n.default.DEBUG&&console.log("Rollback not possible due to missing transaction",c),c.__requests.filter(function(a){return a.req&&"done"!==a.req.__readyState}).reduce(function(a,b){return a.then(function(){b.req.__readyState="done",b.req.__result=void 0,b.req.__error=(0,g.createDOMException)("AbortError","A request was aborted.");var a=(0,f.createEvent)("error",b.req.__error,{bubbles:!0,cancelable:!0});return new q.default(function(c){setTimeout(function(){b.req.dispatchEvent(a),c()})})})},q.default.resolve()).then(function(){var b=(0,f.createEvent)("abort",a,{bubbles:!0,cancelable:!1});setTimeout(function(){c.__abortFinished=!0,c.dispatchEvent(b),c.__storeHandles={},c.dispatchEvent((0,f.createEvent)("__abort"))})})}var c=this;(0,g.logError)("Error","An error occurred in a transaction",a),c.__errored||(c.__errored=!0,"versionchange"===c.mode&&(c.db.__version=c.db.__oldVersion,c.db.__objectStoreNames=c.db.__oldObjectStoreNames,c.__objectStoreNames=c.db.__oldObjectStoreNames,Object.values(c.db.__objectStores).concat(Object.values(c.__storeHandles)).forEach(function(a){"__pendingName"in a&&c.db.__oldObjectStoreNames.indexOf(a.__pendingName)>-1&&(a.__name=a.__originalName),a.__indexNames=a.__oldIndexNames,delete a.__pendingDelete,Object.values(a.__indexes).concat(Object.values(a.__indexHandles)).forEach(function(b){"__pendingName"in b&&a.__oldIndexNames.indexOf(b.__pendingName)>-1&&(b.__name=b.__originalName),delete b.__pendingDelete})})),c.__active=!1,null!==a&&(c.__error=a),c.__requestsFinished&&setTimeout(function(){throw a},0),c.__transFinishedCb(!0,function(a){if(a&&c.__tx){if("readwrite"===c.mode)return c.__transactionFinished?void b():void(c.__transactionEndCallback=b);try{c.__tx.executeSql("ROLLBACK",[],b,b)}catch(a){b()}}else b(null,{code:0})}))},e.prototype.abort=function(){var a=this;if(!(a instanceof e))throw new TypeError("Illegal invocation");n.default.DEBUG&&console.log("The transaction was aborted",a),e.__assertNotFinished(a),a.__abortTransaction(null)},e.prototype[Symbol.toStringTag]="IDBTransactionPrototype",e.__assertVersionChange=function(a){if(!a||"versionchange"!==a.mode)throw(0,g.createDOMException)("InvalidStateError","Not a version transaction")},e.__assertNotVersionChange=function(a){if(a&&"versionchange"===a.mode)throw(0,g.createDOMException)("InvalidStateError","Cannot be called during a version transaction")},e.__assertNotFinished=function(a){if(!a||a.__completed||a.__abortFinished)throw(0,g.createDOMException)("InvalidStateError","Transaction finished by commit or abort")},e.__assertActive=function(a){if(!a||!a.__active)throw(0,g.createDOMException)("TransactionInactiveError","A request was placed against a transaction which is currently not active, or which is finished")},e.prototype.__getParent=function(){return this.db},e.prototype.__userErrorEventHandler=function(a,b){if(this.__internal)throw this.__internal=!1,a;b()},s.forEach(function(a){Object.defineProperty(e.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")},set:function(a){throw new TypeError("Illegal invocation")}})}),t.forEach(function(a){Object.defineProperty(e.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),Object.defineProperty(e.prototype,"constructor",{enumerable:!1,writable:!0,configurable:!0,value:e}),Object.defineProperty(e,"prototype",{writable:!1}),c.default=e,b.exports=c.default},{"./CFG":326,"./DOMException":327,"./Event":329,"./IDBObjectStore":335,"./IDBRequest":336,"./util":345,eventtarget:298,"sync-promise":302}],338:[function(a,b,c){"use strict";function d(a){e.ShimEvent.call(this,a),this[Symbol.toStringTag]="IDBVersionChangeEvent",this.toString=function(){return"[object IDBVersionChangeEvent]"},this.__eventInitDict=arguments[1]||{}}Object.defineProperty(c,"__esModule",{value:!0});var e=a("./Event"),f=a("./util"),g=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(f),h=["oldVersion","newVersion"];d.prototype=Object.create(e.ShimEvent.prototype),d.prototype[Symbol.toStringTag]="IDBVersionChangeEventPrototype",h.forEach(function(a){Object.defineProperty(d.prototype,a,{enumerable:!0,configurable:!0,get:function(){if(!(this instanceof d))throw new TypeError("Illegal invocation");return this.__eventInitDict&&this.__eventInitDict[a]||("oldVersion"===a?0:null)}})}),Object.defineProperty(d,Symbol.hasInstance,{value:function(a){return g.isObj(a)&&"oldVersion"in a&&"boolean"==typeof a.defaultPrevented}}),Object.defineProperty(d.prototype,"constructor",{enumerable:!1,writable:!0,configurable:!0,value:d}),Object.defineProperty(d,"prototype",{writable:!1}),c.default=d,b.exports=c.default},{"./Event":329,"./util":345}],339:[function(a,b,c){"use strict";function d(a,b,c){return new Array(b-String(a).length+1).join(c)+a}function e(a){return a=a.toString(32),1===a.length?"0"+a:a}function f(a){return(a+j(11)).slice(0,11)}function g(a){for(var b="",c=0;cg&&(d=!0),!b.lowerOpen&&f>=g&&(d=!0)),void 0!==b.upper&&(b.upperOpen&&f1:b===a}function A(a,b){var c=[];if(Array.isArray(a))for(var d=0;d0&&c.push(e);continue}e=e[0]}(null==b||y(e,b,!0))&&c.push(e)}else(null==b||y(a,b,!0))&&c.push(a);return c}function B(a){var b=a.type,c=a.value;switch(b){case"number":case"string":return c;case"array":for(var d=[],e=c.length,f=0;fT)return c("failure");G(a,b,e,function(){c(null,e)},d)},d)}function I(a,b,c,d,e){"number"!=typeof c||c<1?d():F(a,b,function(f){var g=Math.floor(Math.min(c,T));g>=f?G(a,b,g,d,e):d()},e)}Object.defineProperty(c,"__esModule",{value:!0}),c.possiblyUpdateKeyGenerator=c.generateKeyForStore=c.findMultiEntryMatches=c.isKeyInRange=c.isMultiEntryMatch=c.checkKeyCouldBeInjectedIntoValue=c.injectKeyIntoValueUsingKeyPath=c.extractKeyValueDecodedFromValueUsingKeyPath=c.evaluateKeyPathOnValue=c.extractKeyFromValueUsingKeyPath=c.convertValueToKeyRethrowingAndIfInvalid=c.convertValueToMultiEntryKey=c.convertValueToKey=c.convertValueToMultiEntryKeyDecoded=c.convertValueToKeyValueDecoded=c.convertKeyToValue=c.roundTrip=c.decode=c.encode=void 0;var J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},K=a("./DOMException"),L=a("./util"),M=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(L),N=a("./IDBFactory"),O=a("./CFG"),P=function(a){return a&&a.__esModule?a:{default:a}}(O),Q=["invalid","number","date","string","binary","array"],R=["negativeInfinity","bigNegative","smallNegative","smallPositive","bigPositive","positiveInfinity"],S={invalid:{encode:function(a){return Q.indexOf("invalid")+"-"},decode:function(a){}},number:{encode:function(a){var b=Math.abs(a).toString(32),c=b.indexOf(".");b=c!==-1?b.replace(".",""):b;var d=b.search(/[^0]/);b=b.slice(d);var h=void 0,i=void 0,k=void 0;return isFinite(a)?a<0?a>-1?(h=R.indexOf("smallNegative"),i=e(d),k=g(f(b))):(h=R.indexOf("bigNegative"),i=g(e(c!==-1?c:b.length)),k=g(f(b))):a<1?(h=R.indexOf("smallPositive"),i=g(e(d)),k=f(b)):(h=R.indexOf("bigPositive"),i=e(c!==-1?c:b.length),k=f(b)):(i=j(2),k=j(11),h=R.indexOf(a>0?"positiveInfinity":"negativeInfinity")),Q.indexOf("number")+"-"+h+i+k},decode:function(a){var b=+a.substr(2,1),c=a.substr(3,2),d=a.substr(5,11);switch(R[b]){case"negativeInfinity":return-1/0;case"positiveInfinity":return 1/0;case"bigPositive":return h(d,c);case"smallPositive":return c=k(g(c)),h(d,c);case"smallNegative":return c=k(c),d=g(d),-h(d,c);case"bigNegative":return c=g(c),d=g(d),-h(d,c);default:throw new Error("Invalid number.")}}},string:{encode:function(a,b){return b&&(a=a.replace(/(.)/g,"-$1")+" "),Q.indexOf("string")+"-"+a},decode:function(a,b){return a=a.slice(2),b&&(a=a.substr(0,a.length-1).replace(/-(.)/g,"$1")),a}},array:{encode:function(a){for(var b=[],c=0;c889)throw(0,o.createDOMException)("DataError","The encoded key is "+a.length+" characters long, but IE only allows 889 characters. Consider replacing numeric keys with strings to reduce the encoded length.")}Object.defineProperty(c,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},o=a("./DOMException"),p=a("./Key"),q=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(p),r="__$$compoundKey",s=/\$\$/g,t="$$$$",u="$_$";c.default=d,b.exports=c.default},{"./DOMException":327,"./Key":339}],344:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{default:a}}function f(a,b){if(a&&"object"===(void 0===a?"undefined":i(a)))for(var c in a)f(c,a[c]);else{if(!(a in C.default))throw new Error(a+" is not a valid configuration property");C.default[a]=b}}function g(a,b){function c(a,b,c){if(!c||!Object.defineProperty)try{e[a]=b}catch(a){console.log(a)}if(e[a]!==b&&Object.defineProperty)try{var d=c||{};d.get=function(){return b},Object.defineProperty(e,a,d)}catch(a){}e[a]!==b&&"undefined"!=typeof console&&console.warn&&console.warn("Unable to shim "+a)}b&&f(b);var e=a||("undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==d?d:{});c("shimIndexedDB",o.shimIndexedDB,{enumerable:!1,configurable:!0}),e.shimIndexedDB&&(e.shimIndexedDB.__useShim=function(){var a=e.shimIndexedDB.modules.IDBFactory;if(void 0!==C.default.win.openDatabase){if(C.default.fullIDLSupport){var b=e.shimIndexedDB.modules.ShimEvent,d=e.shimIndexedDB.modules.ShimEventTarget;Object.setPrototypeOf(y.default,d),Object.setPrototypeOf(m.IDBRequest,d),Object.setPrototypeOf(w.default,d),Object.setPrototypeOf(k.default,b),Object.setPrototypeOf(n.ShimDOMException,Error),Object.setPrototypeOf(n.ShimDOMException.prototype,Error.prototype)}[["indexedDB",o.shimIndexedDB],["IDBFactory",a],["IDBDatabase",y.default],["IDBObjectStore",s.default],["IDBIndex",u.default],["IDBTransaction",w.default],["IDBCursor",l.IDBCursor],["IDBCursorWithValue",l.IDBCursorWithValue],["IDBKeyRange",q.default],["IDBRequest",m.IDBRequest],["IDBOpenDBRequest",m.IDBOpenDBRequest],["IDBVersionChangeEvent",k.default]].forEach(function(a){var b=h(a,2);c(b[0],b[1],{enumerable:!1,configurable:!0})}),C.default.addNonIDBGlobals&&e.indexedDB&&e.indexedDB.modules&&(c("ShimDOMStringList",e.indexedDB.modules.ShimDOMStringList,{enumerable:!1,configurable:!0}),c("ShimEvent",e.indexedDB.modules.ShimEvent),c("ShimCustomEvent",e.indexedDB.modules.ShimCustomEvent),c("ShimEventTarget",e.indexedDB.modules.ShimEventTarget),c("ShimDOMException",e.indexedDB.modules.ShimDOMException))}else"object"===i(e.indexedDB)&&(0,A.default)(l.IDBCursor,l.IDBCursorWithValue,y.default,a,u.default,q.default,s.default,m.IDBRequest,w.default)},e.shimIndexedDB.__debug=function(a){C.default.DEBUG=a},e.shimIndexedDB.__setConfig=f,e.shimIndexedDB.__getConfig=function(a){if(!(a in C.default))throw new Error(a+" is not a valid configuration property");return C.default[a]},e.shimIndexedDB.__setUnicodeIdentifiers=function(a){f({UnicodeIDStart:a.UnicodeIDStart,UnicodeIDContinue:a.UnicodeIDContinue})}),"indexedDB"in e||"undefined"==typeof window||(e.indexedDB=e.indexedDB||e.webkitIndexedDB||e.mozIndexedDB||e.oIndexedDB||e.msIndexedDB);var g=!1;return"undefined"!=typeof navigator&&(navigator.userAgent.match(/Android (?:2|3|4\.[0-3])/)&&!navigator.userAgent.match(/Chrome/)||(navigator.userAgent.indexOf("Safari")===-1||navigator.userAgent.indexOf("Chrome")>-1)&&/(iPad|iPhone|iPod).* os 9_/i.test(navigator.userAgent)&&!window.MSStream)&&(g=!0),C.default.DEFAULT_DB_SIZE||(C.default.DEFAULT_DB_SIZE=1024*("undefined"!=typeof navigator&&navigator.userAgent.indexOf("Safari")>-1&&navigator.userAgent.indexOf("Chrome")===-1?25:4)*1024),e.indexedDB&&!g||void 0===C.default.win.openDatabase?(e.IDBDatabase=e.IDBDatabase||e.webkitIDBDatabase,e.IDBTransaction=e.IDBTransaction||e.webkitIDBTransaction||{},e.IDBCursor=e.IDBCursor||e.webkitIDBCursor,e.IDBKeyRange=e.IDBKeyRange||e.webkitIDBKeyRange):e.shimIndexedDB.__useShim(),e}Object.defineProperty(c,"__esModule",{value:!0});var h=function(){function a(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!b||c.length!==b);d=!0);}catch(a){e=!0,f=a}finally{try{!d&&h.return&&h.return()}finally{if(e)throw f}}return c}return function(b,c){if(Array.isArray(b))return b;if(Symbol.iterator in Object(b))return a(b,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};a("babel-polyfill");var j=a("./IDBVersionChangeEvent"),k=e(j),l=a("./IDBCursor"),m=a("./IDBRequest"),n=a("./DOMException"),o=a("./IDBFactory"),p=a("./IDBKeyRange"),q=e(p),r=a("./IDBObjectStore"),s=e(r),t=a("./IDBIndex"),u=e(t),v=a("./IDBTransaction"),w=e(v),x=a("./IDBDatabase"),y=e(x),z=a("./polyfill"),A=e(z),B=a("./CFG"),C=e(B);(void 0!==d?d:"undefined"!=typeof window?window:self)._babelPolyfill=!1,c.default=g,b.exports=c.default}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./CFG":326,"./DOMException":327,"./IDBCursor":330,"./IDBDatabase":331,"./IDBFactory":332,"./IDBIndex":333,"./IDBKeyRange":334,"./IDBObjectStore":335,"./IDBRequest":336,"./IDBTransaction":337,"./IDBVersionChangeEvent":338,"./polyfill":343,"babel-polyfill":1}],345:[function(a,b,c){"use strict";function d(a){return"_"+a.replace(/\^/g,"^^").replace(/\0/g,"^0").replace(/([A-Z])/g,"^$1").replace(/([\uD800-\uDBFF])(?![\uDC00-\uDFFF])|(^|[^\uD800-\uDBFF])([\uDC00-\uDFFF])/g,function(a,b,c){return b?"^2"+b+"�":"^3�"+c})}function e(a){return a.replace(/\^/g,"^^").replace(/\0/g,"^0")}function f(a){return a.replace(/\^0/g,"\0").replace(/\^\^/g,"^")}function g(a){return a.replace(/"/g,'""')}function h(a){return'"'+g(a)+'"'}function i(a){if(G.default.escapeDatabaseName)return G.default.escapeDatabaseName(e(a));if(a="D"+d(a),G.default.databaseCharacterEscapeList!==!1&&(a=a.replace(G.default.databaseCharacterEscapeList?new RegExp(G.default.databaseCharacterEscapeList,"g"):/[\u0000-\u001F\u007F"*\/:<>?\\|]/g,function(a){return"^1"+a.charCodeAt().toString(16).padStart(2,"0")})),G.default.databaseNameLengthLimit!==!1&&a.length>=(G.default.databaseNameLengthLimit||254)-(G.default.addSQLiteExtension!==!1?7:0))throw new Error("Unexpectedly long database name supplied; length limit required for Node compatibility; passed length: "+a.length+"; length limit setting: "+(G.default.databaseNameLengthLimit||254)+".");return a+(G.default.addSQLiteExtension!==!1?".sqlite":"")}function j(a){return G.default.unescapeDatabaseName?G.default.unescapeDatabaseName(f(a)):a.slice(2).replace(/(\^+)1([0-9a-f]{2})/g,function(a,b,c){return b%2?String.fromCharCode(parseInt(c,16)):a}).replace(/(\^+)3\uD800([\uDC00-\uDFFF])/g,function(a,b,c){return b%2?c:a}).replace(/(\^+)2([\uD800-\uDBFF])\uDC00/g,function(a,b,c){return b%2?c:a}).replace(/(\^+)([A-Z])/g,function(a,b,c){return b%2?c:a}).replace(/(\^+)0/g,function(a,b){return b%2?"\0":a}).replace(/\^\^/g,"^")}function k(a){return h("S"+d(a))}function l(a){return h("I"+d(a))}function m(a){return"I"+d(a)}function n(a){return g(a).replace(/\^/g,"^^")}function o(a,b){return b[Symbol.hasInstance](a)}function p(a){return a&&"object"===(void 0===a?"undefined":E(a))}function q(a){return p(a)&&"function"==typeof a.getDate}function r(a){return p(a)&&"number"==typeof a.size&&"function"==typeof a.slice&&!("lastModified"in a)}function s(a){return p(a)&&"string"==typeof a.flags&&"function"==typeof a.exec}function t(a){return p(a)&&"string"==typeof a.name&&"function"==typeof a.slice&&"lastModified"in a}function u(a){return p(a)&&"number"==typeof a.byteLength&&("function"==typeof a.slice||"function"==typeof a.getFloat64)}function v(a){return p(a)&&"function"==typeof a[Symbol.iterator]}function w(a,b){b="string"==typeof b?[b]:b,b.forEach(function(b){Object.defineProperty(a,"__"+b,{enumerable:!1,configurable:!1,writable:!0}),Object.defineProperty(a,b,{enumerable:!0,configurable:!0,get:function(){return this["__"+b]}})})}function x(a){var b=G.default.UnicodeIDStart||"[$A-Z_a-z]",c=G.default.UnicodeIDContinue||"[$0-9A-Z_a-z]",d="(?:"+b+"|[$_]|\\\\"+H+")",e="(?:"+c+"|[$_]|\\\\"+H+"|\\u200C|\\u200D)";return new RegExp("^"+d+e+"*$").test(a)}function y(a){return"string"==typeof a&&(""===a||x(a)||a.split(".").every(x))}function z(a){return y(a)||Array.isArray(a)&&a.length&&Array.apply(null,a).every(function(a){return y(a)})}function A(a,b){a=Math.floor(Number(a));var c=void 0,d=void 0;switch(b){case"unsigned long long":c=9007199254740991,d=0;break;case"unsigned long":c=4294967295,d=0;break;default: -throw new Error("Unrecognized type supplied to enforceRange")}if(isNaN(a)||!isFinite(a)||a>c||a=0;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c--;c)a.unshift("..");return a}function d(a,b){if(a.filter)return a.filter(b);for(var c=[],d=0;d=-1&&!e;f--){var g=f>=0?arguments[f]:a.cwd();if("string"!=typeof g)throw new TypeError("Arguments to path.resolve must be strings");g&&(c=g+"/"+c,e="/"===g.charAt(0))}return c=b(d(c.split("/"),function(a){return!!a}),!e).join("/"),(e?"/":"")+c||"."},c.normalize=function(a){var e=c.isAbsolute(a),f="/"===g(a,-1);return a=b(d(a.split("/"),function(a){return!!a}),!e).join("/"),a||e||(a="."),a&&f&&(a+="/"),(e?"/":"")+a},c.isAbsolute=function(a){return"/"===a.charAt(0)},c.join=function(){var a=Array.prototype.slice.call(arguments,0);return c.normalize(d(a,function(a,b){if("string"!=typeof a)throw new TypeError("Arguments to path.join must be strings");return a}).join("/"))},c.relative=function(a,b){function d(a){for(var b=0;b=0&&""===a[c];c--);return b>c?[]:a.slice(b,c-b+1)}a=c.resolve(a).substr(1),b=c.resolve(b).substr(1);for(var e=d(a.split("/")),f=d(b.split("/")),g=Math.min(e.length,f.length),h=g,i=0;i1)for(var c=1;c=0;--d){var e=this.tryEntries[d],f=e.completion;if("root"===e.tryLoc)return b("end");if(e.tryLoc<=this.prev){var g=t.call(e,"catchLoc"),h=t.call(e,"finallyLoc");if(g&&h){if(this.prev=0;--c){var d=this.tryEntries[c];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev=0;--b){var c=this.tryEntries[b];if(c.finallyLoc===a)return this.complete(c.completion,c.afterLoc),n(c),D}},catch:function(a){for(var b=this.tryEntries.length-1;b>=0;--b){var c=this.tryEntries[b];if(c.tryLoc===a){var d=c.completion;if("throw"===d.type){var e=d.arg;n(c)}return e}}throw new Error("illegal catch attempt")},delegateYield:function(a,b,c){return this.delegate={iterator:p(a),resultName:b,nextLoc:c},"next"===this.method&&(this.arg=r),D}}}("object"==typeof c?c:"object"==typeof window?window:"object"==typeof self?self:this)}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:300}],302:[function(a,b,c){function d(a){return a&&"function"==typeof a.then}function e(a,b){a.then(null,b)}function f(a){function b(a,b){j.v=a,j.s=b,j.c[b].forEach(function(b){b(a)}),j.c[b].length&&(j.c=null)}function c(a){j.c&&(d(a)?e(a.then(c),f):b(a,h))}function f(a){j.c&&(d(a)?e(a.then(f),f):b(a,i))}var j=this;j.v=0,j.s=g,j.c=[[],[]];try{a(c,f)}catch(a){f(a)}}var g=2,h=0,i=1,j=f.prototype;j.then=function(a,b){var c=this;return new f(function(d,e){function f(){try{d(a?a(c.v):c.v)}catch(a){g(a)}}var g="function"==typeof b?b:e;c.s===h?f():c.s===i?g(c.v):(c.c[h].push(f),c.c[i].push(g))})},j.catch=function(a){var b=this;return new f(function(c,d){function e(){try{c(a(b.v))}catch(a){d(a)}}b.s===i?e():b.s===h?c(b.v):(b.c[i].push(e),b.c[h].push(c))})},f.all=function(a){return new f(function(b,c,f){f=a.length;var g=[];if(!f)return void b(g);a.forEach(function(h,i){d(h)?e(h.then(function(a){g[i]=a,--f||b(g)}),c):(g[i]=h,--f||b(a))})})},f.race=function(a){var b=!1;return new f(function(c,f){a.some(function(a,g){if(!d(a))return c(a),b=!0,!0;e(a.then(function(a){b||(c(a),b=!0)}),f)})})},f.resolve=function(a){return new f(function(b,c){b(a)})},f.reject=function(a){return new f(function(b,c){c(a)})},b.exports=f},{}],303:[function(a,b,c){b.exports=[{sparseArrays:{testPlainObjects:!0,test:function(a){return Array.isArray(a)},replace:function(a,b){return b.iterateUnsetNumeric=!0,a}}},{sparseUndefined:{test:function(a,b){return void 0===a&&b.ownKeys===!1},replace:function(a){return null},revive:function(a){}}}]},{}],304:[function(a,b,c){b.exports=a("./structured-cloning").concat({checkDataCloneException:[function(a){var b={}.toString.call(a).slice(8,-1);if(["symbol","function"].includes(typeof a)||["Arguments","Module","Error","Promise","WeakMap","WeakSet"].includes(b)||a===Object.prototype||("Blob"===b||"File"===b)&&a.isClosed||a&&"object"==typeof a&&"number"==typeof a.nodeType&&"function"==typeof a.insertBefore)throw new DOMException("The object cannot be cloned.","DataCloneError");return!1}]})},{"./structured-cloning":305}],305:[function(a,b,c){b.exports=[a("../types/user-object"),a("../presets/undefined"),a("../types/primitive-objects"),a("../types/special-numbers"),a("../types/date"),a("../types/regexp"),"function"==typeof Map&&a("../types/map"),"function"==typeof Set&&a("../types/set"),"function"==typeof ArrayBuffer&&a("../types/arraybuffer"),"function"==typeof Uint8Array&&a("../types/typed-arrays"),"function"==typeof DataView&&a("../types/dataview"),"undefined"!=typeof Intl&&a("../types/intl-types"),a("../types/imagedata"),a("../types/imagebitmap"),a("../types/file"),a("../types/filelist"),a("../types/blob")]},{"../presets/undefined":306,"../types/arraybuffer":307,"../types/blob":308,"../types/dataview":309,"../types/date":310,"../types/file":311,"../types/filelist":312,"../types/imagebitmap":313,"../types/imagedata":314,"../types/intl-types":315,"../types/map":316,"../types/primitive-objects":317,"../types/regexp":318,"../types/set":319,"../types/special-numbers":320,"../types/typed-arrays":321,"../types/user-object":323}],306:[function(a,b,c){b.exports=[a("../presets/sparse-undefined"),a("../types/undefined")]},{"../presets/sparse-undefined":303,"../types/undefined":322}],307:[function(a,b,c){var d=a("typeson"),e=a("base64-arraybuffer");c.ArrayBuffer=[function(a){return"ArrayBuffer"===d.toStringTag(a)},function(a){return e.encode(a)},function(a){return e.decode(a)}]},{"base64-arraybuffer":2,typeson:325}],308:[function(a,b,c){var d=a("typeson");c.Blob={test:function(a){return"Blob"===d.toStringTag(a)},replace:function(a){var b=new XMLHttpRequest;if(b.open("GET",URL.createObjectURL(a),!1),200!==b.status&&0!==b.status)throw new Error("Bad Blob access: "+b.status);return b.send(),{type:a.type,stringContents:b.responseText}},revive:function(a){return new Blob([a.stringContents],{type:a.type})},replaceAsync:function(a){return new d.Promise(function(b,c){if(a.isClosed)return void c(new Error("The Blob is closed"));var d=new FileReader;d.addEventListener("load",function(){b({type:a.type,stringContents:d.result})}),d.addEventListener("error",function(){c(d.error)}),d.readAsText(a)})}}},{typeson:325}],309:[function(a,b,c){var d=a("typeson"),e=a("base64-arraybuffer");c.DataView=[function(a){return"DataView"===d.toStringTag(a)},function(a){return{buffer:e.encode(a.buffer),byteOffset:a.byteOffset,byteLength:a.byteLength}},function(a){return new DataView(e.decode(a.buffer),a.byteOffset,a.byteLength)}]},{"base64-arraybuffer":2,typeson:325}],310:[function(a,b,c){var d=a("typeson");c.Date=[function(a){return"Date"===d.toStringTag(a)},function(a){return a.getTime()},function(a){return new Date(a)}]},{typeson:325}],311:[function(a,b,c){var d=a("typeson");c.File={test:function(a){return"File"===d.toStringTag(a)},replace:function(a){var b=new XMLHttpRequest;if(b.open("GET",URL.createObjectURL(a),!1),200!==b.status&&0!==b.status)throw new Error("Bad Blob access: "+b.status);return b.send(),{type:a.type,stringContents:b.responseText,name:a.name,lastModified:a.lastModified}},revive:function(a){return new File([a.stringContents],a.name,{type:a.type,lastModified:a.lastModified})},replaceAsync:function(a){return new d.Promise(function(b,c){if(a.isClosed)return void c(new Error("The File is closed"));var d=new FileReader;d.addEventListener("load",function(){b({type:a.type,stringContents:d.result,name:a.name,lastModified:a.lastModified})}),d.addEventListener("error",function(){c(d.error)}),d.readAsText(a)})}}},{typeson:325}],312:[function(a,b,c){var d=a("typeson");c.File=a("./file").File,c.FileList={test:function(a){return"FileList"===d.toStringTag(a)},replace:function(a){for(var b=[],c=0;c0?"Infinity":"-Infinity"},function(a){return{NaN:0/0,Infinity:1/0,"-Infinity":-1/0}[a]}]},{}],321:[function(a,b,c){(function(b){var d=a("typeson"),e=a("base64-arraybuffer"),f="undefined"==typeof self?b:self;["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"].forEach(function(a){var b=f[a];b&&(c[a]=[function(b){return d.toStringTag(b)===a},function(a){return e.encode(a.buffer,a.byteOffset,a.byteLength)},function(a){return new b(e.decode(a))}])})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-arraybuffer":2,typeson:325}],322:[function(a,b,c){var d=a("typeson");b.exports={undefined:[function(a,b){return void 0===a&&(b.ownKeys||!("ownKeys"in b))},function(a){return null},function(a){return new d.Undefined}]}},{typeson:325}],323:[function(a,b,c){var d=a("typeson");c.userObjects=[function(a,b){return d.isUserObject(a)},function(a){return Object.assign({},a)},function(a){return a}]},{typeson:325}],324:[function(a,b,c){b.exports=Array.from||function(a){for(var b=[],c=a.next();!c.done;c=a.next())b.push(c.value);return b}},{}],325:[function(a,b,c){function d(a,b){return j.isObject(a)&&"function"==typeof a.then&&(!b||"function"==typeof a.catch)}function e(a){return q.call(a).slice(8,-1)}function f(a,b){if(!a||"object"!=typeof a)return!1;var c=r(a);if(!c)return!1;var d=s.call(c,"constructor")&&c.constructor;return"function"!=typeof d?null===b:"function"==typeof d&&null!==b&&t.call(d)===t.call(b)}function g(a){return!(!a||"Object"!==e(a))&&(!r(a)||f(a,Object))}function h(a){if(!a||"Object"!==e(a))return!1;var b=r(a);return!b||(f(a,Object)||h(b))}function i(a){return a&&"object"==typeof a}function j(a){var b=[],c=[],e={},h=this.types={},j=this.stringify=function(b,c,d,e){e=Object.assign({},a,e,{stringification:!0});var f=r(b,null,e);return p(f)?JSON.stringify(f[0],c,d):f.then(function(a){return JSON.stringify(a,c,d)})};this.stringifySync=function(a,b,c,d){return j(a,b,c,Object.assign({},{throwOnBadSyncType:!0},d,{sync:!0}))},this.stringifyAsync=function(a,b,c,d){return j(a,b,c,Object.assign({},{throwOnBadSyncType:!0},d,{sync:!1}))};var q=this.parse=function(b,c,d){return d=Object.assign({},a,d,{parse:!0}),s(JSON.parse(b,c),d)};this.parseSync=function(a,b,c){return q(a,b,Object.assign({},{throwOnBadSyncType:!0},c,{sync:!0}))},this.parseAsync=function(a,b,c){return q(a,b,Object.assign({},{throwOnBadSyncType:!0},c,{sync:!1}))};var r=this.encapsulate=function(d,h,j){function k(a){return o(s).length?a&&g(a)&&!a.hasOwnProperty("$types")?a.$types=s:a={$:a,$types:{$:s}}:i(a)&&a.hasOwnProperty("$types")&&(a={$:a,$types:!0}),a}function l(a,b){return Promise.all(b.map(function(a){return a[1].p})).then(function(c){return Promise.all(c.map(function(c){var d=[],e=b.splice(0,1)[0],g=e[0],h=e[2],i=e[3],j=e[4],k=e[5],o=m(g,c,h,i,d),p=f(o,n);return g&&p?o.p.then(function(b){return j[k]=b,l(a,d)}):(g?j[k]=o:a=p?o.p:o,l(a,d))}))}).then(function(){return a})}function m(a,c,d,e,h){var i=typeof c;if(i in{string:1,boolean:1,number:1,undefined:1})return void 0===c||"number"===i&&(isNaN(c)||c===-1/0||1/0===c)?q(a,c,e,h):c;if(null===c)return c;if(d&&!e.iterateIn&&!e.iterateUnsetNumeric){var j=t.indexOf(c);if(!(j<0))return s[a]="#","#"+u[j];d===!0&&(t.push(c),u.push(a))}var k=g(c),l=p(c),r=(k||l)&&(!b.length||e.replaced)||e.iterateIn?c:q(a,c,e,h,k||l);if(r!==c)return r;var v;if(l||"array"===e.iterateIn)v=new Array(c.length);else{if(!k&&"object"!==e.iterateIn)return""===a&&f(c,n)?(h.push([a,c,d,e]),c):c;v={}}if(e.iterateIn)for(var w in c){var x={ownKeys:c.hasOwnProperty(w)},y=a+(a?".":"")+w,z=m(y,c[w],!!d,x,h);f(z,n)?h.push([y,z,!!d,x,v,w]):void 0!==z&&(v[w]=z)}else o(c).forEach(function(b){var e=a+(a?".":"")+b,g=m(e,c[b],!!d,{ownKeys:!0},h);f(g,n)?h.push([e,g,!!d,{ownKeys:!0},v,b]):void 0!==g&&(v[b]=g)});if(e.iterateUnsetNumeric)for(var A=0,B=c.length;A=this.length||!Number.isInteger(a)?null:this._items[a]},clone:function(){var a=h.__createInstance();return a._items=this._items.slice(),a._length=this.length,a.addIndexes(),a},addIndexes:function(){for(var a=0;a":"<";void 0!==b&&(k.push("AND",j,n+"= ?"),l.push(v.encode(b))),void 0!==a?(k.push("AND",i,n+"= ?"),l.push(v.encode(a))):g&&void 0!==h.__key&&(k.push("AND",i,n+" ?"),l.push(v.encode(h.__key))),h.__count||(k.push("ORDER BY",i,m),h.__unique||"key"===h.__keyColumnName||k.push(",",j,m),!h.__unique&&h.__indexSource&&k.push(",",r.sqlQuote(h.__valueColumnName),m),k.push("LIMIT",f)),k=k.join(" "),B.default.DEBUG&&console.log(k,l),c.executeSql(k,l,function(a,b){h.__count?d(void 0,b.rows.length,void 0):b.rows.length>1?(h.__prefetchedIndex=0,h.__prefetchedData=b.rows,B.default.DEBUG&&console.log("Preloaded "+h.__prefetchedData.length+" records for cursor"),h.__decode(b.rows.item(0),d)):1===b.rows.length?h.__decode(b.rows.item(0),d):(B.default.DEBUG&&console.log("Reached end of cursors"),d(void 0,void 0,void 0))},function(a,b){B.default.DEBUG&&console.log("Could not execute Cursor.continue",k,l),e(b)})},i.prototype.__findMultiEntry=function(a,b,c,d,e){var f=this;if(f.__prefetchedData&&f.__prefetchedData.length===f.__prefetchedIndex)return B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),void d(void 0,void 0,void 0);var g=r.sqlQuote(f.__keyColumnName),h=["SELECT * FROM",r.escapeStoreNameForSQL(f.__store.__currentName)],i=[];h.push("WHERE",g,"NOT NULL"),f.__range&&void 0!==f.__range.lower&&Array.isArray(f.__range.upper)&&0===f.__range.upper.indexOf(f.__range.lower)&&(h.push("AND",g,"LIKE ? ESCAPE '^'"),i.push("%"+r.sqlLIKEEscape(f.__range.__lowerCached.slice(0,-1))+"%"));var j=f.__sqlDirection,k="ASC"===j?">":"<",l=r.sqlQuote("key");void 0!==b&&(h.push("AND",l,k+"= ?"),i.push(v.encode(b))),void 0!==a?(h.push("AND",g,k+"= ?"),i.push(v.encode(a))):void 0!==f.__key&&(h.push("AND",g,k+" ?"),i.push(v.encode(f.__key))),f.__count||(h.push("ORDER BY",g,j),f.__unique||"key"===f.__keyColumnName||h.push(",",r.sqlQuote("key"),j),!f.__unique&&f.__indexSource&&h.push(",",r.sqlQuote(f.__valueColumnName),j)),h=h.join(" "),B.default.DEBUG&&console.log(h,i),c.executeSql(h,i,function(a,b){if(b.rows.length>0){if(f.__count){for(var c=0,e=0;eb.matchingKey.replace("[","z")?q?-1:1:a.keyb.key?"prev"===f.direction?-1:1:0}),i.length>1?(f.__prefetchedIndex=0,f.__prefetchedData={data:i,length:i.length,item:function(a){return this.data[a]}},B.default.DEBUG&&console.log("Preloaded "+f.__prefetchedData.length+" records for multiEntry cursor"),f.__decode(i[0],d)):1===i.length?(B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),f.__decode(i[0],d)):(B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),d(void 0,void 0,void 0))}else B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),d(void 0,void 0,void 0)},function(a,b){B.default.DEBUG&&console.log("Could not execute Cursor.continue",h,i),e(b)})},i.prototype.__onsuccess=function(a){var b=this;return function(c,d,e){if(b.__count)a(d,b.__req);else{void 0!==c&&(b.__gotValue=!0),b.__key=void 0===c?null:c,b.__primaryKey=void 0===e?null:e,b.__value=void 0===d?null:d;a(void 0===c?null:b,b.__req)}}},i.prototype.__decode=function(a,b){var c=this;if(c.__multiEntryIndex&&c.__unique){if(c.__matchedKeys||(c.__matchedKeys={}),c.__matchedKeys[a.matchingKey])return void b(void 0,void 0,void 0);c.__matchedKeys[a.matchingKey]=!0}var d=r.unescapeSQLiteResponse(c.__multiEntryIndex?a.matchingKey:a[c.__keyColumnName]),e=r.unescapeSQLiteResponse(a[c.__valueColumnName]),f=r.unescapeSQLiteResponse(a.key);b(v.decode(d,c.__multiEntryIndex),c.__valueDecoder.decode(e),v.decode(f),d)},i.prototype.__sourceOrEffectiveObjStoreDeleted=function(){m.default.__invalidStateIfDeleted(this.__store,"The cursor's effective object store has been deleted"),this.__indexSource&&z.default.__invalidStateIfDeleted(this.source,"The cursor's index source has been deleted")},i.prototype.__invalidateCache=function(){this.__prefetchedData=null},i.prototype.__continue=function(a,b){var c=this,d=void 0!==c.__advanceCount;if(t.default.__assertActive(c.__store.transaction),c.__sourceOrEffectiveObjStoreDeleted(),!c.__gotValue&&!b)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");if(void 0!==a){v.convertValueToKeyRethrowingAndIfInvalid(a);var e=(0,p.cmp)(a,c.key);if(0===e||c.direction.includes("next")&&e===-1||c.direction.includes("prev")&&1===e)throw(0,n.createDOMException)("DataError","Cannot "+(d?"advance":"continue")+" the cursor in an unexpected direction")}this.__continueFinish(a,void 0,d)},i.prototype.__continueFinish=function(a,b,c){var d=this,e=d.__advanceCount||B.default.cursorPreloadPackSize||100;d.__gotValue=!1,d.__req.__readyState="pending",d.__store.transaction.__pushToQueue(d.__req,function f(g,h,i,j,k){function l(a,b,e){if(c){if(d.__advanceCount>=2&&void 0!==a)return d.__advanceCount--,d.__key=a,d.__continue(void 0,!0),void k();d.__advanceCount=void 0}d.__onsuccess(i)(a,b,e)}if(d.__prefetchedData&&++d.__prefetchedIndex0||0===m&&(d.__unique||void 0===b||(0,p.cmp)(k,b)>=0))return void l(c,e,k);f(g,h,i,j)}()});d.__find(a,b,g,l,function(){d.__advanceCount=void 0,j.apply(void 0,arguments)},e)})},i.prototype.continue=function(){this.__continue(arguments[0])},i.prototype.continuePrimaryKey=function(a,b){function c(){d.__continueFinish(a,b,!1)}var d=this;if(t.default.__assertActive(d.__store.transaction),d.__sourceOrEffectiveObjStoreDeleted(),!d.__indexSource)throw(0,n.createDOMException)("InvalidAccessError","`continuePrimaryKey` may only be called on an index source.");if(!["next","prev"].includes(d.direction))throw(0,n.createDOMException)("InvalidAccessError","`continuePrimaryKey` may not be called with unique cursors.");if(!d.__gotValue)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");v.convertValueToKeyRethrowingAndIfInvalid(a),v.convertValueToKeyRethrowingAndIfInvalid(b);var e=(0,p.cmp)(a,d.key);if("next"===d.direction&&e===-1||"prev"===d.direction&&1===e)throw(0,n.createDOMException)("DataError","Cannot continue the cursor in an unexpected direction");0===e?x.encode(b,function(a){x.encode(d.primaryKey,function(b){if(a===b||"next"===d.direction&&ab)throw(0,n.createDOMException)("DataError","Cannot continue the cursor in an unexpected direction");c()})}):c()},i.prototype.advance=function(a){var b=this;if(0===(a=r.enforceRange(a,"unsigned long")))throw new TypeError("Calling advance() with count argument 0");b.__gotValue&&(b.__advanceCount=a),b.__continue()},i.prototype.update=function(a){function b(a){m.default.__storingRecordObjectStore(d,c.__store,a,!1,e)}var c=this;if(!arguments.length)throw new TypeError("A value must be passed to update()");if(t.default.__assertActive(c.__store.transaction),c.__store.transaction.__assertWritable(),c.__sourceOrEffectiveObjStoreDeleted(),!c.__gotValue)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");if(c.__keyOnly)throw(0,n.createDOMException)("InvalidStateError","This cursor method cannot be called when the key only flag has been set.");var d=c.__store.transaction.__createRequest(c),e=c.primaryKey;if(null!==c.__store.keyPath){var f=c.__store.__validateKeyAndValueAndCloneValue(a,void 0,!0),g=j(f,2),h=g[0],i=g[1];if(0!==(0,p.cmp)(c.primaryKey,h))throw(0,n.createDOMException)("DataError","The key of the supplied value to `update` is not equal to the cursor's effective key");b(i)}else{b(x.clone(a))}return d},i.prototype.delete=function(){var a=this;if(t.default.__assertActive(a.__store.transaction),a.__store.transaction.__assertWritable(),a.__sourceOrEffectiveObjStoreDeleted(),!a.__gotValue)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");if(a.__keyOnly)throw(0,n.createDOMException)("InvalidStateError","This cursor method cannot be called when the key only flag has been set.");return this.__store.transaction.__addToTransactionQueue(function(b,c,d,e){a.__find(void 0,void 0,b,function(c,f,g){var h="DELETE FROM "+r.escapeStoreNameForSQL(a.__store.__currentName)+' WHERE "key" = ?';B.default.DEBUG&&console.log(h,c,g),b.executeSql(h,[r.escapeSQLiteStatement(v.encode(g))],function(b,f){1===f.rowsAffected?(a.__store.__cursors.forEach(function(a){a.__invalidateCache()}),d(void 0)):e("No rows with key found"+c)},function(a,b){e(b)})},e)},void 0,a)},i.prototype[Symbol.toStringTag]="IDBCursorPrototype",["source","direction","key","primaryKey"].forEach(function(a){Object.defineProperty(i.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),Object.defineProperty(i,"prototype",{writable:!1});var D=function(a){function b(){return f(this,b),g(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return h(b,a),b}(i),E=D;D.__createInstance=function(){function a(){var a;(a=i.__super).call.apply(a,[this].concat(c)),this[Symbol.toStringTag]="IDBCursorWithValue",r.defineReadonlyProperties(this,"value")}for(var b=arguments.length,c=Array(b),d=0;dd?1:c===d?0:-1;if(A.default.DEBUG){var f=u.decode(c),g=u.decode(d);"object"===(void 0===a?"undefined":j(a))&&(a=JSON.stringify(a),f=JSON.stringify(f)),"object"===(void 0===b?"undefined":j(b))&&(b=JSON.stringify(b),g=JSON.stringify(g)),f!==a&&console.warn(a+" was incorrectly encoded as "+f),g!==b&&console.warn(b+" was incorrectly encoded as "+g)}return e}Object.defineProperty(c,"__esModule",{value:!0}),c.shimIndexedDB=c.cmp=c.IDBFactory=void 0;var j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},k=a("./Event"),l=a("./IDBVersionChangeEvent"),m=e(l),n=a("./DOMException"),o=a("./IDBRequest"),p=a("./DOMStringList"),q=e(p),r=a("./util"),s=d(r),t=a("./Key"),u=d(t),v=a("./IDBTransaction"),w=e(v),x=a("./IDBDatabase"),y=e(x),z=a("./CFG"),A=e(z),B=void 0,C=h;h.__createInstance=function(){function a(){this[Symbol.toStringTag]="IDBFactory",this.modules={Event:"undefined"!=typeof Event?Event:k.ShimEvent,Error:Error,ShimEvent:k.ShimEvent,ShimCustomEvent:k.ShimCustomEvent,ShimEventTarget:k.ShimEventTarget,ShimDOMException:n.ShimDOMException,ShimDOMStringList:q.default,IDBFactory:C},this.utils={createDOMException:n.createDOMException},this.__connections=[]}return a.prototype=C.prototype,new a},h.prototype.open=function(a){function b(a,b){if(!j){b=b?(0,n.webSQLErrback)(b):a,j=!0;var c=(0,k.createEvent)("error",b,{bubbles:!0,cancelable:!0});i.__readyState="done",i.__error=b,i.__result=void 0,i.dispatchEvent(c)}}function c(c){var f=A.default.win.openDatabase(p,1,a,A.default.DEFAULT_DB_SIZE);if(i.__readyState="done",void 0===e&&(e=c||1),c>e){return void b((0,n.createDOMException)("VersionError","An attempt was made to open a database using a lower version than the existing version.",e))}f.transaction(function(g){g.executeSql("CREATE TABLE IF NOT EXISTS __sys__ (name VARCHAR(255), keyPath VARCHAR(255), autoInc BOOLEAN, indexList BLOB, currNum INTEGER)",[],function(){g.executeSql('SELECT "name", "keyPath", "autoInc", "indexList" FROM __sys__',[],function(g,h){if(i.__result=y.default.__createInstance(f,a,c,e,h),d.__connections.push(i.result),c=d.length?a.executeSql("DROP TABLE IF EXISTS __sys__",[],function(){f()},c):a.executeSql("DROP TABLE "+s.escapeStoreNameForSQL(s.unescapeSQLiteResponse(d.item(e).name)),[],function(){b(e+1)},function(){b(e+1)})}(0)},function(a){f()})})},c)},c,null,function(a,b,c,d,e){return!(!a.readOnly&&!b)||(p=function(a,b){a?d(a,b):e(b)},!1)})},c)},c)},c),i},h.prototype.cmp=function(a,b){if(!(this instanceof h))throw new TypeError("Illegal invocation");if(arguments.length<2)throw new TypeError("You must provide two keys to be compared");return u.convertValueToKeyRethrowingAndIfInvalid(a),u.convertValueToKeyRethrowingAndIfInvalid(b),i(a,b)},h.prototype.webkitGetDatabaseNames=function(){function a(a,d){if(!b){d=d?(0,n.webSQLErrback)(d):a,b=!0;var e=(0,k.createEvent)("error",d,{bubbles:!0,cancelable:!0});c.__readyState="done",c.__error=d,c.__result=void 0,c.dispatchEvent(e)}}if(!(this instanceof h))throw new TypeError("Illegal invocation");if(f())throw(0,n.createDOMException)("SecurityError","Cannot get IndexedDB database names from an opaque origin.");var b=!1,c=o.IDBRequest.__createInstance();return g(function(){B.readTransaction(function(b){b.executeSql('SELECT "name" FROM dbVersions',[],function(a,b){for(var d=q.default.__createInstance(),e=0;ed.__connections.length-1)throw new TypeError("If providing an argument, __forceClose must be called with a numeric index to indicate a specific connection to lose");c(d.__connections[a])}},h.prototype[Symbol.toStringTag]="IDBFactoryPrototype",Object.defineProperty(h,"prototype",{writable:!1});var D=h.__createInstance();c.IDBFactory=h,c.cmp=i,c.shimIndexedDB=D},{"./CFG":327,"./DOMException":328,"./DOMStringList":329,"./Event":330,"./IDBDatabase":332,"./IDBRequest":337,"./IDBTransaction":338,"./IDBVersionChangeEvent":339,"./Key":340,"./util":346,fs:3,path:299}],334:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function f(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b0&&h.push("OR"),h.push(m.escapeIndexNameForSQL(b.name),"LIKE ? ESCAPE '^' "),i.push("%"+m.sqlLIKEEscape(o.encode(a,b.multiEntry))+"%")}),h.push(")");else if(b.multiEntry)h.push("AND",m.escapeIndexNameForSQL(b.name),"LIKE ? ESCAPE '^'"),i.push("%"+m.sqlLIKEEscape(o.encode(c,b.multiEntry))+"%");else{var j=(0,p.convertValueToKeyRange)(c,a);(0,p.setSQLForKeyRange)(j,m.escapeIndexNameForSQL(b.name),h,i,!0,!1)}return[a,b,f,c,d,e,h,i]}Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.IDBIndex=c.executeFetchIndexData=c.buildFetchIndexDataSQL=void 0;var j=a("./DOMException"),k=a("./IDBCursor"),l=a("./util"),m=e(l),n=a("./Key"),o=e(n),p=a("./IDBKeyRange"),q=a("./IDBTransaction"),r=d(q),s=a("./Sca"),t=e(s),u=a("./CFG"),v=d(u),w=a("./IDBObjectStore"),x=d(w),y=["objectStore","keyPath","multiEntry","unique"],z=g;g.__createInstance=function(a,b){function c(){var c=this;c[Symbol.toStringTag]="IDBIndex",m.defineReadonlyProperties(c,y),c.__objectStore=a,c.__name=c.__originalName=b.columnName,c.__keyPath=Array.isArray(b.keyPath)?b.keyPath.slice():b.keyPath;var d=b.optionalParams;c.__multiEntry=!(!d||!d.multiEntry),c.__unique=!(!d||!d.unique),c.__deleted=!!b.__deleted,c.__objectStore.__cursors=b.cursors||[],Object.defineProperty(c,"__currentName",{get:function(){return"__pendingName"in c?c.__pendingName:c.name}}),Object.defineProperty(c,"name",{enumerable:!1,configurable:!1,get:function(){return this.__name},set:function(b){var c=this;b=m.convertToDOMString(b);var d=c.name;if(r.default.__assertVersionChange(c.objectStore.transaction),r.default.__assertActive(c.objectStore.transaction),z.__invalidStateIfDeleted(c),x.default.__invalidStateIfDeleted(c),b!==d){if(c.objectStore.__indexes[b]&&!c.objectStore.__indexes[b].__deleted&&!c.objectStore.__indexes[b].__pendingDelete)throw(0,j.createDOMException)("ConstraintError",'Index "'+b+'" already exists on '+c.objectStore.__currentName);c.__name=b;var e=c.objectStore;delete e.__indexes[d],e.__indexes[b]=c,e.indexNames.splice(e.indexNames.indexOf(d),1,b);var f=e.transaction.__storeHandles[e.name],g=f.__indexHandles[d];g.__name=b,f.__indexHandles[b]=g,c.__pendingName=d;var h=[["key","BLOB "+(e.autoIncrement?"UNIQUE, inc INTEGER PRIMARY KEY AUTOINCREMENT":"PRIMARY KEY")],["value","BLOB"]].concat(Array.from(e.indexNames).filter(function(a){return a!==b}).map(function(a){return[m.escapeIndexNameForSQL(a),"BLOB"]}));c.__renameIndex(e,d,b,h,function(b,c){z.__updateIndexList(a,b,function(a){delete f.__pendingName,c(a)})})}}})}return c.prototype=z.prototype,new c},g.__invalidStateIfDeleted=function(a,b){if(a.__deleted||a.__pendingDelete||a.__pendingCreate&&a.objectStore.transaction&&a.objectStore.transaction.__errored)throw(0,j.createDOMException)("InvalidStateError",b||"This index has been deleted")},g.__clone=function(a,b){var c=g.__createInstance(b,{columnName:a.name,keyPath:a.keyPath,optionalParams:{multiEntry:a.multiEntry,unique:a.unique}});return["__pendingCreate","__pendingDelete","__deleted","__originalName","__recreated"].forEach(function(b){c[b]=a[b]}),c},g.__createIndex=function(a,b){var c=b.name,d=a.__currentName,e=a.__indexes[c];b.__pendingCreate=!0,a.indexNames.push(c),a.__indexes[c]=b;var f=a.__indexHandles[c];(!f||b.__pendingDelete||b.__deleted||f.__pendingDelete||f.__deleted)&&(f=a.__indexHandles[c]=g.__clone(b,a)),a.transaction.__addNonRequestToTransactionQueue(function(h,i,k,l){function n(a,b){l((0,j.createDOMException)("UnknownError",'Could not create index "'+c+'"'+b.code+"::"+b.message,b))}function p(e){g.__updateIndexList(a,e,function(){e.executeSql('SELECT "key", "value" FROM '+m.escapeStoreNameForSQL(d),[],function(e,g){function h(i){if(i3&&void 0!==arguments[3]?arguments[3]:[],e=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,f=a.__currentName,g=m.escapeStoreNameForSQL(f),h=m.escapeStoreNameForSQL("tmp_"+f),i=d.map(function(a){return a[0]}),j=d.map(function(a){return a.join(" ")}),k=j.length?j.join(", ")+", ":"",l=i.length?i.join(", ")+", ":"";a.transaction.__addNonRequestToTransactionQueue(function(a,d,f,i){var j="ALTER TABLE "+g+" RENAME TO "+h;a.executeSql(j,[],function(a,d){var j="CREATE TABLE "+g+"("+k+m.escapeIndexNameForSQL(c)+" BLOB)";a.executeSql(j,[],function(a,d){var j="INSERT INTO "+g+"("+l+m.escapeIndexNameForSQL(c)+") SELECT "+l+m.escapeIndexNameForSQL(b)+" FROM "+h;a.executeSql(j,[],function(a,b){var c="DROP TABLE "+h;a.executeSql(c,[],function(a,b){if(e)return void e(a,f);f()},function(a,b){i(b)})},function(a,b){i(b)})})},function(a,b){i(b)})})},Object.defineProperty(g,Symbol.hasInstance,{value:function(a){return m.isObj(a)&&"function"==typeof a.openCursor&&"boolean"==typeof a.multiEntry}}),y.forEach(function(a){Object.defineProperty(g.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),Object.defineProperty(g.prototype,"name",{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")},set:function(a){throw new TypeError("Illegal invocation")}}),g.prototype[Symbol.toStringTag]="IDBIndexPrototype",Object.defineProperty(g,"prototype",{writable:!1}),c.buildFetchIndexDataSQL=i,c.executeFetchIndexData=h,c.IDBIndex=g,c.default=g},{"./CFG":327,"./DOMException":328,"./IDBCursor":331,"./IDBKeyRange":335,"./IDBObjectStore":336,"./IDBTransaction":338,"./Key":340,"./Sca":341,"./util":346}],335:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function e(){throw new TypeError("Illegal constructor")}function f(a,b,c,d,e,f){if(a&&(void 0!==a.lower||void 0!==a.upper)){e&&c.push("AND");var g=void 0,h=void 0,i=void 0!==a.lower,k=void 0!==a.upper;if(i&&(g=f?a.__lowerCached:j.encode(a.lower)),k&&(h=f?a.__upperCached:j.encode(a.upper)),i){if(d.push(l.escapeSQLiteStatement(g)),k&&g===h&&!a.lowerOpen&&!a.upperOpen)return void c.push(b,"=","?");c.push(b,a.lowerOpen?">":">=","?")}i&&k&&c.push("AND"),k&&(c.push(b,a.upperOpen?"<":"<=","?"),d.push(l.escapeSQLiteStatement(h)))}}function g(a,b){if(l.instanceOf(a,e))return"[object IDBKeyRange]"!==!a.toString()?e.__createInstance(a.lower,a.upper,a.lowerOpen,a.upperOpen):a;{if(null!=a)return j.convertValueToKeyRethrowingAndIfInvalid(a),e.only(a);if(b)throw(0,h.createDOMException)("DataError","No key or range was specified")}}Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.convertValueToKeyRange=c.IDBKeyRange=c.setSQLForKeyRange=void 0;var h=a("./DOMException"),i=a("./Key"),j=d(i),k=a("./util"),l=d(k),m=["lower","upper","lowerOpen","upperOpen"],n=e;e.__createInstance=function(a,b,c,d){function e(){if(this[Symbol.toStringTag]="IDBKeyRange",void 0===a&&void 0===b)throw(0,h.createDOMException)("DataError","Both arguments to the key range method cannot be undefined");var e=void 0,f=void 0;if(void 0!==a&&(e=j.roundTrip(a),j.convertValueToKeyRethrowingAndIfInvalid(a)),void 0!==b&&(f=j.roundTrip(b),j.convertValueToKeyRethrowingAndIfInvalid(b)),void 0!==a&&void 0!==b&&a!==b&&j.encode(a)>j.encode(b))throw(0,h.createDOMException)("DataError","`lower` must not be greater than `upper` argument in `bound()` call.");this.__lower=e,this.__upper=f,this.__lowerOpen=!!c,this.__upperOpen=!!d}return e.prototype=n.prototype,new e},e.prototype.includes=function(a){if(!l.isObj(this)||"boolean"!=typeof this.__lowerOpen)throw new TypeError("Illegal invocation");if(!arguments.length)throw new TypeError("IDBKeyRange.includes requires a key argument");return j.convertValueToKeyRethrowingAndIfInvalid(a),j.isKeyInRange(a,this)},e.only=function(a){if(!arguments.length)throw new TypeError("IDBKeyRange.only requires a value argument");return e.__createInstance(a,a,!1,!1)},e.lowerBound=function(a){if(!arguments.length)throw new TypeError("IDBKeyRange.lowerBound requires a value argument");return e.__createInstance(a,void 0,arguments[1],!0)},e.upperBound=function(a){if(!arguments.length)throw new TypeError("IDBKeyRange.upperBound requires a value argument");return e.__createInstance(void 0,a,!0,arguments[1])},e.bound=function(a,b){if(arguments.length<=1)throw new TypeError("IDBKeyRange.bound requires lower and upper arguments");return e.__createInstance(a,b,arguments[2],arguments[3])},e.prototype[Symbol.toStringTag]="IDBKeyRangePrototype",m.forEach(function(a){Object.defineProperty(e.prototype,"__"+a,{enumerable:!1,configurable:!1,writable:!0}),Object.defineProperty(e.prototype,a,{enumerable:!0,configurable:!0,get:function(){if(!l.isObj(this)||"boolean"!=typeof this.__lowerOpen)throw new TypeError("Illegal invocation");return this["__"+a]}})}),Object.defineProperty(e,Symbol.hasInstance,{value:function(a){return l.isObj(a)&&"upper"in a&&"boolean"==typeof a.lowerOpen}}),Object.defineProperty(e,"prototype",{writable:!1}),c.setSQLForKeyRange=f,c.IDBKeyRange=e,c.convertValueToKeyRange=g,c.default=e},{"./DOMException":328,"./Key":340,"./util":346}],336:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function e(a){return a&&a.__esModule?a:{default:a}}function f(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b0&&a.executeSql("DROP TABLE "+o.escapeStoreNameForSQL(b.__currentName),[],function(){a.executeSql('DELETE FROM __sys__ WHERE "name" = ?',[o.escapeSQLiteStatement(b.__currentName)],function(){delete b.__pendingDelete,b.__deleted=!0,c&&(delete c.__pendingDelete,c.__deleted=!0),e()},g)},g)})})},g.prototype.__validateKeyAndValueAndCloneValue=function(a,b,c){var d=this;if(null!==d.keyPath){if(void 0!==b)throw(0,i.createDOMException)("DataError","The object store uses in-line keys and the key parameter was provided",d);var e=v.clone(a);if(b=q.extractKeyValueDecodedFromValueUsingKeyPath(e,d.keyPath),b.invalid)throw(0,i.createDOMException)("DataError","KeyPath was specified, but key was invalid.");if(b.failure){if(!c){if(!d.autoIncrement)throw(0,i.createDOMException)("DataError","Could not evaluate a key from keyPath and there is no key generator");if(!q.checkKeyCouldBeInjectedIntoValue(e,d.keyPath))throw(0,i.createDOMException)("DataError","A key could not be injected into a value");return[void 0,e]}throw(0,i.createDOMException)("DataError","Could not evaluate a key from keyPath")}return[b.value,e]}if(void 0===b){if(!d.autoIncrement)throw(0,i.createDOMException)("DataError","The object store uses out-of-line keys and has no key generator and the key parameter was not provided.",d);b=void 0}else q.convertValueToKeyRethrowingAndIfInvalid(b);return[b,v.clone(a)]},g.prototype.__deriveKey=function(a,b,c,d,e){function f(){v.encode(c,function(a){a=v.decode(a),d(a)})}var g=this;g.autoIncrement?void 0===c?q.generateKeyForStore(a,g,function(a,c){if(a)return void e((0,i.createDOMException)("ConstraintError","The key generator's current number has reached the maximum safe integer limit"));null!==g.keyPath&&q.injectKeyIntoValueUsingKeyPath(b,c,g.keyPath),d(c)},e):q.possiblyUpdateKeyGenerator(a,g,c,f,e):f()},g.prototype.__insertData=function(a,b,c,d,e,g){var h=this,j={},k=Object.keys(h.__indexes).map(function(b){return new z.default(function(d,e){function g(a){void 0!==l&&(j[a.__currentName]=q.encode(l,a.multiEntry))}var k=h.__indexes[b];if(k.__pendingCreate||k.__deleted)return void d();var l=void 0;try{if(l=q.extractKeyValueDecodedFromValueUsingKeyPath(c,k.keyPath,k.multiEntry),l.invalid||l.failure)throw new Error("Go to catch")}catch(a){return void d()}if(l=l.value,k.unique){var m=k.multiEntry&&Array.isArray(l),n=(0,r.buildFetchIndexDataSQL)(!0,k,l,"key",m);r.executeFetchIndexData.apply(void 0,[null].concat(f(n),[a,null,function(a){if(void 0===a)return g(k),void d();e((0,i.createDOMException)("ConstraintError","Index already contains a record equal to "+(m?"one of the subkeys of":"")+"`indexKey`"))},e]))}else g(k),d()})});z.default.all(k).then(function(){var c=["INSERT INTO",o.escapeStoreNameForSQL(h.__currentName),"("],f=[" VALUES ("],k=[];void 0!==d&&(c.push(o.sqlQuote("key"),","),f.push("?,"),k.push(o.escapeSQLiteStatement(q.encode(d))));for(var l in j)c.push(o.escapeIndexNameForSQL(l)+","),f.push("?,"),k.push(o.escapeSQLiteStatement(j[l]));c.push(o.sqlQuote("value")+" )"),f.push("?)"),k.push(o.escapeSQLiteStatement(b));var m=c.join(" ")+f.join(" ");x.default.DEBUG&&console.log("SQL for adding",m,k),a.executeSql(m,k,function(a,b){e(d)},function(a,b){g((0,i.createDOMException)("ConstraintError",b.message,b))})}).catch(function(a){g(a)})},g.prototype.add=function(a){var b=this,c=arguments[1];if(!(b instanceof g))throw new TypeError("Illegal invocation");if(0===arguments.length)throw new TypeError("No value was specified");g.__invalidStateIfDeleted(b),t.default.__assertActive(b.transaction),b.transaction.__assertWritable();var d=b.transaction.__createRequest(b),e=b.__validateKeyAndValueAndCloneValue(a,c,!1),f=h(e,2),i=f[0],j=f[1];return g.__storingRecordObjectStore(d,b,j,!0,i),d},g.prototype.put=function(a){var b=this,c=arguments[1];if(!(b instanceof g))throw new TypeError("Illegal invocation");if(0===arguments.length)throw new TypeError("No value was specified");g.__invalidStateIfDeleted(b),t.default.__assertActive(b.transaction),b.transaction.__assertWritable();var d=b.transaction.__createRequest(b),e=b.__validateKeyAndValueAndCloneValue(a,c,!1),f=h(e,2),i=f[0],j=f[1];return g.__storingRecordObjectStore(d,b,j,!1,i),d},g.prototype.__overwrite=function(a,b,c,d){var e=this,f="DELETE FROM "+o.escapeStoreNameForSQL(e.__currentName)+' WHERE "key" = ?',g=q.encode(b);a.executeSql(f,[o.escapeSQLiteStatement(g)],function(a,d){x.default.DEBUG&&console.log("Did the row with the",b,"exist? ",d.rowsAffected),c(a)},function(a,b){d(b)})},g.__storingRecordObjectStore=function(a,b,c,d){var e=arguments[4];b.transaction.__pushToQueue(a,function(a,f,g,h){b.__deriveKey(a,c,e,function(e){v.encode(c,function(f){function i(a){b.__insertData(a,f,c,e,function(){b.__cursors.forEach(function(a){a.__invalidateCache()}),g.apply(void 0,arguments)},h)}if(!d)return void b.__overwrite(a,e,i,h);i(a)})},h)})},g.prototype.__get=function(a,b,c,d){var e=this;void 0!==d&&(d=o.enforceRange(d,"unsigned long")),g.__invalidStateIfDeleted(e),t.default.__assertActive(e.transaction);var f=(0,k.convertValueToKeyRange)(a,!c),h=b?"key":"value",i=["SELECT",o.sqlQuote(h),"FROM",o.escapeStoreNameForSQL(e.__currentName)],j=[];if(void 0!==f&&(i.push("WHERE"),(0,k.setSQLForKeyRange)(f,o.sqlQuote("key"),i,j)),c||(d=1),d){if("number"!=typeof d||isNaN(d)||!isFinite(d))throw new TypeError("The count parameter must be a finite number");i.push("LIMIT",d)}return i=i.join(" "),e.transaction.__addToTransactionQueue(function(a,d,f,g){x.default.DEBUG&&console.log("Fetching",e.__currentName,j),a.executeSql(i,j,function(a,d){x.default.DEBUG&&console.log("Fetched data",d);var e=void 0;try{if(0===d.rows.length)return c?f([]):f();if(e=[],b)for(var g=0;g=b.__requests.length)b.__requests=[],b.__active&&a();else try{if(i=b.__requests[j],!i.req)return void i.op(c,i.args,h,e);if("done"===i.req.__readyState)return;i.op(c,i.args,d,e,h)}catch(a){e(a)}}b.__tx=c;var i=null,j=-1;h()},function(a){if(a!==!0){var c=(0,g.webSQLErrback)(a);b.__abortTransaction(c)}},function(){if(b.__transFinishedCb===e.prototype.__transFinishedCb)return b.__transactionEndCallback||b.__requestsFinished?void(b.__transactionEndCallback&&!b.__completed&&b.__transFinishedCb(b.__errored,b.__transactionEndCallback)):void(b.__transactionFinished=!0)},function(a,c,d,e,f){return!(!a.readOnly&&!c)||(b.__transFinishedCb=function(a,b){a?e(a,b):f(b)},b.__transactionEndCallback&&!b.__completed&&b.__transFinishedCb(b.__errored,b.__transactionEndCallback),!1)})},e.prototype.__createRequest=function(a){var b=this,c=h.IDBRequest.__createInstance();return c.__source=void 0!==a?a:b.db,c.__transaction=b,c},e.prototype.__addToTransactionQueue=function(a,b,c){var d=this.__createRequest(c);return this.__pushToQueue(d,a,b),d},e.prototype.__addNonRequestToTransactionQueue=function(a,b,c){this.__pushToQueue(null,a,b)},e.prototype.__pushToQueue=function(a,b,c){this.__assertActive(),this.__requests.push({op:b,args:c,req:a})},e.prototype.__assertActive=function(){if(!this.__active)throw(0,g.createDOMException)("TransactionInactiveError","A request was placed against a transaction which is currently not active, or which is finished")},e.prototype.__assertWritable=function(){if("readonly"===this.mode)throw(0,g.createDOMException)("ReadOnlyError","The transaction is read only")},e.prototype.__assertVersionChange=function(){e.__assertVersionChange(this)},e.prototype.objectStore=function(a){var b=this;if(!(b instanceof e))throw new TypeError("Illegal invocation");if(0===arguments.length)throw new TypeError("No object store name was specified");if(e.__assertNotFinished(b),b.__objectStoreNames.indexOf(a)===-1)throw(0,g.createDOMException)("NotFoundError",a+" is not participating in this transaction");var c=b.db.__objectStores[a];if(!c)throw(0,g.createDOMException)("NotFoundError",a+" does not exist in "+b.db.name);return(!b.__storeHandles[a]||b.__storeHandles[a].__pendingDelete||b.__storeHandles[a].__deleted)&&(b.__storeHandles[a]=l.default.__clone(c,b)),b.__storeHandles[a]},e.prototype.__abortTransaction=function(a){function b(b,d){b?d&&"number"==typeof d.code?n.default.DEBUG&&console.log("Rollback erred; feature is probably not supported as per WebSQL",c):n.default.DEBUG&&console.log("Rollback succeeded",c):n.default.DEBUG&&console.log("Rollback not possible due to missing transaction",c),c.__requests.filter(function(a){return a.req&&"done"!==a.req.__readyState}).reduce(function(a,b){return a.then(function(){b.req.__readyState="done",b.req.__result=void 0,b.req.__error=(0,g.createDOMException)("AbortError","A request was aborted.");var a=(0,f.createEvent)("error",b.req.__error,{bubbles:!0,cancelable:!0});return new q.default(function(c){setTimeout(function(){b.req.dispatchEvent(a),c()})})})},q.default.resolve()).then(function(){var b=(0,f.createEvent)("abort",a,{bubbles:!0,cancelable:!1});setTimeout(function(){c.__abortFinished=!0,c.dispatchEvent(b),c.__storeHandles={},c.dispatchEvent((0,f.createEvent)("__abort"))})})}var c=this;(0,g.logError)("Error","An error occurred in a transaction",a),c.__errored||(c.__errored=!0,"versionchange"===c.mode&&(c.db.__version=c.db.__oldVersion,c.db.__objectStoreNames=c.db.__oldObjectStoreNames,c.__objectStoreNames=c.db.__oldObjectStoreNames,Object.values(c.db.__objectStores).concat(Object.values(c.__storeHandles)).forEach(function(a){"__pendingName"in a&&c.db.__oldObjectStoreNames.indexOf(a.__pendingName)>-1&&(a.__name=a.__originalName),a.__indexNames=a.__oldIndexNames,delete a.__pendingDelete,Object.values(a.__indexes).concat(Object.values(a.__indexHandles)).forEach(function(b){"__pendingName"in b&&a.__oldIndexNames.indexOf(b.__pendingName)>-1&&(b.__name=b.__originalName),delete b.__pendingDelete})})),c.__active=!1,null!==a&&(c.__error=a),c.__requestsFinished&&setTimeout(function(){throw a},0),c.__transFinishedCb(!0,function(a){if(a&&c.__tx){if("readwrite"===c.mode)return c.__transactionFinished?void b():void(c.__transactionEndCallback=b);try{c.__tx.executeSql("ROLLBACK",[],b,b)}catch(a){b()}}else b(null,{code:0})}))},e.prototype.abort=function(){var a=this;if(!(a instanceof e))throw new TypeError("Illegal invocation");n.default.DEBUG&&console.log("The transaction was aborted",a),e.__assertNotFinished(a),a.__abortTransaction(null)},e.prototype[Symbol.toStringTag]="IDBTransactionPrototype",e.__assertVersionChange=function(a){if(!a||"versionchange"!==a.mode)throw(0,g.createDOMException)("InvalidStateError","Not a version transaction")},e.__assertNotVersionChange=function(a){if(a&&"versionchange"===a.mode)throw(0,g.createDOMException)("InvalidStateError","Cannot be called during a version transaction")},e.__assertNotFinished=function(a){if(!a||a.__completed||a.__abortFinished)throw(0,g.createDOMException)("InvalidStateError","Transaction finished by commit or abort")},e.__assertActive=function(a){if(!a||!a.__active)throw(0,g.createDOMException)("TransactionInactiveError","A request was placed against a transaction which is currently not active, or which is finished")},e.prototype.__getParent=function(){return this.db},e.prototype.__userErrorEventHandler=function(a,b){if(this.__internal)throw this.__internal=!1,a;b()},s.forEach(function(a){Object.defineProperty(e.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")},set:function(a){throw new TypeError("Illegal invocation")}})}),t.forEach(function(a){Object.defineProperty(e.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),Object.defineProperty(e.prototype,"constructor",{enumerable:!1,writable:!0,configurable:!0,value:e}),Object.defineProperty(e,"prototype",{writable:!1}),c.default=e,b.exports=c.default},{"./CFG":327,"./DOMException":328,"./Event":330,"./IDBObjectStore":336,"./IDBRequest":337,"./util":346,eventtarget:298,"sync-promise":302}],339:[function(a,b,c){"use strict";function d(a){e.ShimEvent.call(this,a),this[Symbol.toStringTag]="IDBVersionChangeEvent",this.toString=function(){return"[object IDBVersionChangeEvent]"},this.__eventInitDict=arguments[1]||{}}Object.defineProperty(c,"__esModule",{value:!0});var e=a("./Event"),f=a("./util"),g=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(f),h=["oldVersion","newVersion"];d.prototype=Object.create(e.ShimEvent.prototype),d.prototype[Symbol.toStringTag]="IDBVersionChangeEventPrototype",h.forEach(function(a){Object.defineProperty(d.prototype,a,{enumerable:!0,configurable:!0,get:function(){if(!(this instanceof d))throw new TypeError("Illegal invocation");return this.__eventInitDict&&this.__eventInitDict[a]||("oldVersion"===a?0:null)}})}),Object.defineProperty(d,Symbol.hasInstance,{value:function(a){return g.isObj(a)&&"oldVersion"in a&&"boolean"==typeof a.defaultPrevented}}),Object.defineProperty(d.prototype,"constructor",{enumerable:!1,writable:!0,configurable:!0,value:d}),Object.defineProperty(d,"prototype",{writable:!1}),c.default=d,b.exports=c.default},{"./Event":330,"./util":346}],340:[function(a,b,c){"use strict";function d(a,b,c){return new Array(b-String(a).length+1).join(c)+a}function e(a){return a=a.toString(32),1===a.length?"0"+a:a}function f(a){return(a+j(11)).slice(0,11)}function g(a){for(var b="",c=0;cg&&(d=!0),!b.lowerOpen&&f>=g&&(d=!0)),void 0!==b.upper&&(b.upperOpen&&f1:b===a}function A(a,b){var c=[];if(Array.isArray(a))for(var d=0;d0&&c.push(e);continue}e=e[0]}(null==b||y(e,b,!0))&&c.push(e)}else(null==b||y(a,b,!0))&&c.push(a);return c}function B(a){var b=a.type,c=a.value;switch(b){case"number":case"string":return c;case"array":for(var d=[],e=c.length,f=0;fT)return c("failure");G(a,b,e,function(){c(null,e)},d)},d)}function I(a,b,c,d,e){"number"!=typeof c||c<1?d():F(a,b,function(f){var g=Math.floor(Math.min(c,T));g>=f?G(a,b,g,d,e):d()},e)}Object.defineProperty(c,"__esModule",{value:!0}),c.possiblyUpdateKeyGenerator=c.generateKeyForStore=c.findMultiEntryMatches=c.isKeyInRange=c.isMultiEntryMatch=c.checkKeyCouldBeInjectedIntoValue=c.injectKeyIntoValueUsingKeyPath=c.extractKeyValueDecodedFromValueUsingKeyPath=c.evaluateKeyPathOnValue=c.extractKeyFromValueUsingKeyPath=c.convertValueToKeyRethrowingAndIfInvalid=c.convertValueToMultiEntryKey=c.convertValueToKey=c.convertValueToMultiEntryKeyDecoded=c.convertValueToKeyValueDecoded=c.convertKeyToValue=c.roundTrip=c.decode=c.encode=void 0;var J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},K=a("./DOMException"),L=a("./util"),M=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(L),N=a("./IDBFactory"),O=a("./CFG"),P=function(a){return a&&a.__esModule?a:{default:a}}(O),Q=["invalid","number","date","string","binary","array"],R=["negativeInfinity","bigNegative","smallNegative","smallPositive","bigPositive","positiveInfinity"],S={invalid:{encode:function(a){return Q.indexOf("invalid")+"-"},decode:function(a){}},number:{encode:function(a){var b=Math.abs(a).toString(32),c=b.indexOf(".");b=c!==-1?b.replace(".",""):b;var d=b.search(/[^0]/);b=b.slice(d);var h=void 0,i=void 0,k=void 0;return isFinite(a)?a<0?a>-1?(h=R.indexOf("smallNegative"),i=e(d),k=g(f(b))):(h=R.indexOf("bigNegative"),i=g(e(c!==-1?c:b.length)),k=g(f(b))):a<1?(h=R.indexOf("smallPositive"),i=g(e(d)),k=f(b)):(h=R.indexOf("bigPositive"),i=e(c!==-1?c:b.length),k=f(b)):(i=j(2),k=j(11),h=R.indexOf(a>0?"positiveInfinity":"negativeInfinity")),Q.indexOf("number")+"-"+h+i+k},decode:function(a){var b=+a.substr(2,1),c=a.substr(3,2),d=a.substr(5,11);switch(R[b]){case"negativeInfinity":return-1/0;case"positiveInfinity":return 1/0;case"bigPositive":return h(d,c);case"smallPositive":return c=k(g(c)),h(d,c);case"smallNegative":return c=k(c),d=g(d),-h(d,c);case"bigNegative":return c=g(c),d=g(d),-h(d,c);default:throw new Error("Invalid number.")}}},string:{encode:function(a,b){return b&&(a=a.replace(/(.)/g,"-$1")+" "),Q.indexOf("string")+"-"+a},decode:function(a,b){return a=a.slice(2),b&&(a=a.substr(0,a.length-1).replace(/-(.)/g,"$1")),a}},array:{encode:function(a){for(var b=[],c=0;c889)throw(0,o.createDOMException)("DataError","The encoded key is "+a.length+" characters long, but IE only allows 889 characters. Consider replacing numeric keys with strings to reduce the encoded length.")}Object.defineProperty(c,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},o=a("./DOMException"),p=a("./Key"),q=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(p),r="__$$compoundKey",s=/\$\$/g,t="$$$$",u="$_$";c.default=d,b.exports=c.default},{"./DOMException":328,"./Key":340}],345:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{default:a}}function f(a,b){if(a&&"object"===(void 0===a?"undefined":i(a)))for(var c in a)f(c,a[c]);else{if(!(a in C.default))throw new Error(a+" is not a valid configuration property");C.default[a]=b}}function g(a,b){function c(a,b,c){if(!c||!Object.defineProperty)try{e[a]=b}catch(a){console.log(a)}if(e[a]!==b&&Object.defineProperty)try{var d=c||{};d.get=function(){return b},Object.defineProperty(e,a,d)}catch(a){}e[a]!==b&&"undefined"!=typeof console&&console.warn&&console.warn("Unable to shim "+a)}b&&f(b);var e=a||("undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==d?d:{});c("shimIndexedDB",o.shimIndexedDB,{enumerable:!1,configurable:!0}),e.shimIndexedDB&&(e.shimIndexedDB.__useShim=function(){var a=e.shimIndexedDB.modules.IDBFactory;if(void 0!==C.default.win.openDatabase){if(C.default.fullIDLSupport){var b=e.shimIndexedDB.modules.ShimEvent,d=e.shimIndexedDB.modules.ShimEventTarget;Object.setPrototypeOf(y.default,d),Object.setPrototypeOf(m.IDBRequest,d),Object.setPrototypeOf(w.default,d),Object.setPrototypeOf(k.default,b),Object.setPrototypeOf(n.ShimDOMException,Error),Object.setPrototypeOf(n.ShimDOMException.prototype,Error.prototype)}[["indexedDB",o.shimIndexedDB],["IDBFactory",a],["IDBDatabase",y.default],["IDBObjectStore",s.default],["IDBIndex",u.default],["IDBTransaction",w.default],["IDBCursor",l.IDBCursor],["IDBCursorWithValue",l.IDBCursorWithValue],["IDBKeyRange",q.default],["IDBRequest",m.IDBRequest],["IDBOpenDBRequest",m.IDBOpenDBRequest],["IDBVersionChangeEvent",k.default]].forEach(function(a){var b=h(a,2);c(b[0],b[1],{enumerable:!1,configurable:!0})}),C.default.addNonIDBGlobals&&e.indexedDB&&e.indexedDB.modules&&(c("ShimDOMStringList",e.indexedDB.modules.ShimDOMStringList,{enumerable:!1,configurable:!0}),c("ShimEvent",e.indexedDB.modules.ShimEvent),c("ShimCustomEvent",e.indexedDB.modules.ShimCustomEvent),c("ShimEventTarget",e.indexedDB.modules.ShimEventTarget),c("ShimDOMException",e.indexedDB.modules.ShimDOMException))}else"object"===i(e.indexedDB)&&(0,A.default)(l.IDBCursor,l.IDBCursorWithValue,y.default,a,u.default,q.default,s.default,m.IDBRequest,w.default)},e.shimIndexedDB.__debug=function(a){C.default.DEBUG=a},e.shimIndexedDB.__setConfig=f,e.shimIndexedDB.__getConfig=function(a){if(!(a in C.default))throw new Error(a+" is not a valid configuration property");return C.default[a]},e.shimIndexedDB.__setUnicodeIdentifiers=function(a){f({UnicodeIDStart:a.UnicodeIDStart,UnicodeIDContinue:a.UnicodeIDContinue})}),"indexedDB"in e||"undefined"==typeof window||(e.indexedDB=e.indexedDB||e.webkitIndexedDB||e.mozIndexedDB||e.oIndexedDB||e.msIndexedDB);var g=!1;return"undefined"!=typeof navigator&&(navigator.userAgent.match(/Android (?:2|3|4\.[0-3])/)&&!navigator.userAgent.match(/Chrome/)||(navigator.userAgent.indexOf("Safari")===-1||navigator.userAgent.indexOf("Chrome")>-1)&&/(iPad|iPhone|iPod).* os 9_/i.test(navigator.userAgent)&&!window.MSStream)&&(g=!0),C.default.DEFAULT_DB_SIZE||(C.default.DEFAULT_DB_SIZE=1024*("undefined"!=typeof navigator&&navigator.userAgent.indexOf("Safari")>-1&&navigator.userAgent.indexOf("Chrome")===-1?25:4)*1024),e.indexedDB&&!g||void 0===C.default.win.openDatabase?(e.IDBDatabase=e.IDBDatabase||e.webkitIDBDatabase,e.IDBTransaction=e.IDBTransaction||e.webkitIDBTransaction||{},e.IDBCursor=e.IDBCursor||e.webkitIDBCursor,e.IDBKeyRange=e.IDBKeyRange||e.webkitIDBKeyRange):e.shimIndexedDB.__useShim(),e}Object.defineProperty(c,"__esModule",{value:!0});var h=function(){function a(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!b||c.length!==b);d=!0);}catch(a){e=!0,f=a}finally{try{!d&&h.return&&h.return()}finally{if(e)throw f}}return c}return function(b,c){if(Array.isArray(b))return b;if(Symbol.iterator in Object(b))return a(b,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};a("babel-polyfill");var j=a("./IDBVersionChangeEvent"),k=e(j),l=a("./IDBCursor"),m=a("./IDBRequest"),n=a("./DOMException"),o=a("./IDBFactory"),p=a("./IDBKeyRange"),q=e(p),r=a("./IDBObjectStore"),s=e(r),t=a("./IDBIndex"),u=e(t),v=a("./IDBTransaction"),w=e(v),x=a("./IDBDatabase"),y=e(x),z=a("./polyfill"),A=e(z),B=a("./CFG"),C=e(B);(void 0!==d?d:"undefined"!=typeof window?window:self)._babelPolyfill=!1,c.default=g,b.exports=c.default}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./CFG":327,"./DOMException":328,"./IDBCursor":331,"./IDBDatabase":332,"./IDBFactory":333,"./IDBIndex":334,"./IDBKeyRange":335,"./IDBObjectStore":336,"./IDBRequest":337,"./IDBTransaction":338,"./IDBVersionChangeEvent":339,"./polyfill":344,"babel-polyfill":1}],346:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a){return"_"+a.replace(/\^/g,"^^").replace(/\0/g,"^0").replace(/([A-Z])/g,"^$1").replace(/([\uD800-\uDBFF])(?![\uDC00-\uDFFF])|(^|[^\uD800-\uDBFF])([\uDC00-\uDFFF])/g,function(a,b,c){return b?"^2"+b+"�":"^3�"+c})}function f(a){return a.replace(/\^/g,"^^").replace(/\0/g,"^0")}function g(a){return a.replace(/\^0/g,"\0").replace(/\^\^/g,"^")}function h(a){return a.replace(/"/g,'""')}function i(a){return'"'+h(a)+'"'}function j(a){if(H.default.escapeDatabaseName)return H.default.escapeDatabaseName(f(a));if(a="D"+e(a),H.default.escapeNFDForDatabaseNames!==!1&&(a=a.replace(new RegExp(J.default,"g"),function(a){return"^4"+a.codePointAt().toString(16).padStart(6,"0")})),H.default.databaseCharacterEscapeList!==!1&&(a=a.replace(H.default.databaseCharacterEscapeList?new RegExp(H.default.databaseCharacterEscapeList,"g"):/[\u0000-\u001F\u007F"*\/:<>?\\|]/g,function(a){return"^1"+a.charCodeAt().toString(16).padStart(2,"0")})),H.default.databaseNameLengthLimit!==!1&&a.length>=(H.default.databaseNameLengthLimit||254)-(H.default.addSQLiteExtension!==!1?7:0))throw new Error("Unexpectedly long database name supplied; length limit required for Node compatibility; passed length: "+a.length+"; length limit setting: "+(H.default.databaseNameLengthLimit||254)+".");return a+(H.default.addSQLiteExtension!==!1?".sqlite":"")}function k(a){return H.default.unescapeDatabaseName?H.default.unescapeDatabaseName(g(a)):a.slice(2).replace(/(\^+)1([0-9a-f]{2})/g,function(a,b,c){return b.length%2?String.fromCharCode(parseInt(c,16)):a}).replace(/(\^+)4([0-9a-f]{6})/g,function(a,b,c){return b.length%2?String.fromCodePoint(parseInt(c,16)):a}).replace(/(\^+)3\uD800([\uDC00-\uDFFF])/g,function(a,b,c){return b.length%2?c:a}).replace(/(\^+)2([\uD800-\uDBFF])\uDC00/g,function(a,b,c){return b.length%2?c:a}).replace(/(\^+)([A-Z])/g,function(a,b,c){return b.length%2?c:a}).replace(/(\^+)0/g,function(a,b){return b.length%2?"\0":a}).replace(/\^\^/g,"^")}function l(a){return i("S"+e(a))}function m(a){return i("I"+e(a))}function n(a){return"I"+e(a)}function o(a){return h(a).replace(/\^/g,"^^")}function p(a,b){return b[Symbol.hasInstance](a)}function q(a){return a&&"object"===(void 0===a?"undefined":F(a))}function r(a){return q(a)&&"function"==typeof a.getDate}function s(a){return q(a)&&"number"==typeof a.size&&"function"==typeof a.slice&&!("lastModified"in a)}function t(a){return q(a)&&"string"==typeof a.flags&&"function"==typeof a.exec}function u(a){return q(a)&&"string"==typeof a.name&&"function"==typeof a.slice&&"lastModified"in a}function v(a){return q(a)&&"number"==typeof a.byteLength&&("function"==typeof a.slice||"function"==typeof a.getFloat64)}function w(a){return q(a)&&"function"==typeof a[Symbol.iterator]}function x(a,b){b="string"==typeof b?[b]:b,b.forEach(function(b){Object.defineProperty(a,"__"+b,{enumerable:!1,configurable:!1,writable:!0}),Object.defineProperty(a,b,{enumerable:!0,configurable:!0,get:function(){return this["__"+b]}})})}function y(a){var b=H.default.UnicodeIDStart||"[$A-Z_a-z]",c=H.default.UnicodeIDContinue||"[$0-9A-Z_a-z]",d="(?:"+b+"|[$_]|\\\\"+K+")",e="(?:"+c+"|[$_]|\\\\"+K+"|\\u200C|\\u200D)";return new RegExp("^"+d+e+"*$").test(a)}function z(a){ +return"string"==typeof a&&(""===a||y(a)||a.split(".").every(y))}function A(a){return z(a)||Array.isArray(a)&&a.length&&Array.apply(null,a).every(function(a){return z(a)})}function B(a,b){a=Math.floor(Number(a));var c=void 0,d=void 0;switch(b){case"unsigned long long":c=9007199254740991,d=0;break;case"unsigned long":c=4294967295,d=0;break;default:throw new Error("Unrecognized type supplied to enforceRange")}if(isNaN(a)||!isFinite(a)||a>c||a ? \ | 'databaseNameLengthLimit', // Defaults to 254 (shortest typical modern file length limit) +'escapeNFDForDatabaseNames', // Boolean defaulting to true on whether to escape NFD-escaping +// characters to avoid clashes on MacOS which performs NFD on files +// Boolean on whether to add the `.sqlite` extension to file names; +// defaults to `true` +'addSQLiteExtension', + +// NODE-SPECIFIC CONFIG +// Boolean on whether to delete the database file itself after `deleteDatabase`; +// defaults to `true` as the database will be empty +'deleteDatabaseFiles', -// Optional Node WebSQL config +// NODE-SPECIFIC WEBSQL CONFIG 'sqlBusyTimeout', // Defaults to 1000 'sqlTrace', // Callback not used by default 'sqlProfile' // Callback not used by default @@ -8660,7 +8667,7 @@ var CFG = {}; exports.default = CFG; module.exports = exports['default']; -},{}],324:[function(require,module,exports){ +},{}],325:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -8968,7 +8975,7 @@ exports.ShimDOMException = ShimDOMException; exports.createDOMException = createDOMException; exports.webSQLErrback = webSQLErrback; -},{"./CFG":323}],325:[function(require,module,exports){ +},{"./CFG":324}],326:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -9154,7 +9161,7 @@ if (cleanInterface) { exports.default = DOMStringList; module.exports = exports['default']; -},{}],326:[function(require,module,exports){ +},{}],327:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -9188,7 +9195,7 @@ exports.ShimEvent = _eventtarget.ShimEvent; exports.ShimCustomEvent = _eventtarget.ShimCustomEvent; exports.ShimEventTarget = _eventtarget.ShimEventTarget; -},{"./util":342,"eventtarget":297}],327:[function(require,module,exports){ +},{"./util":343,"eventtarget":297}],328:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -9833,7 +9840,7 @@ Object.defineProperty(IDBCursorWithValue, 'prototype', { exports.IDBCursor = IDBCursor; exports.IDBCursorWithValue = IDBCursorWithValue; -},{"./CFG":323,"./DOMException":324,"./IDBFactory":329,"./IDBIndex":330,"./IDBKeyRange":331,"./IDBObjectStore":332,"./IDBRequest":333,"./IDBTransaction":334,"./Key":336,"./Sca":337,"./util":342}],328:[function(require,module,exports){ +},{"./CFG":324,"./DOMException":325,"./IDBFactory":330,"./IDBIndex":331,"./IDBKeyRange":332,"./IDBObjectStore":333,"./IDBRequest":334,"./IDBTransaction":335,"./Key":337,"./Sca":338,"./util":343}],329:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -10141,7 +10148,7 @@ Object.defineProperty(IDBDatabase, 'prototype', { exports.default = IDBDatabase; module.exports = exports['default']; -},{"./CFG":323,"./DOMException":324,"./DOMStringList":325,"./Event":326,"./IDBObjectStore":332,"./IDBTransaction":334,"./Sca":337,"./util":342,"eventtarget":297}],329:[function(require,module,exports){ +},{"./CFG":324,"./DOMException":325,"./DOMStringList":326,"./Event":327,"./IDBObjectStore":333,"./IDBTransaction":335,"./Sca":338,"./util":343,"eventtarget":297}],330:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -10694,7 +10701,7 @@ exports.IDBFactory = IDBFactory; exports.cmp = cmp; exports.shimIndexedDB = shimIndexedDB; -},{"./CFG":323,"./DOMException":324,"./DOMStringList":325,"./Event":326,"./IDBDatabase":328,"./IDBRequest":333,"./IDBTransaction":334,"./IDBVersionChangeEvent":335,"./Key":336,"./util":342,"fs":undefined,"path":undefined}],330:[function(require,module,exports){ +},{"./CFG":324,"./DOMException":325,"./DOMStringList":326,"./Event":327,"./IDBDatabase":329,"./IDBRequest":334,"./IDBTransaction":335,"./IDBVersionChangeEvent":336,"./Key":337,"./util":343,"fs":undefined,"path":undefined}],331:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -11310,7 +11317,7 @@ exports.executeFetchIndexData = executeFetchIndexData; exports.IDBIndex = IDBIndex; exports.default = IDBIndex; -},{"./CFG":323,"./DOMException":324,"./IDBCursor":327,"./IDBKeyRange":331,"./IDBObjectStore":332,"./IDBTransaction":334,"./Key":336,"./Sca":337,"./util":342}],331:[function(require,module,exports){ +},{"./CFG":324,"./DOMException":325,"./IDBCursor":328,"./IDBKeyRange":332,"./IDBObjectStore":333,"./IDBTransaction":335,"./Key":337,"./Sca":338,"./util":343}],332:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -11494,7 +11501,7 @@ exports.IDBKeyRange = IDBKeyRange; exports.convertValueToKeyRange = convertValueToKeyRange; exports.default = IDBKeyRange; -},{"./DOMException":324,"./Key":336,"./util":342}],332:[function(require,module,exports){ +},{"./DOMException":325,"./Key":337,"./util":343}],333:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -12378,7 +12385,7 @@ Object.defineProperty(IDBObjectStore, 'prototype', { exports.default = IDBObjectStore; module.exports = exports['default']; -},{"./CFG":323,"./DOMException":324,"./DOMStringList":325,"./IDBCursor":327,"./IDBIndex":330,"./IDBKeyRange":331,"./IDBTransaction":334,"./Key":336,"./Sca":337,"./util":342,"sync-promise":299}],333:[function(require,module,exports){ +},{"./CFG":324,"./DOMException":325,"./DOMStringList":326,"./IDBCursor":328,"./IDBIndex":331,"./IDBKeyRange":332,"./IDBTransaction":335,"./Key":337,"./Sca":338,"./util":343,"sync-promise":299}],334:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -12595,7 +12602,7 @@ Object.defineProperty(IDBOpenDBRequest, 'prototype', { exports.IDBRequest = IDBRequest; exports.IDBOpenDBRequest = IDBOpenDBRequest; -},{"./DOMException":324,"./util":342,"eventtarget":297}],334:[function(require,module,exports){ +},{"./DOMException":325,"./util":343,"eventtarget":297}],335:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -13211,7 +13218,7 @@ Object.defineProperty(IDBTransaction, 'prototype', { exports.default = IDBTransaction; module.exports = exports['default']; -},{"./CFG":323,"./DOMException":324,"./Event":326,"./IDBObjectStore":332,"./IDBRequest":333,"./util":342,"eventtarget":297,"sync-promise":299}],335:[function(require,module,exports){ +},{"./CFG":324,"./DOMException":325,"./Event":327,"./IDBObjectStore":333,"./IDBRequest":334,"./util":343,"eventtarget":297,"sync-promise":299}],336:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -13276,7 +13283,7 @@ Object.defineProperty(IDBVersionChangeEvent, 'prototype', { exports.default = IDBVersionChangeEvent; module.exports = exports['default']; -},{"./Event":326,"./util":342}],336:[function(require,module,exports){ +},{"./Event":327,"./util":343}],337:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -14090,7 +14097,7 @@ exports.findMultiEntryMatches = findMultiEntryMatches; exports.generateKeyForStore = generateKeyForStore; exports.possiblyUpdateKeyGenerator = possiblyUpdateKeyGenerator; -},{"./CFG":323,"./DOMException":324,"./IDBFactory":329,"./util":342}],337:[function(require,module,exports){ +},{"./CFG":324,"./DOMException":325,"./IDBFactory":330,"./util":343}],338:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -14154,7 +14161,7 @@ exports.encode = encode; exports.decode = decode; exports.clone = clone; -},{"./DOMException":324,"typeson":322,"typeson-registry/presets/structured-cloning-throwing":301}],338:[function(require,module,exports){ +},{"./DOMException":325,"typeson":322,"typeson-registry/presets/structured-cloning-throwing":301}],339:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -14179,7 +14186,7 @@ _CFG2.default.win = { openDatabase: _nodeWebSQL2.default }; // Importing "websql exports.default = _setGlobalVars2.default; module.exports = exports['default']; -},{"./CFG":323,"./nodeWebSQL":339,"./setGlobalVars":341}],339:[function(require,module,exports){ +},{"./CFG":324,"./nodeWebSQL":340,"./setGlobalVars":342}],340:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -14218,7 +14225,7 @@ var nodeWebSQL = (0, _custom2.default)(wrappedSQLiteDatabase); exports.default = nodeWebSQL; module.exports = exports['default']; -},{"./CFG":323,"websql/custom":undefined,"websql/lib/sqlite/SQLiteDatabase":undefined}],340:[function(require,module,exports){ +},{"./CFG":324,"websql/custom":undefined,"websql/lib/sqlite/SQLiteDatabase":undefined}],341:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -14580,7 +14587,7 @@ function validateKeyLength(key) { exports.default = polyfill; module.exports = exports['default']; -},{"./DOMException":324,"./Key":336}],341:[function(require,module,exports){ +},{"./DOMException":325,"./Key":337}],342:[function(require,module,exports){ (function (global){ 'use strict'; @@ -14807,7 +14814,7 @@ exports.default = setGlobalVars; module.exports = exports['default']; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"./CFG":323,"./DOMException":324,"./IDBCursor":327,"./IDBDatabase":328,"./IDBFactory":329,"./IDBIndex":330,"./IDBKeyRange":331,"./IDBObjectStore":332,"./IDBRequest":333,"./IDBTransaction":334,"./IDBVersionChangeEvent":335,"./polyfill":340,"babel-polyfill":1}],342:[function(require,module,exports){ +},{"./CFG":324,"./DOMException":325,"./IDBCursor":328,"./IDBDatabase":329,"./IDBFactory":330,"./IDBIndex":331,"./IDBKeyRange":332,"./IDBObjectStore":333,"./IDBRequest":334,"./IDBTransaction":335,"./IDBVersionChangeEvent":336,"./polyfill":341,"babel-polyfill":1}],343:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -14821,6 +14828,10 @@ var _CFG = require('./CFG'); var _CFG2 = _interopRequireDefault(_CFG); +var _regex = require('unicode-9.0.0/Binary_Property/Expands_On_NFD/regex'); + +var _regex2 = _interopRequireDefault(_regex); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function escapeNameForSQLiteIdentifier(arg) { @@ -14871,6 +14882,12 @@ function escapeDatabaseNameForSQLAndFiles(db) { return _CFG2.default.escapeDatabaseName(escapeSQLiteStatement(db)); } db = 'D' + escapeNameForSQLiteIdentifier(db); + if (_CFG2.default.escapeNFDForDatabaseNames !== false) { + // ES6 copying of regex with different flags + db = db.replace(new RegExp(_regex2.default, 'g'), function (expandable) { + return '^4' + expandable.codePointAt().toString(16).padStart(6, '0'); + }); + } if (_CFG2.default.databaseCharacterEscapeList !== false) { db = db.replace(_CFG2.default.databaseCharacterEscapeList ? new RegExp(_CFG2.default.databaseCharacterEscapeList, 'g') : /[\u0000-\u001F\u007F"*/:<>?\\|]/g, function (n0) { return '^1' + n0.charCodeAt().toString(16).padStart(2, '0'); @@ -14893,17 +14910,23 @@ function unescapeDatabaseNameForSQLAndFiles(db) { } return db.slice(2) // D_ + // CFG.databaseCharacterEscapeList .replace(/(\^+)1([0-9a-f]{2})/g, function (_, esc, hex) { - return esc % 2 ? String.fromCharCode(parseInt(hex, 16)) : _; - }) // databaseCharacterEscapeList + return esc.length % 2 ? String.fromCharCode(parseInt(hex, 16)) : _; + }) + // CFG.escapeNFDForDatabaseNames + .replace(/(\^+)4([0-9a-f]{6})/g, function (_, esc, hex) { + return esc.length % 2 ? String.fromCodePoint(parseInt(hex, 16)) : _; + }) + // escapeNameForSQLiteIdentifier .replace(/(\^+)3\uD800([\uDC00-\uDFFF])/g, function (_, esc, lowSurr) { - return esc % 2 ? lowSurr : _; + return esc.length % 2 ? lowSurr : _; }).replace(/(\^+)2([\uD800-\uDBFF])\uDC00/g, function (_, esc, highSurr) { - return esc % 2 ? highSurr : _; + return esc.length % 2 ? highSurr : _; }).replace(/(\^+)([A-Z])/g, function (_, esc, upperCase) { - return esc % 2 ? upperCase : _; + return esc.length % 2 ? upperCase : _; }).replace(/(\^+)0/g, function (_, esc) { - return esc % 2 ? '\0' : _; + return esc.length % 2 ? '\0' : _; }).replace(/\^\^/g, '^'); } @@ -15079,5 +15102,5 @@ exports.enforceRange = enforceRange; exports.convertToDOMString = convertToDOMString; exports.convertToSequenceDOMString = convertToSequenceDOMString; -},{"./CFG":323}]},{},[338])(338) +},{"./CFG":324,"unicode-9.0.0/Binary_Property/Expands_On_NFD/regex":323}]},{},[339])(339) }); \ No newline at end of file diff --git a/dist/indexeddbshim-node.min.js b/dist/indexeddbshim-node.min.js index 7dc3a150..a1f91a59 100644 --- a/dist/indexeddbshim-node.min.js +++ b/dist/indexeddbshim-node.min.js @@ -4,9 +4,9 @@ var d=a("./_to-integer"),e=a("./_defined");b.exports=function(a){return function(b,c){var f,g,h=String(e(b)),i=d(c),j=h.length;return i<0||i>=j?a?"":void 0:(f=h.charCodeAt(i),f<55296||f>56319||i+1===j||(g=h.charCodeAt(i+1))<56320||g>57343?a?h.charAt(i):f:a?h.slice(i,i+2):g-56320+(f-55296<<10)+65536)}}},{"./_defined":28,"./_to-integer":107}],99:[function(a,b,c){var d=a("./_is-regexp"),e=a("./_defined");b.exports=function(a,b,c){if(d(b))throw TypeError("String#"+c+" doesn't accept regex!");return String(e(a))}},{"./_defined":28,"./_is-regexp":51}],100:[function(a,b,c){var d=a("./_export"),e=a("./_fails"),f=a("./_defined"),g=function(a,b,c,d){var e=String(f(a)),g="<"+b;return""!==c&&(g+=" "+c+'="'+String(d).replace(/"/g,""")+'"'),g+">"+e+""};b.exports=function(a,b){var c={};c[a]=b(g),d(d.P+d.F*e(function(){var b=""[a]('"');return b!==b.toLowerCase()||b.split('"').length>3}),"String",c)}},{"./_defined":28,"./_export":33,"./_fails":35}],101:[function(a,b,c){var d=a("./_to-length"),e=a("./_string-repeat"),f=a("./_defined");b.exports=function(a,b,c,g){var h=String(f(a)),i=h.length,j=void 0===c?" ":String(c),k=d(b);if(k<=i||""==j)return h;var l=k-i,m=e.call(j,Math.ceil(l/j.length));return m.length>l&&(m=m.slice(0,l)),g?m+h:h+m}},{"./_defined":28,"./_string-repeat":102,"./_to-length":109}],102:[function(a,b,c){"use strict";var d=a("./_to-integer"),e=a("./_defined");b.exports=function(a){var b=String(e(this)),c="",f=d(a);if(f<0||1/0==f)throw RangeError("Count can't be negative");for(;f>0;(f>>>=1)&&(b+=b))1&f&&(c+=b);return c}},{"./_defined":28,"./_to-integer":107}],103:[function(a,b,c){var d=a("./_export"),e=a("./_defined"),f=a("./_fails"),g=a("./_string-ws"),h="["+g+"]",i="​…",j=RegExp("^"+h+h+"*"),k=RegExp(h+h+"*$"),l=function(a,b,c){var e={},h=f(function(){return!!g[a]()||i[a]()!=i}),j=e[a]=h?b(m):g[a];c&&(e[c]=j),d(d.P+d.F*h,"String",e)},m=l.trim=function(a,b){return a=String(e(a)),1&b&&(a=a.replace(j,"")),2&b&&(a=a.replace(k,"")),a};b.exports=l},{"./_defined":28,"./_export":33,"./_fails":35,"./_string-ws":104}],104:[function(a,b,c){b.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},{}],105:[function(a,b,c){var d,e,f,g=a("./_ctx"),h=a("./_invoke"),i=a("./_html"),j=a("./_dom-create"),k=a("./_global"),l=k.process,m=k.setImmediate,n=k.clearImmediate,o=k.MessageChannel,p=0,q={},r=function(){var a=+this;if(q.hasOwnProperty(a)){var b=q[a];delete q[a],b()}},s=function(a){r.call(a.data)};m&&n||(m=function(a){for(var b=[],c=1;arguments.length>c;)b.push(arguments[c++]);return q[++p]=function(){h("function"==typeof a?a:Function(a),b)},d(p),p},n=function(a){delete q[a]},"process"==a("./_cof")(l)?d=function(a){l.nextTick(g(r,a,1))}:o?(e=new o,f=e.port2,e.port1.onmessage=s,d=g(f.postMessage,f,1)):k.addEventListener&&"function"==typeof postMessage&&!k.importScripts?(d=function(a){k.postMessage(a+"","*")},k.addEventListener("message",s,!1)):d="onreadystatechange"in j("script")?function(a){i.appendChild(j("script")).onreadystatechange=function(){i.removeChild(this),r.call(a)}}:function(a){setTimeout(g(r,a,1),0)}),b.exports={set:m,clear:n}},{"./_cof":19,"./_ctx":26,"./_dom-create":30,"./_global":39,"./_html":42,"./_invoke":45}],106:[function(a,b,c){var d=a("./_to-integer"),e=Math.max,f=Math.min;b.exports=function(a,b){return a=d(a),a<0?e(a+b,0):f(a,b)}},{"./_to-integer":107}],107:[function(a,b,c){var d=Math.ceil,e=Math.floor;b.exports=function(a){return isNaN(a=+a)?0:(a>0?e:d)(a)}},{}],108:[function(a,b,c){var d=a("./_iobject"),e=a("./_defined");b.exports=function(a){return d(e(a))}},{"./_defined":28,"./_iobject":46}],109:[function(a,b,c){var d=a("./_to-integer"),e=Math.min;b.exports=function(a){return a>0?e(d(a),9007199254740991):0}},{"./_to-integer":107}],110:[function(a,b,c){var d=a("./_defined");b.exports=function(a){return Object(d(a))}},{"./_defined":28}],111:[function(a,b,c){var d=a("./_is-object");b.exports=function(a,b){if(!d(a))return a;var c,e;if(b&&"function"==typeof(c=a.toString)&&!d(e=c.call(a)))return e;if("function"==typeof(c=a.valueOf)&&!d(e=c.call(a)))return e;if(!b&&"function"==typeof(c=a.toString)&&!d(e=c.call(a)))return e;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":50}],112:[function(a,b,c){"use strict";if(a("./_descriptors")){var d=a("./_library"),e=a("./_global"),f=a("./_fails"),g=a("./_export"),h=a("./_typed"),i=a("./_typed-buffer"),j=a("./_ctx"),k=a("./_an-instance"),l=a("./_property-desc"),m=a("./_hide"),n=a("./_redefine-all"),o=a("./_to-integer"),p=a("./_to-length"),q=a("./_to-index"),r=a("./_to-primitive"),s=a("./_has"),t=a("./_same-value"),u=a("./_classof"),v=a("./_is-object"),w=a("./_to-object"),x=a("./_is-array-iter"),y=a("./_object-create"),z=a("./_object-gpo"),A=a("./_object-gopn").f,B=a("./core.get-iterator-method"),C=a("./_uid"),D=a("./_wks"),E=a("./_array-methods"),F=a("./_array-includes"),G=a("./_species-constructor"),H=a("./es6.array.iterator"),I=a("./_iterators"),J=a("./_iter-detect"),K=a("./_set-species"),L=a("./_array-fill"),M=a("./_array-copy-within"),N=a("./_object-dp"),O=a("./_object-gopd"),P=N.f,Q=O.f,R=e.RangeError,S=e.TypeError,T=e.Uint8Array,U=Array.prototype,V=i.ArrayBuffer,W=i.DataView,X=E(0),Y=E(2),Z=E(3),$=E(4),_=E(5),aa=E(6),ba=F(!0),ca=F(!1),da=H.values,ea=H.keys,fa=H.entries,ga=U.lastIndexOf,ha=U.reduce,ia=U.reduceRight,ja=U.join,ka=U.sort,la=U.slice,ma=U.toString,na=U.toLocaleString,oa=D("iterator"),pa=D("toStringTag"),qa=C("typed_constructor"),ra=C("def_constructor"),sa=h.CONSTR,ta=h.TYPED,ua=h.VIEW,va=E(1,function(a,b){return Ba(G(a,a[ra]),b)}),wa=f(function(){return 1===new T(new Uint16Array([1]).buffer)[0]}),xa=!!T&&!!T.prototype.set&&f(function(){new T(1).set({})}),ya=function(a,b){if(void 0===a)throw S("Wrong length!");var c=+a,d=p(a);if(b&&!t(c,d))throw R("Wrong length!");return d},za=function(a,b){var c=o(a);if(c<0||c%b)throw R("Wrong offset!");return c},Aa=function(a){if(v(a)&&ta in a)return a;throw S(a+" is not a typed array!")},Ba=function(a,b){if(!(v(a)&&qa in a))throw S("It is not a typed array constructor!");return new a(b)},Ca=function(a,b){return Da(G(a,a[ra]),b)},Da=function(a,b){for(var c=0,d=b.length,e=Ba(a,d);d>c;)e[c]=b[c++];return e},Ea=function(a,b,c){P(a,b,{get:function(){return this._d[c]}})},Fa=function(a){var b,c,d,e,f,g,h=w(a),i=arguments.length,k=i>1?arguments[1]:void 0,l=void 0!==k,m=B(h);if(void 0!=m&&!x(m)){for(g=m.call(h),d=[],b=0;!(f=g.next()).done;b++)d.push(f.value);h=d}for(l&&i>2&&(k=j(k,arguments[2],2)),b=0,c=p(h.length),e=Ba(this,c);c>b;b++)e[b]=l?k(h[b],b):h[b];return e},Ga=function(){for(var a=0,b=arguments.length,c=Ba(this,b);b>a;)c[a]=arguments[a++];return c},Ha=!!T&&f(function(){na.call(new T(1))}),Ia=function(){return na.apply(Ha?la.call(Aa(this)):Aa(this),arguments)},Ja={copyWithin:function(a,b){return M.call(Aa(this),a,b,arguments.length>2?arguments[2]:void 0)},every:function(a){return $(Aa(this),a,arguments.length>1?arguments[1]:void 0)},fill:function(a){return L.apply(Aa(this),arguments)},filter:function(a){return Ca(this,Y(Aa(this),a,arguments.length>1?arguments[1]:void 0))},find:function(a){return _(Aa(this),a,arguments.length>1?arguments[1]:void 0)},findIndex:function(a){return aa(Aa(this),a,arguments.length>1?arguments[1]:void 0)},forEach:function(a){X(Aa(this),a,arguments.length>1?arguments[1]:void 0)},indexOf:function(a){return ca(Aa(this),a,arguments.length>1?arguments[1]:void 0)},includes:function(a){return ba(Aa(this),a,arguments.length>1?arguments[1]:void 0)},join:function(a){return ja.apply(Aa(this),arguments)},lastIndexOf:function(a){return ga.apply(Aa(this),arguments)},map:function(a){return va(Aa(this),a,arguments.length>1?arguments[1]:void 0)},reduce:function(a){return ha.apply(Aa(this),arguments)},reduceRight:function(a){return ia.apply(Aa(this),arguments)},reverse:function(){for(var a,b=this,c=Aa(b).length,d=Math.floor(c/2),e=0;e1?arguments[1]:void 0)},sort:function(a){return ka.call(Aa(this),a)},subarray:function(a,b){var c=Aa(this),d=c.length,e=q(a,d);return new(G(c,c[ra]))(c.buffer,c.byteOffset+e*c.BYTES_PER_ELEMENT,p((void 0===b?d:q(b,d))-e))}},Ka=function(a,b){return Ca(this,la.call(Aa(this),a,b))},La=function(a){Aa(this);var b=za(arguments[1],1),c=this.length,d=w(a),e=p(d.length),f=0;if(e+b>c)throw R("Wrong length!");for(;f255?255:255&d),e.v[o](c*b+e.o,d,wa)},D=function(a,b){P(a,b,{get:function(){return B(this,b)},set:function(a){return C(this,b,a)},enumerable:!0})};t?(q=c(function(a,c,d,e){k(a,q,j,"_d");var f,g,h,i,l=0,n=0;if(v(c)){if(!(c instanceof V||"ArrayBuffer"==(i=u(c))||"SharedArrayBuffer"==i))return ta in c?Da(q,c):Fa.call(q,c);f=c,n=za(d,b);var o=c.byteLength;if(void 0===e){if(o%b)throw R("Wrong length!");if((g=o-n)<0)throw R("Wrong length!")}else if((g=p(e)*b)+n>o)throw R("Wrong length!");h=g/b}else h=ya(c,!0),g=h*b,f=new V(g);for(m(a,"_d",{b:f,o:n,l:g,e:h,v:new W(f)});l>1,k=23===b?y(2,-24)-y(2,-77):0,l=0,m=a<0||0===a&&1/a<0?1:0;for(a=x(a),a!=a||a===v?(e=a!=a?1:0,d=i):(d=z(A(a)/B),a*(f=y(2,-d))<1&&(d--,f*=2),a+=d+j>=1?k/f:k*y(2,1-j),a*f>=2&&(d++,f/=2),d+j>=i?(e=0,d=i):d+j>=1?(e=(a*f-1)*y(2,b),d+=j):(e=a*y(2,j-1)*y(2,b),d=0));b>=8;g[l++]=255&e,e/=256,b-=8);for(d=d<0;g[l++]=255&d,d/=256,h-=8);return g[--l]|=128*m,g},G=function(a,b,c){var d,e=8*c-b-1,f=(1<>1,h=e-7,i=c-1,j=a[i--],k=127&j;for(j>>=7;h>0;k=256*k+a[i],i--,h-=8);for(d=k&(1<<-h)-1,k>>=-h,h+=b;h>0;d=256*d+a[i],i--,h-=8);if(0===k)k=1-g;else{if(k===f)return d?0/0:j?-v:v;d+=y(2,b),k-=g}return(j?-1:1)*d*y(2,k-b)},H=function(a){return a[3]<<24|a[2]<<16|a[1]<<8|a[0]},I=function(a){return[255&a]},J=function(a){return[255&a,a>>8&255]},K=function(a){return[255&a,a>>8&255,a>>16&255,a>>24&255]},L=function(a){return F(a,52,8)},M=function(a){return F(a,23,4)},N=function(a,b,c){o(a.prototype,b,{get:function(){return this[c]}})},O=function(a,b,c,d){var e=+c,f=l(e);if(e!=f||f<0||f+b>a[D])throw u("Wrong index!");var g=a[C]._b,h=f+a[E],i=g.slice(h,h+b);return d?i:i.reverse()},P=function(a,b,c,d,e,f){var g=+c,h=l(g);if(g!=h||h<0||h+b>a[D])throw u("Wrong index!");for(var i=a[C]._b,j=h+a[E],k=d(+e),m=0;mU;)(R=T[U++])in r||h(r,R,w[R]);f||(S.constructor=r)}var V=new s(new r(2)),W=s.prototype.setInt8;V.setInt8(0,2147483648),V.setInt8(1,2147483649),!V.getInt8(0)&&V.getInt8(1)||i(s.prototype,{setInt8:function(a,b){W.call(this,a,b<<24>>24)},setUint8:function(a,b){W.call(this,a,b<<24>>24)}},!0)}else r=function(a){var b=Q(this,a);this._b=p.call(Array(b),0),this[D]=b},s=function(a,b,c){k(this,s,"DataView"),k(a,r,"DataView");var d=a[D],e=l(b);if(e<0||e>d)throw u("Wrong offset!");if(c=void 0===c?d-e:m(c),e+c>d)throw u("Wrong length!");this[C]=a,this[E]=e,this[D]=c},e&&(N(r,"byteLength","_l"),N(s,"buffer","_b"),N(s,"byteLength","_l"),N(s,"byteOffset","_o")),i(s.prototype,{getInt8:function(a){return O(this,1,a)[0]<<24>>24},getUint8:function(a){return O(this,1,a)[0]},getInt16:function(a){var b=O(this,2,a,arguments[1]);return(b[1]<<8|b[0])<<16>>16},getUint16:function(a){var b=O(this,2,a,arguments[1]);return b[1]<<8|b[0]},getInt32:function(a){return H(O(this,4,a,arguments[1]))},getUint32:function(a){return H(O(this,4,a,arguments[1]))>>>0},getFloat32:function(a){return G(O(this,4,a,arguments[1]),23,4)},getFloat64:function(a){return G(O(this,8,a,arguments[1]),52,8)},setInt8:function(a,b){P(this,1,a,I,b)},setUint8:function(a,b){P(this,1,a,I,b)},setInt16:function(a,b){P(this,2,a,J,b,arguments[2])},setUint16:function(a,b){P(this,2,a,J,b,arguments[2])},setInt32:function(a,b){P(this,4,a,K,b,arguments[2])},setUint32:function(a,b){P(this,4,a,K,b,arguments[2])},setFloat32:function(a,b){P(this,4,a,M,b,arguments[2])},setFloat64:function(a,b){P(this,8,a,L,b,arguments[2])}});q(r,"ArrayBuffer"),q(s,"DataView"),h(s.prototype,g.VIEW,!0),c.ArrayBuffer=r,c.DataView=s},{"./_an-instance":7,"./_array-fill":10,"./_descriptors":29,"./_fails":35,"./_global":39,"./_hide":41,"./_library":59,"./_object-dp":68,"./_object-gopn":73,"./_redefine-all":87,"./_set-to-string-tag":93,"./_to-integer":107,"./_to-length":109,"./_typed":114}],114:[function(a,b,c){for(var d,e=a("./_global"),f=a("./_hide"),g=a("./_uid"),h=g("typed_array"),i=g("view"),j=!(!e.ArrayBuffer||!e.DataView),k=j,l=0,m="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(d=e[m[l++]])?(f(d.prototype,h,!0),f(d.prototype,i,!0)):k=!1;b.exports={ABV:j,CONSTR:k,TYPED:h,VIEW:i}},{"./_global":39,"./_hide":41,"./_uid":115}],115:[function(a,b,c){var d=0,e=Math.random();b.exports=function(a){return"Symbol(".concat(void 0===a?"":a,")_",(++d+e).toString(36))}},{}],116:[function(a,b,c){var d=a("./_global"),e=a("./_core"),f=a("./_library"),g=a("./_wks-ext"),h=a("./_object-dp").f;b.exports=function(a){var b=e.Symbol||(e.Symbol=f?{}:d.Symbol||{});"_"==a.charAt(0)||a in b||h(b,a,{value:g.f(a)})}},{"./_core":24,"./_global":39,"./_library":59,"./_object-dp":68,"./_wks-ext":117}],117:[function(a,b,c){c.f=a("./_wks")},{"./_wks":118}],118:[function(a,b,c){var d=a("./_shared")("wks"),e=a("./_uid"),f=a("./_global").Symbol,g="function"==typeof f;(b.exports=function(a){return d[a]||(d[a]=g&&f[a]||(g?f:e)("Symbol."+a))}).store=d},{"./_global":39,"./_shared":95,"./_uid":115}],119:[function(a,b,c){var d=a("./_classof"),e=a("./_wks")("iterator"),f=a("./_iterators");b.exports=a("./_core").getIteratorMethod=function(a){if(void 0!=a)return a[e]||a["@@iterator"]||f[d(a)]}},{"./_classof":18,"./_core":24,"./_iterators":57,"./_wks":118}],120:[function(a,b,c){var d=a("./_export"),e=a("./_replacer")(/[\\^$*+?.()|[\]{}]/g,"\\$&");d(d.S,"RegExp",{escape:function(a){return e(a)}})},{"./_export":33,"./_replacer":89}],121:[function(a,b,c){var d=a("./_export");d(d.P,"Array",{copyWithin:a("./_array-copy-within")}),a("./_add-to-unscopables")("copyWithin")},{"./_add-to-unscopables":6,"./_array-copy-within":9,"./_export":33}],122:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-methods")(4);d(d.P+d.F*!a("./_strict-method")([].every,!0),"Array",{every:function(a){return e(this,a,arguments[1])}})},{"./_array-methods":13,"./_export":33,"./_strict-method":97}],123:[function(a,b,c){var d=a("./_export");d(d.P,"Array",{fill:a("./_array-fill")}),a("./_add-to-unscopables")("fill")},{"./_add-to-unscopables":6,"./_array-fill":10,"./_export":33}],124:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-methods")(2);d(d.P+d.F*!a("./_strict-method")([].filter,!0),"Array",{filter:function(a){return e(this,a,arguments[1])}})},{"./_array-methods":13,"./_export":33,"./_strict-method":97}],125:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-methods")(6),f="findIndex",g=!0;f in[]&&Array(1)[f](function(){g=!1}),d(d.P+d.F*g,"Array",{findIndex:function(a){return e(this,a,arguments.length>1?arguments[1]:void 0)}}),a("./_add-to-unscopables")(f)},{"./_add-to-unscopables":6,"./_array-methods":13,"./_export":33}],126:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-methods")(5),f=!0;"find"in[]&&Array(1).find(function(){f=!1}),d(d.P+d.F*f,"Array",{find:function(a){return e(this,a,arguments.length>1?arguments[1]:void 0)}}),a("./_add-to-unscopables")("find")},{"./_add-to-unscopables":6,"./_array-methods":13,"./_export":33}],127:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-methods")(0),f=a("./_strict-method")([].forEach,!0);d(d.P+d.F*!f,"Array",{forEach:function(a){return e(this,a,arguments[1])}})},{"./_array-methods":13,"./_export":33,"./_strict-method":97}],128:[function(a,b,c){"use strict";var d=a("./_ctx"),e=a("./_export"),f=a("./_to-object"),g=a("./_iter-call"),h=a("./_is-array-iter"),i=a("./_to-length"),j=a("./_create-property"),k=a("./core.get-iterator-method");e(e.S+e.F*!a("./_iter-detect")(function(a){Array.from(a)}),"Array",{from:function(a){var b,c,e,l,m=f(a),n="function"==typeof this?this:Array,o=arguments.length,p=o>1?arguments[1]:void 0,q=void 0!==p,r=0,s=k(m);if(q&&(p=d(p,o>2?arguments[2]:void 0,2)),void 0==s||n==Array&&h(s))for(b=i(m.length),c=new n(b);b>r;r++)j(c,r,q?p(m[r],r):m[r]);else for(l=s.call(m),c=new n;!(e=l.next()).done;r++)j(c,r,q?g(l,p,[e.value,r],!0):e.value);return c.length=r,c}})},{"./_create-property":25,"./_ctx":26,"./_export":33,"./_is-array-iter":47,"./_iter-call":52,"./_iter-detect":55,"./_to-length":109,"./_to-object":110,"./core.get-iterator-method":119}],129:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-includes")(!1),f=[].indexOf,g=!!f&&1/[1].indexOf(1,-0)<0;d(d.P+d.F*(g||!a("./_strict-method")(f)),"Array",{indexOf:function(a){return g?f.apply(this,arguments)||0:e(this,a,arguments[1])}})},{"./_array-includes":12,"./_export":33,"./_strict-method":97}],130:[function(a,b,c){var d=a("./_export");d(d.S,"Array",{isArray:a("./_is-array")})},{"./_export":33,"./_is-array":48}],131:[function(a,b,c){"use strict";var d=a("./_add-to-unscopables"),e=a("./_iter-step"),f=a("./_iterators"),g=a("./_to-iobject");b.exports=a("./_iter-define")(Array,"Array",function(a,b){this._t=g(a),this._i=0,this._k=b},function(){var a=this._t,b=this._k,c=this._i++;return!a||c>=a.length?(this._t=void 0,e(1)):"keys"==b?e(0,c):"values"==b?e(0,a[c]):e(0,[c,a[c]])},"values"),f.Arguments=f.Array,d("keys"),d("values"),d("entries")},{"./_add-to-unscopables":6,"./_iter-define":54,"./_iter-step":56,"./_iterators":57,"./_to-iobject":108}],132:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-iobject"),f=[].join;d(d.P+d.F*(a("./_iobject")!=Object||!a("./_strict-method")(f)),"Array",{join:function(a){return f.call(e(this),void 0===a?",":a)}})},{"./_export":33,"./_iobject":46,"./_strict-method":97,"./_to-iobject":108}],133:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-iobject"),f=a("./_to-integer"),g=a("./_to-length"),h=[].lastIndexOf,i=!!h&&1/[1].lastIndexOf(1,-0)<0;d(d.P+d.F*(i||!a("./_strict-method")(h)),"Array",{lastIndexOf:function(a){if(i)return h.apply(this,arguments)||0;var b=e(this),c=g(b.length),d=c-1;for(arguments.length>1&&(d=Math.min(d,f(arguments[1]))),d<0&&(d=c+d);d>=0;d--)if(d in b&&b[d]===a)return d||0;return-1}})},{"./_export":33,"./_strict-method":97,"./_to-integer":107,"./_to-iobject":108,"./_to-length":109}],134:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-methods")(1);d(d.P+d.F*!a("./_strict-method")([].map,!0),"Array",{map:function(a){return e(this,a,arguments[1])}})},{"./_array-methods":13,"./_export":33,"./_strict-method":97}],135:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_create-property");d(d.S+d.F*a("./_fails")(function(){function a(){}return!(Array.of.call(a)instanceof a)}),"Array",{of:function(){for(var a=0,b=arguments.length,c=new("function"==typeof this?this:Array)(b);b>a;)e(c,a,arguments[a++]);return c.length=b,c}})},{"./_create-property":25,"./_export":33,"./_fails":35}],136:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-reduce");d(d.P+d.F*!a("./_strict-method")([].reduceRight,!0),"Array",{reduceRight:function(a){return e(this,a,arguments.length,arguments[1],!0)}})},{"./_array-reduce":14,"./_export":33,"./_strict-method":97}],137:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-reduce");d(d.P+d.F*!a("./_strict-method")([].reduce,!0),"Array",{reduce:function(a){return e(this,a,arguments.length,arguments[1],!1)}})},{"./_array-reduce":14,"./_export":33,"./_strict-method":97}],138:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_html"),f=a("./_cof"),g=a("./_to-index"),h=a("./_to-length"),i=[].slice;d(d.P+d.F*a("./_fails")(function(){e&&i.call(e)}),"Array",{slice:function(a,b){var c=h(this.length),d=f(this);if(b=void 0===b?c:b,"Array"==d)return i.call(this,a,b);for(var e=g(a,c),j=g(b,c),k=h(j-e),l=Array(k),m=0;m9?a:"0"+a};d(d.P+d.F*(e(function(){return"0385-07-25T07:06:39.999Z"!=new Date(-5e13-1).toISOString()})||!e(function(){new Date(0/0).toISOString()})),"Date",{toISOString:function(){if(!isFinite(f.call(this)))throw RangeError("Invalid time value");var a=this,b=a.getUTCFullYear(),c=a.getUTCMilliseconds(),d=b<0?"-":b>9999?"+":"";return d+("00000"+Math.abs(b)).slice(d?-6:-4)+"-"+g(a.getUTCMonth()+1)+"-"+g(a.getUTCDate())+"T"+g(a.getUTCHours())+":"+g(a.getUTCMinutes())+":"+g(a.getUTCSeconds())+"."+(c>99?c:"0"+g(c))+"Z"}})},{"./_export":33,"./_fails":35}],144:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-object"),f=a("./_to-primitive");d(d.P+d.F*a("./_fails")(function(){return null!==new Date(0/0).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(a){var b=e(this),c=f(b);return"number"!=typeof c||isFinite(c)?b.toISOString():null}})},{"./_export":33,"./_fails":35,"./_to-object":110,"./_to-primitive":111}],145:[function(a,b,c){var d=a("./_wks")("toPrimitive"),e=Date.prototype;d in e||a("./_hide")(e,d,a("./_date-to-primitive"))},{"./_date-to-primitive":27,"./_hide":41,"./_wks":118}],146:[function(a,b,c){var d=Date.prototype,e=d.toString,f=d.getTime;new Date(0/0)+""!="Invalid Date"&&a("./_redefine")(d,"toString",function(){var a=f.call(this);return a===a?e.call(this):"Invalid Date"})},{"./_redefine":88}],147:[function(a,b,c){var d=a("./_export");d(d.P,"Function",{bind:a("./_bind")})},{"./_bind":17,"./_export":33}],148:[function(a,b,c){"use strict";var d=a("./_is-object"),e=a("./_object-gpo"),f=a("./_wks")("hasInstance"),g=Function.prototype;f in g||a("./_object-dp").f(g,f,{value:function(a){if("function"!=typeof this||!d(a))return!1;if(!d(this.prototype))return a instanceof this;for(;a=e(a);)if(this.prototype===a)return!0;return!1}})},{"./_is-object":50,"./_object-dp":68,"./_object-gpo":75,"./_wks":118}],149:[function(a,b,c){var d=a("./_object-dp").f,e=a("./_property-desc"),f=a("./_has"),g=Function.prototype,h=Object.isExtensible||function(){return!0};"name"in g||a("./_descriptors")&&d(g,"name",{configurable:!0,get:function(){try{var a=this,b=(""+a).match(/^\s*function ([^ (]*)/)[1];return f(a,"name")||!h(a)||d(a,"name",e(5,b)),b}catch(a){return""}}})},{"./_descriptors":29,"./_has":40,"./_object-dp":68,"./_property-desc":86}],150:[function(a,b,c){"use strict";var d=a("./_collection-strong");b.exports=a("./_collection")("Map",function(a){return function(){return a(this,arguments.length>0?arguments[0]:void 0)}},{get:function(a){var b=d.getEntry(this,a);return b&&b.v},set:function(a,b){return d.def(this,0===a?0:a,b)}},d,!0)},{"./_collection":23,"./_collection-strong":20}],151:[function(a,b,c){var d=a("./_export"),e=a("./_math-log1p"),f=Math.sqrt,g=Math.acosh;d(d.S+d.F*!(g&&710==Math.floor(g(Number.MAX_VALUE))&&1/0==g(1/0)),"Math",{acosh:function(a){return(a=+a)<1?0/0:a>94906265.62425156?Math.log(a)+Math.LN2:e(a-1+f(a-1)*f(a+1))}})},{"./_export":33,"./_math-log1p":61}],152:[function(a,b,c){function d(a){return isFinite(a=+a)&&0!=a?a<0?-d(-a):Math.log(a+Math.sqrt(a*a+1)):a}var e=a("./_export"),f=Math.asinh;e(e.S+e.F*!(f&&1/f(0)>0),"Math",{asinh:d})},{"./_export":33}],153:[function(a,b,c){var d=a("./_export"),e=Math.atanh;d(d.S+d.F*!(e&&1/e(-0)<0),"Math",{atanh:function(a){return 0==(a=+a)?a:Math.log((1+a)/(1-a))/2}})},{"./_export":33}],154:[function(a,b,c){var d=a("./_export"),e=a("./_math-sign");d(d.S,"Math",{cbrt:function(a){return e(a=+a)*Math.pow(Math.abs(a),1/3)}})},{"./_export":33,"./_math-sign":62}],155:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{clz32:function(a){return(a>>>=0)?31-Math.floor(Math.log(a+.5)*Math.LOG2E):32}})},{"./_export":33}],156:[function(a,b,c){var d=a("./_export"),e=Math.exp;d(d.S,"Math",{cosh:function(a){return(e(a=+a)+e(-a))/2}})},{"./_export":33}],157:[function(a,b,c){var d=a("./_export"),e=a("./_math-expm1");d(d.S+d.F*(e!=Math.expm1),"Math",{expm1:e})},{"./_export":33,"./_math-expm1":60}],158:[function(a,b,c){var d=a("./_export"),e=a("./_math-sign"),f=Math.pow,g=f(2,-52),h=f(2,-23),i=f(2,127)*(2-h),j=f(2,-126),k=function(a){return a+1/g-1/g};d(d.S,"Math",{fround:function(a){var b,c,d=Math.abs(a),f=e(a);return di||c!=c?1/0*f:f*c)}})},{"./_export":33,"./_math-sign":62}],159:[function(a,b,c){var d=a("./_export"),e=Math.abs;d(d.S,"Math",{hypot:function(a,b){for(var c,d,f=0,g=0,h=arguments.length,i=0;g0?(d=c/i,f+=d*d):f+=c;return 1/0===i?1/0:i*Math.sqrt(f)}})},{"./_export":33}],160:[function(a,b,c){var d=a("./_export"),e=Math.imul;d(d.S+d.F*a("./_fails")(function(){return e(4294967295,5)!=-5||2!=e.length}),"Math",{imul:function(a,b){var c=+a,d=+b,e=65535&c,f=65535&d;return 0|e*f+((65535&c>>>16)*f+e*(65535&d>>>16)<<16>>>0)}})},{"./_export":33,"./_fails":35}],161:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{log10:function(a){return Math.log(a)/Math.LN10}})},{"./_export":33}],162:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{log1p:a("./_math-log1p")})},{"./_export":33,"./_math-log1p":61}],163:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{log2:function(a){return Math.log(a)/Math.LN2}})},{"./_export":33}],164:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{sign:a("./_math-sign")})},{"./_export":33,"./_math-sign":62}],165:[function(a,b,c){var d=a("./_export"),e=a("./_math-expm1"),f=Math.exp;d(d.S+d.F*a("./_fails")(function(){return!Math.sinh(-2e-17)!=-2e-17}),"Math",{sinh:function(a){return Math.abs(a=+a)<1?(e(a)-e(-a))/2:(f(a-1)-f(-a-1))*(Math.E/2)}})},{"./_export":33,"./_fails":35,"./_math-expm1":60}],166:[function(a,b,c){var d=a("./_export"),e=a("./_math-expm1"),f=Math.exp;d(d.S,"Math",{tanh:function(a){var b=e(a=+a),c=e(-a);return 1/0==b?1:1/0==c?-1:(b-c)/(f(a)+f(-a))}})},{"./_export":33,"./_math-expm1":60}],167:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{trunc:function(a){return(a>0?Math.floor:Math.ceil)(a)}})},{"./_export":33}],168:[function(a,b,c){"use strict";var d=a("./_global"),e=a("./_has"),f=a("./_cof"),g=a("./_inherit-if-required"),h=a("./_to-primitive"),i=a("./_fails"),j=a("./_object-gopn").f,k=a("./_object-gopd").f,l=a("./_object-dp").f,m=a("./_string-trim").trim,n=d.Number,o=n,p=n.prototype,q="Number"==f(a("./_object-create")(p)),r="trim"in String.prototype,s=function(a){var b=h(a,!1);if("string"==typeof b&&b.length>2){b=r?b.trim():m(b,3);var c,d,e,f=b.charCodeAt(0);if(43===f||45===f){if(88===(c=b.charCodeAt(2))||120===c)return 0/0}else if(48===f){switch(b.charCodeAt(1)){case 66:case 98:d=2,e=49;break;case 79:case 111:d=8,e=55;break;default:return+b}for(var g,i=b.slice(2),j=0,k=i.length;je)return 0/0;return parseInt(i,d)}}return+b};if(!n(" 0o1")||!n("0b1")||n("+0x1")){n=function(a){var b=arguments.length<1?0:a,c=this;return c instanceof n&&(q?i(function(){p.valueOf.call(c)}):"Number"!=f(c))?g(new o(s(b)),c,n):s(b)};for(var t,u=a("./_descriptors")?j(o):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),v=0;u.length>v;v++)e(o,t=u[v])&&!e(n,t)&&l(n,t,k(o,t));n.prototype=p,p.constructor=n,a("./_redefine")(d,"Number",n)}},{"./_cof":19,"./_descriptors":29,"./_fails":35,"./_global":39,"./_has":40, "./_inherit-if-required":44,"./_object-create":67,"./_object-dp":68,"./_object-gopd":71,"./_object-gopn":73,"./_redefine":88,"./_string-trim":103,"./_to-primitive":111}],169:[function(a,b,c){var d=a("./_export");d(d.S,"Number",{EPSILON:Math.pow(2,-52)})},{"./_export":33}],170:[function(a,b,c){var d=a("./_export"),e=a("./_global").isFinite;d(d.S,"Number",{isFinite:function(a){return"number"==typeof a&&e(a)}})},{"./_export":33,"./_global":39}],171:[function(a,b,c){var d=a("./_export");d(d.S,"Number",{isInteger:a("./_is-integer")})},{"./_export":33,"./_is-integer":49}],172:[function(a,b,c){var d=a("./_export");d(d.S,"Number",{isNaN:function(a){return a!=a}})},{"./_export":33}],173:[function(a,b,c){var d=a("./_export"),e=a("./_is-integer"),f=Math.abs;d(d.S,"Number",{isSafeInteger:function(a){return e(a)&&f(a)<=9007199254740991}})},{"./_export":33,"./_is-integer":49}],174:[function(a,b,c){var d=a("./_export");d(d.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},{"./_export":33}],175:[function(a,b,c){var d=a("./_export");d(d.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},{"./_export":33}],176:[function(a,b,c){var d=a("./_export"),e=a("./_parse-float");d(d.S+d.F*(Number.parseFloat!=e),"Number",{parseFloat:e})},{"./_export":33,"./_parse-float":82}],177:[function(a,b,c){var d=a("./_export"),e=a("./_parse-int");d(d.S+d.F*(Number.parseInt!=e),"Number",{parseInt:e})},{"./_export":33,"./_parse-int":83}],178:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-integer"),f=a("./_a-number-value"),g=a("./_string-repeat"),h=1..toFixed,i=Math.floor,j=[0,0,0,0,0,0],k="Number.toFixed: incorrect invocation!",l=function(a,b){for(var c=-1,d=b;++c<6;)d+=a*j[c],j[c]=d%1e7,d=i(d/1e7)},m=function(a){for(var b=6,c=0;--b>=0;)c+=j[b],j[b]=i(c/a),c=c%a*1e7},n=function(){for(var a=6,b="";--a>=0;)if(""!==b||0===a||0!==j[a]){var c=String(j[a]);b=""===b?c:b+g.call("0",7-c.length)+c}return b},o=function(a,b,c){return 0===b?c:b%2==1?o(a,b-1,c*a):o(a*a,b/2,c)},p=function(a){for(var b=0,c=a;c>=4096;)b+=12,c/=4096;for(;c>=2;)b+=1,c/=2;return b};d(d.P+d.F*(!!h&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!a("./_fails")(function(){h.call({})})),"Number",{toFixed:function(a){var b,c,d,h,i=f(this,k),j=e(a),q="",r="0";if(j<0||j>20)throw RangeError(k);if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return String(i);if(i<0&&(q="-",i=-i),i>1e-21)if(b=p(i*o(2,69,1))-69,c=b<0?i*o(2,-b,1):i/o(2,b,1),c*=4503599627370496,(b=52-b)>0){for(l(0,c),d=j;d>=7;)l(1e7,0),d-=7;for(l(o(10,d,1),0),d=b-1;d>=23;)m(1<<23),d-=23;m(1<0?(h=r.length,r=q+(h<=j?"0."+g.call("0",j-h)+r:r.slice(0,h-j)+"."+r.slice(h-j))):r=q+r,r}})},{"./_a-number-value":5,"./_export":33,"./_fails":35,"./_string-repeat":102,"./_to-integer":107}],179:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_fails"),f=a("./_a-number-value"),g=1..toPrecision;d(d.P+d.F*(e(function(){return"1"!==g.call(1,void 0)})||!e(function(){g.call({})})),"Number",{toPrecision:function(a){var b=f(this,"Number#toPrecision: incorrect invocation!");return void 0===a?g.call(b):g.call(b,a)}})},{"./_a-number-value":5,"./_export":33,"./_fails":35}],180:[function(a,b,c){var d=a("./_export");d(d.S+d.F,"Object",{assign:a("./_object-assign")})},{"./_export":33,"./_object-assign":66}],181:[function(a,b,c){var d=a("./_export");d(d.S,"Object",{create:a("./_object-create")})},{"./_export":33,"./_object-create":67}],182:[function(a,b,c){var d=a("./_export");d(d.S+d.F*!a("./_descriptors"),"Object",{defineProperties:a("./_object-dps")})},{"./_descriptors":29,"./_export":33,"./_object-dps":69}],183:[function(a,b,c){var d=a("./_export");d(d.S+d.F*!a("./_descriptors"),"Object",{defineProperty:a("./_object-dp").f})},{"./_descriptors":29,"./_export":33,"./_object-dp":68}],184:[function(a,b,c){var d=a("./_is-object"),e=a("./_meta").onFreeze;a("./_object-sap")("freeze",function(a){return function(b){return a&&d(b)?a(e(b)):b}})},{"./_is-object":50,"./_meta":63,"./_object-sap":79}],185:[function(a,b,c){var d=a("./_to-iobject"),e=a("./_object-gopd").f;a("./_object-sap")("getOwnPropertyDescriptor",function(){return function(a,b){return e(d(a),b)}})},{"./_object-gopd":71,"./_object-sap":79,"./_to-iobject":108}],186:[function(a,b,c){a("./_object-sap")("getOwnPropertyNames",function(){return a("./_object-gopn-ext").f})},{"./_object-gopn-ext":72,"./_object-sap":79}],187:[function(a,b,c){var d=a("./_to-object"),e=a("./_object-gpo");a("./_object-sap")("getPrototypeOf",function(){return function(a){return e(d(a))}})},{"./_object-gpo":75,"./_object-sap":79,"./_to-object":110}],188:[function(a,b,c){var d=a("./_is-object");a("./_object-sap")("isExtensible",function(a){return function(b){return!!d(b)&&(!a||a(b))}})},{"./_is-object":50,"./_object-sap":79}],189:[function(a,b,c){var d=a("./_is-object");a("./_object-sap")("isFrozen",function(a){return function(b){return!d(b)||!!a&&a(b)}})},{"./_is-object":50,"./_object-sap":79}],190:[function(a,b,c){var d=a("./_is-object");a("./_object-sap")("isSealed",function(a){return function(b){return!d(b)||!!a&&a(b)}})},{"./_is-object":50,"./_object-sap":79}],191:[function(a,b,c){var d=a("./_export");d(d.S,"Object",{is:a("./_same-value")})},{"./_export":33,"./_same-value":90}],192:[function(a,b,c){var d=a("./_to-object"),e=a("./_object-keys");a("./_object-sap")("keys",function(){return function(a){return e(d(a))}})},{"./_object-keys":77,"./_object-sap":79,"./_to-object":110}],193:[function(a,b,c){var d=a("./_is-object"),e=a("./_meta").onFreeze;a("./_object-sap")("preventExtensions",function(a){return function(b){return a&&d(b)?a(e(b)):b}})},{"./_is-object":50,"./_meta":63,"./_object-sap":79}],194:[function(a,b,c){var d=a("./_is-object"),e=a("./_meta").onFreeze;a("./_object-sap")("seal",function(a){return function(b){return a&&d(b)?a(e(b)):b}})},{"./_is-object":50,"./_meta":63,"./_object-sap":79}],195:[function(a,b,c){var d=a("./_export");d(d.S,"Object",{setPrototypeOf:a("./_set-proto").set})},{"./_export":33,"./_set-proto":91}],196:[function(a,b,c){"use strict";var d=a("./_classof"),e={};e[a("./_wks")("toStringTag")]="z",e+""!="[object z]"&&a("./_redefine")(Object.prototype,"toString",function(){return"[object "+d(this)+"]"},!0)},{"./_classof":18,"./_redefine":88,"./_wks":118}],197:[function(a,b,c){var d=a("./_export"),e=a("./_parse-float");d(d.G+d.F*(parseFloat!=e),{parseFloat:e})},{"./_export":33,"./_parse-float":82}],198:[function(a,b,c){var d=a("./_export"),e=a("./_parse-int");d(d.G+d.F*(parseInt!=e),{parseInt:e})},{"./_export":33,"./_parse-int":83}],199:[function(a,b,c){"use strict";var d,e,f,g=a("./_library"),h=a("./_global"),i=a("./_ctx"),j=a("./_classof"),k=a("./_export"),l=a("./_is-object"),m=a("./_a-function"),n=a("./_an-instance"),o=a("./_for-of"),p=a("./_species-constructor"),q=a("./_task").set,r=a("./_microtask")(),s=h.TypeError,t=h.process,u=h.Promise,t=h.process,v="process"==j(t),w=function(){},x=!!function(){try{var b=u.resolve(1),c=(b.constructor={})[a("./_wks")("species")]=function(a){a(w,w)};return(v||"function"==typeof PromiseRejectionEvent)&&b.then(w)instanceof c}catch(a){}}(),y=function(a,b){return a===b||a===u&&b===f},z=function(a){var b;return!(!l(a)||"function"!=typeof(b=a.then))&&b},A=function(a){return y(u,a)?new B(a):new e(a)},B=e=function(a){var b,c;this.promise=new a(function(a,d){if(void 0!==b||void 0!==c)throw s("Bad Promise constructor");b=a,c=d}),this.resolve=m(b),this.reject=m(c)},C=function(a){try{a()}catch(a){return{error:a}}},D=function(a,b){if(!a._n){a._n=!0;var c=a._c;r(function(){for(var d=a._v,e=1==a._s,f=0;c.length>f;)!function(b){var c,f,g=e?b.ok:b.fail,h=b.resolve,i=b.reject,j=b.domain;try{g?(e||(2==a._h&&G(a),a._h=1),g===!0?c=d:(j&&j.enter(),c=g(d),j&&j.exit()),c===b.promise?i(s("Promise-chain cycle")):(f=z(c))?f.call(c,h,i):h(c)):i(d)}catch(a){i(a)}}(c[f++]);a._c=[],a._n=!1,b&&!a._h&&E(a)})}},E=function(a){q.call(h,function(){var b,c,d,e=a._v;if(F(a)&&(b=C(function(){v?t.emit("unhandledRejection",e,a):(c=h.onunhandledrejection)?c({promise:a,reason:e}):(d=h.console)&&d.error&&d.error("Unhandled promise rejection",e)}),a._h=v||F(a)?2:1),a._a=void 0,b)throw b.error})},F=function(a){if(1==a._h)return!1;for(var b,c=a._a||a._c,d=0;c.length>d;)if(b=c[d++],b.fail||!F(b.promise))return!1;return!0},G=function(a){q.call(h,function(){var b;v?t.emit("rejectionHandled",a):(b=h.onrejectionhandled)&&b({promise:a,reason:a._v})})},H=function(a){var b=this;b._d||(b._d=!0,b=b._w||b,b._v=a,b._s=2,b._a||(b._a=b._c.slice()),D(b,!0))},I=function(a){var b,c=this;if(!c._d){c._d=!0,c=c._w||c;try{if(c===a)throw s("Promise can't be resolved itself");(b=z(a))?r(function(){var d={_w:c,_d:!1};try{b.call(a,i(I,d,1),i(H,d,1))}catch(a){H.call(d,a)}}):(c._v=a,c._s=1,D(c,!1))}catch(a){H.call({_w:c,_d:!1},a)}}};x||(u=function(a){n(this,u,"Promise","_h"),m(a),d.call(this);try{a(i(I,this,1),i(H,this,1))}catch(a){H.call(this,a)}},d=function(a){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},d.prototype=a("./_redefine-all")(u.prototype,{then:function(a,b){var c=A(p(this,u));return c.ok="function"!=typeof a||a,c.fail="function"==typeof b&&b,c.domain=v?t.domain:void 0,this._c.push(c),this._a&&this._a.push(c),this._s&&D(this,!1),c.promise},catch:function(a){return this.then(void 0,a)}}),B=function(){var a=new d;this.promise=a,this.resolve=i(I,a,1),this.reject=i(H,a,1)}),k(k.G+k.W+k.F*!x,{Promise:u}),a("./_set-to-string-tag")(u,"Promise"),a("./_set-species")("Promise"),f=a("./_core").Promise,k(k.S+k.F*!x,"Promise",{reject:function(a){var b=A(this);return(0,b.reject)(a),b.promise}}),k(k.S+k.F*(g||!x),"Promise",{resolve:function(a){if(a instanceof u&&y(a.constructor,this))return a;var b=A(this);return(0,b.resolve)(a),b.promise}}),k(k.S+k.F*!(x&&a("./_iter-detect")(function(a){u.all(a).catch(w)})),"Promise",{all:function(a){var b=this,c=A(b),d=c.resolve,e=c.reject,f=C(function(){var c=[],f=0,g=1;o(a,!1,function(a){var h=f++,i=!1;c.push(void 0),g++,b.resolve(a).then(function(a){i||(i=!0,c[h]=a,--g||d(c))},e)}),--g||d(c)});return f&&e(f.error),c.promise},race:function(a){var b=this,c=A(b),d=c.reject,e=C(function(){o(a,!1,function(a){b.resolve(a).then(c.resolve,d)})});return e&&d(e.error),c.promise}})},{"./_a-function":4,"./_an-instance":7,"./_classof":18,"./_core":24,"./_ctx":26,"./_export":33,"./_for-of":38,"./_global":39,"./_is-object":50,"./_iter-detect":55,"./_library":59,"./_microtask":65,"./_redefine-all":87,"./_set-species":92,"./_set-to-string-tag":93,"./_species-constructor":96,"./_task":105,"./_wks":118}],200:[function(a,b,c){var d=a("./_export"),e=a("./_a-function"),f=a("./_an-object"),g=(a("./_global").Reflect||{}).apply,h=Function.apply;d(d.S+d.F*!a("./_fails")(function(){g(function(){})}),"Reflect",{apply:function(a,b,c){var d=e(a),i=f(c);return g?g(d,b,i):h.call(d,b,i)}})},{"./_a-function":4,"./_an-object":8,"./_export":33,"./_fails":35,"./_global":39}],201:[function(a,b,c){var d=a("./_export"),e=a("./_object-create"),f=a("./_a-function"),g=a("./_an-object"),h=a("./_is-object"),i=a("./_fails"),j=a("./_bind"),k=(a("./_global").Reflect||{}).construct,l=i(function(){function a(){}return!(k(function(){},[],a)instanceof a)}),m=!i(function(){k(function(){})});d(d.S+d.F*(l||m),"Reflect",{construct:function(a,b){f(a),g(b);var c=arguments.length<3?a:f(arguments[2]);if(m&&!l)return k(a,b,c);if(a==c){switch(b.length){case 0:return new a;case 1:return new a(b[0]);case 2:return new a(b[0],b[1]);case 3:return new a(b[0],b[1],b[2]);case 4:return new a(b[0],b[1],b[2],b[3])}var d=[null];return d.push.apply(d,b),new(j.apply(a,d))}var i=c.prototype,n=e(h(i)?i:Object.prototype),o=Function.apply.call(a,n,b);return h(o)?o:n}})},{"./_a-function":4,"./_an-object":8,"./_bind":17,"./_export":33,"./_fails":35,"./_global":39,"./_is-object":50,"./_object-create":67}],202:[function(a,b,c){var d=a("./_object-dp"),e=a("./_export"),f=a("./_an-object"),g=a("./_to-primitive");e(e.S+e.F*a("./_fails")(function(){Reflect.defineProperty(d.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(a,b,c){f(a),b=g(b,!0),f(c);try{return d.f(a,b,c),!0}catch(a){return!1}}})},{"./_an-object":8,"./_export":33,"./_fails":35,"./_object-dp":68,"./_to-primitive":111}],203:[function(a,b,c){var d=a("./_export"),e=a("./_object-gopd").f,f=a("./_an-object");d(d.S,"Reflect",{deleteProperty:function(a,b){var c=e(f(a),b);return!(c&&!c.configurable)&&delete a[b]}})},{"./_an-object":8,"./_export":33,"./_object-gopd":71}],204:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_an-object"),f=function(a){this._t=e(a),this._i=0;var b,c=this._k=[];for(b in a)c.push(b)};a("./_iter-create")(f,"Object",function(){var a,b=this,c=b._k;do{if(b._i>=c.length)return{value:void 0,done:!0}}while(!((a=c[b._i++])in b._t));return{value:a,done:!1}}),d(d.S,"Reflect",{enumerate:function(a){return new f(a)}})},{"./_an-object":8,"./_export":33,"./_iter-create":53}],205:[function(a,b,c){var d=a("./_object-gopd"),e=a("./_export"),f=a("./_an-object");e(e.S,"Reflect",{getOwnPropertyDescriptor:function(a,b){return d.f(f(a),b)}})},{"./_an-object":8,"./_export":33,"./_object-gopd":71}],206:[function(a,b,c){var d=a("./_export"),e=a("./_object-gpo"),f=a("./_an-object");d(d.S,"Reflect",{getPrototypeOf:function(a){return e(f(a))}})},{"./_an-object":8,"./_export":33,"./_object-gpo":75}],207:[function(a,b,c){function d(a,b){var c,h,k=arguments.length<3?a:arguments[2];return j(a)===k?a[b]:(c=e.f(a,b))?g(c,"value")?c.value:void 0!==c.get?c.get.call(k):void 0:i(h=f(a))?d(h,b,k):void 0}var e=a("./_object-gopd"),f=a("./_object-gpo"),g=a("./_has"),h=a("./_export"),i=a("./_is-object"),j=a("./_an-object");h(h.S,"Reflect",{get:d})},{"./_an-object":8,"./_export":33,"./_has":40,"./_is-object":50,"./_object-gopd":71,"./_object-gpo":75}],208:[function(a,b,c){var d=a("./_export");d(d.S,"Reflect",{has:function(a,b){return b in a}})},{"./_export":33}],209:[function(a,b,c){var d=a("./_export"),e=a("./_an-object"),f=Object.isExtensible;d(d.S,"Reflect",{isExtensible:function(a){return e(a),!f||f(a)}})},{"./_an-object":8,"./_export":33}],210:[function(a,b,c){var d=a("./_export");d(d.S,"Reflect",{ownKeys:a("./_own-keys")})},{"./_export":33,"./_own-keys":81}],211:[function(a,b,c){var d=a("./_export"),e=a("./_an-object"),f=Object.preventExtensions;d(d.S,"Reflect",{preventExtensions:function(a){e(a);try{return f&&f(a),!0}catch(a){return!1}}})},{"./_an-object":8,"./_export":33}],212:[function(a,b,c){var d=a("./_export"),e=a("./_set-proto");e&&d(d.S,"Reflect",{setPrototypeOf:function(a,b){e.check(a,b);try{return e.set(a,b),!0}catch(a){return!1}}})},{"./_export":33,"./_set-proto":91}],213:[function(a,b,c){function d(a,b,c){var i,m,n=arguments.length<4?a:arguments[3],o=f.f(k(a),b);if(!o){if(l(m=g(a)))return d(m,b,c,n);o=j(0)}return h(o,"value")?!(o.writable===!1||!l(n))&&(i=f.f(n,b)||j(0),i.value=c,e.f(n,b,i),!0):void 0!==o.set&&(o.set.call(n,c),!0)}var e=a("./_object-dp"),f=a("./_object-gopd"),g=a("./_object-gpo"),h=a("./_has"),i=a("./_export"),j=a("./_property-desc"),k=a("./_an-object"),l=a("./_is-object");i(i.S,"Reflect",{set:d})},{"./_an-object":8,"./_export":33,"./_has":40,"./_is-object":50,"./_object-dp":68,"./_object-gopd":71,"./_object-gpo":75,"./_property-desc":86}],214:[function(a,b,c){var d=a("./_global"),e=a("./_inherit-if-required"),f=a("./_object-dp").f,g=a("./_object-gopn").f,h=a("./_is-regexp"),i=a("./_flags"),j=d.RegExp,k=j,l=j.prototype,m=/a/g,n=/a/g!==new j(/a/g);if(a("./_descriptors")&&(!n||a("./_fails")(function(){return m[a("./_wks")("match")]=!1,/a/g!=j(/a/g)||j(m)==m||"/a/i"!=j(/a/g,"i")}))){j=function(a,b){var c=this instanceof j,d=h(a),f=void 0===b;return!c&&d&&a.constructor===j&&f?a:e(n?new k(d&&!f?a.source:a,b):k((d=a instanceof j)?a.source:a,d&&f?i.call(a):b),c?this:l,j)};for(var o=g(k),p=0;o.length>p;)!function(a){a in j||f(j,a,{configurable:!0,get:function(){return k[a]},set:function(b){k[a]=b}})}(o[p++]);l.constructor=j,j.prototype=l,a("./_redefine")(d,"RegExp",j)}a("./_set-species")("RegExp")},{"./_descriptors":29,"./_fails":35,"./_flags":37,"./_global":39,"./_inherit-if-required":44,"./_is-regexp":51,"./_object-dp":68,"./_object-gopn":73,"./_redefine":88,"./_set-species":92,"./_wks":118}],215:[function(a,b,c){a("./_descriptors")&&"g"!=/./g.flags&&a("./_object-dp").f(RegExp.prototype,"flags",{configurable:!0,get:a("./_flags")})},{"./_descriptors":29,"./_flags":37,"./_object-dp":68}],216:[function(a,b,c){a("./_fix-re-wks")("match",1,function(a,b,c){return[function(c){"use strict";var d=a(this),e=void 0==c?void 0:c[b];return void 0!==e?e.call(c,d):new RegExp(c)[b](String(d))},c]})},{"./_fix-re-wks":36}],217:[function(a,b,c){a("./_fix-re-wks")("replace",2,function(a,b,c){return[function(d,e){"use strict";var f=a(this),g=void 0==d?void 0:d[b];return void 0!==g?g.call(d,f,e):c.call(String(f),d,e)},c]})},{"./_fix-re-wks":36}],218:[function(a,b,c){a("./_fix-re-wks")("search",1,function(a,b,c){return[function(c){"use strict";var d=a(this),e=void 0==c?void 0:c[b];return void 0!==e?e.call(c,d):new RegExp(c)[b](String(d))},c]})},{"./_fix-re-wks":36}],219:[function(a,b,c){a("./_fix-re-wks")("split",2,function(b,c,d){"use strict";var e=a("./_is-regexp"),f=d,g=[].push,h="length";if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[h]||2!="ab".split(/(?:ab)*/)[h]||4!=".".split(/(.?)(.?)/)[h]||".".split(/()()/)[h]>1||"".split(/.?/)[h]){var i=void 0===/()??/.exec("")[1];d=function(a,b){var c=String(this);if(void 0===a&&0===b)return[];if(!e(a))return f.call(c,a,b);var d,j,k,l,m,n=[],o=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(a.sticky?"y":""),p=0,q=void 0===b?4294967295:b>>>0,r=new RegExp(a.source,o+"g");for(i||(d=new RegExp("^"+r.source+"$(?!\\s)",o));(j=r.exec(c))&&!((k=j.index+j[0][h])>p&&(n.push(c.slice(p,j.index)),!i&&j[h]>1&&j[0].replace(d,function(){for(m=1;m1&&j.index=q));)r.lastIndex===j.index&&r.lastIndex++;return p===c[h]?!l&&r.test("")||n.push(""):n.push(c.slice(p)),n[h]>q?n.slice(0,q):n}}else"0".split(void 0,0)[h]&&(d=function(a,b){return void 0===a&&0===b?[]:f.call(this,a,b)});return[function(a,e){var f=b(this),g=void 0==a?void 0:a[c];return void 0!==g?g.call(a,f,e):d.call(String(f),a,e)},d]})},{"./_fix-re-wks":36,"./_is-regexp":51}],220:[function(a,b,c){"use strict";a("./es6.regexp.flags");var d=a("./_an-object"),e=a("./_flags"),f=a("./_descriptors"),g=/./.toString,h=function(b){a("./_redefine")(RegExp.prototype,"toString",b,!0)};a("./_fails")(function(){return"/a/b"!=g.call({source:"a",flags:"b"})})?h(function(){var a=d(this);return"/".concat(a.source,"/","flags"in a?a.flags:!f&&a instanceof RegExp?e.call(a):void 0)}):"toString"!=g.name&&h(function(){return g.call(this)})},{"./_an-object":8,"./_descriptors":29,"./_fails":35,"./_flags":37,"./_redefine":88,"./es6.regexp.flags":215}],221:[function(a,b,c){"use strict";var d=a("./_collection-strong");b.exports=a("./_collection")("Set",function(a){return function(){return a(this,arguments.length>0?arguments[0]:void 0)}},{add:function(a){return d.def(this,a=0===a?0:a,a)}},d)},{"./_collection":23,"./_collection-strong":20}],222:[function(a,b,c){"use strict";a("./_string-html")("anchor",function(a){return function(b){return a(this,"a","name",b)}})},{"./_string-html":100}],223:[function(a,b,c){"use strict";a("./_string-html")("big",function(a){return function(){return a(this,"big","","")}})},{"./_string-html":100}],224:[function(a,b,c){"use strict";a("./_string-html")("blink",function(a){return function(){return a(this,"blink","","")}})},{"./_string-html":100}],225:[function(a,b,c){"use strict";a("./_string-html")("bold",function(a){return function(){return a(this,"b","","")}})},{"./_string-html":100}],226:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_string-at")(!1);d(d.P,"String",{codePointAt:function(a){return e(this,a)}})},{"./_export":33,"./_string-at":98}],227:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-length"),f=a("./_string-context"),g="".endsWith;d(d.P+d.F*a("./_fails-is-regexp")("endsWith"),"String",{endsWith:function(a){var b=f(this,a,"endsWith"),c=arguments.length>1?arguments[1]:void 0,d=e(b.length),h=void 0===c?d:Math.min(e(c),d),i=String(a);return g?g.call(b,i,h):b.slice(h-i.length,h)===i}})},{"./_export":33,"./_fails-is-regexp":34,"./_string-context":99,"./_to-length":109}],228:[function(a,b,c){"use strict";a("./_string-html")("fixed",function(a){return function(){return a(this,"tt","","")}})},{"./_string-html":100}],229:[function(a,b,c){"use strict";a("./_string-html")("fontcolor",function(a){return function(b){return a(this,"font","color",b)}})},{"./_string-html":100}],230:[function(a,b,c){"use strict";a("./_string-html")("fontsize",function(a){return function(b){return a(this,"font","size",b)}})},{"./_string-html":100}],231:[function(a,b,c){var d=a("./_export"),e=a("./_to-index"),f=String.fromCharCode,g=String.fromCodePoint;d(d.S+d.F*(!!g&&1!=g.length),"String",{fromCodePoint:function(a){for(var b,c=[],d=arguments.length,g=0;d>g;){if(b=+arguments[g++],e(b,1114111)!==b)throw RangeError(b+" is not a valid code point");c.push(b<65536?f(b):f(55296+((b-=65536)>>10),b%1024+56320))}return c.join("")}})},{"./_export":33,"./_to-index":106}],232:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_string-context");d(d.P+d.F*a("./_fails-is-regexp")("includes"),"String",{includes:function(a){return!!~e(this,a,"includes").indexOf(a,arguments.length>1?arguments[1]:void 0)}})},{"./_export":33,"./_fails-is-regexp":34,"./_string-context":99}],233:[function(a,b,c){"use strict";a("./_string-html")("italics",function(a){return function(){return a(this,"i","","")}})},{"./_string-html":100}],234:[function(a,b,c){"use strict";var d=a("./_string-at")(!0);a("./_iter-define")(String,"String",function(a){this._t=String(a),this._i=0},function(){var a,b=this._t,c=this._i;return c>=b.length?{value:void 0,done:!0}:(a=d(b,c),this._i+=a.length,{value:a,done:!1})})},{"./_iter-define":54,"./_string-at":98}],235:[function(a,b,c){"use strict";a("./_string-html")("link",function(a){return function(b){return a(this,"a","href",b)}})},{"./_string-html":100}],236:[function(a,b,c){var d=a("./_export"),e=a("./_to-iobject"),f=a("./_to-length");d(d.S,"String",{raw:function(a){for(var b=e(a.raw),c=f(b.length),d=arguments.length,g=[],h=0;c>h;)g.push(String(b[h++])),h1?arguments[1]:void 0,b.length)),d=String(a);return g?g.call(b,d,c):b.slice(c,c+d.length)===d}})},{"./_export":33,"./_fails-is-regexp":34,"./_string-context":99,"./_to-length":109}],240:[function(a,b,c){"use strict";a("./_string-html")("strike",function(a){return function(){return a(this,"strike","","")}})},{"./_string-html":100}],241:[function(a,b,c){"use strict";a("./_string-html")("sub",function(a){return function(){return a(this,"sub","","")}})},{"./_string-html":100}],242:[function(a,b,c){"use strict";a("./_string-html")("sup",function(a){return function(){return a(this,"sup","","")}})},{"./_string-html":100}],243:[function(a,b,c){"use strict";a("./_string-trim")("trim",function(a){return function(){return a(this,3)}})},{"./_string-trim":103}],244:[function(a,b,c){"use strict";var d=a("./_global"),e=a("./_has"),f=a("./_descriptors"),g=a("./_export"),h=a("./_redefine"),i=a("./_meta").KEY,j=a("./_fails"),k=a("./_shared"),l=a("./_set-to-string-tag"),m=a("./_uid"),n=a("./_wks"),o=a("./_wks-ext"),p=a("./_wks-define"),q=a("./_keyof"),r=a("./_enum-keys"),s=a("./_is-array"),t=a("./_an-object"),u=a("./_to-iobject"),v=a("./_to-primitive"),w=a("./_property-desc"),x=a("./_object-create"),y=a("./_object-gopn-ext"),z=a("./_object-gopd"),A=a("./_object-dp"),B=a("./_object-keys"),C=z.f,D=A.f,E=y.f,F=d.Symbol,G=d.JSON,H=G&&G.stringify,I=n("_hidden"),J=n("toPrimitive"),K={}.propertyIsEnumerable,L=k("symbol-registry"),M=k("symbols"),N=k("op-symbols"),O=Object.prototype,P="function"==typeof F,Q=d.QObject,R=!Q||!Q.prototype||!Q.prototype.findChild,S=f&&j(function(){return 7!=x(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a})?function(a,b,c){var d=C(O,b);d&&delete O[b],D(a,b,c),d&&a!==O&&D(O,b,d)}:D,T=function(a){var b=M[a]=x(F.prototype);return b._k=a,b},U=P&&"symbol"==typeof F.iterator?function(a){return"symbol"==typeof a}:function(a){return a instanceof F},V=function(a,b,c){return a===O&&V(N,b,c),t(a),b=v(b,!0),t(c),e(M,b)?(c.enumerable?(e(a,I)&&a[I][b]&&(a[I][b]=!1),c=x(c,{enumerable:w(0,!1)})):(e(a,I)||D(a,I,w(1,{})),a[I][b]=!0),S(a,b,c)):D(a,b,c)},W=function(a,b){t(a);for(var c,d=r(b=u(b)),e=0,f=d.length;f>e;)V(a,c=d[e++],b[c]);return a},X=function(a,b){return void 0===b?x(a):W(x(a),b)},Y=function(a){var b=K.call(this,a=v(a,!0));return!(this===O&&e(M,a)&&!e(N,a))&&(!(b||!e(this,a)||!e(M,a)||e(this,I)&&this[I][a])||b)},Z=function(a,b){if(a=u(a),b=v(b,!0),a!==O||!e(M,b)||e(N,b)){var c=C(a,b);return!c||!e(M,b)||e(a,I)&&a[I][b]||(c.enumerable=!0),c}},$=function(a){for(var b,c=E(u(a)),d=[],f=0;c.length>f;)e(M,b=c[f++])||b==I||b==i||d.push(b);return d},_=function(a){for(var b,c=a===O,d=E(c?N:u(a)),f=[],g=0;d.length>g;)!e(M,b=d[g++])||c&&!e(O,b)||f.push(M[b]);return f};P||(F=function(){if(this instanceof F)throw TypeError("Symbol is not a constructor!");var a=m(arguments.length>0?arguments[0]:void 0),b=function(c){this===O&&b.call(N,c),e(this,I)&&e(this[I],a)&&(this[I][a]=!1),S(this,a,w(1,c))};return f&&R&&S(O,a,{configurable:!0,set:b}),T(a)},h(F.prototype,"toString",function(){return this._k}),z.f=Z,A.f=V,a("./_object-gopn").f=y.f=$,a("./_object-pie").f=Y,a("./_object-gops").f=_,f&&!a("./_library")&&h(O,"propertyIsEnumerable",Y,!0),o.f=function(a){return T(n(a))}),g(g.G+g.W+g.F*!P,{Symbol:F});for(var aa="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ba=0;aa.length>ba;)n(aa[ba++]);for(var aa=B(n.store),ba=0;aa.length>ba;)p(aa[ba++]);g(g.S+g.F*!P,"Symbol",{for:function(a){return e(L,a+="")?L[a]:L[a]=F(a)},keyFor:function(a){if(U(a))return q(L,a);throw TypeError(a+" is not a symbol!")},useSetter:function(){R=!0},useSimple:function(){R=!1}}),g(g.S+g.F*!P,"Object",{create:X,defineProperty:V,defineProperties:W,getOwnPropertyDescriptor:Z,getOwnPropertyNames:$,getOwnPropertySymbols:_}),G&&g(g.S+g.F*(!P||j(function(){var a=F();return"[null]"!=H([a])||"{}"!=H({a:a})||"{}"!=H(Object(a))})),"JSON",{stringify:function(a){if(void 0!==a&&!U(a)){for(var b,c,d=[a],e=1;arguments.length>e;)d.push(arguments[e++]);return b=d[1],"function"==typeof b&&(c=b),!c&&s(b)||(b=function(a,b){if(c&&(b=c.call(this,a,b)),!U(b))return b}),d[1]=b,H.apply(G,d)}}}),F.prototype[J]||a("./_hide")(F.prototype,J,F.prototype.valueOf),l(F,"Symbol"),l(Math,"Math",!0),l(d.JSON,"JSON",!0)},{"./_an-object":8,"./_descriptors":29,"./_enum-keys":32,"./_export":33,"./_fails":35,"./_global":39,"./_has":40,"./_hide":41,"./_is-array":48,"./_keyof":58,"./_library":59,"./_meta":63,"./_object-create":67,"./_object-dp":68,"./_object-gopd":71,"./_object-gopn":73,"./_object-gopn-ext":72,"./_object-gops":74,"./_object-keys":77,"./_object-pie":78,"./_property-desc":86,"./_redefine":88,"./_set-to-string-tag":93,"./_shared":95,"./_to-iobject":108,"./_to-primitive":111,"./_uid":115,"./_wks":118,"./_wks-define":116,"./_wks-ext":117}],245:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_typed"),f=a("./_typed-buffer"),g=a("./_an-object"),h=a("./_to-index"),i=a("./_to-length"),j=a("./_is-object"),k=a("./_global").ArrayBuffer,l=a("./_species-constructor"),m=f.ArrayBuffer,n=f.DataView,o=e.ABV&&k.isView,p=m.prototype.slice,q=e.VIEW;d(d.G+d.W+d.F*(k!==m),{ArrayBuffer:m}),d(d.S+d.F*!e.CONSTR,"ArrayBuffer",{isView:function(a){return o&&o(a)||j(a)&&q in a}}),d(d.P+d.U+d.F*a("./_fails")(function(){return!new m(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(a,b){if(void 0!==p&&void 0===b)return p.call(g(this),a);for(var c=g(this).byteLength,d=h(a,c),e=h(void 0===b?c:b,c),f=new(l(this,m))(i(e-d)),j=new n(this),k=new n(f),o=0;d0?arguments[0]:void 0)}},p={get:function(a){if(j(a)){var b=k(a);return b===!0?m(this).get(a):b?b[this._i]:void 0}},set:function(a,b){return i.def(this,a,b)}},q=b.exports=a("./_collection")("WeakMap",o,p,i,!0,!0);7!=(new q).set((Object.freeze||Object)(n),7).get(n)&&(d=i.getConstructor(o),h(d.prototype,p),g.NEED=!0,e(["delete","has","get","set"],function(a){var b=q.prototype,c=b[a];f(b,a,function(b,e){if(j(b)&&!l(b)){this._f||(this._f=new d);var f=this._f[a](b,e);return"set"==a?this:f}return c.call(this,b,e)})}))},{"./_array-methods":13,"./_collection":23,"./_collection-weak":22,"./_is-object":50,"./_meta":63,"./_object-assign":66,"./_redefine":88}],257:[function(a,b,c){"use strict";var d=a("./_collection-weak");a("./_collection")("WeakSet",function(a){return function(){return a(this,arguments.length>0?arguments[0]:void 0)}},{add:function(a){return d.def(this,a,!0)}},d,!1,!0)},{"./_collection":23,"./_collection-weak":22}],258:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-includes")(!0);d(d.P,"Array",{includes:function(a){return e(this,a,arguments.length>1?arguments[1]:void 0)}}),a("./_add-to-unscopables")("includes")},{"./_add-to-unscopables":6,"./_array-includes":12,"./_export":33}],259:[function(a,b,c){var d=a("./_export"),e=a("./_microtask")(),f=a("./_global").process,g="process"==a("./_cof")(f);d(d.G,{asap:function(a){var b=g&&f.domain;e(b?b.bind(a):a)}})},{"./_cof":19,"./_export":33, "./_global":39,"./_microtask":65}],260:[function(a,b,c){var d=a("./_export"),e=a("./_cof");d(d.S,"Error",{isError:function(a){return"Error"===e(a)}})},{"./_cof":19,"./_export":33}],261:[function(a,b,c){var d=a("./_export");d(d.P+d.R,"Map",{toJSON:a("./_collection-to-json")("Map")})},{"./_collection-to-json":21,"./_export":33}],262:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{iaddh:function(a,b,c,d){var e=a>>>0,f=b>>>0,g=c>>>0;return f+(d>>>0)+((e&g|(e|g)&~(e+g>>>0))>>>31)|0}})},{"./_export":33}],263:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{imulh:function(a,b){var c=+a,d=+b,e=65535&c,f=65535&d,g=c>>16,h=d>>16,i=(g*f>>>0)+(e*f>>>16);return g*h+(i>>16)+((e*h>>>0)+(65535&i)>>16)}})},{"./_export":33}],264:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{isubh:function(a,b,c,d){var e=a>>>0,f=b>>>0,g=c>>>0;return f-(d>>>0)-((~e&g|~(e^g)&e-g>>>0)>>>31)|0}})},{"./_export":33}],265:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{umulh:function(a,b){var c=+a,d=+b,e=65535&c,f=65535&d,g=c>>>16,h=d>>>16,i=(g*f>>>0)+(e*f>>>16);return g*h+(i>>>16)+((e*h>>>0)+(65535&i)>>>16)}})},{"./_export":33}],266:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-object"),f=a("./_a-function"),g=a("./_object-dp");a("./_descriptors")&&d(d.P+a("./_object-forced-pam"),"Object",{__defineGetter__:function(a,b){g.f(e(this),a,{get:f(b),enumerable:!0,configurable:!0})}})},{"./_a-function":4,"./_descriptors":29,"./_export":33,"./_object-dp":68,"./_object-forced-pam":70,"./_to-object":110}],267:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-object"),f=a("./_a-function"),g=a("./_object-dp");a("./_descriptors")&&d(d.P+a("./_object-forced-pam"),"Object",{__defineSetter__:function(a,b){g.f(e(this),a,{set:f(b),enumerable:!0,configurable:!0})}})},{"./_a-function":4,"./_descriptors":29,"./_export":33,"./_object-dp":68,"./_object-forced-pam":70,"./_to-object":110}],268:[function(a,b,c){var d=a("./_export"),e=a("./_object-to-array")(!0);d(d.S,"Object",{entries:function(a){return e(a)}})},{"./_export":33,"./_object-to-array":80}],269:[function(a,b,c){var d=a("./_export"),e=a("./_own-keys"),f=a("./_to-iobject"),g=a("./_object-gopd"),h=a("./_create-property");d(d.S,"Object",{getOwnPropertyDescriptors:function(a){for(var b,c=f(a),d=g.f,i=e(c),j={},k=0;i.length>k;)h(j,b=i[k++],d(c,b));return j}})},{"./_create-property":25,"./_export":33,"./_object-gopd":71,"./_own-keys":81,"./_to-iobject":108}],270:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-object"),f=a("./_to-primitive"),g=a("./_object-gpo"),h=a("./_object-gopd").f;a("./_descriptors")&&d(d.P+a("./_object-forced-pam"),"Object",{__lookupGetter__:function(a){var b,c=e(this),d=f(a,!0);do{if(b=h(c,d))return b.get}while(c=g(c))}})},{"./_descriptors":29,"./_export":33,"./_object-forced-pam":70,"./_object-gopd":71,"./_object-gpo":75,"./_to-object":110,"./_to-primitive":111}],271:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-object"),f=a("./_to-primitive"),g=a("./_object-gpo"),h=a("./_object-gopd").f;a("./_descriptors")&&d(d.P+a("./_object-forced-pam"),"Object",{__lookupSetter__:function(a){var b,c=e(this),d=f(a,!0);do{if(b=h(c,d))return b.set}while(c=g(c))}})},{"./_descriptors":29,"./_export":33,"./_object-forced-pam":70,"./_object-gopd":71,"./_object-gpo":75,"./_to-object":110,"./_to-primitive":111}],272:[function(a,b,c){var d=a("./_export"),e=a("./_object-to-array")(!1);d(d.S,"Object",{values:function(a){return e(a)}})},{"./_export":33,"./_object-to-array":80}],273:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_global"),f=a("./_core"),g=a("./_microtask")(),h=a("./_wks")("observable"),i=a("./_a-function"),j=a("./_an-object"),k=a("./_an-instance"),l=a("./_redefine-all"),m=a("./_hide"),n=a("./_for-of"),o=n.RETURN,p=function(a){return null==a?void 0:i(a)},q=function(a){var b=a._c;b&&(a._c=void 0,b())},r=function(a){return void 0===a._o},s=function(a){r(a)||(a._o=void 0,q(a))},t=function(a,b){j(a),this._c=void 0,this._o=a,a=new u(this);try{var c=b(a),d=c;null!=c&&("function"==typeof c.unsubscribe?c=function(){d.unsubscribe()}:i(c),this._c=c)}catch(b){return void a.error(b)}r(this)&&q(this)};t.prototype=l({},{unsubscribe:function(){s(this)}});var u=function(a){this._s=a};u.prototype=l({},{next:function(a){var b=this._s;if(!r(b)){var c=b._o;try{var d=p(c.next);if(d)return d.call(c,a)}catch(a){try{s(b)}finally{throw a}}}},error:function(a){var b=this._s;if(r(b))throw a;var c=b._o;b._o=void 0;try{var d=p(c.error);if(!d)throw a;a=d.call(c,a)}catch(a){try{q(b)}finally{throw a}}return q(b),a},complete:function(a){var b=this._s;if(!r(b)){var c=b._o;b._o=void 0;try{var d=p(c.complete);a=d?d.call(c,a):void 0}catch(a){try{q(b)}finally{throw a}}return q(b),a}}});var v=function(a){k(this,v,"Observable","_f")._f=i(a)};l(v.prototype,{subscribe:function(a){return new t(a,this._f)},forEach:function(a){var b=this;return new(f.Promise||e.Promise)(function(c,d){i(a);var e=b.subscribe({next:function(b){try{return a(b)}catch(a){d(a),e.unsubscribe()}},error:d,complete:c})})}}),l(v,{from:function(a){var b="function"==typeof this?this:v,c=p(j(a)[h]);if(c){var d=j(c.call(a));return d.constructor===b?d:new b(function(a){return d.subscribe(a)})}return new b(function(b){var c=!1;return g(function(){if(!c){try{if(n(a,!1,function(a){if(b.next(a),c)return o})===o)return}catch(a){if(c)throw a;return void b.error(a)}b.complete()}}),function(){c=!0}})},of:function(){for(var a=0,b=arguments.length,c=Array(b);a1?arguments[1]:void 0,!1)}})},{"./_export":33,"./_string-pad":101}],287:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_string-pad");d(d.P,"String",{padStart:function(a){return e(this,a,arguments.length>1?arguments[1]:void 0,!0)}})},{"./_export":33,"./_string-pad":101}],288:[function(a,b,c){"use strict";a("./_string-trim")("trimLeft",function(a){return function(){return a(this,1)}},"trimStart")},{"./_string-trim":103}],289:[function(a,b,c){"use strict";a("./_string-trim")("trimRight",function(a){return function(){return a(this,2)}},"trimEnd")},{"./_string-trim":103}],290:[function(a,b,c){a("./_wks-define")("asyncIterator")},{"./_wks-define":116}],291:[function(a,b,c){a("./_wks-define")("observable")},{"./_wks-define":116}],292:[function(a,b,c){var d=a("./_export");d(d.S,"System",{global:a("./_global")})},{"./_export":33,"./_global":39}],293:[function(a,b,c){for(var d=a("./es6.array.iterator"),e=a("./_redefine"),f=a("./_global"),g=a("./_hide"),h=a("./_iterators"),i=a("./_wks"),j=i("iterator"),k=i("toStringTag"),l=h.Array,m=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],n=0;n<5;n++){var o,p=m[n],q=f[p],r=q&&q.prototype;if(r){r[j]||g(r,j,l),r[k]||g(r,k,p),h[p]=l;for(o in d)r[o]||e(r,o,d[o],!0)}}},{"./_global":39,"./_hide":41,"./_iterators":57,"./_redefine":88,"./_wks":118,"./es6.array.iterator":131}],294:[function(a,b,c){var d=a("./_export"),e=a("./_task");d(d.G+d.B,{setImmediate:e.set,clearImmediate:e.clear})},{"./_export":33,"./_task":105}],295:[function(a,b,c){var d=a("./_global"),e=a("./_export"),f=a("./_invoke"),g=a("./_partial"),h=d.navigator,i=!!h&&/MSIE .\./.test(h.userAgent),j=function(a){return i?function(b,c){return a(f(g,[].slice.call(arguments,2),"function"==typeof b?b:Function(b)),c)}:a};e(e.G+e.B+e.F*i,{setTimeout:j(d.setTimeout),setInterval:j(d.setInterval)})},{"./_export":33,"./_global":39,"./_invoke":45,"./_partial":84}],296:[function(a,b,c){a("./modules/es6.symbol"),a("./modules/es6.object.create"),a("./modules/es6.object.define-property"),a("./modules/es6.object.define-properties"),a("./modules/es6.object.get-own-property-descriptor"),a("./modules/es6.object.get-prototype-of"),a("./modules/es6.object.keys"),a("./modules/es6.object.get-own-property-names"),a("./modules/es6.object.freeze"),a("./modules/es6.object.seal"),a("./modules/es6.object.prevent-extensions"),a("./modules/es6.object.is-frozen"),a("./modules/es6.object.is-sealed"),a("./modules/es6.object.is-extensible"),a("./modules/es6.object.assign"),a("./modules/es6.object.is"),a("./modules/es6.object.set-prototype-of"),a("./modules/es6.object.to-string"),a("./modules/es6.function.bind"),a("./modules/es6.function.name"),a("./modules/es6.function.has-instance"),a("./modules/es6.parse-int"),a("./modules/es6.parse-float"),a("./modules/es6.number.constructor"),a("./modules/es6.number.to-fixed"),a("./modules/es6.number.to-precision"),a("./modules/es6.number.epsilon"),a("./modules/es6.number.is-finite"),a("./modules/es6.number.is-integer"),a("./modules/es6.number.is-nan"),a("./modules/es6.number.is-safe-integer"),a("./modules/es6.number.max-safe-integer"),a("./modules/es6.number.min-safe-integer"),a("./modules/es6.number.parse-float"),a("./modules/es6.number.parse-int"),a("./modules/es6.math.acosh"),a("./modules/es6.math.asinh"),a("./modules/es6.math.atanh"),a("./modules/es6.math.cbrt"),a("./modules/es6.math.clz32"),a("./modules/es6.math.cosh"),a("./modules/es6.math.expm1"),a("./modules/es6.math.fround"),a("./modules/es6.math.hypot"),a("./modules/es6.math.imul"),a("./modules/es6.math.log10"),a("./modules/es6.math.log1p"),a("./modules/es6.math.log2"),a("./modules/es6.math.sign"),a("./modules/es6.math.sinh"),a("./modules/es6.math.tanh"),a("./modules/es6.math.trunc"),a("./modules/es6.string.from-code-point"),a("./modules/es6.string.raw"),a("./modules/es6.string.trim"),a("./modules/es6.string.iterator"),a("./modules/es6.string.code-point-at"),a("./modules/es6.string.ends-with"),a("./modules/es6.string.includes"),a("./modules/es6.string.repeat"),a("./modules/es6.string.starts-with"),a("./modules/es6.string.anchor"),a("./modules/es6.string.big"),a("./modules/es6.string.blink"),a("./modules/es6.string.bold"),a("./modules/es6.string.fixed"),a("./modules/es6.string.fontcolor"),a("./modules/es6.string.fontsize"),a("./modules/es6.string.italics"),a("./modules/es6.string.link"),a("./modules/es6.string.small"),a("./modules/es6.string.strike"),a("./modules/es6.string.sub"),a("./modules/es6.string.sup"),a("./modules/es6.date.now"),a("./modules/es6.date.to-json"),a("./modules/es6.date.to-iso-string"),a("./modules/es6.date.to-string"),a("./modules/es6.date.to-primitive"),a("./modules/es6.array.is-array"),a("./modules/es6.array.from"),a("./modules/es6.array.of"),a("./modules/es6.array.join"),a("./modules/es6.array.slice"),a("./modules/es6.array.sort"),a("./modules/es6.array.for-each"),a("./modules/es6.array.map"),a("./modules/es6.array.filter"),a("./modules/es6.array.some"),a("./modules/es6.array.every"),a("./modules/es6.array.reduce"),a("./modules/es6.array.reduce-right"),a("./modules/es6.array.index-of"),a("./modules/es6.array.last-index-of"),a("./modules/es6.array.copy-within"),a("./modules/es6.array.fill"),a("./modules/es6.array.find"),a("./modules/es6.array.find-index"),a("./modules/es6.array.species"),a("./modules/es6.array.iterator"),a("./modules/es6.regexp.constructor"),a("./modules/es6.regexp.to-string"),a("./modules/es6.regexp.flags"),a("./modules/es6.regexp.match"),a("./modules/es6.regexp.replace"),a("./modules/es6.regexp.search"),a("./modules/es6.regexp.split"),a("./modules/es6.promise"),a("./modules/es6.map"),a("./modules/es6.set"),a("./modules/es6.weak-map"),a("./modules/es6.weak-set"),a("./modules/es6.typed.array-buffer"),a("./modules/es6.typed.data-view"),a("./modules/es6.typed.int8-array"),a("./modules/es6.typed.uint8-array"),a("./modules/es6.typed.uint8-clamped-array"),a("./modules/es6.typed.int16-array"),a("./modules/es6.typed.uint16-array"),a("./modules/es6.typed.int32-array"),a("./modules/es6.typed.uint32-array"),a("./modules/es6.typed.float32-array"),a("./modules/es6.typed.float64-array"),a("./modules/es6.reflect.apply"),a("./modules/es6.reflect.construct"),a("./modules/es6.reflect.define-property"),a("./modules/es6.reflect.delete-property"),a("./modules/es6.reflect.enumerate"),a("./modules/es6.reflect.get"),a("./modules/es6.reflect.get-own-property-descriptor"),a("./modules/es6.reflect.get-prototype-of"),a("./modules/es6.reflect.has"),a("./modules/es6.reflect.is-extensible"),a("./modules/es6.reflect.own-keys"),a("./modules/es6.reflect.prevent-extensions"),a("./modules/es6.reflect.set"),a("./modules/es6.reflect.set-prototype-of"),a("./modules/es7.array.includes"),a("./modules/es7.string.at"),a("./modules/es7.string.pad-start"),a("./modules/es7.string.pad-end"),a("./modules/es7.string.trim-left"),a("./modules/es7.string.trim-right"),a("./modules/es7.string.match-all"),a("./modules/es7.symbol.async-iterator"),a("./modules/es7.symbol.observable"),a("./modules/es7.object.get-own-property-descriptors"),a("./modules/es7.object.values"),a("./modules/es7.object.entries"),a("./modules/es7.object.define-getter"),a("./modules/es7.object.define-setter"),a("./modules/es7.object.lookup-getter"),a("./modules/es7.object.lookup-setter"),a("./modules/es7.map.to-json"),a("./modules/es7.set.to-json"),a("./modules/es7.system.global"),a("./modules/es7.error.is-error"),a("./modules/es7.math.iaddh"),a("./modules/es7.math.isubh"),a("./modules/es7.math.imulh"),a("./modules/es7.math.umulh"),a("./modules/es7.reflect.define-metadata"),a("./modules/es7.reflect.delete-metadata"),a("./modules/es7.reflect.get-metadata"),a("./modules/es7.reflect.get-metadata-keys"),a("./modules/es7.reflect.get-own-metadata"),a("./modules/es7.reflect.get-own-metadata-keys"),a("./modules/es7.reflect.has-metadata"),a("./modules/es7.reflect.has-own-metadata"),a("./modules/es7.reflect.metadata"),a("./modules/es7.asap"),a("./modules/es7.observable"),a("./modules/web.timers"),a("./modules/web.immediate"),a("./modules/web.dom.iterable"),b.exports=a("./modules/_core")},{"./modules/_core":24,"./modules/es6.array.copy-within":121,"./modules/es6.array.every":122,"./modules/es6.array.fill":123,"./modules/es6.array.filter":124,"./modules/es6.array.find":126,"./modules/es6.array.find-index":125,"./modules/es6.array.for-each":127,"./modules/es6.array.from":128,"./modules/es6.array.index-of":129,"./modules/es6.array.is-array":130,"./modules/es6.array.iterator":131,"./modules/es6.array.join":132,"./modules/es6.array.last-index-of":133,"./modules/es6.array.map":134,"./modules/es6.array.of":135,"./modules/es6.array.reduce":137,"./modules/es6.array.reduce-right":136,"./modules/es6.array.slice":138,"./modules/es6.array.some":139,"./modules/es6.array.sort":140,"./modules/es6.array.species":141,"./modules/es6.date.now":142,"./modules/es6.date.to-iso-string":143,"./modules/es6.date.to-json":144,"./modules/es6.date.to-primitive":145,"./modules/es6.date.to-string":146,"./modules/es6.function.bind":147,"./modules/es6.function.has-instance":148,"./modules/es6.function.name":149,"./modules/es6.map":150,"./modules/es6.math.acosh":151,"./modules/es6.math.asinh":152,"./modules/es6.math.atanh":153,"./modules/es6.math.cbrt":154,"./modules/es6.math.clz32":155,"./modules/es6.math.cosh":156,"./modules/es6.math.expm1":157,"./modules/es6.math.fround":158,"./modules/es6.math.hypot":159,"./modules/es6.math.imul":160,"./modules/es6.math.log10":161,"./modules/es6.math.log1p":162,"./modules/es6.math.log2":163,"./modules/es6.math.sign":164,"./modules/es6.math.sinh":165,"./modules/es6.math.tanh":166,"./modules/es6.math.trunc":167,"./modules/es6.number.constructor":168,"./modules/es6.number.epsilon":169,"./modules/es6.number.is-finite":170,"./modules/es6.number.is-integer":171,"./modules/es6.number.is-nan":172,"./modules/es6.number.is-safe-integer":173,"./modules/es6.number.max-safe-integer":174,"./modules/es6.number.min-safe-integer":175,"./modules/es6.number.parse-float":176,"./modules/es6.number.parse-int":177,"./modules/es6.number.to-fixed":178,"./modules/es6.number.to-precision":179,"./modules/es6.object.assign":180,"./modules/es6.object.create":181,"./modules/es6.object.define-properties":182,"./modules/es6.object.define-property":183,"./modules/es6.object.freeze":184,"./modules/es6.object.get-own-property-descriptor":185,"./modules/es6.object.get-own-property-names":186,"./modules/es6.object.get-prototype-of":187,"./modules/es6.object.is":191,"./modules/es6.object.is-extensible":188,"./modules/es6.object.is-frozen":189,"./modules/es6.object.is-sealed":190,"./modules/es6.object.keys":192,"./modules/es6.object.prevent-extensions":193,"./modules/es6.object.seal":194,"./modules/es6.object.set-prototype-of":195,"./modules/es6.object.to-string":196,"./modules/es6.parse-float":197,"./modules/es6.parse-int":198,"./modules/es6.promise":199,"./modules/es6.reflect.apply":200,"./modules/es6.reflect.construct":201,"./modules/es6.reflect.define-property":202,"./modules/es6.reflect.delete-property":203,"./modules/es6.reflect.enumerate":204,"./modules/es6.reflect.get":207,"./modules/es6.reflect.get-own-property-descriptor":205,"./modules/es6.reflect.get-prototype-of":206,"./modules/es6.reflect.has":208,"./modules/es6.reflect.is-extensible":209,"./modules/es6.reflect.own-keys":210,"./modules/es6.reflect.prevent-extensions":211,"./modules/es6.reflect.set":213,"./modules/es6.reflect.set-prototype-of":212,"./modules/es6.regexp.constructor":214,"./modules/es6.regexp.flags":215,"./modules/es6.regexp.match":216,"./modules/es6.regexp.replace":217,"./modules/es6.regexp.search":218,"./modules/es6.regexp.split":219,"./modules/es6.regexp.to-string":220,"./modules/es6.set":221,"./modules/es6.string.anchor":222,"./modules/es6.string.big":223,"./modules/es6.string.blink":224,"./modules/es6.string.bold":225,"./modules/es6.string.code-point-at":226,"./modules/es6.string.ends-with":227,"./modules/es6.string.fixed":228,"./modules/es6.string.fontcolor":229,"./modules/es6.string.fontsize":230,"./modules/es6.string.from-code-point":231,"./modules/es6.string.includes":232,"./modules/es6.string.italics":233,"./modules/es6.string.iterator":234,"./modules/es6.string.link":235,"./modules/es6.string.raw":236,"./modules/es6.string.repeat":237,"./modules/es6.string.small":238,"./modules/es6.string.starts-with":239,"./modules/es6.string.strike":240,"./modules/es6.string.sub":241,"./modules/es6.string.sup":242,"./modules/es6.string.trim":243,"./modules/es6.symbol":244,"./modules/es6.typed.array-buffer":245,"./modules/es6.typed.data-view":246,"./modules/es6.typed.float32-array":247,"./modules/es6.typed.float64-array":248,"./modules/es6.typed.int16-array":249,"./modules/es6.typed.int32-array":250,"./modules/es6.typed.int8-array":251,"./modules/es6.typed.uint16-array":252,"./modules/es6.typed.uint32-array":253,"./modules/es6.typed.uint8-array":254,"./modules/es6.typed.uint8-clamped-array":255,"./modules/es6.weak-map":256,"./modules/es6.weak-set":257,"./modules/es7.array.includes":258,"./modules/es7.asap":259,"./modules/es7.error.is-error":260,"./modules/es7.map.to-json":261,"./modules/es7.math.iaddh":262,"./modules/es7.math.imulh":263,"./modules/es7.math.isubh":264,"./modules/es7.math.umulh":265,"./modules/es7.object.define-getter":266,"./modules/es7.object.define-setter":267,"./modules/es7.object.entries":268,"./modules/es7.object.get-own-property-descriptors":269,"./modules/es7.object.lookup-getter":270,"./modules/es7.object.lookup-setter":271,"./modules/es7.object.values":272,"./modules/es7.observable":273,"./modules/es7.reflect.define-metadata":274,"./modules/es7.reflect.delete-metadata":275,"./modules/es7.reflect.get-metadata":277,"./modules/es7.reflect.get-metadata-keys":276,"./modules/es7.reflect.get-own-metadata":279,"./modules/es7.reflect.get-own-metadata-keys":278,"./modules/es7.reflect.has-metadata":280,"./modules/es7.reflect.has-own-metadata":281,"./modules/es7.reflect.metadata":282,"./modules/es7.set.to-json":283,"./modules/es7.string.at":284,"./modules/es7.string.match-all":285,"./modules/es7.string.pad-end":286,"./modules/es7.string.pad-start":287,"./modules/es7.string.trim-left":288,"./modules/es7.string.trim-right":289,"./modules/es7.symbol.async-iterator":290,"./modules/es7.symbol.observable":291,"./modules/es7.system.global":292,"./modules/web.dom.iterable":293,"./modules/web.immediate":294,"./modules/web.timers":295}],297:[function(a,b,c){!function(){"use strict";function a(a){return"detail"in a?new k(a.type,{bubbles:a.bubbles,cancelable:a.cancelable,detail:a.detail},a):new j(a.type,{bubbles:a.bubbles,cancelable:a.cancelable},a)}function d(a,b,c){var d=a[b];void 0===d&&(a[b]=d=[]),c="boolean"==typeof c?{capture:c}:c||{};var e=JSON.stringify(c);return{listenersByTypeOptions:d.filter(function(a){return e===JSON.stringify(a.options)}),options:c,listenersByType:d}}function e(){throw new TypeError("Illegal constructor")}var f,g={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3};f="undefined"==typeof DOMException?function(a,b){var c=new Error(a);return c.name=b,c}:DOMException;var h=new WeakMap,i=new WeakMap,j=function(a){this[Symbol.toStringTag]="Event",this.toString=function(){return"[object Event]"};var b=arguments[1],c=arguments[2];if(!arguments.length)throw new TypeError("Failed to construct 'Event': 1 argument required, but only 0 present.");b=b||{},c=c||{};var d={};"composed"in b&&(d.composed=b.composed),h.set(this,c),i.set(this,d),this.initEvent(a,b.bubbles,b.cancelable),Object.defineProperties(this,["target","currentTarget","eventPhase","defaultPrevented"].reduce(function(a,b){return a[b]={get:function(){return void 0!==d[b]?d[b]:b in c?c[b]:"eventPhase"===b?0:"defaultPrevented"!==b&&null}},a},{}));var e=["type","bubbles","cancelable","isTrusted","timeStamp","initEvent","composedPath","composed"];"[object CustomEvent]"===this.toString()&&e.push("detail","initCustomEvent"),Object.defineProperties(this,e.reduce(function(a,b){return a[b]={get:function(){return b in d?d[b]:b in c?c[b]:!(["bubbles","cancelable","composed"].indexOf(b)>-1)&&void 0}},a},{}))};j.prototype.preventDefault=function(){if(!(this instanceof j))throw new TypeError("Illegal invocation");var a=h.get(this),b=i.get(this);this.cancelable&&!b._passive&&(b.defaultPrevented=!0,"function"==typeof a.preventDefault&&a.preventDefault())},j.prototype.stopImmediatePropagation=function(){i.get(this)._stopImmediatePropagation=!0},j.prototype.stopPropagation=function(){i.get(this)._stopPropagation=!0},j.prototype.initEvent=function(a,b,c){var d=i.get(this);d._dispatched||(d.type=a,void 0!==b&&(d.bubbles=b),void 0!==c&&(d.cancelable=c))},["type","target","currentTarget"].forEach(function(a){Object.defineProperty(j.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),["eventPhase","defaultPrevented","bubbles","cancelable","timeStamp"].forEach(function(a){Object.defineProperty(j.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),["NONE","CAPTURING_PHASE","AT_TARGET","BUBBLING_PHASE"].forEach(function(a,b){Object.defineProperty(j,a,{enumerable:!0,writable:!1,value:b}),Object.defineProperty(j.prototype,a,{writable:!1,value:b})}),j[Symbol.toStringTag]="Function",j.prototype[Symbol.toStringTag]="EventPrototype",Object.defineProperty(j,"prototype",{writable:!1});var k=function(a){var b=arguments[1],c=arguments[2];j.call(this,a,b,c),this[Symbol.toStringTag]="CustomEvent",this.toString=function(){return"[object CustomEvent]"};i.get(this);b=b||{},this.initCustomEvent(a,evInit.bubbles,evInit.cancelable,"detail"in evInit?evInit.detail:null)};Object.defineProperty(k.prototype,"constructor",{enumerable:!1,writable:!0,configurable:!0,value:k}),k.prototype.initCustomEvent=function(a,b,c,d){if(!(this instanceof k))throw new TypeError("Illegal invocation");var e=i.get(this);k.call(this,a,{bubbles:b,cancelable:c,detail:d},arguments[4]),e._dispatched||(void 0!==d&&(e.detail=d),Object.defineProperty(this,"detail",{get:function(){return e.detail}}))},k[Symbol.toStringTag]="Function",k.prototype[Symbol.toStringTag]="CustomEventPrototype",Object.setPrototypeOf(k,j),Object.defineProperty(k.prototype,"detail",{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}}),Object.setPrototypeOf(k.prototype,j.prototype),Object.defineProperty(k,"prototype",{writable:!1});var l={addListener:function(a,b,c,e){var f=d(a,c,e),g=f.listenersByTypeOptions;e=f.options;var h=f.listenersByType;g.some(function(a){return a.listener===b})||h.push({listener:b,options:e})},removeListener:function(a,b,c,e){var f=d(a,c,e),g=f.listenersByType,h=JSON.stringify(f.options);g.some(function(d,e){if(d.listener===b&&h===JSON.stringify(d.options))return g.splice(e,1),g.length||delete a[c],!0})},hasListener:function(a,b,c,e){return d(a,c,e).listenersByTypeOptions.some(function(a){return a.listener===b})}};Object.assign(e.prototype,["Early","","Late","Default"].reduce(function(a,b){return["add","remove","has"].forEach(function(c){a[c+b+"EventListener"]=function(a,d){var e=arguments[2];if(arguments.length<2)throw new TypeError("2 or more arguments required");if("string"!=typeof a)throw new f("UNSPECIFIED_EVENT_TYPE_ERR","UNSPECIFIED_EVENT_TYPE_ERR");d.handleEvent&&(d=d.handleEvent.bind(d));var g="_"+b.toLowerCase()+(""===b?"l":"L")+"isteners";return this[g]||Object.defineProperty(this,g,{value:{}}),l[c+"Listener"](this[g],d,a,e)}}),a},{})),Object.assign(e.prototype,{__setOptions:function(a){a=a||{},this._defaultSync=a.defaultSync,this._extraProperties=a.extraProperties},dispatchEvent:function(a){return this._dispatchEvent(a,!0)},_dispatchEvent:function(b,c){function d(){k.eventPhase=g.NONE,k.currentTarget=null,delete k._children}function e(){k._stopImmediatePropagation=void 0,k._stopPropagation=void 0,l.defaultPrevented&&k.cancelable||(k.eventPhase=g.AT_TARGET,l.target.invokeCurrentListeners(l.target._defaultListeners,l,m)),d()}function h(){return k._stopImmediatePropagation=void 0,k._stopPropagation=void 0,j._defaultSync?e():setTimeout(e,0),k.eventPhase=g.AT_TARGET,k._stopPropagation||(k._stopImmediatePropagation=void 0,k._stopPropagation=void 0,l.target.invokeCurrentListeners(l.target._lateListeners,l,m)),d(),!l.defaultPrevented}var j=this;["early","","late","default"].forEach(function(a){var b="_"+a+(""===a?"l":"L")+"isteners";this[b]||Object.defineProperty(this,b,{value:{}})},this);var k=i.get(b);if(k&&c&&k._dispatched)throw new f("The object is in an invalid state.","InvalidStateError");var l;k?l=b:(l=a(b),k=i.get(l),k._dispatched=!0,(this._extraProperties||[]).forEach(function(a){a in b&&(l[a]=b[a])}));var m=l.type;switch(c&&(k.target=this),l.eventPhase){default:case g.NONE:if(k.eventPhase=g.AT_TARGET,this.invokeCurrentListeners(this._earlyListeners,l,m),!this.__getParent)return k.eventPhase=g.AT_TARGET,this._dispatchEvent(l,!1);for(var n=this,o=this;n.__getParent&&null!==(n=n.__getParent());)k._children||(k._children=[]),k._children.push(o),o=n;return o._defaultSync=j._defaultSync,k.eventPhase=g.CAPTURING_PHASE,o._dispatchEvent(l,!1);case g.CAPTURING_PHASE:if(k._stopPropagation)return h();this.invokeCurrentListeners(this._listeners,l,m);var p=k._children&&k._children.length&&k._children.pop();return p&&p!==l.target||(k.eventPhase=g.AT_TARGET),p&&(p._defaultSync=j._defaultSync),(p||this)._dispatchEvent(l,!1);case g.AT_TARGET:return k._stopPropagation?h():(this.invokeCurrentListeners(this._listeners,l,m,!0),k.bubbles?(k.eventPhase=g.BUBBLING_PHASE,this._dispatchEvent(l,!1)):h());case g.BUBBLING_PHASE:if(k._stopPropagation)return h();var q=this.__getParent&&this.__getParent();return q?(q.invokeCurrentListeners(q._listeners,l,m,!0),q._defaultSync=j._defaultSync,q._dispatchEvent(l,!1)):h()}},invokeCurrentListeners:function(a,b,c,e){var f=i.get(b),h=this;f.currentTarget=this;var j=d(a,c,{}),k=j.listenersByType.concat(),l=k.length?1:0;return k.some(function(a,d){var i=e?h["on"+c]:null;if(f._stopImmediatePropagation)return!0;d===l&&"function"==typeof i&&this.tryCatch(function(){i.call(b.currentTarget,b)===!1&&b.preventDefault()});var j=a.options,k=j.once,m=j.passive,n=j.capture;if(f._passive=m,n&&b.target!==b.currentTarget&&b.eventPhase===g.CAPTURING_PHASE||b.eventPhase===g.AT_TARGET||!n&&b.target!==b.currentTarget&&b.eventPhase===g.BUBBLING_PHASE){var o=a.listener;this.tryCatch(function(){o.call(b.currentTarget,b)}), -k&&this.removeEventListener(c,o,j)}},this),this.tryCatch(function(){var a=e?h["on"+c]:null;if("function"==typeof a&&k.length<2){a.call(b.currentTarget,b)===!1&&b.preventDefault()}}),!b.defaultPrevented},tryCatch:function(a){try{a()}catch(a){this.triggerErrorEvent(a)}},triggerErrorEvent:function(a){var b=a;"string"==typeof a&&(b=new Error("Uncaught exception: "+a));var c;c="undefined"==typeof window||"undefined"==typeof ErrorEvent||window&&"object"==typeof window&&!window.dispatchEvent?function(){setTimeout(function(){throw b})}:function(){var c=new ErrorEvent("error",{error:a,message:b.message||"",filename:b.fileName||"",lineno:b.lineNumber||0,colno:b.columnNumber||0});window.dispatchEvent(c)},this.__userErrorEventHandler?this.__userErrorEventHandler(b,c):c()}}),e.prototype[Symbol.toStringTag]="EventTargetPrototype",Object.defineProperty(e,"prototype",{writable:!1});var m=e,n={createInstance:function(a){function b(){this.__setOptions(a)}return b.prototype=m.prototype,new b}},o=void 0!==b&&b.exports?c:window;o.ShimEvent=j,o.ShimCustomEvent=k,o.ShimDOMException=f,o.ShimEventTarget=e,o.EventTargetFactory=n}()},{}],298:[function(a,b,c){(function(a){!function(a){"use strict";function c(a,b,c,d){var f=b&&b.prototype instanceof e?b:e,g=Object.create(f.prototype),h=new n(d||[]);return g._invoke=j(a,c,h),g}function d(a,b,c){try{return{type:"normal",arg:a.call(b,c)}}catch(a){return{type:"throw",arg:a}}}function e(){}function f(){}function g(){}function h(a){["next","throw","return"].forEach(function(b){a[b]=function(a){return this._invoke(b,a)}})}function i(a){function b(c,e,f,g){var h=d(a[c],a,e);if("throw"!==h.type){var i=h.arg,j=i.value;return j&&"object"==typeof j&&s.call(j,"__await")?Promise.resolve(j.__await).then(function(a){b("next",a,f,g)},function(a){b("throw",a,f,g)}):Promise.resolve(j).then(function(a){i.value=a,f(i)},g)}g(h.arg)}function c(a,c){function d(){return new Promise(function(d,e){b(a,c,d,e)})}return e=e?e.then(d,d):d()}"object"==typeof process&&process.domain&&(b=process.domain.bind(b));var e;this._invoke=c}function j(a,b,c){var e=y;return function(f,g){if(e===A)throw new Error("Generator is already running");if(e===B){if("throw"===f)throw g;return p()}for(c.method=f,c.arg=g;;){var h=c.delegate;if(h){var i=k(h,c);if(i){if(i===C)continue;return i}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if(e===y)throw e=B,c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);e=A;var j=d(a,b,c);if("normal"===j.type){if(e=c.done?B:z,j.arg===C)continue;return{value:j.arg,done:c.done}}"throw"===j.type&&(e=B,c.method="throw",c.arg=j.arg)}}}function k(a,b){var c=a.iterator[b.method];if(c===q){if(b.delegate=null,"throw"===b.method){if(a.iterator.return&&(b.method="return",b.arg=q,k(a,b),"throw"===b.method))return C;b.method="throw",b.arg=new TypeError("The iterator does not provide a 'throw' method")}return C}var e=d(c,a.iterator,b.arg);if("throw"===e.type)return b.method="throw",b.arg=e.arg,b.delegate=null,C;var f=e.arg;return f?f.done?(b[a.resultName]=f.value,b.next=a.nextLoc,"return"!==b.method&&(b.method="next",b.arg=q),b.delegate=null,C):f:(b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,C)}function l(a){var b={tryLoc:a[0]};1 in a&&(b.catchLoc=a[1]),2 in a&&(b.finallyLoc=a[2],b.afterLoc=a[3]),this.tryEntries.push(b)}function m(a){var b=a.completion||{};b.type="normal",delete b.arg,a.completion=b}function n(a){this.tryEntries=[{tryLoc:"root"}],a.forEach(l,this),this.reset(!0)}function o(a){if(a){var b=a[u];if(b)return b.call(a);if("function"==typeof a.next)return a;if(!isNaN(a.length)){var c=-1,d=function b(){for(;++c=0;--d){var e=this.tryEntries[d],f=e.completion;if("root"===e.tryLoc)return b("end");if(e.tryLoc<=this.prev){var g=s.call(e,"catchLoc"),h=s.call(e,"finallyLoc");if(g&&h){if(this.prev=0;--c){var d=this.tryEntries[c];if(d.tryLoc<=this.prev&&s.call(d,"finallyLoc")&&this.prev=0;--b){var c=this.tryEntries[b];if(c.finallyLoc===a)return this.complete(c.completion,c.afterLoc),m(c),C}},catch:function(a){for(var b=this.tryEntries.length-1;b>=0;--b){var c=this.tryEntries[b];if(c.tryLoc===a){var d=c.completion;if("throw"===d.type){var e=d.arg;m(c)}return e}}throw new Error("illegal catch attempt")},delegateYield:function(a,b,c){return this.delegate={iterator:o(a),resultName:b,nextLoc:c},"next"===this.method&&(this.arg=q),C}}}("object"==typeof a?a:"object"==typeof window?window:"object"==typeof self?self:this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],299:[function(a,b,c){function d(a){return a&&"function"==typeof a.then}function e(a,b){a.then(null,b)}function f(a){function b(a,b){j.v=a,j.s=b,j.c[b].forEach(function(b){b(a)}),j.c[b].length&&(j.c=null)}function c(a){j.c&&(d(a)?e(a.then(c),f):b(a,h))}function f(a){j.c&&(d(a)?e(a.then(f),f):b(a,i))}var j=this;j.v=0,j.s=g,j.c=[[],[]];try{a(c,f)}catch(a){f(a)}}var g=2,h=0,i=1,j=f.prototype;j.then=function(a,b){var c=this;return new f(function(d,e){function f(){try{d(a?a(c.v):c.v)}catch(a){g(a)}}var g="function"==typeof b?b:e;c.s===h?f():c.s===i?g(c.v):(c.c[h].push(f),c.c[i].push(g))})},j.catch=function(a){var b=this;return new f(function(c,d){function e(){try{c(a(b.v))}catch(a){d(a)}}b.s===i?e():b.s===h?c(b.v):(b.c[i].push(e),b.c[h].push(c))})},f.all=function(a){return new f(function(b,c,f){f=a.length;var g=[];if(!f)return void b(g);a.forEach(function(h,i){d(h)?e(h.then(function(a){g[i]=a,--f||b(g)}),c):(g[i]=h,--f||b(a))})})},f.race=function(a){var b=!1;return new f(function(c,f){a.some(function(a,g){if(!d(a))return c(a),b=!0,!0;e(a.then(function(a){b||(c(a),b=!0)}),f)})})},f.resolve=function(a){return new f(function(b,c){b(a)})},f.reject=function(a){return new f(function(b,c){c(a)})},b.exports=f},{}],300:[function(a,b,c){b.exports=[{sparseArrays:{testPlainObjects:!0,test:function(a){return Array.isArray(a)},replace:function(a,b){return b.iterateUnsetNumeric=!0,a}}},{sparseUndefined:{test:function(a,b){return void 0===a&&b.ownKeys===!1},replace:function(a){return null},revive:function(a){}}}]},{}],301:[function(a,b,c){b.exports=a("./structured-cloning").concat({checkDataCloneException:[function(a){var b={}.toString.call(a).slice(8,-1);if(["symbol","function"].includes(typeof a)||["Arguments","Module","Error","Promise","WeakMap","WeakSet"].includes(b)||a===Object.prototype||("Blob"===b||"File"===b)&&a.isClosed||a&&"object"==typeof a&&"number"==typeof a.nodeType&&"function"==typeof a.insertBefore)throw new DOMException("The object cannot be cloned.","DataCloneError");return!1}]})},{"./structured-cloning":302}],302:[function(a,b,c){b.exports=[a("../types/user-object"),a("../presets/undefined"),a("../types/primitive-objects"),a("../types/special-numbers"),a("../types/date"),a("../types/regexp"),"function"==typeof Map&&a("../types/map"),"function"==typeof Set&&a("../types/set"),"function"==typeof ArrayBuffer&&a("../types/arraybuffer"),"function"==typeof Uint8Array&&a("../types/typed-arrays"),"function"==typeof DataView&&a("../types/dataview"),"undefined"!=typeof Intl&&a("../types/intl-types"),a("../types/imagedata"),a("../types/imagebitmap"),a("../types/file"),a("../types/filelist"),a("../types/blob")]},{"../presets/undefined":303,"../types/arraybuffer":304,"../types/blob":305,"../types/dataview":306,"../types/date":307,"../types/file":308,"../types/filelist":309,"../types/imagebitmap":310,"../types/imagedata":311,"../types/intl-types":312,"../types/map":313,"../types/primitive-objects":314,"../types/regexp":315,"../types/set":316,"../types/special-numbers":317,"../types/typed-arrays":318,"../types/user-object":320}],303:[function(a,b,c){b.exports=[a("../presets/sparse-undefined"),a("../types/undefined")]},{"../presets/sparse-undefined":300,"../types/undefined":319}],304:[function(a,b,c){var d=a("typeson"),e=a("base64-arraybuffer");c.ArrayBuffer=[function(a){return"ArrayBuffer"===d.toStringTag(a)},function(a){return e.encode(a)},function(a){return e.decode(a)}]},{"base64-arraybuffer":2,typeson:322}],305:[function(a,b,c){var d=a("typeson");c.Blob={test:function(a){return"Blob"===d.toStringTag(a)},replace:function(a){var b=new XMLHttpRequest;if(b.open("GET",URL.createObjectURL(a),!1),200!==b.status&&0!==b.status)throw new Error("Bad Blob access: "+b.status);return b.send(),{type:a.type,stringContents:b.responseText}},revive:function(a){return new Blob([a.stringContents],{type:a.type})},replaceAsync:function(a){return new d.Promise(function(b,c){if(a.isClosed)return void c(new Error("The Blob is closed"));var d=new FileReader;d.addEventListener("load",function(){b({type:a.type,stringContents:d.result})}),d.addEventListener("error",function(){c(d.error)}),d.readAsText(a)})}}},{typeson:322}],306:[function(a,b,c){var d=a("typeson"),e=a("base64-arraybuffer");c.DataView=[function(a){return"DataView"===d.toStringTag(a)},function(a){return{buffer:e.encode(a.buffer),byteOffset:a.byteOffset,byteLength:a.byteLength}},function(a){return new DataView(e.decode(a.buffer),a.byteOffset,a.byteLength)}]},{"base64-arraybuffer":2,typeson:322}],307:[function(a,b,c){var d=a("typeson");c.Date=[function(a){return"Date"===d.toStringTag(a)},function(a){return a.getTime()},function(a){return new Date(a)}]},{typeson:322}],308:[function(a,b,c){var d=a("typeson");c.File={test:function(a){return"File"===d.toStringTag(a)},replace:function(a){var b=new XMLHttpRequest;if(b.open("GET",URL.createObjectURL(a),!1),200!==b.status&&0!==b.status)throw new Error("Bad Blob access: "+b.status);return b.send(),{type:a.type,stringContents:b.responseText,name:a.name,lastModified:a.lastModified}},revive:function(a){return new File([a.stringContents],a.name,{type:a.type,lastModified:a.lastModified})},replaceAsync:function(a){return new d.Promise(function(b,c){if(a.isClosed)return void c(new Error("The File is closed"));var d=new FileReader;d.addEventListener("load",function(){b({type:a.type,stringContents:d.result,name:a.name,lastModified:a.lastModified})}),d.addEventListener("error",function(){c(d.error)}),d.readAsText(a)})}}},{typeson:322}],309:[function(a,b,c){var d=a("typeson");c.File=a("./file").File,c.FileList={test:function(a){return"FileList"===d.toStringTag(a)},replace:function(a){for(var b=[],c=0;c0?"Infinity":"-Infinity"},function(a){return{NaN:0/0,Infinity:1/0,"-Infinity":-1/0}[a]}]},{}],318:[function(a,b,c){(function(b){var d=a("typeson"),e=a("base64-arraybuffer"),f="undefined"==typeof self?b:self;["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"].forEach(function(a){var b=f[a];b&&(c[a]=[function(b){return d.toStringTag(b)===a},function(a){return e.encode(a.buffer,a.byteOffset,a.byteLength)},function(a){return new b(e.decode(a))}])})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-arraybuffer":2,typeson:322}],319:[function(a,b,c){var d=a("typeson");b.exports={undefined:[function(a,b){return void 0===a&&(b.ownKeys||!("ownKeys"in b))},function(a){return null},function(a){return new d.Undefined}]}},{typeson:322}],320:[function(a,b,c){var d=a("typeson");c.userObjects=[function(a,b){return d.isUserObject(a)},function(a){return Object.assign({},a)},function(a){return a}]},{typeson:322}],321:[function(a,b,c){b.exports=Array.from||function(a){for(var b=[],c=a.next();!c.done;c=a.next())b.push(c.value);return b}},{}],322:[function(a,b,c){function d(a,b){return j.isObject(a)&&"function"==typeof a.then&&(!b||"function"==typeof a.catch)}function e(a){return q.call(a).slice(8,-1)}function f(a,b){if(!a||"object"!=typeof a)return!1;var c=r(a);if(!c)return!1;var d=s.call(c,"constructor")&&c.constructor;return"function"!=typeof d?null===b:"function"==typeof d&&null!==b&&t.call(d)===t.call(b)}function g(a){return!(!a||"Object"!==e(a))&&(!r(a)||f(a,Object))}function h(a){if(!a||"Object"!==e(a))return!1;var b=r(a);return!b||(f(a,Object)||h(b))}function i(a){return a&&"object"==typeof a}function j(a){var b=[],c=[],e={},h=this.types={},j=this.stringify=function(b,c,d,e){e=Object.assign({},a,e,{stringification:!0});var f=r(b,null,e);return p(f)?JSON.stringify(f[0],c,d):f.then(function(a){return JSON.stringify(a,c,d)})};this.stringifySync=function(a,b,c,d){return j(a,b,c,Object.assign({},{throwOnBadSyncType:!0},d,{sync:!0}))},this.stringifyAsync=function(a,b,c,d){return j(a,b,c,Object.assign({},{throwOnBadSyncType:!0},d,{sync:!1}))};var q=this.parse=function(b,c,d){return d=Object.assign({},a,d,{parse:!0}),s(JSON.parse(b,c),d)};this.parseSync=function(a,b,c){return q(a,b,Object.assign({},{throwOnBadSyncType:!0},c,{sync:!0}))},this.parseAsync=function(a,b,c){return q(a,b,Object.assign({},{throwOnBadSyncType:!0},c,{sync:!1}))};var r=this.encapsulate=function(d,h,j){function k(a){return o(s).length?a&&g(a)&&!a.hasOwnProperty("$types")?a.$types=s:a={$:a,$types:{$:s}}:i(a)&&a.hasOwnProperty("$types")&&(a={$:a,$types:!0}),a}function l(a,b){return Promise.all(b.map(function(a){return a[1].p})).then(function(c){return Promise.all(c.map(function(c){var d=[],e=b.splice(0,1)[0],g=e[0],h=e[2],i=e[3],j=e[4],k=e[5],o=m(g,c,h,i,d),p=f(o,n);return g&&p?o.p.then(function(b){return j[k]=b,l(a,d)}):(g?j[k]=o:a=p?o.p:o,l(a,d))}))}).then(function(){return a})}function m(a,c,d,e,h){var i=typeof c;if(i in{string:1,boolean:1,number:1,undefined:1})return void 0===c||"number"===i&&(isNaN(c)||c===-1/0||1/0===c)?q(a,c,e,h):c;if(null===c)return c;if(d&&!e.iterateIn&&!e.iterateUnsetNumeric){var j=t.indexOf(c);if(!(j<0))return s[a]="#","#"+u[j];d===!0&&(t.push(c),u.push(a))}var k=g(c),l=p(c),r=(k||l)&&(!b.length||e.replaced)||e.iterateIn?c:q(a,c,e,h,k||l);if(r!==c)return r;var v;if(l||"array"===e.iterateIn)v=new Array(c.length);else{if(!k&&"object"!==e.iterateIn)return""===a&&f(c,n)?(h.push([a,c,d,e]),c):c;v={}}if(e.iterateIn)for(var w in c){var x={ownKeys:c.hasOwnProperty(w)},y=a+(a?".":"")+w,z=m(y,c[w],!!d,x,h);f(z,n)?h.push([y,z,!!d,x,v,w]):void 0!==z&&(v[w]=z)}else o(c).forEach(function(b){var e=a+(a?".":"")+b,g=m(e,c[b],!!d,{ownKeys:!0},h);f(g,n)?h.push([e,g,!!d,{ownKeys:!0},v,b]):void 0!==g&&(v[b]=g)});if(e.iterateUnsetNumeric)for(var A=0,B=c.length;A=this.length||!Number.isInteger(a)?null:this._items[a]},clone:function(){var a=h.__createInstance();return a._items=this._items.slice(),a._length=this.length,a.addIndexes(),a},addIndexes:function(){for(var a=0;a":"<";void 0!==b&&(k.push("AND",j,n+"= ?"),l.push(v.encode(b))),void 0!==a?(k.push("AND",i,n+"= ?"),l.push(v.encode(a))):g&&void 0!==h.__key&&(k.push("AND",i,n+" ?"),l.push(v.encode(h.__key))),h.__count||(k.push("ORDER BY",i,m),h.__unique||"key"===h.__keyColumnName||k.push(",",j,m),!h.__unique&&h.__indexSource&&k.push(",",r.sqlQuote(h.__valueColumnName),m),k.push("LIMIT",f)),k=k.join(" "),B.default.DEBUG&&console.log(k,l),c.executeSql(k,l,function(a,b){h.__count?d(void 0,b.rows.length,void 0):b.rows.length>1?(h.__prefetchedIndex=0,h.__prefetchedData=b.rows,B.default.DEBUG&&console.log("Preloaded "+h.__prefetchedData.length+" records for cursor"),h.__decode(b.rows.item(0),d)):1===b.rows.length?h.__decode(b.rows.item(0),d):(B.default.DEBUG&&console.log("Reached end of cursors"),d(void 0,void 0,void 0))},function(a,b){B.default.DEBUG&&console.log("Could not execute Cursor.continue",k,l),e(b)})},i.prototype.__findMultiEntry=function(a,b,c,d,e){var f=this;if(f.__prefetchedData&&f.__prefetchedData.length===f.__prefetchedIndex)return B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),void d(void 0,void 0,void 0);var g=r.sqlQuote(f.__keyColumnName),h=["SELECT * FROM",r.escapeStoreNameForSQL(f.__store.__currentName)],i=[];h.push("WHERE",g,"NOT NULL"),f.__range&&void 0!==f.__range.lower&&Array.isArray(f.__range.upper)&&0===f.__range.upper.indexOf(f.__range.lower)&&(h.push("AND",g,"LIKE ? ESCAPE '^'"),i.push("%"+r.sqlLIKEEscape(f.__range.__lowerCached.slice(0,-1))+"%"));var j=f.__sqlDirection,k="ASC"===j?">":"<",l=r.sqlQuote("key");void 0!==b&&(h.push("AND",l,k+"= ?"),i.push(v.encode(b))),void 0!==a?(h.push("AND",g,k+"= ?"),i.push(v.encode(a))):void 0!==f.__key&&(h.push("AND",g,k+" ?"),i.push(v.encode(f.__key))),f.__count||(h.push("ORDER BY",g,j),f.__unique||"key"===f.__keyColumnName||h.push(",",r.sqlQuote("key"),j),!f.__unique&&f.__indexSource&&h.push(",",r.sqlQuote(f.__valueColumnName),j)),h=h.join(" "),B.default.DEBUG&&console.log(h,i),c.executeSql(h,i,function(a,b){if(b.rows.length>0){if(f.__count){for(var c=0,e=0;eb.matchingKey.replace("[","z")?q?-1:1:a.keyb.key?"prev"===f.direction?-1:1:0}),i.length>1?(f.__prefetchedIndex=0,f.__prefetchedData={data:i,length:i.length,item:function(a){return this.data[a]}},B.default.DEBUG&&console.log("Preloaded "+f.__prefetchedData.length+" records for multiEntry cursor"),f.__decode(i[0],d)):1===i.length?(B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),f.__decode(i[0],d)):(B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),d(void 0,void 0,void 0))}else B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),d(void 0,void 0,void 0)},function(a,b){B.default.DEBUG&&console.log("Could not execute Cursor.continue",h,i),e(b)})},i.prototype.__onsuccess=function(a){var b=this;return function(c,d,e){if(b.__count)a(d,b.__req);else{void 0!==c&&(b.__gotValue=!0),b.__key=void 0===c?null:c,b.__primaryKey=void 0===e?null:e,b.__value=void 0===d?null:d;a(void 0===c?null:b,b.__req)}}},i.prototype.__decode=function(a,b){var c=this;if(c.__multiEntryIndex&&c.__unique){if(c.__matchedKeys||(c.__matchedKeys={}),c.__matchedKeys[a.matchingKey])return void b(void 0,void 0,void 0);c.__matchedKeys[a.matchingKey]=!0}var d=r.unescapeSQLiteResponse(c.__multiEntryIndex?a.matchingKey:a[c.__keyColumnName]),e=r.unescapeSQLiteResponse(a[c.__valueColumnName]),f=r.unescapeSQLiteResponse(a.key);b(v.decode(d,c.__multiEntryIndex),c.__valueDecoder.decode(e),v.decode(f),d)},i.prototype.__sourceOrEffectiveObjStoreDeleted=function(){m.default.__invalidStateIfDeleted(this.__store,"The cursor's effective object store has been deleted"),this.__indexSource&&z.default.__invalidStateIfDeleted(this.source,"The cursor's index source has been deleted")},i.prototype.__invalidateCache=function(){this.__prefetchedData=null},i.prototype.__continue=function(a,b){var c=this,d=void 0!==c.__advanceCount;if(t.default.__assertActive(c.__store.transaction),c.__sourceOrEffectiveObjStoreDeleted(),!c.__gotValue&&!b)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");if(void 0!==a){v.convertValueToKeyRethrowingAndIfInvalid(a);var e=(0,p.cmp)(a,c.key);if(0===e||c.direction.includes("next")&&e===-1||c.direction.includes("prev")&&1===e)throw(0,n.createDOMException)("DataError","Cannot "+(d?"advance":"continue")+" the cursor in an unexpected direction")}this.__continueFinish(a,void 0,d)},i.prototype.__continueFinish=function(a,b,c){var d=this,e=d.__advanceCount||B.default.cursorPreloadPackSize||100;d.__gotValue=!1,d.__req.__readyState="pending",d.__store.transaction.__pushToQueue(d.__req,function f(g,h,i,j,k){function l(a,b,e){if(c){if(d.__advanceCount>=2&&void 0!==a)return d.__advanceCount--,d.__key=a,d.__continue(void 0,!0),void k();d.__advanceCount=void 0}d.__onsuccess(i)(a,b,e)}if(d.__prefetchedData&&++d.__prefetchedIndex0||0===m&&(d.__unique||void 0===b||(0,p.cmp)(k,b)>=0))return void l(c,e,k);f(g,h,i,j)}()});d.__find(a,b,g,l,function(){d.__advanceCount=void 0,j.apply(void 0,arguments)},e)})},i.prototype.continue=function(){this.__continue(arguments[0])},i.prototype.continuePrimaryKey=function(a,b){function c(){d.__continueFinish(a,b,!1)}var d=this;if(t.default.__assertActive(d.__store.transaction),d.__sourceOrEffectiveObjStoreDeleted(),!d.__indexSource)throw(0,n.createDOMException)("InvalidAccessError","`continuePrimaryKey` may only be called on an index source.");if(!["next","prev"].includes(d.direction))throw(0,n.createDOMException)("InvalidAccessError","`continuePrimaryKey` may not be called with unique cursors.");if(!d.__gotValue)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");v.convertValueToKeyRethrowingAndIfInvalid(a),v.convertValueToKeyRethrowingAndIfInvalid(b);var e=(0,p.cmp)(a,d.key);if("next"===d.direction&&e===-1||"prev"===d.direction&&1===e)throw(0,n.createDOMException)("DataError","Cannot continue the cursor in an unexpected direction");0===e?x.encode(b,function(a){x.encode(d.primaryKey,function(b){if(a===b||"next"===d.direction&&ab)throw(0,n.createDOMException)("DataError","Cannot continue the cursor in an unexpected direction");c()})}):c()},i.prototype.advance=function(a){var b=this;if(0===(a=r.enforceRange(a,"unsigned long")))throw new TypeError("Calling advance() with count argument 0");b.__gotValue&&(b.__advanceCount=a),b.__continue()},i.prototype.update=function(a){function b(a){m.default.__storingRecordObjectStore(d,c.__store,a,!1,e)}var c=this;if(!arguments.length)throw new TypeError("A value must be passed to update()");if(t.default.__assertActive(c.__store.transaction),c.__store.transaction.__assertWritable(),c.__sourceOrEffectiveObjStoreDeleted(),!c.__gotValue)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");if(c.__keyOnly)throw(0,n.createDOMException)("InvalidStateError","This cursor method cannot be called when the key only flag has been set.");var d=c.__store.transaction.__createRequest(c),e=c.primaryKey;if(null!==c.__store.keyPath){var f=c.__store.__validateKeyAndValueAndCloneValue(a,void 0,!0),g=j(f,2),h=g[0],i=g[1];if(0!==(0,p.cmp)(c.primaryKey,h))throw(0,n.createDOMException)("DataError","The key of the supplied value to `update` is not equal to the cursor's effective key");b(i)}else{b(x.clone(a))}return d},i.prototype.delete=function(){var a=this;if(t.default.__assertActive(a.__store.transaction),a.__store.transaction.__assertWritable(),a.__sourceOrEffectiveObjStoreDeleted(),!a.__gotValue)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");if(a.__keyOnly)throw(0,n.createDOMException)("InvalidStateError","This cursor method cannot be called when the key only flag has been set.");return this.__store.transaction.__addToTransactionQueue(function(b,c,d,e){a.__find(void 0,void 0,b,function(c,f,g){var h="DELETE FROM "+r.escapeStoreNameForSQL(a.__store.__currentName)+' WHERE "key" = ?';B.default.DEBUG&&console.log(h,c,g),b.executeSql(h,[r.escapeSQLiteStatement(v.encode(g))],function(b,f){1===f.rowsAffected?(a.__store.__cursors.forEach(function(a){a.__invalidateCache()}),d(void 0)):e("No rows with key found"+c)},function(a,b){e(b)})},e)},void 0,a)},i.prototype[Symbol.toStringTag]="IDBCursorPrototype",["source","direction","key","primaryKey"].forEach(function(a){Object.defineProperty(i.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),Object.defineProperty(i,"prototype",{writable:!1});var D=function(a){function b(){return f(this,b),g(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return h(b,a),b}(i),E=D;D.__createInstance=function(){function a(){var a;(a=i.__super).call.apply(a,[this].concat(c)),this[Symbol.toStringTag]="IDBCursorWithValue",r.defineReadonlyProperties(this,"value")}for(var b=arguments.length,c=Array(b),d=0;dd?1:c===d?0:-1;if(A.default.DEBUG){var f=u.decode(c),g=u.decode(d);"object"===(void 0===a?"undefined":j(a))&&(a=JSON.stringify(a),f=JSON.stringify(f)),"object"===(void 0===b?"undefined":j(b))&&(b=JSON.stringify(b),g=JSON.stringify(g)),f!==a&&console.warn(a+" was incorrectly encoded as "+f),g!==b&&console.warn(b+" was incorrectly encoded as "+g)}return e}Object.defineProperty(c,"__esModule",{value:!0}),c.shimIndexedDB=c.cmp=c.IDBFactory=void 0;var j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},k=a("./Event"),l=a("./IDBVersionChangeEvent"),m=e(l),n=a("./DOMException"),o=a("./IDBRequest"),p=a("./DOMStringList"),q=e(p),r=a("./util"),s=d(r),t=a("./Key"),u=d(t),v=a("./IDBTransaction"),w=e(v),x=a("./IDBDatabase"),y=e(x),z=a("./CFG"),A=e(z),B=void 0,C=h;h.__createInstance=function(){function a(){this[Symbol.toStringTag]="IDBFactory",this.modules={Event:"undefined"!=typeof Event?Event:k.ShimEvent,Error:Error,ShimEvent:k.ShimEvent,ShimCustomEvent:k.ShimCustomEvent,ShimEventTarget:k.ShimEventTarget,ShimDOMException:n.ShimDOMException,ShimDOMStringList:q.default,IDBFactory:C},this.utils={createDOMException:n.createDOMException},this.__connections=[]}return a.prototype=C.prototype,new a},h.prototype.open=function(a){function b(a,b){if(!j){b=b?(0,n.webSQLErrback)(b):a,j=!0;var c=(0,k.createEvent)("error",b,{bubbles:!0,cancelable:!0});i.__readyState="done",i.__error=b,i.__result=void 0,i.dispatchEvent(c)}}function c(c){var f=A.default.win.openDatabase(p,1,a,A.default.DEFAULT_DB_SIZE);if(i.__readyState="done",void 0===e&&(e=c||1),c>e){return void b((0,n.createDOMException)("VersionError","An attempt was made to open a database using a lower version than the existing version.",e))}f.transaction(function(g){g.executeSql("CREATE TABLE IF NOT EXISTS __sys__ (name VARCHAR(255), keyPath VARCHAR(255), autoInc BOOLEAN, indexList BLOB, currNum INTEGER)",[],function(){g.executeSql('SELECT "name", "keyPath", "autoInc", "indexList" FROM __sys__',[],function(g,h){if(i.__result=y.default.__createInstance(f,a,c,e,h),d.__connections.push(i.result),c=d.length?a.executeSql("DROP TABLE IF EXISTS __sys__",[],function(){f()},c):a.executeSql("DROP TABLE "+s.escapeStoreNameForSQL(s.unescapeSQLiteResponse(d.item(e).name)),[],function(){b(e+1)},function(){b(e+1)})}(0)},function(a){f()})})},c)},c,null,function(a,b,c,d,e){return!(!a.readOnly&&!b)||(p=function(a,b){a?d(a,b):e(b)},!1)})},c)},c)},c),i},h.prototype.cmp=function(a,b){if(!(this instanceof h))throw new TypeError("Illegal invocation");if(arguments.length<2)throw new TypeError("You must provide two keys to be compared");return u.convertValueToKeyRethrowingAndIfInvalid(a),u.convertValueToKeyRethrowingAndIfInvalid(b),i(a,b)},h.prototype.webkitGetDatabaseNames=function(){function a(a,d){if(!b){d=d?(0,n.webSQLErrback)(d):a,b=!0;var e=(0,k.createEvent)("error",d,{bubbles:!0,cancelable:!0});c.__readyState="done",c.__error=d,c.__result=void 0,c.dispatchEvent(e)}}if(!(this instanceof h))throw new TypeError("Illegal invocation");if(f())throw(0,n.createDOMException)("SecurityError","Cannot get IndexedDB database names from an opaque origin.");var b=!1,c=o.IDBRequest.__createInstance();return g(function(){B.readTransaction(function(b){b.executeSql('SELECT "name" FROM dbVersions',[],function(a,b){for(var d=q.default.__createInstance(),e=0;ed.__connections.length-1)throw new TypeError("If providing an argument, __forceClose must be called with a numeric index to indicate a specific connection to lose");c(d.__connections[a])}},h.prototype[Symbol.toStringTag]="IDBFactoryPrototype",Object.defineProperty(h,"prototype",{writable:!1});var D=h.__createInstance();c.IDBFactory=h,c.cmp=i,c.shimIndexedDB=D},{"./CFG":323,"./DOMException":324,"./DOMStringList":325,"./Event":326,"./IDBDatabase":328,"./IDBRequest":333,"./IDBTransaction":334,"./IDBVersionChangeEvent":335,"./Key":336,"./util":342,fs:void 0,path:void 0}],330:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function f(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b0&&h.push("OR"),h.push(m.escapeIndexNameForSQL(b.name),"LIKE ? ESCAPE '^' "),i.push("%"+m.sqlLIKEEscape(o.encode(a,b.multiEntry))+"%")}), -h.push(")");else if(b.multiEntry)h.push("AND",m.escapeIndexNameForSQL(b.name),"LIKE ? ESCAPE '^'"),i.push("%"+m.sqlLIKEEscape(o.encode(c,b.multiEntry))+"%");else{var j=(0,p.convertValueToKeyRange)(c,a);(0,p.setSQLForKeyRange)(j,m.escapeIndexNameForSQL(b.name),h,i,!0,!1)}return[a,b,f,c,d,e,h,i]}Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.IDBIndex=c.executeFetchIndexData=c.buildFetchIndexDataSQL=void 0;var j=a("./DOMException"),k=a("./IDBCursor"),l=a("./util"),m=e(l),n=a("./Key"),o=e(n),p=a("./IDBKeyRange"),q=a("./IDBTransaction"),r=d(q),s=a("./Sca"),t=e(s),u=a("./CFG"),v=d(u),w=a("./IDBObjectStore"),x=d(w),y=["objectStore","keyPath","multiEntry","unique"],z=g;g.__createInstance=function(a,b){function c(){var c=this;c[Symbol.toStringTag]="IDBIndex",m.defineReadonlyProperties(c,y),c.__objectStore=a,c.__name=c.__originalName=b.columnName,c.__keyPath=Array.isArray(b.keyPath)?b.keyPath.slice():b.keyPath;var d=b.optionalParams;c.__multiEntry=!(!d||!d.multiEntry),c.__unique=!(!d||!d.unique),c.__deleted=!!b.__deleted,c.__objectStore.__cursors=b.cursors||[],Object.defineProperty(c,"__currentName",{get:function(){return"__pendingName"in c?c.__pendingName:c.name}}),Object.defineProperty(c,"name",{enumerable:!1,configurable:!1,get:function(){return this.__name},set:function(b){var c=this;b=m.convertToDOMString(b);var d=c.name;if(r.default.__assertVersionChange(c.objectStore.transaction),r.default.__assertActive(c.objectStore.transaction),z.__invalidStateIfDeleted(c),x.default.__invalidStateIfDeleted(c),b!==d){if(c.objectStore.__indexes[b]&&!c.objectStore.__indexes[b].__deleted&&!c.objectStore.__indexes[b].__pendingDelete)throw(0,j.createDOMException)("ConstraintError",'Index "'+b+'" already exists on '+c.objectStore.__currentName);c.__name=b;var e=c.objectStore;delete e.__indexes[d],e.__indexes[b]=c,e.indexNames.splice(e.indexNames.indexOf(d),1,b);var f=e.transaction.__storeHandles[e.name],g=f.__indexHandles[d];g.__name=b,f.__indexHandles[b]=g,c.__pendingName=d;var h=[["key","BLOB "+(e.autoIncrement?"UNIQUE, inc INTEGER PRIMARY KEY AUTOINCREMENT":"PRIMARY KEY")],["value","BLOB"]].concat(Array.from(e.indexNames).filter(function(a){return a!==b}).map(function(a){return[m.escapeIndexNameForSQL(a),"BLOB"]}));c.__renameIndex(e,d,b,h,function(b,c){z.__updateIndexList(a,b,function(a){delete f.__pendingName,c(a)})})}}})}return c.prototype=z.prototype,new c},g.__invalidStateIfDeleted=function(a,b){if(a.__deleted||a.__pendingDelete||a.__pendingCreate&&a.objectStore.transaction&&a.objectStore.transaction.__errored)throw(0,j.createDOMException)("InvalidStateError",b||"This index has been deleted")},g.__clone=function(a,b){var c=g.__createInstance(b,{columnName:a.name,keyPath:a.keyPath,optionalParams:{multiEntry:a.multiEntry,unique:a.unique}});return["__pendingCreate","__pendingDelete","__deleted","__originalName","__recreated"].forEach(function(b){c[b]=a[b]}),c},g.__createIndex=function(a,b){var c=b.name,d=a.__currentName,e=a.__indexes[c];b.__pendingCreate=!0,a.indexNames.push(c),a.__indexes[c]=b;var f=a.__indexHandles[c];(!f||b.__pendingDelete||b.__deleted||f.__pendingDelete||f.__deleted)&&(f=a.__indexHandles[c]=g.__clone(b,a)),a.transaction.__addNonRequestToTransactionQueue(function(h,i,k,l){function n(a,b){l((0,j.createDOMException)("UnknownError",'Could not create index "'+c+'"'+b.code+"::"+b.message,b))}function p(e){g.__updateIndexList(a,e,function(){e.executeSql('SELECT "key", "value" FROM '+m.escapeStoreNameForSQL(d),[],function(e,g){function h(i){if(i3&&void 0!==arguments[3]?arguments[3]:[],e=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,f=a.__currentName,g=m.escapeStoreNameForSQL(f),h=m.escapeStoreNameForSQL("tmp_"+f),i=d.map(function(a){return a[0]}),j=d.map(function(a){return a.join(" ")}),k=j.length?j.join(", ")+", ":"",l=i.length?i.join(", ")+", ":"";a.transaction.__addNonRequestToTransactionQueue(function(a,d,f,i){var j="ALTER TABLE "+g+" RENAME TO "+h;a.executeSql(j,[],function(a,d){var j="CREATE TABLE "+g+"("+k+m.escapeIndexNameForSQL(c)+" BLOB)";a.executeSql(j,[],function(a,d){var j="INSERT INTO "+g+"("+l+m.escapeIndexNameForSQL(c)+") SELECT "+l+m.escapeIndexNameForSQL(b)+" FROM "+h;a.executeSql(j,[],function(a,b){var c="DROP TABLE "+h;a.executeSql(c,[],function(a,b){if(e)return void e(a,f);f()},function(a,b){i(b)})},function(a,b){i(b)})})},function(a,b){i(b)})})},Object.defineProperty(g,Symbol.hasInstance,{value:function(a){return m.isObj(a)&&"function"==typeof a.openCursor&&"boolean"==typeof a.multiEntry}}),y.forEach(function(a){Object.defineProperty(g.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),Object.defineProperty(g.prototype,"name",{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")},set:function(a){throw new TypeError("Illegal invocation")}}),g.prototype[Symbol.toStringTag]="IDBIndexPrototype",Object.defineProperty(g,"prototype",{writable:!1}),c.buildFetchIndexDataSQL=i,c.executeFetchIndexData=h,c.IDBIndex=g,c.default=g},{"./CFG":323,"./DOMException":324,"./IDBCursor":327,"./IDBKeyRange":331,"./IDBObjectStore":332,"./IDBTransaction":334,"./Key":336,"./Sca":337,"./util":342}],331:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function e(){throw new TypeError("Illegal constructor")}function f(a,b,c,d,e,f){if(a&&(void 0!==a.lower||void 0!==a.upper)){e&&c.push("AND");var g=void 0,h=void 0,i=void 0!==a.lower,k=void 0!==a.upper;if(i&&(g=f?a.__lowerCached:j.encode(a.lower)),k&&(h=f?a.__upperCached:j.encode(a.upper)),i){if(d.push(l.escapeSQLiteStatement(g)),k&&g===h&&!a.lowerOpen&&!a.upperOpen)return void c.push(b,"=","?");c.push(b,a.lowerOpen?">":">=","?")}i&&k&&c.push("AND"),k&&(c.push(b,a.upperOpen?"<":"<=","?"),d.push(l.escapeSQLiteStatement(h)))}}function g(a,b){if(l.instanceOf(a,e))return"[object IDBKeyRange]"!==!a.toString()?e.__createInstance(a.lower,a.upper,a.lowerOpen,a.upperOpen):a;{if(null!=a)return j.convertValueToKeyRethrowingAndIfInvalid(a),e.only(a);if(b)throw(0,h.createDOMException)("DataError","No key or range was specified")}}Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.convertValueToKeyRange=c.IDBKeyRange=c.setSQLForKeyRange=void 0;var h=a("./DOMException"),i=a("./Key"),j=d(i),k=a("./util"),l=d(k),m=["lower","upper","lowerOpen","upperOpen"],n=e;e.__createInstance=function(a,b,c,d){function e(){if(this[Symbol.toStringTag]="IDBKeyRange",void 0===a&&void 0===b)throw(0,h.createDOMException)("DataError","Both arguments to the key range method cannot be undefined");var e=void 0,f=void 0;if(void 0!==a&&(e=j.roundTrip(a),j.convertValueToKeyRethrowingAndIfInvalid(a)),void 0!==b&&(f=j.roundTrip(b),j.convertValueToKeyRethrowingAndIfInvalid(b)),void 0!==a&&void 0!==b&&a!==b&&j.encode(a)>j.encode(b))throw(0,h.createDOMException)("DataError","`lower` must not be greater than `upper` argument in `bound()` call.");this.__lower=e,this.__upper=f,this.__lowerOpen=!!c,this.__upperOpen=!!d}return e.prototype=n.prototype,new e},e.prototype.includes=function(a){if(!l.isObj(this)||"boolean"!=typeof this.__lowerOpen)throw new TypeError("Illegal invocation");if(!arguments.length)throw new TypeError("IDBKeyRange.includes requires a key argument");return j.convertValueToKeyRethrowingAndIfInvalid(a),j.isKeyInRange(a,this)},e.only=function(a){if(!arguments.length)throw new TypeError("IDBKeyRange.only requires a value argument");return e.__createInstance(a,a,!1,!1)},e.lowerBound=function(a){if(!arguments.length)throw new TypeError("IDBKeyRange.lowerBound requires a value argument");return e.__createInstance(a,void 0,arguments[1],!0)},e.upperBound=function(a){if(!arguments.length)throw new TypeError("IDBKeyRange.upperBound requires a value argument");return e.__createInstance(void 0,a,!0,arguments[1])},e.bound=function(a,b){if(arguments.length<=1)throw new TypeError("IDBKeyRange.bound requires lower and upper arguments");return e.__createInstance(a,b,arguments[2],arguments[3])},e.prototype[Symbol.toStringTag]="IDBKeyRangePrototype",m.forEach(function(a){Object.defineProperty(e.prototype,"__"+a,{enumerable:!1,configurable:!1,writable:!0}),Object.defineProperty(e.prototype,a,{enumerable:!0,configurable:!0,get:function(){if(!l.isObj(this)||"boolean"!=typeof this.__lowerOpen)throw new TypeError("Illegal invocation");return this["__"+a]}})}),Object.defineProperty(e,Symbol.hasInstance,{value:function(a){return l.isObj(a)&&"upper"in a&&"boolean"==typeof a.lowerOpen}}),Object.defineProperty(e,"prototype",{writable:!1}),c.setSQLForKeyRange=f,c.IDBKeyRange=e,c.convertValueToKeyRange=g,c.default=e},{"./DOMException":324,"./Key":336,"./util":342}],332:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function e(a){return a&&a.__esModule?a:{default:a}}function f(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b0&&a.executeSql("DROP TABLE "+o.escapeStoreNameForSQL(b.__currentName),[],function(){a.executeSql('DELETE FROM __sys__ WHERE "name" = ?',[o.escapeSQLiteStatement(b.__currentName)],function(){delete b.__pendingDelete,b.__deleted=!0,c&&(delete c.__pendingDelete,c.__deleted=!0),e()},g)},g)})})},g.prototype.__validateKeyAndValueAndCloneValue=function(a,b,c){var d=this;if(null!==d.keyPath){if(void 0!==b)throw(0,i.createDOMException)("DataError","The object store uses in-line keys and the key parameter was provided",d);var e=v.clone(a);if(b=q.extractKeyValueDecodedFromValueUsingKeyPath(e,d.keyPath),b.invalid)throw(0,i.createDOMException)("DataError","KeyPath was specified, but key was invalid.");if(b.failure){if(!c){if(!d.autoIncrement)throw(0,i.createDOMException)("DataError","Could not evaluate a key from keyPath and there is no key generator");if(!q.checkKeyCouldBeInjectedIntoValue(e,d.keyPath))throw(0,i.createDOMException)("DataError","A key could not be injected into a value");return[void 0,e]}throw(0,i.createDOMException)("DataError","Could not evaluate a key from keyPath")}return[b.value,e]}if(void 0===b){if(!d.autoIncrement)throw(0,i.createDOMException)("DataError","The object store uses out-of-line keys and has no key generator and the key parameter was not provided.",d);b=void 0}else q.convertValueToKeyRethrowingAndIfInvalid(b);return[b,v.clone(a)]},g.prototype.__deriveKey=function(a,b,c,d,e){function f(){v.encode(c,function(a){a=v.decode(a),d(a)})}var g=this;g.autoIncrement?void 0===c?q.generateKeyForStore(a,g,function(a,c){if(a)return void e((0,i.createDOMException)("ConstraintError","The key generator's current number has reached the maximum safe integer limit"));null!==g.keyPath&&q.injectKeyIntoValueUsingKeyPath(b,c,g.keyPath),d(c)},e):q.possiblyUpdateKeyGenerator(a,g,c,f,e):f()},g.prototype.__insertData=function(a,b,c,d,e,g){var h=this,j={},k=Object.keys(h.__indexes).map(function(b){return new z.default(function(d,e){function g(a){void 0!==l&&(j[a.__currentName]=q.encode(l,a.multiEntry))}var k=h.__indexes[b];if(k.__pendingCreate||k.__deleted)return void d();var l=void 0;try{if(l=q.extractKeyValueDecodedFromValueUsingKeyPath(c,k.keyPath,k.multiEntry),l.invalid||l.failure)throw new Error("Go to catch")}catch(a){return void d()}if(l=l.value,k.unique){var m=k.multiEntry&&Array.isArray(l),n=(0,r.buildFetchIndexDataSQL)(!0,k,l,"key",m);r.executeFetchIndexData.apply(void 0,[null].concat(f(n),[a,null,function(a){if(void 0===a)return g(k),void d();e((0,i.createDOMException)("ConstraintError","Index already contains a record equal to "+(m?"one of the subkeys of":"")+"`indexKey`"))},e]))}else g(k),d()})});z.default.all(k).then(function(){var c=["INSERT INTO",o.escapeStoreNameForSQL(h.__currentName),"("],f=[" VALUES ("],k=[];void 0!==d&&(c.push(o.sqlQuote("key"),","),f.push("?,"),k.push(o.escapeSQLiteStatement(q.encode(d))));for(var l in j)c.push(o.escapeIndexNameForSQL(l)+","),f.push("?,"),k.push(o.escapeSQLiteStatement(j[l]));c.push(o.sqlQuote("value")+" )"),f.push("?)"),k.push(o.escapeSQLiteStatement(b));var m=c.join(" ")+f.join(" ");x.default.DEBUG&&console.log("SQL for adding",m,k),a.executeSql(m,k,function(a,b){e(d)},function(a,b){g((0,i.createDOMException)("ConstraintError",b.message,b))})}).catch(function(a){g(a)})},g.prototype.add=function(a){var b=this,c=arguments[1];if(!(b instanceof g))throw new TypeError("Illegal invocation");if(0===arguments.length)throw new TypeError("No value was specified");g.__invalidStateIfDeleted(b),t.default.__assertActive(b.transaction),b.transaction.__assertWritable();var d=b.transaction.__createRequest(b),e=b.__validateKeyAndValueAndCloneValue(a,c,!1),f=h(e,2),i=f[0],j=f[1];return g.__storingRecordObjectStore(d,b,j,!0,i),d},g.prototype.put=function(a){var b=this,c=arguments[1];if(!(b instanceof g))throw new TypeError("Illegal invocation");if(0===arguments.length)throw new TypeError("No value was specified");g.__invalidStateIfDeleted(b),t.default.__assertActive(b.transaction),b.transaction.__assertWritable();var d=b.transaction.__createRequest(b),e=b.__validateKeyAndValueAndCloneValue(a,c,!1),f=h(e,2),i=f[0],j=f[1];return g.__storingRecordObjectStore(d,b,j,!1,i),d},g.prototype.__overwrite=function(a,b,c,d){var e=this,f="DELETE FROM "+o.escapeStoreNameForSQL(e.__currentName)+' WHERE "key" = ?',g=q.encode(b);a.executeSql(f,[o.escapeSQLiteStatement(g)],function(a,d){x.default.DEBUG&&console.log("Did the row with the",b,"exist? ",d.rowsAffected),c(a)},function(a,b){d(b)})},g.__storingRecordObjectStore=function(a,b,c,d){var e=arguments[4];b.transaction.__pushToQueue(a,function(a,f,g,h){b.__deriveKey(a,c,e,function(e){v.encode(c,function(f){function i(a){b.__insertData(a,f,c,e,function(){b.__cursors.forEach(function(a){a.__invalidateCache()}),g.apply(void 0,arguments)},h)}if(!d)return void b.__overwrite(a,e,i,h);i(a)})},h)})},g.prototype.__get=function(a,b,c,d){var e=this;void 0!==d&&(d=o.enforceRange(d,"unsigned long")),g.__invalidStateIfDeleted(e),t.default.__assertActive(e.transaction);var f=(0,k.convertValueToKeyRange)(a,!c),h=b?"key":"value",i=["SELECT",o.sqlQuote(h),"FROM",o.escapeStoreNameForSQL(e.__currentName)],j=[];if(void 0!==f&&(i.push("WHERE"),(0,k.setSQLForKeyRange)(f,o.sqlQuote("key"),i,j)),c||(d=1),d){if("number"!=typeof d||isNaN(d)||!isFinite(d))throw new TypeError("The count parameter must be a finite number");i.push("LIMIT",d)}return i=i.join(" "),e.transaction.__addToTransactionQueue(function(a,d,f,g){x.default.DEBUG&&console.log("Fetching",e.__currentName,j),a.executeSql(i,j,function(a,d){x.default.DEBUG&&console.log("Fetched data",d);var e=void 0;try{if(0===d.rows.length)return c?f([]):f();if(e=[],b)for(var g=0;g=b.__requests.length)b.__requests=[],b.__active&&a();else try{if(i=b.__requests[j],!i.req)return void i.op(c,i.args,h,e);if("done"===i.req.__readyState)return;i.op(c,i.args,d,e,h)}catch(a){e(a)}}b.__tx=c;var i=null,j=-1;h()},function(a){if(a!==!0){var c=(0,g.webSQLErrback)(a);b.__abortTransaction(c)}},function(){if(b.__transFinishedCb===e.prototype.__transFinishedCb)return b.__transactionEndCallback||b.__requestsFinished?void(b.__transactionEndCallback&&!b.__completed&&b.__transFinishedCb(b.__errored,b.__transactionEndCallback)):void(b.__transactionFinished=!0)},function(a,c,d,e,f){return!(!a.readOnly&&!c)||(b.__transFinishedCb=function(a,b){a?e(a,b):f(b)},b.__transactionEndCallback&&!b.__completed&&b.__transFinishedCb(b.__errored,b.__transactionEndCallback),!1)})},e.prototype.__createRequest=function(a){var b=this,c=h.IDBRequest.__createInstance();return c.__source=void 0!==a?a:b.db,c.__transaction=b,c},e.prototype.__addToTransactionQueue=function(a,b,c){var d=this.__createRequest(c);return this.__pushToQueue(d,a,b),d},e.prototype.__addNonRequestToTransactionQueue=function(a,b,c){this.__pushToQueue(null,a,b)},e.prototype.__pushToQueue=function(a,b,c){this.__assertActive(),this.__requests.push({op:b,args:c,req:a})},e.prototype.__assertActive=function(){if(!this.__active)throw(0,g.createDOMException)("TransactionInactiveError","A request was placed against a transaction which is currently not active, or which is finished")},e.prototype.__assertWritable=function(){if("readonly"===this.mode)throw(0,g.createDOMException)("ReadOnlyError","The transaction is read only")},e.prototype.__assertVersionChange=function(){e.__assertVersionChange(this)},e.prototype.objectStore=function(a){var b=this;if(!(b instanceof e))throw new TypeError("Illegal invocation");if(0===arguments.length)throw new TypeError("No object store name was specified");if(e.__assertNotFinished(b),b.__objectStoreNames.indexOf(a)===-1)throw(0,g.createDOMException)("NotFoundError",a+" is not participating in this transaction");var c=b.db.__objectStores[a];if(!c)throw(0,g.createDOMException)("NotFoundError",a+" does not exist in "+b.db.name);return(!b.__storeHandles[a]||b.__storeHandles[a].__pendingDelete||b.__storeHandles[a].__deleted)&&(b.__storeHandles[a]=l.default.__clone(c,b)),b.__storeHandles[a]},e.prototype.__abortTransaction=function(a){function b(b,d){b?d&&"number"==typeof d.code?n.default.DEBUG&&console.log("Rollback erred; feature is probably not supported as per WebSQL",c):n.default.DEBUG&&console.log("Rollback succeeded",c):n.default.DEBUG&&console.log("Rollback not possible due to missing transaction",c),c.__requests.filter(function(a){return a.req&&"done"!==a.req.__readyState}).reduce(function(a,b){return a.then(function(){b.req.__readyState="done",b.req.__result=void 0,b.req.__error=(0,g.createDOMException)("AbortError","A request was aborted.");var a=(0,f.createEvent)("error",b.req.__error,{bubbles:!0,cancelable:!0});return new q.default(function(c){setTimeout(function(){b.req.dispatchEvent(a),c()})})})},q.default.resolve()).then(function(){var b=(0,f.createEvent)("abort",a,{bubbles:!0,cancelable:!1});setTimeout(function(){c.__abortFinished=!0,c.dispatchEvent(b),c.__storeHandles={},c.dispatchEvent((0,f.createEvent)("__abort"))})})}var c=this;(0,g.logError)("Error","An error occurred in a transaction",a),c.__errored||(c.__errored=!0,"versionchange"===c.mode&&(c.db.__version=c.db.__oldVersion,c.db.__objectStoreNames=c.db.__oldObjectStoreNames,c.__objectStoreNames=c.db.__oldObjectStoreNames,Object.values(c.db.__objectStores).concat(Object.values(c.__storeHandles)).forEach(function(a){"__pendingName"in a&&c.db.__oldObjectStoreNames.indexOf(a.__pendingName)>-1&&(a.__name=a.__originalName),a.__indexNames=a.__oldIndexNames,delete a.__pendingDelete,Object.values(a.__indexes).concat(Object.values(a.__indexHandles)).forEach(function(b){"__pendingName"in b&&a.__oldIndexNames.indexOf(b.__pendingName)>-1&&(b.__name=b.__originalName),delete b.__pendingDelete})})),c.__active=!1,null!==a&&(c.__error=a),c.__requestsFinished&&setTimeout(function(){throw a},0),c.__transFinishedCb(!0,function(a){if(a&&c.__tx){if("readwrite"===c.mode)return c.__transactionFinished?void b():void(c.__transactionEndCallback=b);try{c.__tx.executeSql("ROLLBACK",[],b,b)}catch(a){b()}}else b(null,{code:0})}))},e.prototype.abort=function(){var a=this;if(!(a instanceof e))throw new TypeError("Illegal invocation");n.default.DEBUG&&console.log("The transaction was aborted",a),e.__assertNotFinished(a),a.__abortTransaction(null)},e.prototype[Symbol.toStringTag]="IDBTransactionPrototype",e.__assertVersionChange=function(a){if(!a||"versionchange"!==a.mode)throw(0,g.createDOMException)("InvalidStateError","Not a version transaction")},e.__assertNotVersionChange=function(a){if(a&&"versionchange"===a.mode)throw(0,g.createDOMException)("InvalidStateError","Cannot be called during a version transaction")},e.__assertNotFinished=function(a){if(!a||a.__completed||a.__abortFinished)throw(0,g.createDOMException)("InvalidStateError","Transaction finished by commit or abort")},e.__assertActive=function(a){if(!a||!a.__active)throw(0,g.createDOMException)("TransactionInactiveError","A request was placed against a transaction which is currently not active, or which is finished")},e.prototype.__getParent=function(){return this.db},e.prototype.__userErrorEventHandler=function(a,b){if(this.__internal)throw this.__internal=!1,a;b()},s.forEach(function(a){Object.defineProperty(e.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")},set:function(a){throw new TypeError("Illegal invocation")}})}),t.forEach(function(a){Object.defineProperty(e.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),Object.defineProperty(e.prototype,"constructor",{enumerable:!1,writable:!0,configurable:!0,value:e}),Object.defineProperty(e,"prototype",{writable:!1}),c.default=e,b.exports=c.default},{"./CFG":323,"./DOMException":324,"./Event":326,"./IDBObjectStore":332,"./IDBRequest":333,"./util":342,eventtarget:297,"sync-promise":299}],335:[function(a,b,c){"use strict";function d(a){e.ShimEvent.call(this,a),this[Symbol.toStringTag]="IDBVersionChangeEvent",this.toString=function(){return"[object IDBVersionChangeEvent]"},this.__eventInitDict=arguments[1]||{}}Object.defineProperty(c,"__esModule",{value:!0});var e=a("./Event"),f=a("./util"),g=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(f),h=["oldVersion","newVersion"];d.prototype=Object.create(e.ShimEvent.prototype),d.prototype[Symbol.toStringTag]="IDBVersionChangeEventPrototype",h.forEach(function(a){Object.defineProperty(d.prototype,a,{enumerable:!0,configurable:!0,get:function(){if(!(this instanceof d))throw new TypeError("Illegal invocation");return this.__eventInitDict&&this.__eventInitDict[a]||("oldVersion"===a?0:null)}})}),Object.defineProperty(d,Symbol.hasInstance,{value:function(a){return g.isObj(a)&&"oldVersion"in a&&"boolean"==typeof a.defaultPrevented}}),Object.defineProperty(d.prototype,"constructor",{enumerable:!1,writable:!0,configurable:!0,value:d}),Object.defineProperty(d,"prototype",{writable:!1}),c.default=d,b.exports=c.default},{"./Event":326,"./util":342}],336:[function(a,b,c){"use strict";function d(a,b,c){return new Array(b-String(a).length+1).join(c)+a}function e(a){return a=a.toString(32),1===a.length?"0"+a:a}function f(a){return(a+j(11)).slice(0,11)}function g(a){for(var b="",c=0;cg&&(d=!0),!b.lowerOpen&&f>=g&&(d=!0)),void 0!==b.upper&&(b.upperOpen&&f1:b===a}function A(a,b){var c=[];if(Array.isArray(a))for(var d=0;d0&&c.push(e);continue}e=e[0]}(null==b||y(e,b,!0))&&c.push(e)}else(null==b||y(a,b,!0))&&c.push(a);return c}function B(a){var b=a.type,c=a.value;switch(b){case"number":case"string":return c;case"array":for(var d=[],e=c.length,f=0;fT)return c("failure");G(a,b,e,function(){c(null,e)},d)},d)}function I(a,b,c,d,e){"number"!=typeof c||c<1?d():F(a,b,function(f){var g=Math.floor(Math.min(c,T));g>=f?G(a,b,g,d,e):d()},e)}Object.defineProperty(c,"__esModule",{value:!0}),c.possiblyUpdateKeyGenerator=c.generateKeyForStore=c.findMultiEntryMatches=c.isKeyInRange=c.isMultiEntryMatch=c.checkKeyCouldBeInjectedIntoValue=c.injectKeyIntoValueUsingKeyPath=c.extractKeyValueDecodedFromValueUsingKeyPath=c.evaluateKeyPathOnValue=c.extractKeyFromValueUsingKeyPath=c.convertValueToKeyRethrowingAndIfInvalid=c.convertValueToMultiEntryKey=c.convertValueToKey=c.convertValueToMultiEntryKeyDecoded=c.convertValueToKeyValueDecoded=c.convertKeyToValue=c.roundTrip=c.decode=c.encode=void 0;var J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},K=a("./DOMException"),L=a("./util"),M=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(L),N=a("./IDBFactory"),O=a("./CFG"),P=function(a){return a&&a.__esModule?a:{default:a}}(O),Q=["invalid","number","date","string","binary","array"],R=["negativeInfinity","bigNegative","smallNegative","smallPositive","bigPositive","positiveInfinity"],S={invalid:{encode:function(a){return Q.indexOf("invalid")+"-"},decode:function(a){}},number:{encode:function(a){var b=Math.abs(a).toString(32),c=b.indexOf(".");b=c!==-1?b.replace(".",""):b;var d=b.search(/[^0]/);b=b.slice(d);var h=void 0,i=void 0,k=void 0;return isFinite(a)?a<0?a>-1?(h=R.indexOf("smallNegative"),i=e(d),k=g(f(b))):(h=R.indexOf("bigNegative"),i=g(e(c!==-1?c:b.length)),k=g(f(b))):a<1?(h=R.indexOf("smallPositive"),i=g(e(d)),k=f(b)):(h=R.indexOf("bigPositive"),i=e(c!==-1?c:b.length),k=f(b)):(i=j(2),k=j(11),h=R.indexOf(a>0?"positiveInfinity":"negativeInfinity")),Q.indexOf("number")+"-"+h+i+k},decode:function(a){var b=+a.substr(2,1),c=a.substr(3,2),d=a.substr(5,11);switch(R[b]){case"negativeInfinity":return-1/0;case"positiveInfinity":return 1/0;case"bigPositive":return h(d,c);case"smallPositive":return c=k(g(c)),h(d,c);case"smallNegative":return c=k(c),d=g(d),-h(d,c);case"bigNegative":return c=g(c),d=g(d),-h(d,c);default:throw new Error("Invalid number.")}}},string:{encode:function(a,b){return b&&(a=a.replace(/(.)/g,"-$1")+" "),Q.indexOf("string")+"-"+a},decode:function(a,b){return a=a.slice(2),b&&(a=a.substr(0,a.length-1).replace(/-(.)/g,"$1")),a}},array:{encode:function(a){for(var b=[],c=0;c889)throw(0,o.createDOMException)("DataError","The encoded key is "+a.length+" characters long, but IE only allows 889 characters. Consider replacing numeric keys with strings to reduce the encoded length.")}Object.defineProperty(c,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},o=a("./DOMException"),p=a("./Key"),q=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(p),r="__$$compoundKey",s=/\$\$/g,t="$$$$",u="$_$";c.default=d,b.exports=c.default},{"./DOMException":324,"./Key":336}],341:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{default:a}}function f(a,b){if(a&&"object"===(void 0===a?"undefined":i(a)))for(var c in a)f(c,a[c]);else{if(!(a in C.default))throw new Error(a+" is not a valid configuration property");C.default[a]=b}}function g(a,b){function c(a,b,c){if(!c||!Object.defineProperty)try{e[a]=b}catch(a){console.log(a)}if(e[a]!==b&&Object.defineProperty)try{var d=c||{};d.get=function(){return b},Object.defineProperty(e,a,d)}catch(a){}e[a]!==b&&"undefined"!=typeof console&&console.warn&&console.warn("Unable to shim "+a)}b&&f(b);var e=a||("undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==d?d:{});c("shimIndexedDB",o.shimIndexedDB,{enumerable:!1,configurable:!0}),e.shimIndexedDB&&(e.shimIndexedDB.__useShim=function(){var a=e.shimIndexedDB.modules.IDBFactory;if(void 0!==C.default.win.openDatabase){if(C.default.fullIDLSupport){var b=e.shimIndexedDB.modules.ShimEvent,d=e.shimIndexedDB.modules.ShimEventTarget;Object.setPrototypeOf(y.default,d),Object.setPrototypeOf(m.IDBRequest,d),Object.setPrototypeOf(w.default,d),Object.setPrototypeOf(k.default,b),Object.setPrototypeOf(n.ShimDOMException,Error),Object.setPrototypeOf(n.ShimDOMException.prototype,Error.prototype)}[["indexedDB",o.shimIndexedDB],["IDBFactory",a],["IDBDatabase",y.default],["IDBObjectStore",s.default],["IDBIndex",u.default],["IDBTransaction",w.default],["IDBCursor",l.IDBCursor],["IDBCursorWithValue",l.IDBCursorWithValue],["IDBKeyRange",q.default],["IDBRequest",m.IDBRequest],["IDBOpenDBRequest",m.IDBOpenDBRequest],["IDBVersionChangeEvent",k.default]].forEach(function(a){var b=h(a,2);c(b[0],b[1],{enumerable:!1,configurable:!0})}),C.default.addNonIDBGlobals&&e.indexedDB&&e.indexedDB.modules&&(c("ShimDOMStringList",e.indexedDB.modules.ShimDOMStringList,{enumerable:!1,configurable:!0}),c("ShimEvent",e.indexedDB.modules.ShimEvent),c("ShimCustomEvent",e.indexedDB.modules.ShimCustomEvent),c("ShimEventTarget",e.indexedDB.modules.ShimEventTarget),c("ShimDOMException",e.indexedDB.modules.ShimDOMException))}else"object"===i(e.indexedDB)&&(0,A.default)(l.IDBCursor,l.IDBCursorWithValue,y.default,a,u.default,q.default,s.default,m.IDBRequest,w.default)},e.shimIndexedDB.__debug=function(a){C.default.DEBUG=a},e.shimIndexedDB.__setConfig=f,e.shimIndexedDB.__getConfig=function(a){if(!(a in C.default))throw new Error(a+" is not a valid configuration property");return C.default[a]},e.shimIndexedDB.__setUnicodeIdentifiers=function(a){f({UnicodeIDStart:a.UnicodeIDStart,UnicodeIDContinue:a.UnicodeIDContinue})}),"indexedDB"in e||"undefined"==typeof window||(e.indexedDB=e.indexedDB||e.webkitIndexedDB||e.mozIndexedDB||e.oIndexedDB||e.msIndexedDB);var g=!1 -;return"undefined"!=typeof navigator&&(navigator.userAgent.match(/Android (?:2|3|4\.[0-3])/)&&!navigator.userAgent.match(/Chrome/)||(navigator.userAgent.indexOf("Safari")===-1||navigator.userAgent.indexOf("Chrome")>-1)&&/(iPad|iPhone|iPod).* os 9_/i.test(navigator.userAgent)&&!window.MSStream)&&(g=!0),C.default.DEFAULT_DB_SIZE||(C.default.DEFAULT_DB_SIZE=1024*("undefined"!=typeof navigator&&navigator.userAgent.indexOf("Safari")>-1&&navigator.userAgent.indexOf("Chrome")===-1?25:4)*1024),e.indexedDB&&!g||void 0===C.default.win.openDatabase?(e.IDBDatabase=e.IDBDatabase||e.webkitIDBDatabase,e.IDBTransaction=e.IDBTransaction||e.webkitIDBTransaction||{},e.IDBCursor=e.IDBCursor||e.webkitIDBCursor,e.IDBKeyRange=e.IDBKeyRange||e.webkitIDBKeyRange):e.shimIndexedDB.__useShim(),e}Object.defineProperty(c,"__esModule",{value:!0});var h=function(){function a(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!b||c.length!==b);d=!0);}catch(a){e=!0,f=a}finally{try{!d&&h.return&&h.return()}finally{if(e)throw f}}return c}return function(b,c){if(Array.isArray(b))return b;if(Symbol.iterator in Object(b))return a(b,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};a("babel-polyfill");var j=a("./IDBVersionChangeEvent"),k=e(j),l=a("./IDBCursor"),m=a("./IDBRequest"),n=a("./DOMException"),o=a("./IDBFactory"),p=a("./IDBKeyRange"),q=e(p),r=a("./IDBObjectStore"),s=e(r),t=a("./IDBIndex"),u=e(t),v=a("./IDBTransaction"),w=e(v),x=a("./IDBDatabase"),y=e(x),z=a("./polyfill"),A=e(z),B=a("./CFG"),C=e(B);(void 0!==d?d:"undefined"!=typeof window?window:self)._babelPolyfill=!1,c.default=g,b.exports=c.default}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./CFG":323,"./DOMException":324,"./IDBCursor":327,"./IDBDatabase":328,"./IDBFactory":329,"./IDBIndex":330,"./IDBKeyRange":331,"./IDBObjectStore":332,"./IDBRequest":333,"./IDBTransaction":334,"./IDBVersionChangeEvent":335,"./polyfill":340,"babel-polyfill":1}],342:[function(a,b,c){"use strict";function d(a){return"_"+a.replace(/\^/g,"^^").replace(/\0/g,"^0").replace(/([A-Z])/g,"^$1").replace(/([\uD800-\uDBFF])(?![\uDC00-\uDFFF])|(^|[^\uD800-\uDBFF])([\uDC00-\uDFFF])/g,function(a,b,c){return b?"^2"+b+"�":"^3�"+c})}function e(a){return a.replace(/\^/g,"^^").replace(/\0/g,"^0")}function f(a){return a.replace(/\^0/g,"\0").replace(/\^\^/g,"^")}function g(a){return a.replace(/"/g,'""')}function h(a){return'"'+g(a)+'"'}function i(a){if(G.default.escapeDatabaseName)return G.default.escapeDatabaseName(e(a));if(a="D"+d(a),G.default.databaseCharacterEscapeList!==!1&&(a=a.replace(G.default.databaseCharacterEscapeList?new RegExp(G.default.databaseCharacterEscapeList,"g"):/[\u0000-\u001F\u007F"*\/:<>?\\|]/g,function(a){return"^1"+a.charCodeAt().toString(16).padStart(2,"0")})),G.default.databaseNameLengthLimit!==!1&&a.length>=(G.default.databaseNameLengthLimit||254)-(G.default.addSQLiteExtension!==!1?7:0))throw new Error("Unexpectedly long database name supplied; length limit required for Node compatibility; passed length: "+a.length+"; length limit setting: "+(G.default.databaseNameLengthLimit||254)+".");return a+(G.default.addSQLiteExtension!==!1?".sqlite":"")}function j(a){return G.default.unescapeDatabaseName?G.default.unescapeDatabaseName(f(a)):a.slice(2).replace(/(\^+)1([0-9a-f]{2})/g,function(a,b,c){return b%2?String.fromCharCode(parseInt(c,16)):a}).replace(/(\^+)3\uD800([\uDC00-\uDFFF])/g,function(a,b,c){return b%2?c:a}).replace(/(\^+)2([\uD800-\uDBFF])\uDC00/g,function(a,b,c){return b%2?c:a}).replace(/(\^+)([A-Z])/g,function(a,b,c){return b%2?c:a}).replace(/(\^+)0/g,function(a,b){return b%2?"\0":a}).replace(/\^\^/g,"^")}function k(a){return h("S"+d(a))}function l(a){return h("I"+d(a))}function m(a){return"I"+d(a)}function n(a){return g(a).replace(/\^/g,"^^")}function o(a,b){return b[Symbol.hasInstance](a)}function p(a){return a&&"object"===(void 0===a?"undefined":E(a))}function q(a){return p(a)&&"function"==typeof a.getDate}function r(a){return p(a)&&"number"==typeof a.size&&"function"==typeof a.slice&&!("lastModified"in a)}function s(a){return p(a)&&"string"==typeof a.flags&&"function"==typeof a.exec}function t(a){return p(a)&&"string"==typeof a.name&&"function"==typeof a.slice&&"lastModified"in a}function u(a){return p(a)&&"number"==typeof a.byteLength&&("function"==typeof a.slice||"function"==typeof a.getFloat64)}function v(a){return p(a)&&"function"==typeof a[Symbol.iterator]}function w(a,b){b="string"==typeof b?[b]:b,b.forEach(function(b){Object.defineProperty(a,"__"+b,{enumerable:!1,configurable:!1,writable:!0}),Object.defineProperty(a,b,{enumerable:!0,configurable:!0,get:function(){return this["__"+b]}})})}function x(a){var b=G.default.UnicodeIDStart||"[$A-Z_a-z]",c=G.default.UnicodeIDContinue||"[$0-9A-Z_a-z]",d="(?:"+b+"|[$_]|\\\\"+H+")",e="(?:"+c+"|[$_]|\\\\"+H+"|\\u200C|\\u200D)";return new RegExp("^"+d+e+"*$").test(a)}function y(a){return"string"==typeof a&&(""===a||x(a)||a.split(".").every(x))}function z(a){return y(a)||Array.isArray(a)&&a.length&&Array.apply(null,a).every(function(a){return y(a)})}function A(a,b){a=Math.floor(Number(a));var c=void 0,d=void 0;switch(b){case"unsigned long long":c=9007199254740991,d=0;break;case"unsigned long":c=4294967295,d=0;break;default:throw new Error("Unrecognized type supplied to enforceRange")}if(isNaN(a)||!isFinite(a)||a>c||a=0;--d){var e=this.tryEntries[d],f=e.completion;if("root"===e.tryLoc)return b("end");if(e.tryLoc<=this.prev){var g=s.call(e,"catchLoc"),h=s.call(e,"finallyLoc");if(g&&h){if(this.prev=0;--c){var d=this.tryEntries[c];if(d.tryLoc<=this.prev&&s.call(d,"finallyLoc")&&this.prev=0;--b){var c=this.tryEntries[b];if(c.finallyLoc===a)return this.complete(c.completion,c.afterLoc),m(c),C}},catch:function(a){for(var b=this.tryEntries.length-1;b>=0;--b){var c=this.tryEntries[b];if(c.tryLoc===a){var d=c.completion;if("throw"===d.type){var e=d.arg;m(c)}return e}}throw new Error("illegal catch attempt")},delegateYield:function(a,b,c){return this.delegate={iterator:o(a),resultName:b,nextLoc:c},"next"===this.method&&(this.arg=q),C}}}("object"==typeof a?a:"object"==typeof window?window:"object"==typeof self?self:this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],299:[function(a,b,c){function d(a){return a&&"function"==typeof a.then}function e(a,b){a.then(null,b)}function f(a){function b(a,b){j.v=a,j.s=b,j.c[b].forEach(function(b){b(a)}),j.c[b].length&&(j.c=null)}function c(a){j.c&&(d(a)?e(a.then(c),f):b(a,h))}function f(a){j.c&&(d(a)?e(a.then(f),f):b(a,i))}var j=this;j.v=0,j.s=g,j.c=[[],[]];try{a(c,f)}catch(a){f(a)}}var g=2,h=0,i=1,j=f.prototype;j.then=function(a,b){var c=this;return new f(function(d,e){function f(){try{d(a?a(c.v):c.v)}catch(a){g(a)}}var g="function"==typeof b?b:e;c.s===h?f():c.s===i?g(c.v):(c.c[h].push(f),c.c[i].push(g))})},j.catch=function(a){var b=this;return new f(function(c,d){function e(){try{c(a(b.v))}catch(a){d(a)}}b.s===i?e():b.s===h?c(b.v):(b.c[i].push(e),b.c[h].push(c))})},f.all=function(a){return new f(function(b,c,f){f=a.length;var g=[];if(!f)return void b(g);a.forEach(function(h,i){d(h)?e(h.then(function(a){g[i]=a,--f||b(g)}),c):(g[i]=h,--f||b(a))})})},f.race=function(a){var b=!1;return new f(function(c,f){a.some(function(a,g){if(!d(a))return c(a),b=!0,!0;e(a.then(function(a){b||(c(a),b=!0)}),f)})})},f.resolve=function(a){return new f(function(b,c){b(a)})},f.reject=function(a){return new f(function(b,c){c(a)})},b.exports=f},{}],300:[function(a,b,c){b.exports=[{sparseArrays:{testPlainObjects:!0,test:function(a){return Array.isArray(a)},replace:function(a,b){return b.iterateUnsetNumeric=!0,a}}},{sparseUndefined:{test:function(a,b){return void 0===a&&b.ownKeys===!1},replace:function(a){return null},revive:function(a){}}}]},{}],301:[function(a,b,c){b.exports=a("./structured-cloning").concat({checkDataCloneException:[function(a){var b={}.toString.call(a).slice(8,-1);if(["symbol","function"].includes(typeof a)||["Arguments","Module","Error","Promise","WeakMap","WeakSet"].includes(b)||a===Object.prototype||("Blob"===b||"File"===b)&&a.isClosed||a&&"object"==typeof a&&"number"==typeof a.nodeType&&"function"==typeof a.insertBefore)throw new DOMException("The object cannot be cloned.","DataCloneError");return!1}]})},{"./structured-cloning":302}],302:[function(a,b,c){b.exports=[a("../types/user-object"),a("../presets/undefined"),a("../types/primitive-objects"),a("../types/special-numbers"),a("../types/date"),a("../types/regexp"),"function"==typeof Map&&a("../types/map"),"function"==typeof Set&&a("../types/set"),"function"==typeof ArrayBuffer&&a("../types/arraybuffer"),"function"==typeof Uint8Array&&a("../types/typed-arrays"),"function"==typeof DataView&&a("../types/dataview"),"undefined"!=typeof Intl&&a("../types/intl-types"),a("../types/imagedata"),a("../types/imagebitmap"),a("../types/file"),a("../types/filelist"),a("../types/blob")]},{"../presets/undefined":303,"../types/arraybuffer":304,"../types/blob":305,"../types/dataview":306,"../types/date":307,"../types/file":308,"../types/filelist":309,"../types/imagebitmap":310,"../types/imagedata":311,"../types/intl-types":312,"../types/map":313,"../types/primitive-objects":314,"../types/regexp":315,"../types/set":316,"../types/special-numbers":317,"../types/typed-arrays":318,"../types/user-object":320}],303:[function(a,b,c){b.exports=[a("../presets/sparse-undefined"),a("../types/undefined")]},{"../presets/sparse-undefined":300,"../types/undefined":319}],304:[function(a,b,c){var d=a("typeson"),e=a("base64-arraybuffer");c.ArrayBuffer=[function(a){return"ArrayBuffer"===d.toStringTag(a)},function(a){return e.encode(a)},function(a){return e.decode(a)}]},{"base64-arraybuffer":2,typeson:322}],305:[function(a,b,c){var d=a("typeson");c.Blob={test:function(a){return"Blob"===d.toStringTag(a)},replace:function(a){var b=new XMLHttpRequest;if(b.open("GET",URL.createObjectURL(a),!1),200!==b.status&&0!==b.status)throw new Error("Bad Blob access: "+b.status);return b.send(),{type:a.type,stringContents:b.responseText}},revive:function(a){return new Blob([a.stringContents],{type:a.type})},replaceAsync:function(a){return new d.Promise(function(b,c){if(a.isClosed)return void c(new Error("The Blob is closed"));var d=new FileReader;d.addEventListener("load",function(){b({type:a.type,stringContents:d.result})}),d.addEventListener("error",function(){c(d.error)}),d.readAsText(a)})}}},{typeson:322}],306:[function(a,b,c){var d=a("typeson"),e=a("base64-arraybuffer");c.DataView=[function(a){return"DataView"===d.toStringTag(a)},function(a){return{buffer:e.encode(a.buffer),byteOffset:a.byteOffset,byteLength:a.byteLength}},function(a){return new DataView(e.decode(a.buffer),a.byteOffset,a.byteLength)}]},{"base64-arraybuffer":2,typeson:322}],307:[function(a,b,c){var d=a("typeson");c.Date=[function(a){return"Date"===d.toStringTag(a)},function(a){return a.getTime()},function(a){return new Date(a)}]},{typeson:322}],308:[function(a,b,c){var d=a("typeson");c.File={test:function(a){return"File"===d.toStringTag(a)},replace:function(a){var b=new XMLHttpRequest;if(b.open("GET",URL.createObjectURL(a),!1),200!==b.status&&0!==b.status)throw new Error("Bad Blob access: "+b.status);return b.send(),{type:a.type,stringContents:b.responseText,name:a.name,lastModified:a.lastModified}},revive:function(a){return new File([a.stringContents],a.name,{type:a.type,lastModified:a.lastModified})},replaceAsync:function(a){return new d.Promise(function(b,c){if(a.isClosed)return void c(new Error("The File is closed"));var d=new FileReader;d.addEventListener("load",function(){b({type:a.type,stringContents:d.result,name:a.name,lastModified:a.lastModified})}),d.addEventListener("error",function(){c(d.error)}),d.readAsText(a)})}}},{typeson:322}],309:[function(a,b,c){var d=a("typeson");c.File=a("./file").File,c.FileList={test:function(a){return"FileList"===d.toStringTag(a)},replace:function(a){for(var b=[],c=0;c0?"Infinity":"-Infinity"},function(a){return{NaN:0/0,Infinity:1/0,"-Infinity":-1/0}[a]}]},{}],318:[function(a,b,c){(function(b){var d=a("typeson"),e=a("base64-arraybuffer"),f="undefined"==typeof self?b:self;["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"].forEach(function(a){var b=f[a];b&&(c[a]=[function(b){return d.toStringTag(b)===a},function(a){return e.encode(a.buffer,a.byteOffset,a.byteLength)},function(a){return new b(e.decode(a))}])})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-arraybuffer":2,typeson:322}],319:[function(a,b,c){var d=a("typeson");b.exports={undefined:[function(a,b){return void 0===a&&(b.ownKeys||!("ownKeys"in b))},function(a){return null},function(a){return new d.Undefined}]}},{typeson:322}],320:[function(a,b,c){var d=a("typeson");c.userObjects=[function(a,b){return d.isUserObject(a)},function(a){return Object.assign({},a)},function(a){return a}]},{typeson:322}],321:[function(a,b,c){b.exports=Array.from||function(a){for(var b=[],c=a.next();!c.done;c=a.next())b.push(c.value);return b}},{}],322:[function(a,b,c){function d(a,b){return j.isObject(a)&&"function"==typeof a.then&&(!b||"function"==typeof a.catch)}function e(a){return q.call(a).slice(8,-1)}function f(a,b){if(!a||"object"!=typeof a)return!1;var c=r(a);if(!c)return!1;var d=s.call(c,"constructor")&&c.constructor;return"function"!=typeof d?null===b:"function"==typeof d&&null!==b&&t.call(d)===t.call(b)}function g(a){return!(!a||"Object"!==e(a))&&(!r(a)||f(a,Object))}function h(a){if(!a||"Object"!==e(a))return!1;var b=r(a);return!b||(f(a,Object)||h(b))}function i(a){return a&&"object"==typeof a}function j(a){var b=[],c=[],e={},h=this.types={},j=this.stringify=function(b,c,d,e){e=Object.assign({},a,e,{stringification:!0});var f=r(b,null,e);return p(f)?JSON.stringify(f[0],c,d):f.then(function(a){return JSON.stringify(a,c,d)})};this.stringifySync=function(a,b,c,d){return j(a,b,c,Object.assign({},{throwOnBadSyncType:!0},d,{sync:!0}))},this.stringifyAsync=function(a,b,c,d){return j(a,b,c,Object.assign({},{throwOnBadSyncType:!0},d,{sync:!1}))};var q=this.parse=function(b,c,d){return d=Object.assign({},a,d,{parse:!0}),s(JSON.parse(b,c),d)};this.parseSync=function(a,b,c){return q(a,b,Object.assign({},{throwOnBadSyncType:!0},c,{sync:!0}))},this.parseAsync=function(a,b,c){return q(a,b,Object.assign({},{throwOnBadSyncType:!0},c,{sync:!1}))};var r=this.encapsulate=function(d,h,j){function k(a){return o(s).length?a&&g(a)&&!a.hasOwnProperty("$types")?a.$types=s:a={$:a,$types:{$:s}}:i(a)&&a.hasOwnProperty("$types")&&(a={$:a,$types:!0}),a}function l(a,b){return Promise.all(b.map(function(a){return a[1].p})).then(function(c){return Promise.all(c.map(function(c){var d=[],e=b.splice(0,1)[0],g=e[0],h=e[2],i=e[3],j=e[4],k=e[5],o=m(g,c,h,i,d),p=f(o,n);return g&&p?o.p.then(function(b){return j[k]=b,l(a,d)}):(g?j[k]=o:a=p?o.p:o,l(a,d))}))}).then(function(){return a})}function m(a,c,d,e,h){var i=typeof c;if(i in{string:1,boolean:1,number:1,undefined:1})return void 0===c||"number"===i&&(isNaN(c)||c===-1/0||1/0===c)?q(a,c,e,h):c;if(null===c)return c;if(d&&!e.iterateIn&&!e.iterateUnsetNumeric){var j=t.indexOf(c);if(!(j<0))return s[a]="#","#"+u[j];d===!0&&(t.push(c),u.push(a))}var k=g(c),l=p(c),r=(k||l)&&(!b.length||e.replaced)||e.iterateIn?c:q(a,c,e,h,k||l);if(r!==c)return r;var v;if(l||"array"===e.iterateIn)v=new Array(c.length);else{if(!k&&"object"!==e.iterateIn)return""===a&&f(c,n)?(h.push([a,c,d,e]),c):c;v={}}if(e.iterateIn)for(var w in c){var x={ownKeys:c.hasOwnProperty(w)},y=a+(a?".":"")+w,z=m(y,c[w],!!d,x,h);f(z,n)?h.push([y,z,!!d,x,v,w]):void 0!==z&&(v[w]=z)}else o(c).forEach(function(b){var e=a+(a?".":"")+b,g=m(e,c[b],!!d,{ownKeys:!0},h);f(g,n)?h.push([e,g,!!d,{ownKeys:!0},v,b]):void 0!==g&&(v[b]=g)});if(e.iterateUnsetNumeric)for(var A=0,B=c.length;A=this.length||!Number.isInteger(a)?null:this._items[a]},clone:function(){var a=h.__createInstance();return a._items=this._items.slice(),a._length=this.length,a.addIndexes(),a},addIndexes:function(){for(var a=0;a":"<";void 0!==b&&(k.push("AND",j,n+"= ?"),l.push(v.encode(b))),void 0!==a?(k.push("AND",i,n+"= ?"),l.push(v.encode(a))):g&&void 0!==h.__key&&(k.push("AND",i,n+" ?"),l.push(v.encode(h.__key))),h.__count||(k.push("ORDER BY",i,m),h.__unique||"key"===h.__keyColumnName||k.push(",",j,m),!h.__unique&&h.__indexSource&&k.push(",",r.sqlQuote(h.__valueColumnName),m),k.push("LIMIT",f)),k=k.join(" "),B.default.DEBUG&&console.log(k,l),c.executeSql(k,l,function(a,b){h.__count?d(void 0,b.rows.length,void 0):b.rows.length>1?(h.__prefetchedIndex=0,h.__prefetchedData=b.rows,B.default.DEBUG&&console.log("Preloaded "+h.__prefetchedData.length+" records for cursor"),h.__decode(b.rows.item(0),d)):1===b.rows.length?h.__decode(b.rows.item(0),d):(B.default.DEBUG&&console.log("Reached end of cursors"),d(void 0,void 0,void 0))},function(a,b){B.default.DEBUG&&console.log("Could not execute Cursor.continue",k,l),e(b)})},i.prototype.__findMultiEntry=function(a,b,c,d,e){var f=this;if(f.__prefetchedData&&f.__prefetchedData.length===f.__prefetchedIndex)return B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),void d(void 0,void 0,void 0);var g=r.sqlQuote(f.__keyColumnName),h=["SELECT * FROM",r.escapeStoreNameForSQL(f.__store.__currentName)],i=[];h.push("WHERE",g,"NOT NULL"),f.__range&&void 0!==f.__range.lower&&Array.isArray(f.__range.upper)&&0===f.__range.upper.indexOf(f.__range.lower)&&(h.push("AND",g,"LIKE ? ESCAPE '^'"),i.push("%"+r.sqlLIKEEscape(f.__range.__lowerCached.slice(0,-1))+"%"));var j=f.__sqlDirection,k="ASC"===j?">":"<",l=r.sqlQuote("key");void 0!==b&&(h.push("AND",l,k+"= ?"),i.push(v.encode(b))),void 0!==a?(h.push("AND",g,k+"= ?"),i.push(v.encode(a))):void 0!==f.__key&&(h.push("AND",g,k+" ?"),i.push(v.encode(f.__key))),f.__count||(h.push("ORDER BY",g,j),f.__unique||"key"===f.__keyColumnName||h.push(",",r.sqlQuote("key"),j),!f.__unique&&f.__indexSource&&h.push(",",r.sqlQuote(f.__valueColumnName),j)),h=h.join(" "),B.default.DEBUG&&console.log(h,i),c.executeSql(h,i,function(a,b){if(b.rows.length>0){if(f.__count){for(var c=0,e=0;eb.matchingKey.replace("[","z")?q?-1:1:a.keyb.key?"prev"===f.direction?-1:1:0}),i.length>1?(f.__prefetchedIndex=0,f.__prefetchedData={data:i,length:i.length,item:function(a){return this.data[a]}},B.default.DEBUG&&console.log("Preloaded "+f.__prefetchedData.length+" records for multiEntry cursor"),f.__decode(i[0],d)):1===i.length?(B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),f.__decode(i[0],d)):(B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),d(void 0,void 0,void 0))}else B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),d(void 0,void 0,void 0)},function(a,b){B.default.DEBUG&&console.log("Could not execute Cursor.continue",h,i),e(b)})},i.prototype.__onsuccess=function(a){var b=this;return function(c,d,e){if(b.__count)a(d,b.__req);else{void 0!==c&&(b.__gotValue=!0),b.__key=void 0===c?null:c,b.__primaryKey=void 0===e?null:e,b.__value=void 0===d?null:d;a(void 0===c?null:b,b.__req)}}},i.prototype.__decode=function(a,b){var c=this;if(c.__multiEntryIndex&&c.__unique){if(c.__matchedKeys||(c.__matchedKeys={}),c.__matchedKeys[a.matchingKey])return void b(void 0,void 0,void 0);c.__matchedKeys[a.matchingKey]=!0}var d=r.unescapeSQLiteResponse(c.__multiEntryIndex?a.matchingKey:a[c.__keyColumnName]),e=r.unescapeSQLiteResponse(a[c.__valueColumnName]),f=r.unescapeSQLiteResponse(a.key);b(v.decode(d,c.__multiEntryIndex),c.__valueDecoder.decode(e),v.decode(f),d)},i.prototype.__sourceOrEffectiveObjStoreDeleted=function(){m.default.__invalidStateIfDeleted(this.__store,"The cursor's effective object store has been deleted"),this.__indexSource&&z.default.__invalidStateIfDeleted(this.source,"The cursor's index source has been deleted")},i.prototype.__invalidateCache=function(){this.__prefetchedData=null},i.prototype.__continue=function(a,b){var c=this,d=void 0!==c.__advanceCount;if(t.default.__assertActive(c.__store.transaction),c.__sourceOrEffectiveObjStoreDeleted(),!c.__gotValue&&!b)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");if(void 0!==a){v.convertValueToKeyRethrowingAndIfInvalid(a);var e=(0,p.cmp)(a,c.key);if(0===e||c.direction.includes("next")&&e===-1||c.direction.includes("prev")&&1===e)throw(0,n.createDOMException)("DataError","Cannot "+(d?"advance":"continue")+" the cursor in an unexpected direction")}this.__continueFinish(a,void 0,d)},i.prototype.__continueFinish=function(a,b,c){var d=this,e=d.__advanceCount||B.default.cursorPreloadPackSize||100;d.__gotValue=!1,d.__req.__readyState="pending",d.__store.transaction.__pushToQueue(d.__req,function f(g,h,i,j,k){function l(a,b,e){if(c){if(d.__advanceCount>=2&&void 0!==a)return d.__advanceCount--,d.__key=a,d.__continue(void 0,!0),void k();d.__advanceCount=void 0}d.__onsuccess(i)(a,b,e)}if(d.__prefetchedData&&++d.__prefetchedIndex0||0===m&&(d.__unique||void 0===b||(0,p.cmp)(k,b)>=0))return void l(c,e,k);f(g,h,i,j)}()});d.__find(a,b,g,l,function(){d.__advanceCount=void 0,j.apply(void 0,arguments)},e)})},i.prototype.continue=function(){this.__continue(arguments[0])},i.prototype.continuePrimaryKey=function(a,b){function c(){d.__continueFinish(a,b,!1)}var d=this;if(t.default.__assertActive(d.__store.transaction),d.__sourceOrEffectiveObjStoreDeleted(),!d.__indexSource)throw(0,n.createDOMException)("InvalidAccessError","`continuePrimaryKey` may only be called on an index source.");if(!["next","prev"].includes(d.direction))throw(0,n.createDOMException)("InvalidAccessError","`continuePrimaryKey` may not be called with unique cursors.");if(!d.__gotValue)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");v.convertValueToKeyRethrowingAndIfInvalid(a),v.convertValueToKeyRethrowingAndIfInvalid(b);var e=(0,p.cmp)(a,d.key);if("next"===d.direction&&e===-1||"prev"===d.direction&&1===e)throw(0,n.createDOMException)("DataError","Cannot continue the cursor in an unexpected direction");0===e?x.encode(b,function(a){x.encode(d.primaryKey,function(b){if(a===b||"next"===d.direction&&ab)throw(0,n.createDOMException)("DataError","Cannot continue the cursor in an unexpected direction");c()})}):c()},i.prototype.advance=function(a){var b=this;if(0===(a=r.enforceRange(a,"unsigned long")))throw new TypeError("Calling advance() with count argument 0");b.__gotValue&&(b.__advanceCount=a),b.__continue()},i.prototype.update=function(a){function b(a){m.default.__storingRecordObjectStore(d,c.__store,a,!1,e)}var c=this;if(!arguments.length)throw new TypeError("A value must be passed to update()");if(t.default.__assertActive(c.__store.transaction),c.__store.transaction.__assertWritable(),c.__sourceOrEffectiveObjStoreDeleted(),!c.__gotValue)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");if(c.__keyOnly)throw(0,n.createDOMException)("InvalidStateError","This cursor method cannot be called when the key only flag has been set.");var d=c.__store.transaction.__createRequest(c),e=c.primaryKey;if(null!==c.__store.keyPath){var f=c.__store.__validateKeyAndValueAndCloneValue(a,void 0,!0),g=j(f,2),h=g[0],i=g[1];if(0!==(0,p.cmp)(c.primaryKey,h))throw(0,n.createDOMException)("DataError","The key of the supplied value to `update` is not equal to the cursor's effective key");b(i)}else{b(x.clone(a))}return d},i.prototype.delete=function(){var a=this;if(t.default.__assertActive(a.__store.transaction),a.__store.transaction.__assertWritable(),a.__sourceOrEffectiveObjStoreDeleted(),!a.__gotValue)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");if(a.__keyOnly)throw(0,n.createDOMException)("InvalidStateError","This cursor method cannot be called when the key only flag has been set.");return this.__store.transaction.__addToTransactionQueue(function(b,c,d,e){a.__find(void 0,void 0,b,function(c,f,g){var h="DELETE FROM "+r.escapeStoreNameForSQL(a.__store.__currentName)+' WHERE "key" = ?';B.default.DEBUG&&console.log(h,c,g),b.executeSql(h,[r.escapeSQLiteStatement(v.encode(g))],function(b,f){1===f.rowsAffected?(a.__store.__cursors.forEach(function(a){a.__invalidateCache()}),d(void 0)):e("No rows with key found"+c)},function(a,b){e(b)})},e)},void 0,a)},i.prototype[Symbol.toStringTag]="IDBCursorPrototype",["source","direction","key","primaryKey"].forEach(function(a){Object.defineProperty(i.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),Object.defineProperty(i,"prototype",{writable:!1});var D=function(a){function b(){return f(this,b),g(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return h(b,a),b}(i),E=D;D.__createInstance=function(){function a(){var a;(a=i.__super).call.apply(a,[this].concat(c)),this[Symbol.toStringTag]="IDBCursorWithValue",r.defineReadonlyProperties(this,"value")}for(var b=arguments.length,c=Array(b),d=0;dd?1:c===d?0:-1;if(A.default.DEBUG){var f=u.decode(c),g=u.decode(d);"object"===(void 0===a?"undefined":j(a))&&(a=JSON.stringify(a),f=JSON.stringify(f)),"object"===(void 0===b?"undefined":j(b))&&(b=JSON.stringify(b),g=JSON.stringify(g)),f!==a&&console.warn(a+" was incorrectly encoded as "+f),g!==b&&console.warn(b+" was incorrectly encoded as "+g)}return e}Object.defineProperty(c,"__esModule",{value:!0}),c.shimIndexedDB=c.cmp=c.IDBFactory=void 0;var j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},k=a("./Event"),l=a("./IDBVersionChangeEvent"),m=e(l),n=a("./DOMException"),o=a("./IDBRequest"),p=a("./DOMStringList"),q=e(p),r=a("./util"),s=d(r),t=a("./Key"),u=d(t),v=a("./IDBTransaction"),w=e(v),x=a("./IDBDatabase"),y=e(x),z=a("./CFG"),A=e(z),B=void 0,C=h;h.__createInstance=function(){function a(){this[Symbol.toStringTag]="IDBFactory",this.modules={Event:"undefined"!=typeof Event?Event:k.ShimEvent,Error:Error,ShimEvent:k.ShimEvent,ShimCustomEvent:k.ShimCustomEvent,ShimEventTarget:k.ShimEventTarget,ShimDOMException:n.ShimDOMException,ShimDOMStringList:q.default,IDBFactory:C},this.utils={createDOMException:n.createDOMException},this.__connections=[]}return a.prototype=C.prototype,new a},h.prototype.open=function(a){function b(a,b){if(!j){b=b?(0,n.webSQLErrback)(b):a,j=!0;var c=(0,k.createEvent)("error",b,{bubbles:!0,cancelable:!0});i.__readyState="done",i.__error=b,i.__result=void 0,i.dispatchEvent(c)}}function c(c){var f=A.default.win.openDatabase(p,1,a,A.default.DEFAULT_DB_SIZE);if(i.__readyState="done",void 0===e&&(e=c||1),c>e){return void b((0,n.createDOMException)("VersionError","An attempt was made to open a database using a lower version than the existing version.",e))}f.transaction(function(g){g.executeSql("CREATE TABLE IF NOT EXISTS __sys__ (name VARCHAR(255), keyPath VARCHAR(255), autoInc BOOLEAN, indexList BLOB, currNum INTEGER)",[],function(){g.executeSql('SELECT "name", "keyPath", "autoInc", "indexList" FROM __sys__',[],function(g,h){if(i.__result=y.default.__createInstance(f,a,c,e,h),d.__connections.push(i.result),c=d.length?a.executeSql("DROP TABLE IF EXISTS __sys__",[],function(){f()},c):a.executeSql("DROP TABLE "+s.escapeStoreNameForSQL(s.unescapeSQLiteResponse(d.item(e).name)),[],function(){b(e+1)},function(){b(e+1)})}(0)},function(a){f()})})},c)},c,null,function(a,b,c,d,e){return!(!a.readOnly&&!b)||(p=function(a,b){a?d(a,b):e(b)},!1)})},c)},c)},c),i},h.prototype.cmp=function(a,b){if(!(this instanceof h))throw new TypeError("Illegal invocation");if(arguments.length<2)throw new TypeError("You must provide two keys to be compared");return u.convertValueToKeyRethrowingAndIfInvalid(a),u.convertValueToKeyRethrowingAndIfInvalid(b),i(a,b)},h.prototype.webkitGetDatabaseNames=function(){function a(a,d){if(!b){d=d?(0,n.webSQLErrback)(d):a,b=!0;var e=(0,k.createEvent)("error",d,{bubbles:!0,cancelable:!0});c.__readyState="done",c.__error=d,c.__result=void 0,c.dispatchEvent(e)}}if(!(this instanceof h))throw new TypeError("Illegal invocation");if(f())throw(0,n.createDOMException)("SecurityError","Cannot get IndexedDB database names from an opaque origin.");var b=!1,c=o.IDBRequest.__createInstance();return g(function(){B.readTransaction(function(b){b.executeSql('SELECT "name" FROM dbVersions',[],function(a,b){for(var d=q.default.__createInstance(),e=0;ed.__connections.length-1)throw new TypeError("If providing an argument, __forceClose must be called with a numeric index to indicate a specific connection to lose");c(d.__connections[a])}},h.prototype[Symbol.toStringTag]="IDBFactoryPrototype",Object.defineProperty(h,"prototype",{writable:!1});var D=h.__createInstance();c.IDBFactory=h, +c.cmp=i,c.shimIndexedDB=D},{"./CFG":324,"./DOMException":325,"./DOMStringList":326,"./Event":327,"./IDBDatabase":329,"./IDBRequest":334,"./IDBTransaction":335,"./IDBVersionChangeEvent":336,"./Key":337,"./util":343,fs:void 0,path:void 0}],331:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function f(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b0&&h.push("OR"),h.push(m.escapeIndexNameForSQL(b.name),"LIKE ? ESCAPE '^' "),i.push("%"+m.sqlLIKEEscape(o.encode(a,b.multiEntry))+"%")}),h.push(")");else if(b.multiEntry)h.push("AND",m.escapeIndexNameForSQL(b.name),"LIKE ? ESCAPE '^'"),i.push("%"+m.sqlLIKEEscape(o.encode(c,b.multiEntry))+"%");else{var j=(0,p.convertValueToKeyRange)(c,a);(0,p.setSQLForKeyRange)(j,m.escapeIndexNameForSQL(b.name),h,i,!0,!1)}return[a,b,f,c,d,e,h,i]}Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.IDBIndex=c.executeFetchIndexData=c.buildFetchIndexDataSQL=void 0;var j=a("./DOMException"),k=a("./IDBCursor"),l=a("./util"),m=e(l),n=a("./Key"),o=e(n),p=a("./IDBKeyRange"),q=a("./IDBTransaction"),r=d(q),s=a("./Sca"),t=e(s),u=a("./CFG"),v=d(u),w=a("./IDBObjectStore"),x=d(w),y=["objectStore","keyPath","multiEntry","unique"],z=g;g.__createInstance=function(a,b){function c(){var c=this;c[Symbol.toStringTag]="IDBIndex",m.defineReadonlyProperties(c,y),c.__objectStore=a,c.__name=c.__originalName=b.columnName,c.__keyPath=Array.isArray(b.keyPath)?b.keyPath.slice():b.keyPath;var d=b.optionalParams;c.__multiEntry=!(!d||!d.multiEntry),c.__unique=!(!d||!d.unique),c.__deleted=!!b.__deleted,c.__objectStore.__cursors=b.cursors||[],Object.defineProperty(c,"__currentName",{get:function(){return"__pendingName"in c?c.__pendingName:c.name}}),Object.defineProperty(c,"name",{enumerable:!1,configurable:!1,get:function(){return this.__name},set:function(b){var c=this;b=m.convertToDOMString(b);var d=c.name;if(r.default.__assertVersionChange(c.objectStore.transaction),r.default.__assertActive(c.objectStore.transaction),z.__invalidStateIfDeleted(c),x.default.__invalidStateIfDeleted(c),b!==d){if(c.objectStore.__indexes[b]&&!c.objectStore.__indexes[b].__deleted&&!c.objectStore.__indexes[b].__pendingDelete)throw(0,j.createDOMException)("ConstraintError",'Index "'+b+'" already exists on '+c.objectStore.__currentName);c.__name=b;var e=c.objectStore;delete e.__indexes[d],e.__indexes[b]=c,e.indexNames.splice(e.indexNames.indexOf(d),1,b);var f=e.transaction.__storeHandles[e.name],g=f.__indexHandles[d];g.__name=b,f.__indexHandles[b]=g,c.__pendingName=d;var h=[["key","BLOB "+(e.autoIncrement?"UNIQUE, inc INTEGER PRIMARY KEY AUTOINCREMENT":"PRIMARY KEY")],["value","BLOB"]].concat(Array.from(e.indexNames).filter(function(a){return a!==b}).map(function(a){return[m.escapeIndexNameForSQL(a),"BLOB"]}));c.__renameIndex(e,d,b,h,function(b,c){z.__updateIndexList(a,b,function(a){delete f.__pendingName,c(a)})})}}})}return c.prototype=z.prototype,new c},g.__invalidStateIfDeleted=function(a,b){if(a.__deleted||a.__pendingDelete||a.__pendingCreate&&a.objectStore.transaction&&a.objectStore.transaction.__errored)throw(0,j.createDOMException)("InvalidStateError",b||"This index has been deleted")},g.__clone=function(a,b){var c=g.__createInstance(b,{columnName:a.name,keyPath:a.keyPath,optionalParams:{multiEntry:a.multiEntry,unique:a.unique}});return["__pendingCreate","__pendingDelete","__deleted","__originalName","__recreated"].forEach(function(b){c[b]=a[b]}),c},g.__createIndex=function(a,b){var c=b.name,d=a.__currentName,e=a.__indexes[c];b.__pendingCreate=!0,a.indexNames.push(c),a.__indexes[c]=b;var f=a.__indexHandles[c];(!f||b.__pendingDelete||b.__deleted||f.__pendingDelete||f.__deleted)&&(f=a.__indexHandles[c]=g.__clone(b,a)),a.transaction.__addNonRequestToTransactionQueue(function(h,i,k,l){function n(a,b){l((0,j.createDOMException)("UnknownError",'Could not create index "'+c+'"'+b.code+"::"+b.message,b))}function p(e){g.__updateIndexList(a,e,function(){e.executeSql('SELECT "key", "value" FROM '+m.escapeStoreNameForSQL(d),[],function(e,g){function h(i){if(i3&&void 0!==arguments[3]?arguments[3]:[],e=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,f=a.__currentName,g=m.escapeStoreNameForSQL(f),h=m.escapeStoreNameForSQL("tmp_"+f),i=d.map(function(a){return a[0]}),j=d.map(function(a){return a.join(" ")}),k=j.length?j.join(", ")+", ":"",l=i.length?i.join(", ")+", ":"";a.transaction.__addNonRequestToTransactionQueue(function(a,d,f,i){var j="ALTER TABLE "+g+" RENAME TO "+h;a.executeSql(j,[],function(a,d){var j="CREATE TABLE "+g+"("+k+m.escapeIndexNameForSQL(c)+" BLOB)";a.executeSql(j,[],function(a,d){var j="INSERT INTO "+g+"("+l+m.escapeIndexNameForSQL(c)+") SELECT "+l+m.escapeIndexNameForSQL(b)+" FROM "+h;a.executeSql(j,[],function(a,b){var c="DROP TABLE "+h;a.executeSql(c,[],function(a,b){if(e)return void e(a,f);f()},function(a,b){i(b)})},function(a,b){i(b)})})},function(a,b){i(b)})})},Object.defineProperty(g,Symbol.hasInstance,{value:function(a){return m.isObj(a)&&"function"==typeof a.openCursor&&"boolean"==typeof a.multiEntry}}),y.forEach(function(a){Object.defineProperty(g.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),Object.defineProperty(g.prototype,"name",{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")},set:function(a){throw new TypeError("Illegal invocation")}}),g.prototype[Symbol.toStringTag]="IDBIndexPrototype",Object.defineProperty(g,"prototype",{writable:!1}),c.buildFetchIndexDataSQL=i,c.executeFetchIndexData=h,c.IDBIndex=g,c.default=g},{"./CFG":324,"./DOMException":325,"./IDBCursor":328,"./IDBKeyRange":332,"./IDBObjectStore":333,"./IDBTransaction":335,"./Key":337,"./Sca":338,"./util":343}],332:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function e(){throw new TypeError("Illegal constructor")}function f(a,b,c,d,e,f){if(a&&(void 0!==a.lower||void 0!==a.upper)){e&&c.push("AND");var g=void 0,h=void 0,i=void 0!==a.lower,k=void 0!==a.upper;if(i&&(g=f?a.__lowerCached:j.encode(a.lower)),k&&(h=f?a.__upperCached:j.encode(a.upper)),i){if(d.push(l.escapeSQLiteStatement(g)),k&&g===h&&!a.lowerOpen&&!a.upperOpen)return void c.push(b,"=","?");c.push(b,a.lowerOpen?">":">=","?")}i&&k&&c.push("AND"),k&&(c.push(b,a.upperOpen?"<":"<=","?"),d.push(l.escapeSQLiteStatement(h)))}}function g(a,b){if(l.instanceOf(a,e))return"[object IDBKeyRange]"!==!a.toString()?e.__createInstance(a.lower,a.upper,a.lowerOpen,a.upperOpen):a;{if(null!=a)return j.convertValueToKeyRethrowingAndIfInvalid(a),e.only(a);if(b)throw(0,h.createDOMException)("DataError","No key or range was specified")}}Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.convertValueToKeyRange=c.IDBKeyRange=c.setSQLForKeyRange=void 0;var h=a("./DOMException"),i=a("./Key"),j=d(i),k=a("./util"),l=d(k),m=["lower","upper","lowerOpen","upperOpen"],n=e;e.__createInstance=function(a,b,c,d){function e(){if(this[Symbol.toStringTag]="IDBKeyRange",void 0===a&&void 0===b)throw(0,h.createDOMException)("DataError","Both arguments to the key range method cannot be undefined");var e=void 0,f=void 0;if(void 0!==a&&(e=j.roundTrip(a),j.convertValueToKeyRethrowingAndIfInvalid(a)),void 0!==b&&(f=j.roundTrip(b),j.convertValueToKeyRethrowingAndIfInvalid(b)),void 0!==a&&void 0!==b&&a!==b&&j.encode(a)>j.encode(b))throw(0,h.createDOMException)("DataError","`lower` must not be greater than `upper` argument in `bound()` call.");this.__lower=e,this.__upper=f,this.__lowerOpen=!!c,this.__upperOpen=!!d}return e.prototype=n.prototype,new e},e.prototype.includes=function(a){if(!l.isObj(this)||"boolean"!=typeof this.__lowerOpen)throw new TypeError("Illegal invocation");if(!arguments.length)throw new TypeError("IDBKeyRange.includes requires a key argument");return j.convertValueToKeyRethrowingAndIfInvalid(a),j.isKeyInRange(a,this)},e.only=function(a){if(!arguments.length)throw new TypeError("IDBKeyRange.only requires a value argument");return e.__createInstance(a,a,!1,!1)},e.lowerBound=function(a){if(!arguments.length)throw new TypeError("IDBKeyRange.lowerBound requires a value argument");return e.__createInstance(a,void 0,arguments[1],!0)},e.upperBound=function(a){if(!arguments.length)throw new TypeError("IDBKeyRange.upperBound requires a value argument");return e.__createInstance(void 0,a,!0,arguments[1])},e.bound=function(a,b){if(arguments.length<=1)throw new TypeError("IDBKeyRange.bound requires lower and upper arguments");return e.__createInstance(a,b,arguments[2],arguments[3])},e.prototype[Symbol.toStringTag]="IDBKeyRangePrototype",m.forEach(function(a){Object.defineProperty(e.prototype,"__"+a,{enumerable:!1,configurable:!1,writable:!0}),Object.defineProperty(e.prototype,a,{enumerable:!0,configurable:!0,get:function(){if(!l.isObj(this)||"boolean"!=typeof this.__lowerOpen)throw new TypeError("Illegal invocation");return this["__"+a]}})}),Object.defineProperty(e,Symbol.hasInstance,{value:function(a){return l.isObj(a)&&"upper"in a&&"boolean"==typeof a.lowerOpen}}),Object.defineProperty(e,"prototype",{writable:!1}),c.setSQLForKeyRange=f,c.IDBKeyRange=e,c.convertValueToKeyRange=g,c.default=e},{"./DOMException":325,"./Key":337,"./util":343}],333:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function e(a){return a&&a.__esModule?a:{default:a}}function f(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b0&&a.executeSql("DROP TABLE "+o.escapeStoreNameForSQL(b.__currentName),[],function(){a.executeSql('DELETE FROM __sys__ WHERE "name" = ?',[o.escapeSQLiteStatement(b.__currentName)],function(){delete b.__pendingDelete,b.__deleted=!0,c&&(delete c.__pendingDelete,c.__deleted=!0),e()},g)},g)})})},g.prototype.__validateKeyAndValueAndCloneValue=function(a,b,c){var d=this;if(null!==d.keyPath){if(void 0!==b)throw(0,i.createDOMException)("DataError","The object store uses in-line keys and the key parameter was provided",d);var e=v.clone(a);if(b=q.extractKeyValueDecodedFromValueUsingKeyPath(e,d.keyPath),b.invalid)throw(0,i.createDOMException)("DataError","KeyPath was specified, but key was invalid.");if(b.failure){if(!c){if(!d.autoIncrement)throw(0,i.createDOMException)("DataError","Could not evaluate a key from keyPath and there is no key generator");if(!q.checkKeyCouldBeInjectedIntoValue(e,d.keyPath))throw(0,i.createDOMException)("DataError","A key could not be injected into a value");return[void 0,e]}throw(0,i.createDOMException)("DataError","Could not evaluate a key from keyPath")}return[b.value,e]}if(void 0===b){if(!d.autoIncrement)throw(0,i.createDOMException)("DataError","The object store uses out-of-line keys and has no key generator and the key parameter was not provided.",d);b=void 0}else q.convertValueToKeyRethrowingAndIfInvalid(b);return[b,v.clone(a)]},g.prototype.__deriveKey=function(a,b,c,d,e){function f(){v.encode(c,function(a){a=v.decode(a),d(a)})}var g=this;g.autoIncrement?void 0===c?q.generateKeyForStore(a,g,function(a,c){if(a)return void e((0,i.createDOMException)("ConstraintError","The key generator's current number has reached the maximum safe integer limit"));null!==g.keyPath&&q.injectKeyIntoValueUsingKeyPath(b,c,g.keyPath),d(c)},e):q.possiblyUpdateKeyGenerator(a,g,c,f,e):f()},g.prototype.__insertData=function(a,b,c,d,e,g){var h=this,j={},k=Object.keys(h.__indexes).map(function(b){return new z.default(function(d,e){function g(a){void 0!==l&&(j[a.__currentName]=q.encode(l,a.multiEntry))}var k=h.__indexes[b];if(k.__pendingCreate||k.__deleted)return void d();var l=void 0;try{if(l=q.extractKeyValueDecodedFromValueUsingKeyPath(c,k.keyPath,k.multiEntry),l.invalid||l.failure)throw new Error("Go to catch")}catch(a){return void d()}if(l=l.value,k.unique){var m=k.multiEntry&&Array.isArray(l),n=(0,r.buildFetchIndexDataSQL)(!0,k,l,"key",m);r.executeFetchIndexData.apply(void 0,[null].concat(f(n),[a,null,function(a){if(void 0===a)return g(k),void d();e((0,i.createDOMException)("ConstraintError","Index already contains a record equal to "+(m?"one of the subkeys of":"")+"`indexKey`"))},e]))}else g(k),d()})});z.default.all(k).then(function(){var c=["INSERT INTO",o.escapeStoreNameForSQL(h.__currentName),"("],f=[" VALUES ("],k=[];void 0!==d&&(c.push(o.sqlQuote("key"),","),f.push("?,"),k.push(o.escapeSQLiteStatement(q.encode(d))));for(var l in j)c.push(o.escapeIndexNameForSQL(l)+","),f.push("?,"),k.push(o.escapeSQLiteStatement(j[l]));c.push(o.sqlQuote("value")+" )"),f.push("?)"),k.push(o.escapeSQLiteStatement(b));var m=c.join(" ")+f.join(" ");x.default.DEBUG&&console.log("SQL for adding",m,k),a.executeSql(m,k,function(a,b){e(d)},function(a,b){g((0,i.createDOMException)("ConstraintError",b.message,b))})}).catch(function(a){g(a)})},g.prototype.add=function(a){var b=this,c=arguments[1];if(!(b instanceof g))throw new TypeError("Illegal invocation");if(0===arguments.length)throw new TypeError("No value was specified");g.__invalidStateIfDeleted(b),t.default.__assertActive(b.transaction),b.transaction.__assertWritable();var d=b.transaction.__createRequest(b),e=b.__validateKeyAndValueAndCloneValue(a,c,!1),f=h(e,2),i=f[0],j=f[1];return g.__storingRecordObjectStore(d,b,j,!0,i),d},g.prototype.put=function(a){var b=this,c=arguments[1];if(!(b instanceof g))throw new TypeError("Illegal invocation");if(0===arguments.length)throw new TypeError("No value was specified");g.__invalidStateIfDeleted(b),t.default.__assertActive(b.transaction),b.transaction.__assertWritable();var d=b.transaction.__createRequest(b),e=b.__validateKeyAndValueAndCloneValue(a,c,!1),f=h(e,2),i=f[0],j=f[1];return g.__storingRecordObjectStore(d,b,j,!1,i),d},g.prototype.__overwrite=function(a,b,c,d){var e=this,f="DELETE FROM "+o.escapeStoreNameForSQL(e.__currentName)+' WHERE "key" = ?',g=q.encode(b);a.executeSql(f,[o.escapeSQLiteStatement(g)],function(a,d){x.default.DEBUG&&console.log("Did the row with the",b,"exist? ",d.rowsAffected),c(a)},function(a,b){d(b)})},g.__storingRecordObjectStore=function(a,b,c,d){var e=arguments[4];b.transaction.__pushToQueue(a,function(a,f,g,h){b.__deriveKey(a,c,e,function(e){v.encode(c,function(f){function i(a){b.__insertData(a,f,c,e,function(){b.__cursors.forEach(function(a){a.__invalidateCache()}),g.apply(void 0,arguments)},h)}if(!d)return void b.__overwrite(a,e,i,h);i(a)})},h)})},g.prototype.__get=function(a,b,c,d){var e=this;void 0!==d&&(d=o.enforceRange(d,"unsigned long")),g.__invalidStateIfDeleted(e),t.default.__assertActive(e.transaction);var f=(0,k.convertValueToKeyRange)(a,!c),h=b?"key":"value",i=["SELECT",o.sqlQuote(h),"FROM",o.escapeStoreNameForSQL(e.__currentName)],j=[];if(void 0!==f&&(i.push("WHERE"),(0,k.setSQLForKeyRange)(f,o.sqlQuote("key"),i,j)),c||(d=1),d){if("number"!=typeof d||isNaN(d)||!isFinite(d))throw new TypeError("The count parameter must be a finite number");i.push("LIMIT",d)}return i=i.join(" "),e.transaction.__addToTransactionQueue(function(a,d,f,g){x.default.DEBUG&&console.log("Fetching",e.__currentName,j),a.executeSql(i,j,function(a,d){x.default.DEBUG&&console.log("Fetched data",d);var e=void 0;try{if(0===d.rows.length)return c?f([]):f();if(e=[],b)for(var g=0;g=b.__requests.length)b.__requests=[],b.__active&&a();else try{if(i=b.__requests[j],!i.req)return void i.op(c,i.args,h,e);if("done"===i.req.__readyState)return;i.op(c,i.args,d,e,h)}catch(a){e(a)}}b.__tx=c;var i=null,j=-1;h()},function(a){if(a!==!0){var c=(0,g.webSQLErrback)(a);b.__abortTransaction(c)}},function(){if(b.__transFinishedCb===e.prototype.__transFinishedCb)return b.__transactionEndCallback||b.__requestsFinished?void(b.__transactionEndCallback&&!b.__completed&&b.__transFinishedCb(b.__errored,b.__transactionEndCallback)):void(b.__transactionFinished=!0)},function(a,c,d,e,f){return!(!a.readOnly&&!c)||(b.__transFinishedCb=function(a,b){a?e(a,b):f(b)},b.__transactionEndCallback&&!b.__completed&&b.__transFinishedCb(b.__errored,b.__transactionEndCallback),!1)})},e.prototype.__createRequest=function(a){var b=this,c=h.IDBRequest.__createInstance();return c.__source=void 0!==a?a:b.db,c.__transaction=b,c},e.prototype.__addToTransactionQueue=function(a,b,c){var d=this.__createRequest(c);return this.__pushToQueue(d,a,b),d},e.prototype.__addNonRequestToTransactionQueue=function(a,b,c){this.__pushToQueue(null,a,b)},e.prototype.__pushToQueue=function(a,b,c){this.__assertActive(),this.__requests.push({op:b,args:c,req:a})},e.prototype.__assertActive=function(){if(!this.__active)throw(0,g.createDOMException)("TransactionInactiveError","A request was placed against a transaction which is currently not active, or which is finished")},e.prototype.__assertWritable=function(){if("readonly"===this.mode)throw(0,g.createDOMException)("ReadOnlyError","The transaction is read only")},e.prototype.__assertVersionChange=function(){e.__assertVersionChange(this)},e.prototype.objectStore=function(a){var b=this;if(!(b instanceof e))throw new TypeError("Illegal invocation");if(0===arguments.length)throw new TypeError("No object store name was specified");if(e.__assertNotFinished(b),b.__objectStoreNames.indexOf(a)===-1)throw(0,g.createDOMException)("NotFoundError",a+" is not participating in this transaction");var c=b.db.__objectStores[a];if(!c)throw(0,g.createDOMException)("NotFoundError",a+" does not exist in "+b.db.name);return(!b.__storeHandles[a]||b.__storeHandles[a].__pendingDelete||b.__storeHandles[a].__deleted)&&(b.__storeHandles[a]=l.default.__clone(c,b)),b.__storeHandles[a]},e.prototype.__abortTransaction=function(a){function b(b,d){b?d&&"number"==typeof d.code?n.default.DEBUG&&console.log("Rollback erred; feature is probably not supported as per WebSQL",c):n.default.DEBUG&&console.log("Rollback succeeded",c):n.default.DEBUG&&console.log("Rollback not possible due to missing transaction",c),c.__requests.filter(function(a){return a.req&&"done"!==a.req.__readyState}).reduce(function(a,b){return a.then(function(){b.req.__readyState="done",b.req.__result=void 0,b.req.__error=(0,g.createDOMException)("AbortError","A request was aborted.");var a=(0,f.createEvent)("error",b.req.__error,{bubbles:!0,cancelable:!0});return new q.default(function(c){setTimeout(function(){b.req.dispatchEvent(a),c()})})})},q.default.resolve()).then(function(){var b=(0,f.createEvent)("abort",a,{bubbles:!0,cancelable:!1});setTimeout(function(){c.__abortFinished=!0,c.dispatchEvent(b),c.__storeHandles={},c.dispatchEvent((0,f.createEvent)("__abort"))})})}var c=this;(0,g.logError)("Error","An error occurred in a transaction",a),c.__errored||(c.__errored=!0,"versionchange"===c.mode&&(c.db.__version=c.db.__oldVersion,c.db.__objectStoreNames=c.db.__oldObjectStoreNames,c.__objectStoreNames=c.db.__oldObjectStoreNames,Object.values(c.db.__objectStores).concat(Object.values(c.__storeHandles)).forEach(function(a){"__pendingName"in a&&c.db.__oldObjectStoreNames.indexOf(a.__pendingName)>-1&&(a.__name=a.__originalName),a.__indexNames=a.__oldIndexNames,delete a.__pendingDelete,Object.values(a.__indexes).concat(Object.values(a.__indexHandles)).forEach(function(b){"__pendingName"in b&&a.__oldIndexNames.indexOf(b.__pendingName)>-1&&(b.__name=b.__originalName),delete b.__pendingDelete})})),c.__active=!1,null!==a&&(c.__error=a),c.__requestsFinished&&setTimeout(function(){throw a},0),c.__transFinishedCb(!0,function(a){if(a&&c.__tx){if("readwrite"===c.mode)return c.__transactionFinished?void b():void(c.__transactionEndCallback=b);try{c.__tx.executeSql("ROLLBACK",[],b,b)}catch(a){b()}}else b(null,{code:0})}))},e.prototype.abort=function(){var a=this;if(!(a instanceof e))throw new TypeError("Illegal invocation");n.default.DEBUG&&console.log("The transaction was aborted",a),e.__assertNotFinished(a),a.__abortTransaction(null)},e.prototype[Symbol.toStringTag]="IDBTransactionPrototype",e.__assertVersionChange=function(a){if(!a||"versionchange"!==a.mode)throw(0,g.createDOMException)("InvalidStateError","Not a version transaction")},e.__assertNotVersionChange=function(a){if(a&&"versionchange"===a.mode)throw(0,g.createDOMException)("InvalidStateError","Cannot be called during a version transaction")},e.__assertNotFinished=function(a){if(!a||a.__completed||a.__abortFinished)throw(0,g.createDOMException)("InvalidStateError","Transaction finished by commit or abort")},e.__assertActive=function(a){if(!a||!a.__active)throw(0,g.createDOMException)("TransactionInactiveError","A request was placed against a transaction which is currently not active, or which is finished")},e.prototype.__getParent=function(){return this.db},e.prototype.__userErrorEventHandler=function(a,b){if(this.__internal)throw this.__internal=!1,a;b()},s.forEach(function(a){Object.defineProperty(e.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")},set:function(a){throw new TypeError("Illegal invocation")}})}),t.forEach(function(a){Object.defineProperty(e.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),Object.defineProperty(e.prototype,"constructor",{enumerable:!1,writable:!0,configurable:!0,value:e}),Object.defineProperty(e,"prototype",{writable:!1}),c.default=e,b.exports=c.default},{"./CFG":324,"./DOMException":325,"./Event":327,"./IDBObjectStore":333,"./IDBRequest":334,"./util":343,eventtarget:297,"sync-promise":299}],336:[function(a,b,c){"use strict";function d(a){e.ShimEvent.call(this,a),this[Symbol.toStringTag]="IDBVersionChangeEvent",this.toString=function(){return"[object IDBVersionChangeEvent]"},this.__eventInitDict=arguments[1]||{}}Object.defineProperty(c,"__esModule",{value:!0});var e=a("./Event"),f=a("./util"),g=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(f),h=["oldVersion","newVersion"];d.prototype=Object.create(e.ShimEvent.prototype),d.prototype[Symbol.toStringTag]="IDBVersionChangeEventPrototype",h.forEach(function(a){Object.defineProperty(d.prototype,a,{enumerable:!0,configurable:!0,get:function(){if(!(this instanceof d))throw new TypeError("Illegal invocation");return this.__eventInitDict&&this.__eventInitDict[a]||("oldVersion"===a?0:null)}})}),Object.defineProperty(d,Symbol.hasInstance,{value:function(a){return g.isObj(a)&&"oldVersion"in a&&"boolean"==typeof a.defaultPrevented}}),Object.defineProperty(d.prototype,"constructor",{enumerable:!1,writable:!0,configurable:!0,value:d}),Object.defineProperty(d,"prototype",{writable:!1}),c.default=d,b.exports=c.default},{"./Event":327,"./util":343}],337:[function(a,b,c){"use strict";function d(a,b,c){return new Array(b-String(a).length+1).join(c)+a}function e(a){return a=a.toString(32),1===a.length?"0"+a:a}function f(a){return(a+j(11)).slice(0,11)}function g(a){for(var b="",c=0;cg&&(d=!0),!b.lowerOpen&&f>=g&&(d=!0)),void 0!==b.upper&&(b.upperOpen&&f1:b===a}function A(a,b){var c=[];if(Array.isArray(a))for(var d=0;d0&&c.push(e);continue}e=e[0]}(null==b||y(e,b,!0))&&c.push(e)}else(null==b||y(a,b,!0))&&c.push(a);return c}function B(a){var b=a.type,c=a.value;switch(b){case"number":case"string":return c;case"array":for(var d=[],e=c.length,f=0;fT)return c("failure");G(a,b,e,function(){c(null,e)},d)},d)}function I(a,b,c,d,e){"number"!=typeof c||c<1?d():F(a,b,function(f){var g=Math.floor(Math.min(c,T));g>=f?G(a,b,g,d,e):d()},e)}Object.defineProperty(c,"__esModule",{value:!0}),c.possiblyUpdateKeyGenerator=c.generateKeyForStore=c.findMultiEntryMatches=c.isKeyInRange=c.isMultiEntryMatch=c.checkKeyCouldBeInjectedIntoValue=c.injectKeyIntoValueUsingKeyPath=c.extractKeyValueDecodedFromValueUsingKeyPath=c.evaluateKeyPathOnValue=c.extractKeyFromValueUsingKeyPath=c.convertValueToKeyRethrowingAndIfInvalid=c.convertValueToMultiEntryKey=c.convertValueToKey=c.convertValueToMultiEntryKeyDecoded=c.convertValueToKeyValueDecoded=c.convertKeyToValue=c.roundTrip=c.decode=c.encode=void 0;var J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},K=a("./DOMException"),L=a("./util"),M=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(L),N=a("./IDBFactory"),O=a("./CFG"),P=function(a){return a&&a.__esModule?a:{default:a}}(O),Q=["invalid","number","date","string","binary","array"],R=["negativeInfinity","bigNegative","smallNegative","smallPositive","bigPositive","positiveInfinity"],S={invalid:{encode:function(a){return Q.indexOf("invalid")+"-"},decode:function(a){}},number:{encode:function(a){var b=Math.abs(a).toString(32),c=b.indexOf(".");b=c!==-1?b.replace(".",""):b;var d=b.search(/[^0]/);b=b.slice(d);var h=void 0,i=void 0,k=void 0;return isFinite(a)?a<0?a>-1?(h=R.indexOf("smallNegative"),i=e(d),k=g(f(b))):(h=R.indexOf("bigNegative"),i=g(e(c!==-1?c:b.length)),k=g(f(b))):a<1?(h=R.indexOf("smallPositive"),i=g(e(d)),k=f(b)):(h=R.indexOf("bigPositive"),i=e(c!==-1?c:b.length),k=f(b)):(i=j(2),k=j(11),h=R.indexOf(a>0?"positiveInfinity":"negativeInfinity")),Q.indexOf("number")+"-"+h+i+k},decode:function(a){var b=+a.substr(2,1),c=a.substr(3,2),d=a.substr(5,11);switch(R[b]){case"negativeInfinity":return-1/0;case"positiveInfinity":return 1/0;case"bigPositive":return h(d,c);case"smallPositive":return c=k(g(c)),h(d,c);case"smallNegative":return c=k(c),d=g(d),-h(d,c);case"bigNegative":return c=g(c),d=g(d),-h(d,c);default:throw new Error("Invalid number.")}}},string:{encode:function(a,b){return b&&(a=a.replace(/(.)/g,"-$1")+" "),Q.indexOf("string")+"-"+a},decode:function(a,b){return a=a.slice(2),b&&(a=a.substr(0,a.length-1).replace(/-(.)/g,"$1")),a}},array:{encode:function(a){for(var b=[],c=0;c889)throw(0,o.createDOMException)("DataError","The encoded key is "+a.length+" characters long, but IE only allows 889 characters. Consider replacing numeric keys with strings to reduce the encoded length.")}Object.defineProperty(c,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},o=a("./DOMException"),p=a("./Key"),q=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(p),r="__$$compoundKey",s=/\$\$/g,t="$$$$",u="$_$";c.default=d,b.exports=c.default},{"./DOMException":325,"./Key":337}],342:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{default:a}}function f(a,b){if(a&&"object"===(void 0===a?"undefined":i(a)))for(var c in a)f(c,a[c]);else{if(!(a in C.default))throw new Error(a+" is not a valid configuration property");C.default[a]=b}}function g(a,b){function c(a,b,c){if(!c||!Object.defineProperty)try{e[a]=b}catch(a){console.log(a)}if(e[a]!==b&&Object.defineProperty)try{var d=c||{};d.get=function(){return b},Object.defineProperty(e,a,d)}catch(a){}e[a]!==b&&"undefined"!=typeof console&&console.warn&&console.warn("Unable to shim "+a)}b&&f(b);var e=a||("undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==d?d:{});c("shimIndexedDB",o.shimIndexedDB,{enumerable:!1,configurable:!0}),e.shimIndexedDB&&(e.shimIndexedDB.__useShim=function(){ +var a=e.shimIndexedDB.modules.IDBFactory;if(void 0!==C.default.win.openDatabase){if(C.default.fullIDLSupport){var b=e.shimIndexedDB.modules.ShimEvent,d=e.shimIndexedDB.modules.ShimEventTarget;Object.setPrototypeOf(y.default,d),Object.setPrototypeOf(m.IDBRequest,d),Object.setPrototypeOf(w.default,d),Object.setPrototypeOf(k.default,b),Object.setPrototypeOf(n.ShimDOMException,Error),Object.setPrototypeOf(n.ShimDOMException.prototype,Error.prototype)}[["indexedDB",o.shimIndexedDB],["IDBFactory",a],["IDBDatabase",y.default],["IDBObjectStore",s.default],["IDBIndex",u.default],["IDBTransaction",w.default],["IDBCursor",l.IDBCursor],["IDBCursorWithValue",l.IDBCursorWithValue],["IDBKeyRange",q.default],["IDBRequest",m.IDBRequest],["IDBOpenDBRequest",m.IDBOpenDBRequest],["IDBVersionChangeEvent",k.default]].forEach(function(a){var b=h(a,2);c(b[0],b[1],{enumerable:!1,configurable:!0})}),C.default.addNonIDBGlobals&&e.indexedDB&&e.indexedDB.modules&&(c("ShimDOMStringList",e.indexedDB.modules.ShimDOMStringList,{enumerable:!1,configurable:!0}),c("ShimEvent",e.indexedDB.modules.ShimEvent),c("ShimCustomEvent",e.indexedDB.modules.ShimCustomEvent),c("ShimEventTarget",e.indexedDB.modules.ShimEventTarget),c("ShimDOMException",e.indexedDB.modules.ShimDOMException))}else"object"===i(e.indexedDB)&&(0,A.default)(l.IDBCursor,l.IDBCursorWithValue,y.default,a,u.default,q.default,s.default,m.IDBRequest,w.default)},e.shimIndexedDB.__debug=function(a){C.default.DEBUG=a},e.shimIndexedDB.__setConfig=f,e.shimIndexedDB.__getConfig=function(a){if(!(a in C.default))throw new Error(a+" is not a valid configuration property");return C.default[a]},e.shimIndexedDB.__setUnicodeIdentifiers=function(a){f({UnicodeIDStart:a.UnicodeIDStart,UnicodeIDContinue:a.UnicodeIDContinue})}),"indexedDB"in e||"undefined"==typeof window||(e.indexedDB=e.indexedDB||e.webkitIndexedDB||e.mozIndexedDB||e.oIndexedDB||e.msIndexedDB);var g=!1;return"undefined"!=typeof navigator&&(navigator.userAgent.match(/Android (?:2|3|4\.[0-3])/)&&!navigator.userAgent.match(/Chrome/)||(navigator.userAgent.indexOf("Safari")===-1||navigator.userAgent.indexOf("Chrome")>-1)&&/(iPad|iPhone|iPod).* os 9_/i.test(navigator.userAgent)&&!window.MSStream)&&(g=!0),C.default.DEFAULT_DB_SIZE||(C.default.DEFAULT_DB_SIZE=1024*("undefined"!=typeof navigator&&navigator.userAgent.indexOf("Safari")>-1&&navigator.userAgent.indexOf("Chrome")===-1?25:4)*1024),e.indexedDB&&!g||void 0===C.default.win.openDatabase?(e.IDBDatabase=e.IDBDatabase||e.webkitIDBDatabase,e.IDBTransaction=e.IDBTransaction||e.webkitIDBTransaction||{},e.IDBCursor=e.IDBCursor||e.webkitIDBCursor,e.IDBKeyRange=e.IDBKeyRange||e.webkitIDBKeyRange):e.shimIndexedDB.__useShim(),e}Object.defineProperty(c,"__esModule",{value:!0});var h=function(){function a(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!b||c.length!==b);d=!0);}catch(a){e=!0,f=a}finally{try{!d&&h.return&&h.return()}finally{if(e)throw f}}return c}return function(b,c){if(Array.isArray(b))return b;if(Symbol.iterator in Object(b))return a(b,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};a("babel-polyfill");var j=a("./IDBVersionChangeEvent"),k=e(j),l=a("./IDBCursor"),m=a("./IDBRequest"),n=a("./DOMException"),o=a("./IDBFactory"),p=a("./IDBKeyRange"),q=e(p),r=a("./IDBObjectStore"),s=e(r),t=a("./IDBIndex"),u=e(t),v=a("./IDBTransaction"),w=e(v),x=a("./IDBDatabase"),y=e(x),z=a("./polyfill"),A=e(z),B=a("./CFG"),C=e(B);(void 0!==d?d:"undefined"!=typeof window?window:self)._babelPolyfill=!1,c.default=g,b.exports=c.default}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./CFG":324,"./DOMException":325,"./IDBCursor":328,"./IDBDatabase":329,"./IDBFactory":330,"./IDBIndex":331,"./IDBKeyRange":332,"./IDBObjectStore":333,"./IDBRequest":334,"./IDBTransaction":335,"./IDBVersionChangeEvent":336,"./polyfill":341,"babel-polyfill":1}],343:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a){return"_"+a.replace(/\^/g,"^^").replace(/\0/g,"^0").replace(/([A-Z])/g,"^$1").replace(/([\uD800-\uDBFF])(?![\uDC00-\uDFFF])|(^|[^\uD800-\uDBFF])([\uDC00-\uDFFF])/g,function(a,b,c){return b?"^2"+b+"�":"^3�"+c})}function f(a){return a.replace(/\^/g,"^^").replace(/\0/g,"^0")}function g(a){return a.replace(/\^0/g,"\0").replace(/\^\^/g,"^")}function h(a){return a.replace(/"/g,'""')}function i(a){return'"'+h(a)+'"'}function j(a){if(H.default.escapeDatabaseName)return H.default.escapeDatabaseName(f(a));if(a="D"+e(a),H.default.escapeNFDForDatabaseNames!==!1&&(a=a.replace(new RegExp(J.default,"g"),function(a){return"^4"+a.codePointAt().toString(16).padStart(6,"0")})),H.default.databaseCharacterEscapeList!==!1&&(a=a.replace(H.default.databaseCharacterEscapeList?new RegExp(H.default.databaseCharacterEscapeList,"g"):/[\u0000-\u001F\u007F"*\/:<>?\\|]/g,function(a){return"^1"+a.charCodeAt().toString(16).padStart(2,"0")})),H.default.databaseNameLengthLimit!==!1&&a.length>=(H.default.databaseNameLengthLimit||254)-(H.default.addSQLiteExtension!==!1?7:0))throw new Error("Unexpectedly long database name supplied; length limit required for Node compatibility; passed length: "+a.length+"; length limit setting: "+(H.default.databaseNameLengthLimit||254)+".");return a+(H.default.addSQLiteExtension!==!1?".sqlite":"")}function k(a){return H.default.unescapeDatabaseName?H.default.unescapeDatabaseName(g(a)):a.slice(2).replace(/(\^+)1([0-9a-f]{2})/g,function(a,b,c){return b.length%2?String.fromCharCode(parseInt(c,16)):a}).replace(/(\^+)4([0-9a-f]{6})/g,function(a,b,c){return b.length%2?String.fromCodePoint(parseInt(c,16)):a}).replace(/(\^+)3\uD800([\uDC00-\uDFFF])/g,function(a,b,c){return b.length%2?c:a}).replace(/(\^+)2([\uD800-\uDBFF])\uDC00/g,function(a,b,c){return b.length%2?c:a}).replace(/(\^+)([A-Z])/g,function(a,b,c){return b.length%2?c:a}).replace(/(\^+)0/g,function(a,b){return b.length%2?"\0":a}).replace(/\^\^/g,"^")}function l(a){return i("S"+e(a))}function m(a){return i("I"+e(a))}function n(a){return"I"+e(a)}function o(a){return h(a).replace(/\^/g,"^^")}function p(a,b){return b[Symbol.hasInstance](a)}function q(a){return a&&"object"===(void 0===a?"undefined":F(a))}function r(a){return q(a)&&"function"==typeof a.getDate}function s(a){return q(a)&&"number"==typeof a.size&&"function"==typeof a.slice&&!("lastModified"in a)}function t(a){return q(a)&&"string"==typeof a.flags&&"function"==typeof a.exec}function u(a){return q(a)&&"string"==typeof a.name&&"function"==typeof a.slice&&"lastModified"in a}function v(a){return q(a)&&"number"==typeof a.byteLength&&("function"==typeof a.slice||"function"==typeof a.getFloat64)}function w(a){return q(a)&&"function"==typeof a[Symbol.iterator]}function x(a,b){b="string"==typeof b?[b]:b,b.forEach(function(b){Object.defineProperty(a,"__"+b,{enumerable:!1,configurable:!1,writable:!0}),Object.defineProperty(a,b,{enumerable:!0,configurable:!0,get:function(){return this["__"+b]}})})}function y(a){var b=H.default.UnicodeIDStart||"[$A-Z_a-z]",c=H.default.UnicodeIDContinue||"[$0-9A-Z_a-z]",d="(?:"+b+"|[$_]|\\\\"+K+")",e="(?:"+c+"|[$_]|\\\\"+K+"|\\u200C|\\u200D)";return new RegExp("^"+d+e+"*$").test(a)}function z(a){return"string"==typeof a&&(""===a||y(a)||a.split(".").every(y))}function A(a){return z(a)||Array.isArray(a)&&a.length&&Array.apply(null,a).every(function(a){return z(a)})}function B(a,b){a=Math.floor(Number(a));var c=void 0,d=void 0;switch(b){case"unsigned long long":c=9007199254740991,d=0;break;case"unsigned long":c=4294967295,d=0;break;default:throw new Error("Unrecognized type supplied to enforceRange")}if(isNaN(a)||!isFinite(a)||a>c||a ? \ | 'databaseNameLengthLimit', // Defaults to 254 (shortest typical modern file length limit) +'escapeNFDForDatabaseNames', // Boolean defaulting to true on whether to escape NFD-escaping +// characters to avoid clashes on MacOS which performs NFD on files +// Boolean on whether to add the `.sqlite` extension to file names; +// defaults to `true` +'addSQLiteExtension', + +// NODE-SPECIFIC CONFIG +// Boolean on whether to delete the database file itself after `deleteDatabase`; +// defaults to `true` as the database will be empty +'deleteDatabaseFiles', -// Optional Node WebSQL config +// NODE-SPECIFIC WEBSQL CONFIG 'sqlBusyTimeout', // Defaults to 1000 'sqlTrace', // Callback not used by default 'sqlProfile' // Callback not used by default @@ -9072,7 +9079,7 @@ var CFG = {}; exports.default = CFG; module.exports = exports['default']; -},{}],327:[function(require,module,exports){ +},{}],328:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -9380,7 +9387,7 @@ exports.ShimDOMException = ShimDOMException; exports.createDOMException = createDOMException; exports.webSQLErrback = webSQLErrback; -},{"./CFG":326}],328:[function(require,module,exports){ +},{"./CFG":327}],329:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -9566,7 +9573,7 @@ if (cleanInterface) { exports.default = DOMStringList; module.exports = exports['default']; -},{}],329:[function(require,module,exports){ +},{}],330:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -9600,7 +9607,7 @@ exports.ShimEvent = _eventtarget.ShimEvent; exports.ShimCustomEvent = _eventtarget.ShimCustomEvent; exports.ShimEventTarget = _eventtarget.ShimEventTarget; -},{"./util":343,"eventtarget":298}],330:[function(require,module,exports){ +},{"./util":344,"eventtarget":298}],331:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -10245,7 +10252,7 @@ Object.defineProperty(IDBCursorWithValue, 'prototype', { exports.IDBCursor = IDBCursor; exports.IDBCursorWithValue = IDBCursorWithValue; -},{"./CFG":326,"./DOMException":327,"./IDBFactory":332,"./IDBIndex":333,"./IDBKeyRange":334,"./IDBObjectStore":335,"./IDBRequest":336,"./IDBTransaction":337,"./Key":339,"./Sca":340,"./util":343}],331:[function(require,module,exports){ +},{"./CFG":327,"./DOMException":328,"./IDBFactory":333,"./IDBIndex":334,"./IDBKeyRange":335,"./IDBObjectStore":336,"./IDBRequest":337,"./IDBTransaction":338,"./Key":340,"./Sca":341,"./util":344}],332:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -10553,7 +10560,7 @@ Object.defineProperty(IDBDatabase, 'prototype', { exports.default = IDBDatabase; module.exports = exports['default']; -},{"./CFG":326,"./DOMException":327,"./DOMStringList":328,"./Event":329,"./IDBObjectStore":335,"./IDBTransaction":337,"./Sca":340,"./util":343,"eventtarget":298}],332:[function(require,module,exports){ +},{"./CFG":327,"./DOMException":328,"./DOMStringList":329,"./Event":330,"./IDBObjectStore":336,"./IDBTransaction":338,"./Sca":341,"./util":344,"eventtarget":298}],333:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -11106,7 +11113,7 @@ exports.IDBFactory = IDBFactory; exports.cmp = cmp; exports.shimIndexedDB = shimIndexedDB; -},{"./CFG":326,"./DOMException":327,"./DOMStringList":328,"./Event":329,"./IDBDatabase":331,"./IDBRequest":336,"./IDBTransaction":337,"./IDBVersionChangeEvent":338,"./Key":339,"./util":343,"fs":3,"path":299}],333:[function(require,module,exports){ +},{"./CFG":327,"./DOMException":328,"./DOMStringList":329,"./Event":330,"./IDBDatabase":332,"./IDBRequest":337,"./IDBTransaction":338,"./IDBVersionChangeEvent":339,"./Key":340,"./util":344,"fs":3,"path":299}],334:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -11722,7 +11729,7 @@ exports.executeFetchIndexData = executeFetchIndexData; exports.IDBIndex = IDBIndex; exports.default = IDBIndex; -},{"./CFG":326,"./DOMException":327,"./IDBCursor":330,"./IDBKeyRange":334,"./IDBObjectStore":335,"./IDBTransaction":337,"./Key":339,"./Sca":340,"./util":343}],334:[function(require,module,exports){ +},{"./CFG":327,"./DOMException":328,"./IDBCursor":331,"./IDBKeyRange":335,"./IDBObjectStore":336,"./IDBTransaction":338,"./Key":340,"./Sca":341,"./util":344}],335:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -11906,7 +11913,7 @@ exports.IDBKeyRange = IDBKeyRange; exports.convertValueToKeyRange = convertValueToKeyRange; exports.default = IDBKeyRange; -},{"./DOMException":327,"./Key":339,"./util":343}],335:[function(require,module,exports){ +},{"./DOMException":328,"./Key":340,"./util":344}],336:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -12790,7 +12797,7 @@ Object.defineProperty(IDBObjectStore, 'prototype', { exports.default = IDBObjectStore; module.exports = exports['default']; -},{"./CFG":326,"./DOMException":327,"./DOMStringList":328,"./IDBCursor":330,"./IDBIndex":333,"./IDBKeyRange":334,"./IDBTransaction":337,"./Key":339,"./Sca":340,"./util":343,"sync-promise":302}],336:[function(require,module,exports){ +},{"./CFG":327,"./DOMException":328,"./DOMStringList":329,"./IDBCursor":331,"./IDBIndex":334,"./IDBKeyRange":335,"./IDBTransaction":338,"./Key":340,"./Sca":341,"./util":344,"sync-promise":302}],337:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -13007,7 +13014,7 @@ Object.defineProperty(IDBOpenDBRequest, 'prototype', { exports.IDBRequest = IDBRequest; exports.IDBOpenDBRequest = IDBOpenDBRequest; -},{"./DOMException":327,"./util":343,"eventtarget":298}],337:[function(require,module,exports){ +},{"./DOMException":328,"./util":344,"eventtarget":298}],338:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -13623,7 +13630,7 @@ Object.defineProperty(IDBTransaction, 'prototype', { exports.default = IDBTransaction; module.exports = exports['default']; -},{"./CFG":326,"./DOMException":327,"./Event":329,"./IDBObjectStore":335,"./IDBRequest":336,"./util":343,"eventtarget":298,"sync-promise":302}],338:[function(require,module,exports){ +},{"./CFG":327,"./DOMException":328,"./Event":330,"./IDBObjectStore":336,"./IDBRequest":337,"./util":344,"eventtarget":298,"sync-promise":302}],339:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -13688,7 +13695,7 @@ Object.defineProperty(IDBVersionChangeEvent, 'prototype', { exports.default = IDBVersionChangeEvent; module.exports = exports['default']; -},{"./Event":329,"./util":343}],339:[function(require,module,exports){ +},{"./Event":330,"./util":344}],340:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -14502,7 +14509,7 @@ exports.findMultiEntryMatches = findMultiEntryMatches; exports.generateKeyForStore = generateKeyForStore; exports.possiblyUpdateKeyGenerator = possiblyUpdateKeyGenerator; -},{"./CFG":326,"./DOMException":327,"./IDBFactory":332,"./util":343}],340:[function(require,module,exports){ +},{"./CFG":327,"./DOMException":328,"./IDBFactory":333,"./util":344}],341:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -14566,7 +14573,7 @@ exports.encode = encode; exports.decode = decode; exports.clone = clone; -},{"./DOMException":327,"typeson":325,"typeson-registry/presets/structured-cloning-throwing":304}],341:[function(require,module,exports){ +},{"./DOMException":328,"typeson":325,"typeson-registry/presets/structured-cloning-throwing":304}],342:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -14928,7 +14935,7 @@ function validateKeyLength(key) { exports.default = polyfill; module.exports = exports['default']; -},{"./DOMException":327,"./Key":339}],342:[function(require,module,exports){ +},{"./DOMException":328,"./Key":340}],343:[function(require,module,exports){ (function (global){ 'use strict'; @@ -15155,7 +15162,7 @@ exports.default = setGlobalVars; module.exports = exports['default']; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"./CFG":326,"./DOMException":327,"./IDBCursor":330,"./IDBDatabase":331,"./IDBFactory":332,"./IDBIndex":333,"./IDBKeyRange":334,"./IDBObjectStore":335,"./IDBRequest":336,"./IDBTransaction":337,"./IDBVersionChangeEvent":338,"./polyfill":341,"babel-polyfill":1}],343:[function(require,module,exports){ +},{"./CFG":327,"./DOMException":328,"./IDBCursor":331,"./IDBDatabase":332,"./IDBFactory":333,"./IDBIndex":334,"./IDBKeyRange":335,"./IDBObjectStore":336,"./IDBRequest":337,"./IDBTransaction":338,"./IDBVersionChangeEvent":339,"./polyfill":342,"babel-polyfill":1}],344:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -15169,6 +15176,10 @@ var _CFG = require('./CFG'); var _CFG2 = _interopRequireDefault(_CFG); +var _regex = require('unicode-9.0.0/Binary_Property/Expands_On_NFD/regex'); + +var _regex2 = _interopRequireDefault(_regex); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function escapeNameForSQLiteIdentifier(arg) { @@ -15219,6 +15230,12 @@ function escapeDatabaseNameForSQLAndFiles(db) { return _CFG2.default.escapeDatabaseName(escapeSQLiteStatement(db)); } db = 'D' + escapeNameForSQLiteIdentifier(db); + if (_CFG2.default.escapeNFDForDatabaseNames !== false) { + // ES6 copying of regex with different flags + db = db.replace(new RegExp(_regex2.default, 'g'), function (expandable) { + return '^4' + expandable.codePointAt().toString(16).padStart(6, '0'); + }); + } if (_CFG2.default.databaseCharacterEscapeList !== false) { db = db.replace(_CFG2.default.databaseCharacterEscapeList ? new RegExp(_CFG2.default.databaseCharacterEscapeList, 'g') : /[\u0000-\u001F\u007F"*/:<>?\\|]/g, function (n0) { return '^1' + n0.charCodeAt().toString(16).padStart(2, '0'); @@ -15241,17 +15258,23 @@ function unescapeDatabaseNameForSQLAndFiles(db) { } return db.slice(2) // D_ + // CFG.databaseCharacterEscapeList .replace(/(\^+)1([0-9a-f]{2})/g, function (_, esc, hex) { - return esc % 2 ? String.fromCharCode(parseInt(hex, 16)) : _; - }) // databaseCharacterEscapeList + return esc.length % 2 ? String.fromCharCode(parseInt(hex, 16)) : _; + }) + // CFG.escapeNFDForDatabaseNames + .replace(/(\^+)4([0-9a-f]{6})/g, function (_, esc, hex) { + return esc.length % 2 ? String.fromCodePoint(parseInt(hex, 16)) : _; + }) + // escapeNameForSQLiteIdentifier .replace(/(\^+)3\uD800([\uDC00-\uDFFF])/g, function (_, esc, lowSurr) { - return esc % 2 ? lowSurr : _; + return esc.length % 2 ? lowSurr : _; }).replace(/(\^+)2([\uD800-\uDBFF])\uDC00/g, function (_, esc, highSurr) { - return esc % 2 ? highSurr : _; + return esc.length % 2 ? highSurr : _; }).replace(/(\^+)([A-Z])/g, function (_, esc, upperCase) { - return esc % 2 ? upperCase : _; + return esc.length % 2 ? upperCase : _; }).replace(/(\^+)0/g, function (_, esc) { - return esc % 2 ? '\0' : _; + return esc.length % 2 ? '\0' : _; }).replace(/\^\^/g, '^'); } @@ -15427,4 +15450,4 @@ exports.enforceRange = enforceRange; exports.convertToDOMString = convertToDOMString; exports.convertToSequenceDOMString = convertToSequenceDOMString; -},{"./CFG":326}]},{},[342]); +},{"./CFG":327,"unicode-9.0.0/Binary_Property/Expands_On_NFD/regex":326}]},{},[343]); diff --git a/dist/indexeddbshim-noninvasive.min.js b/dist/indexeddbshim-noninvasive.min.js index e4d42871..b9372fb4 100644 --- a/dist/indexeddbshim-noninvasive.min.js +++ b/dist/indexeddbshim-noninvasive.min.js @@ -4,9 +4,9 @@ "./_defined":29,"./_to-integer":108}],100:[function(a,b,c){var d=a("./_is-regexp"),e=a("./_defined");b.exports=function(a,b,c){if(d(b))throw TypeError("String#"+c+" doesn't accept regex!");return String(e(a))}},{"./_defined":29,"./_is-regexp":52}],101:[function(a,b,c){var d=a("./_export"),e=a("./_fails"),f=a("./_defined"),g=function(a,b,c,d){var e=String(f(a)),g="<"+b;return""!==c&&(g+=" "+c+'="'+String(d).replace(/"/g,""")+'"'),g+">"+e+""};b.exports=function(a,b){var c={};c[a]=b(g),d(d.P+d.F*e(function(){var b=""[a]('"');return b!==b.toLowerCase()||b.split('"').length>3}),"String",c)}},{"./_defined":29,"./_export":34,"./_fails":36}],102:[function(a,b,c){var d=a("./_to-length"),e=a("./_string-repeat"),f=a("./_defined");b.exports=function(a,b,c,g){var h=String(f(a)),i=h.length,j=void 0===c?" ":String(c),k=d(b);if(k<=i||""==j)return h;var l=k-i,m=e.call(j,Math.ceil(l/j.length));return m.length>l&&(m=m.slice(0,l)),g?m+h:h+m}},{"./_defined":29,"./_string-repeat":103,"./_to-length":110}],103:[function(a,b,c){"use strict";var d=a("./_to-integer"),e=a("./_defined");b.exports=function(a){var b=String(e(this)),c="",f=d(a);if(f<0||1/0==f)throw RangeError("Count can't be negative");for(;f>0;(f>>>=1)&&(b+=b))1&f&&(c+=b);return c}},{"./_defined":29,"./_to-integer":108}],104:[function(a,b,c){var d=a("./_export"),e=a("./_defined"),f=a("./_fails"),g=a("./_string-ws"),h="["+g+"]",i="​…",j=RegExp("^"+h+h+"*"),k=RegExp(h+h+"*$"),l=function(a,b,c){var e={},h=f(function(){return!!g[a]()||i[a]()!=i}),j=e[a]=h?b(m):g[a];c&&(e[c]=j),d(d.P+d.F*h,"String",e)},m=l.trim=function(a,b){return a=String(e(a)),1&b&&(a=a.replace(j,"")),2&b&&(a=a.replace(k,"")),a};b.exports=l},{"./_defined":29,"./_export":34,"./_fails":36,"./_string-ws":105}],105:[function(a,b,c){b.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},{}],106:[function(a,b,c){var d,e,f,g=a("./_ctx"),h=a("./_invoke"),i=a("./_html"),j=a("./_dom-create"),k=a("./_global"),l=k.process,m=k.setImmediate,n=k.clearImmediate,o=k.MessageChannel,p=0,q={},r=function(){var a=+this;if(q.hasOwnProperty(a)){var b=q[a];delete q[a],b()}},s=function(a){r.call(a.data)};m&&n||(m=function(a){for(var b=[],c=1;arguments.length>c;)b.push(arguments[c++]);return q[++p]=function(){h("function"==typeof a?a:Function(a),b)},d(p),p},n=function(a){delete q[a]},"process"==a("./_cof")(l)?d=function(a){l.nextTick(g(r,a,1))}:o?(e=new o,f=e.port2,e.port1.onmessage=s,d=g(f.postMessage,f,1)):k.addEventListener&&"function"==typeof postMessage&&!k.importScripts?(d=function(a){k.postMessage(a+"","*")},k.addEventListener("message",s,!1)):d="onreadystatechange"in j("script")?function(a){i.appendChild(j("script")).onreadystatechange=function(){i.removeChild(this),r.call(a)}}:function(a){setTimeout(g(r,a,1),0)}),b.exports={set:m,clear:n}},{"./_cof":20,"./_ctx":27,"./_dom-create":31,"./_global":40,"./_html":43,"./_invoke":46}],107:[function(a,b,c){var d=a("./_to-integer"),e=Math.max,f=Math.min;b.exports=function(a,b){return a=d(a),a<0?e(a+b,0):f(a,b)}},{"./_to-integer":108}],108:[function(a,b,c){var d=Math.ceil,e=Math.floor;b.exports=function(a){return isNaN(a=+a)?0:(a>0?e:d)(a)}},{}],109:[function(a,b,c){var d=a("./_iobject"),e=a("./_defined");b.exports=function(a){return d(e(a))}},{"./_defined":29,"./_iobject":47}],110:[function(a,b,c){var d=a("./_to-integer"),e=Math.min;b.exports=function(a){return a>0?e(d(a),9007199254740991):0}},{"./_to-integer":108}],111:[function(a,b,c){var d=a("./_defined");b.exports=function(a){return Object(d(a))}},{"./_defined":29}],112:[function(a,b,c){var d=a("./_is-object");b.exports=function(a,b){if(!d(a))return a;var c,e;if(b&&"function"==typeof(c=a.toString)&&!d(e=c.call(a)))return e;if("function"==typeof(c=a.valueOf)&&!d(e=c.call(a)))return e;if(!b&&"function"==typeof(c=a.toString)&&!d(e=c.call(a)))return e;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":51}],113:[function(a,b,c){"use strict";if(a("./_descriptors")){var d=a("./_library"),e=a("./_global"),f=a("./_fails"),g=a("./_export"),h=a("./_typed"),i=a("./_typed-buffer"),j=a("./_ctx"),k=a("./_an-instance"),l=a("./_property-desc"),m=a("./_hide"),n=a("./_redefine-all"),o=a("./_to-integer"),p=a("./_to-length"),q=a("./_to-index"),r=a("./_to-primitive"),s=a("./_has"),t=a("./_same-value"),u=a("./_classof"),v=a("./_is-object"),w=a("./_to-object"),x=a("./_is-array-iter"),y=a("./_object-create"),z=a("./_object-gpo"),A=a("./_object-gopn").f,B=a("./core.get-iterator-method"),C=a("./_uid"),D=a("./_wks"),E=a("./_array-methods"),F=a("./_array-includes"),G=a("./_species-constructor"),H=a("./es6.array.iterator"),I=a("./_iterators"),J=a("./_iter-detect"),K=a("./_set-species"),L=a("./_array-fill"),M=a("./_array-copy-within"),N=a("./_object-dp"),O=a("./_object-gopd"),P=N.f,Q=O.f,R=e.RangeError,S=e.TypeError,T=e.Uint8Array,U=Array.prototype,V=i.ArrayBuffer,W=i.DataView,X=E(0),Y=E(2),Z=E(3),$=E(4),_=E(5),aa=E(6),ba=F(!0),ca=F(!1),da=H.values,ea=H.keys,fa=H.entries,ga=U.lastIndexOf,ha=U.reduce,ia=U.reduceRight,ja=U.join,ka=U.sort,la=U.slice,ma=U.toString,na=U.toLocaleString,oa=D("iterator"),pa=D("toStringTag"),qa=C("typed_constructor"),ra=C("def_constructor"),sa=h.CONSTR,ta=h.TYPED,ua=h.VIEW,va=E(1,function(a,b){return Ba(G(a,a[ra]),b)}),wa=f(function(){return 1===new T(new Uint16Array([1]).buffer)[0]}),xa=!!T&&!!T.prototype.set&&f(function(){new T(1).set({})}),ya=function(a,b){if(void 0===a)throw S("Wrong length!");var c=+a,d=p(a);if(b&&!t(c,d))throw R("Wrong length!");return d},za=function(a,b){var c=o(a);if(c<0||c%b)throw R("Wrong offset!");return c},Aa=function(a){if(v(a)&&ta in a)return a;throw S(a+" is not a typed array!")},Ba=function(a,b){if(!(v(a)&&qa in a))throw S("It is not a typed array constructor!");return new a(b)},Ca=function(a,b){return Da(G(a,a[ra]),b)},Da=function(a,b){for(var c=0,d=b.length,e=Ba(a,d);d>c;)e[c]=b[c++];return e},Ea=function(a,b,c){P(a,b,{get:function(){return this._d[c]}})},Fa=function(a){var b,c,d,e,f,g,h=w(a),i=arguments.length,k=i>1?arguments[1]:void 0,l=void 0!==k,m=B(h);if(void 0!=m&&!x(m)){for(g=m.call(h),d=[],b=0;!(f=g.next()).done;b++)d.push(f.value);h=d}for(l&&i>2&&(k=j(k,arguments[2],2)),b=0,c=p(h.length),e=Ba(this,c);c>b;b++)e[b]=l?k(h[b],b):h[b];return e},Ga=function(){for(var a=0,b=arguments.length,c=Ba(this,b);b>a;)c[a]=arguments[a++];return c},Ha=!!T&&f(function(){na.call(new T(1))}),Ia=function(){return na.apply(Ha?la.call(Aa(this)):Aa(this),arguments)},Ja={copyWithin:function(a,b){return M.call(Aa(this),a,b,arguments.length>2?arguments[2]:void 0)},every:function(a){return $(Aa(this),a,arguments.length>1?arguments[1]:void 0)},fill:function(a){return L.apply(Aa(this),arguments)},filter:function(a){return Ca(this,Y(Aa(this),a,arguments.length>1?arguments[1]:void 0))},find:function(a){return _(Aa(this),a,arguments.length>1?arguments[1]:void 0)},findIndex:function(a){return aa(Aa(this),a,arguments.length>1?arguments[1]:void 0)},forEach:function(a){X(Aa(this),a,arguments.length>1?arguments[1]:void 0)},indexOf:function(a){return ca(Aa(this),a,arguments.length>1?arguments[1]:void 0)},includes:function(a){return ba(Aa(this),a,arguments.length>1?arguments[1]:void 0)},join:function(a){return ja.apply(Aa(this),arguments)},lastIndexOf:function(a){return ga.apply(Aa(this),arguments)},map:function(a){return va(Aa(this),a,arguments.length>1?arguments[1]:void 0)},reduce:function(a){return ha.apply(Aa(this),arguments)},reduceRight:function(a){return ia.apply(Aa(this),arguments)},reverse:function(){for(var a,b=this,c=Aa(b).length,d=Math.floor(c/2),e=0;e1?arguments[1]:void 0)},sort:function(a){return ka.call(Aa(this),a)},subarray:function(a,b){var c=Aa(this),d=c.length,e=q(a,d);return new(G(c,c[ra]))(c.buffer,c.byteOffset+e*c.BYTES_PER_ELEMENT,p((void 0===b?d:q(b,d))-e))}},Ka=function(a,b){return Ca(this,la.call(Aa(this),a,b))},La=function(a){Aa(this);var b=za(arguments[1],1),c=this.length,d=w(a),e=p(d.length),f=0;if(e+b>c)throw R("Wrong length!");for(;f255?255:255&d),e.v[o](c*b+e.o,d,wa)},D=function(a,b){P(a,b,{get:function(){return B(this,b)},set:function(a){return C(this,b,a)},enumerable:!0})};t?(q=c(function(a,c,d,e){k(a,q,j,"_d");var f,g,h,i,l=0,n=0;if(v(c)){if(!(c instanceof V||"ArrayBuffer"==(i=u(c))||"SharedArrayBuffer"==i))return ta in c?Da(q,c):Fa.call(q,c);f=c,n=za(d,b);var o=c.byteLength;if(void 0===e){if(o%b)throw R("Wrong length!");if((g=o-n)<0)throw R("Wrong length!")}else if((g=p(e)*b)+n>o)throw R("Wrong length!");h=g/b}else h=ya(c,!0),g=h*b,f=new V(g);for(m(a,"_d",{b:f,o:n,l:g,e:h,v:new W(f)});l>1,k=23===b?y(2,-24)-y(2,-77):0,l=0,m=a<0||0===a&&1/a<0?1:0;for(a=x(a),a!=a||a===v?(e=a!=a?1:0,d=i):(d=z(A(a)/B),a*(f=y(2,-d))<1&&(d--,f*=2),a+=d+j>=1?k/f:k*y(2,1-j),a*f>=2&&(d++,f/=2),d+j>=i?(e=0,d=i):d+j>=1?(e=(a*f-1)*y(2,b),d+=j):(e=a*y(2,j-1)*y(2,b),d=0));b>=8;g[l++]=255&e,e/=256,b-=8);for(d=d<0;g[l++]=255&d,d/=256,h-=8);return g[--l]|=128*m,g},G=function(a,b,c){var d,e=8*c-b-1,f=(1<>1,h=e-7,i=c-1,j=a[i--],k=127&j;for(j>>=7;h>0;k=256*k+a[i],i--,h-=8);for(d=k&(1<<-h)-1,k>>=-h,h+=b;h>0;d=256*d+a[i],i--,h-=8);if(0===k)k=1-g;else{if(k===f)return d?0/0:j?-v:v;d+=y(2,b),k-=g}return(j?-1:1)*d*y(2,k-b)},H=function(a){return a[3]<<24|a[2]<<16|a[1]<<8|a[0]},I=function(a){return[255&a]},J=function(a){return[255&a,a>>8&255]},K=function(a){return[255&a,a>>8&255,a>>16&255,a>>24&255]},L=function(a){return F(a,52,8)},M=function(a){return F(a,23,4)},N=function(a,b,c){o(a.prototype,b,{get:function(){return this[c]}})},O=function(a,b,c,d){var e=+c,f=l(e);if(e!=f||f<0||f+b>a[D])throw u("Wrong index!");var g=a[C]._b,h=f+a[E],i=g.slice(h,h+b);return d?i:i.reverse()},P=function(a,b,c,d,e,f){var g=+c,h=l(g);if(g!=h||h<0||h+b>a[D])throw u("Wrong index!");for(var i=a[C]._b,j=h+a[E],k=d(+e),m=0;mU;)(R=T[U++])in r||h(r,R,w[R]);f||(S.constructor=r)}var V=new s(new r(2)),W=s.prototype.setInt8;V.setInt8(0,2147483648),V.setInt8(1,2147483649),!V.getInt8(0)&&V.getInt8(1)||i(s.prototype,{setInt8:function(a,b){W.call(this,a,b<<24>>24)},setUint8:function(a,b){W.call(this,a,b<<24>>24)}},!0)}else r=function(a){var b=Q(this,a);this._b=p.call(Array(b),0),this[D]=b},s=function(a,b,c){k(this,s,"DataView"),k(a,r,"DataView");var d=a[D],e=l(b);if(e<0||e>d)throw u("Wrong offset!");if(c=void 0===c?d-e:m(c),e+c>d)throw u("Wrong length!");this[C]=a,this[E]=e,this[D]=c},e&&(N(r,"byteLength","_l"),N(s,"buffer","_b"),N(s,"byteLength","_l"),N(s,"byteOffset","_o")),i(s.prototype,{getInt8:function(a){return O(this,1,a)[0]<<24>>24},getUint8:function(a){return O(this,1,a)[0]},getInt16:function(a){var b=O(this,2,a,arguments[1]);return(b[1]<<8|b[0])<<16>>16},getUint16:function(a){var b=O(this,2,a,arguments[1]);return b[1]<<8|b[0]},getInt32:function(a){return H(O(this,4,a,arguments[1]))},getUint32:function(a){return H(O(this,4,a,arguments[1]))>>>0},getFloat32:function(a){return G(O(this,4,a,arguments[1]),23,4)},getFloat64:function(a){return G(O(this,8,a,arguments[1]),52,8)},setInt8:function(a,b){P(this,1,a,I,b)},setUint8:function(a,b){P(this,1,a,I,b)},setInt16:function(a,b){P(this,2,a,J,b,arguments[2])},setUint16:function(a,b){P(this,2,a,J,b,arguments[2])},setInt32:function(a,b){P(this,4,a,K,b,arguments[2])},setUint32:function(a,b){P(this,4,a,K,b,arguments[2])},setFloat32:function(a,b){P(this,4,a,M,b,arguments[2])},setFloat64:function(a,b){P(this,8,a,L,b,arguments[2])}});q(r,"ArrayBuffer"),q(s,"DataView"),h(s.prototype,g.VIEW,!0),c.ArrayBuffer=r,c.DataView=s},{"./_an-instance":8,"./_array-fill":11,"./_descriptors":30,"./_fails":36,"./_global":40,"./_hide":42,"./_library":60,"./_object-dp":69,"./_object-gopn":74,"./_redefine-all":88,"./_set-to-string-tag":94,"./_to-integer":108,"./_to-length":110,"./_typed":115}],115:[function(a,b,c){for(var d,e=a("./_global"),f=a("./_hide"),g=a("./_uid"),h=g("typed_array"),i=g("view"),j=!(!e.ArrayBuffer||!e.DataView),k=j,l=0,m="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(d=e[m[l++]])?(f(d.prototype,h,!0),f(d.prototype,i,!0)):k=!1;b.exports={ABV:j,CONSTR:k,TYPED:h,VIEW:i}},{"./_global":40,"./_hide":42,"./_uid":116}],116:[function(a,b,c){var d=0,e=Math.random();b.exports=function(a){return"Symbol(".concat(void 0===a?"":a,")_",(++d+e).toString(36))}},{}],117:[function(a,b,c){var d=a("./_global"),e=a("./_core"),f=a("./_library"),g=a("./_wks-ext"),h=a("./_object-dp").f;b.exports=function(a){var b=e.Symbol||(e.Symbol=f?{}:d.Symbol||{});"_"==a.charAt(0)||a in b||h(b,a,{value:g.f(a)})}},{"./_core":25,"./_global":40,"./_library":60,"./_object-dp":69,"./_wks-ext":118}],118:[function(a,b,c){c.f=a("./_wks")},{"./_wks":119}],119:[function(a,b,c){var d=a("./_shared")("wks"),e=a("./_uid"),f=a("./_global").Symbol,g="function"==typeof f;(b.exports=function(a){return d[a]||(d[a]=g&&f[a]||(g?f:e)("Symbol."+a))}).store=d},{"./_global":40,"./_shared":96,"./_uid":116}],120:[function(a,b,c){var d=a("./_classof"),e=a("./_wks")("iterator"),f=a("./_iterators");b.exports=a("./_core").getIteratorMethod=function(a){if(void 0!=a)return a[e]||a["@@iterator"]||f[d(a)]}},{"./_classof":19,"./_core":25,"./_iterators":58,"./_wks":119}],121:[function(a,b,c){var d=a("./_export"),e=a("./_replacer")(/[\\^$*+?.()|[\]{}]/g,"\\$&");d(d.S,"RegExp",{escape:function(a){return e(a)}})},{"./_export":34,"./_replacer":90}],122:[function(a,b,c){var d=a("./_export");d(d.P,"Array",{copyWithin:a("./_array-copy-within")}),a("./_add-to-unscopables")("copyWithin")},{"./_add-to-unscopables":7,"./_array-copy-within":10,"./_export":34}],123:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-methods")(4);d(d.P+d.F*!a("./_strict-method")([].every,!0),"Array",{every:function(a){return e(this,a,arguments[1])}})},{"./_array-methods":14,"./_export":34,"./_strict-method":98}],124:[function(a,b,c){var d=a("./_export");d(d.P,"Array",{fill:a("./_array-fill")}),a("./_add-to-unscopables")("fill")},{"./_add-to-unscopables":7,"./_array-fill":11,"./_export":34}],125:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-methods")(2);d(d.P+d.F*!a("./_strict-method")([].filter,!0),"Array",{filter:function(a){return e(this,a,arguments[1])}})},{"./_array-methods":14,"./_export":34,"./_strict-method":98}],126:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-methods")(6),f="findIndex",g=!0;f in[]&&Array(1)[f](function(){g=!1}),d(d.P+d.F*g,"Array",{findIndex:function(a){return e(this,a,arguments.length>1?arguments[1]:void 0)}}),a("./_add-to-unscopables")(f)},{"./_add-to-unscopables":7,"./_array-methods":14,"./_export":34}],127:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-methods")(5),f=!0;"find"in[]&&Array(1).find(function(){f=!1}),d(d.P+d.F*f,"Array",{find:function(a){return e(this,a,arguments.length>1?arguments[1]:void 0)}}),a("./_add-to-unscopables")("find")},{"./_add-to-unscopables":7,"./_array-methods":14,"./_export":34}],128:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-methods")(0),f=a("./_strict-method")([].forEach,!0);d(d.P+d.F*!f,"Array",{forEach:function(a){return e(this,a,arguments[1])}})},{"./_array-methods":14,"./_export":34,"./_strict-method":98}],129:[function(a,b,c){"use strict";var d=a("./_ctx"),e=a("./_export"),f=a("./_to-object"),g=a("./_iter-call"),h=a("./_is-array-iter"),i=a("./_to-length"),j=a("./_create-property"),k=a("./core.get-iterator-method");e(e.S+e.F*!a("./_iter-detect")(function(a){Array.from(a)}),"Array",{from:function(a){var b,c,e,l,m=f(a),n="function"==typeof this?this:Array,o=arguments.length,p=o>1?arguments[1]:void 0,q=void 0!==p,r=0,s=k(m);if(q&&(p=d(p,o>2?arguments[2]:void 0,2)),void 0==s||n==Array&&h(s))for(b=i(m.length),c=new n(b);b>r;r++)j(c,r,q?p(m[r],r):m[r]);else for(l=s.call(m),c=new n;!(e=l.next()).done;r++)j(c,r,q?g(l,p,[e.value,r],!0):e.value);return c.length=r,c}})},{"./_create-property":26,"./_ctx":27,"./_export":34,"./_is-array-iter":48,"./_iter-call":53,"./_iter-detect":56,"./_to-length":110,"./_to-object":111,"./core.get-iterator-method":120}],130:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-includes")(!1),f=[].indexOf,g=!!f&&1/[1].indexOf(1,-0)<0;d(d.P+d.F*(g||!a("./_strict-method")(f)),"Array",{indexOf:function(a){return g?f.apply(this,arguments)||0:e(this,a,arguments[1])}})},{"./_array-includes":13,"./_export":34,"./_strict-method":98}],131:[function(a,b,c){var d=a("./_export");d(d.S,"Array",{isArray:a("./_is-array")})},{"./_export":34,"./_is-array":49}],132:[function(a,b,c){"use strict";var d=a("./_add-to-unscopables"),e=a("./_iter-step"),f=a("./_iterators"),g=a("./_to-iobject");b.exports=a("./_iter-define")(Array,"Array",function(a,b){this._t=g(a),this._i=0,this._k=b},function(){var a=this._t,b=this._k,c=this._i++;return!a||c>=a.length?(this._t=void 0,e(1)):"keys"==b?e(0,c):"values"==b?e(0,a[c]):e(0,[c,a[c]])},"values"),f.Arguments=f.Array,d("keys"),d("values"),d("entries")},{"./_add-to-unscopables":7,"./_iter-define":55,"./_iter-step":57,"./_iterators":58,"./_to-iobject":109}],133:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-iobject"),f=[].join;d(d.P+d.F*(a("./_iobject")!=Object||!a("./_strict-method")(f)),"Array",{join:function(a){return f.call(e(this),void 0===a?",":a)}})},{"./_export":34,"./_iobject":47,"./_strict-method":98,"./_to-iobject":109}],134:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-iobject"),f=a("./_to-integer"),g=a("./_to-length"),h=[].lastIndexOf,i=!!h&&1/[1].lastIndexOf(1,-0)<0;d(d.P+d.F*(i||!a("./_strict-method")(h)),"Array",{lastIndexOf:function(a){if(i)return h.apply(this,arguments)||0;var b=e(this),c=g(b.length),d=c-1;for(arguments.length>1&&(d=Math.min(d,f(arguments[1]))),d<0&&(d=c+d);d>=0;d--)if(d in b&&b[d]===a)return d||0;return-1}})},{"./_export":34,"./_strict-method":98,"./_to-integer":108,"./_to-iobject":109,"./_to-length":110}],135:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-methods")(1);d(d.P+d.F*!a("./_strict-method")([].map,!0),"Array",{map:function(a){return e(this,a,arguments[1])}})},{"./_array-methods":14,"./_export":34,"./_strict-method":98}],136:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_create-property");d(d.S+d.F*a("./_fails")(function(){function a(){}return!(Array.of.call(a)instanceof a)}),"Array",{of:function(){for(var a=0,b=arguments.length,c=new("function"==typeof this?this:Array)(b);b>a;)e(c,a,arguments[a++]);return c.length=b,c}})},{"./_create-property":26,"./_export":34,"./_fails":36}],137:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-reduce");d(d.P+d.F*!a("./_strict-method")([].reduceRight,!0),"Array",{reduceRight:function(a){return e(this,a,arguments.length,arguments[1],!0)}})},{"./_array-reduce":15,"./_export":34,"./_strict-method":98}],138:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-reduce");d(d.P+d.F*!a("./_strict-method")([].reduce,!0),"Array",{reduce:function(a){return e(this,a,arguments.length,arguments[1],!1)}})},{"./_array-reduce":15,"./_export":34,"./_strict-method":98}],139:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_html"),f=a("./_cof"),g=a("./_to-index"),h=a("./_to-length"),i=[].slice;d(d.P+d.F*a("./_fails")(function(){e&&i.call(e)}),"Array",{slice:function(a,b){var c=h(this.length),d=f(this);if(b=void 0===b?c:b,"Array"==d)return i.call(this,a,b);for(var e=g(a,c),j=g(b,c),k=h(j-e),l=Array(k),m=0;m9?a:"0"+a};d(d.P+d.F*(e(function(){return"0385-07-25T07:06:39.999Z"!=new Date(-5e13-1).toISOString()})||!e(function(){new Date(0/0).toISOString()})),"Date",{toISOString:function(){if(!isFinite(f.call(this)))throw RangeError("Invalid time value");var a=this,b=a.getUTCFullYear(),c=a.getUTCMilliseconds(),d=b<0?"-":b>9999?"+":"";return d+("00000"+Math.abs(b)).slice(d?-6:-4)+"-"+g(a.getUTCMonth()+1)+"-"+g(a.getUTCDate())+"T"+g(a.getUTCHours())+":"+g(a.getUTCMinutes())+":"+g(a.getUTCSeconds())+"."+(c>99?c:"0"+g(c))+"Z"}})},{"./_export":34,"./_fails":36}],145:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-object"),f=a("./_to-primitive");d(d.P+d.F*a("./_fails")(function(){return null!==new Date(0/0).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(a){var b=e(this),c=f(b);return"number"!=typeof c||isFinite(c)?b.toISOString():null}})},{"./_export":34,"./_fails":36,"./_to-object":111,"./_to-primitive":112}],146:[function(a,b,c){var d=a("./_wks")("toPrimitive"),e=Date.prototype;d in e||a("./_hide")(e,d,a("./_date-to-primitive"))},{"./_date-to-primitive":28,"./_hide":42,"./_wks":119}],147:[function(a,b,c){var d=Date.prototype,e=d.toString,f=d.getTime;new Date(0/0)+""!="Invalid Date"&&a("./_redefine")(d,"toString",function(){var a=f.call(this);return a===a?e.call(this):"Invalid Date"})},{"./_redefine":89}],148:[function(a,b,c){var d=a("./_export");d(d.P,"Function",{bind:a("./_bind")})},{"./_bind":18,"./_export":34}],149:[function(a,b,c){"use strict";var d=a("./_is-object"),e=a("./_object-gpo"),f=a("./_wks")("hasInstance"),g=Function.prototype;f in g||a("./_object-dp").f(g,f,{value:function(a){if("function"!=typeof this||!d(a))return!1;if(!d(this.prototype))return a instanceof this;for(;a=e(a);)if(this.prototype===a)return!0;return!1}})},{"./_is-object":51,"./_object-dp":69,"./_object-gpo":76,"./_wks":119}],150:[function(a,b,c){var d=a("./_object-dp").f,e=a("./_property-desc"),f=a("./_has"),g=Function.prototype,h=Object.isExtensible||function(){return!0};"name"in g||a("./_descriptors")&&d(g,"name",{configurable:!0,get:function(){try{var a=this,b=(""+a).match(/^\s*function ([^ (]*)/)[1];return f(a,"name")||!h(a)||d(a,"name",e(5,b)),b}catch(a){return""}}})},{"./_descriptors":30,"./_has":41,"./_object-dp":69,"./_property-desc":87}],151:[function(a,b,c){"use strict";var d=a("./_collection-strong");b.exports=a("./_collection")("Map",function(a){return function(){return a(this,arguments.length>0?arguments[0]:void 0)}},{get:function(a){var b=d.getEntry(this,a);return b&&b.v},set:function(a,b){return d.def(this,0===a?0:a,b)}},d,!0)},{"./_collection":24,"./_collection-strong":21}],152:[function(a,b,c){var d=a("./_export"),e=a("./_math-log1p"),f=Math.sqrt,g=Math.acosh;d(d.S+d.F*!(g&&710==Math.floor(g(Number.MAX_VALUE))&&1/0==g(1/0)),"Math",{acosh:function(a){return(a=+a)<1?0/0:a>94906265.62425156?Math.log(a)+Math.LN2:e(a-1+f(a-1)*f(a+1))}})},{"./_export":34,"./_math-log1p":62}],153:[function(a,b,c){function d(a){return isFinite(a=+a)&&0!=a?a<0?-d(-a):Math.log(a+Math.sqrt(a*a+1)):a}var e=a("./_export"),f=Math.asinh;e(e.S+e.F*!(f&&1/f(0)>0),"Math",{asinh:d})},{"./_export":34}],154:[function(a,b,c){var d=a("./_export"),e=Math.atanh;d(d.S+d.F*!(e&&1/e(-0)<0),"Math",{atanh:function(a){return 0==(a=+a)?a:Math.log((1+a)/(1-a))/2}})},{"./_export":34}],155:[function(a,b,c){var d=a("./_export"),e=a("./_math-sign");d(d.S,"Math",{cbrt:function(a){return e(a=+a)*Math.pow(Math.abs(a),1/3)}})},{"./_export":34,"./_math-sign":63}],156:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{clz32:function(a){return(a>>>=0)?31-Math.floor(Math.log(a+.5)*Math.LOG2E):32}})},{"./_export":34}],157:[function(a,b,c){var d=a("./_export"),e=Math.exp;d(d.S,"Math",{cosh:function(a){return(e(a=+a)+e(-a))/2}})},{"./_export":34}],158:[function(a,b,c){var d=a("./_export"),e=a("./_math-expm1");d(d.S+d.F*(e!=Math.expm1),"Math",{expm1:e})},{"./_export":34,"./_math-expm1":61}],159:[function(a,b,c){var d=a("./_export"),e=a("./_math-sign"),f=Math.pow,g=f(2,-52),h=f(2,-23),i=f(2,127)*(2-h),j=f(2,-126),k=function(a){return a+1/g-1/g};d(d.S,"Math",{fround:function(a){var b,c,d=Math.abs(a),f=e(a);return di||c!=c?1/0*f:f*c)}})},{"./_export":34,"./_math-sign":63}],160:[function(a,b,c){var d=a("./_export"),e=Math.abs;d(d.S,"Math",{hypot:function(a,b){for(var c,d,f=0,g=0,h=arguments.length,i=0;g0?(d=c/i,f+=d*d):f+=c;return 1/0===i?1/0:i*Math.sqrt(f)}})},{"./_export":34}],161:[function(a,b,c){var d=a("./_export"),e=Math.imul;d(d.S+d.F*a("./_fails")(function(){return e(4294967295,5)!=-5||2!=e.length}),"Math",{imul:function(a,b){var c=+a,d=+b,e=65535&c,f=65535&d;return 0|e*f+((65535&c>>>16)*f+e*(65535&d>>>16)<<16>>>0)}})},{"./_export":34,"./_fails":36}],162:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{log10:function(a){return Math.log(a)/Math.LN10}})},{"./_export":34}],163:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{log1p:a("./_math-log1p")})},{"./_export":34,"./_math-log1p":62}],164:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{log2:function(a){return Math.log(a)/Math.LN2}})},{"./_export":34}],165:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{sign:a("./_math-sign")})},{"./_export":34,"./_math-sign":63}],166:[function(a,b,c){var d=a("./_export"),e=a("./_math-expm1"),f=Math.exp;d(d.S+d.F*a("./_fails")(function(){return!Math.sinh(-2e-17)!=-2e-17}),"Math",{sinh:function(a){return Math.abs(a=+a)<1?(e(a)-e(-a))/2:(f(a-1)-f(-a-1))*(Math.E/2)}})},{"./_export":34,"./_fails":36,"./_math-expm1":61}],167:[function(a,b,c){var d=a("./_export"),e=a("./_math-expm1"),f=Math.exp;d(d.S,"Math",{tanh:function(a){var b=e(a=+a),c=e(-a);return 1/0==b?1:1/0==c?-1:(b-c)/(f(a)+f(-a))}})},{"./_export":34,"./_math-expm1":61}],168:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{trunc:function(a){return(a>0?Math.floor:Math.ceil)(a)}})},{"./_export":34}],169:[function(a,b,c){"use strict";var d=a("./_global"),e=a("./_has"),f=a("./_cof"),g=a("./_inherit-if-required"),h=a("./_to-primitive"),i=a("./_fails"),j=a("./_object-gopn").f,k=a("./_object-gopd").f,l=a("./_object-dp").f,m=a("./_string-trim").trim,n=d.Number,o=n,p=n.prototype,q="Number"==f(a("./_object-create")(p)),r="trim"in String.prototype,s=function(a){var b=h(a,!1);if("string"==typeof b&&b.length>2){b=r?b.trim():m(b,3);var c,d,e,f=b.charCodeAt(0);if(43===f||45===f){if(88===(c=b.charCodeAt(2))||120===c)return 0/0}else if(48===f){switch(b.charCodeAt(1)){case 66:case 98:d=2,e=49;break;case 79:case 111:d=8,e=55;break;default:return+b}for(var g,i=b.slice(2),j=0,k=i.length;je)return 0/0;return parseInt(i,d)}}return+b};if(!n(" 0o1")||!n("0b1")||n("+0x1")){n=function(a){var b=arguments.length<1?0:a,c=this;return c instanceof n&&(q?i(function(){p.valueOf.call(c)}):"Number"!=f(c))?g(new o(s(b)),c,n):s(b)};for(var t,u=a("./_descriptors")?j(o):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),v=0;u.length>v;v++)e(o,t=u[v])&&!e(n,t)&&l(n,t,k(o,t));n.prototype=p,p.constructor=n,a("./_redefine")(d,"Number",n)}},{"./_cof":20,"./_descriptors":30,"./_fails":36,"./_global":40,"./_has":41,"./_inherit-if-required":45,"./_object-create":68,"./_object-dp":69,"./_object-gopd":72,"./_object-gopn":74,"./_redefine":89,"./_string-trim":104,"./_to-primitive":112}],170:[function(a,b,c){var d=a("./_export");d(d.S,"Number",{EPSILON:Math.pow(2,-52)})},{"./_export":34}],171:[function(a,b,c){ var d=a("./_export"),e=a("./_global").isFinite;d(d.S,"Number",{isFinite:function(a){return"number"==typeof a&&e(a)}})},{"./_export":34,"./_global":40}],172:[function(a,b,c){var d=a("./_export");d(d.S,"Number",{isInteger:a("./_is-integer")})},{"./_export":34,"./_is-integer":50}],173:[function(a,b,c){var d=a("./_export");d(d.S,"Number",{isNaN:function(a){return a!=a}})},{"./_export":34}],174:[function(a,b,c){var d=a("./_export"),e=a("./_is-integer"),f=Math.abs;d(d.S,"Number",{isSafeInteger:function(a){return e(a)&&f(a)<=9007199254740991}})},{"./_export":34,"./_is-integer":50}],175:[function(a,b,c){var d=a("./_export");d(d.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},{"./_export":34}],176:[function(a,b,c){var d=a("./_export");d(d.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},{"./_export":34}],177:[function(a,b,c){var d=a("./_export"),e=a("./_parse-float");d(d.S+d.F*(Number.parseFloat!=e),"Number",{parseFloat:e})},{"./_export":34,"./_parse-float":83}],178:[function(a,b,c){var d=a("./_export"),e=a("./_parse-int");d(d.S+d.F*(Number.parseInt!=e),"Number",{parseInt:e})},{"./_export":34,"./_parse-int":84}],179:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-integer"),f=a("./_a-number-value"),g=a("./_string-repeat"),h=1..toFixed,i=Math.floor,j=[0,0,0,0,0,0],k="Number.toFixed: incorrect invocation!",l=function(a,b){for(var c=-1,d=b;++c<6;)d+=a*j[c],j[c]=d%1e7,d=i(d/1e7)},m=function(a){for(var b=6,c=0;--b>=0;)c+=j[b],j[b]=i(c/a),c=c%a*1e7},n=function(){for(var a=6,b="";--a>=0;)if(""!==b||0===a||0!==j[a]){var c=String(j[a]);b=""===b?c:b+g.call("0",7-c.length)+c}return b},o=function(a,b,c){return 0===b?c:b%2==1?o(a,b-1,c*a):o(a*a,b/2,c)},p=function(a){for(var b=0,c=a;c>=4096;)b+=12,c/=4096;for(;c>=2;)b+=1,c/=2;return b};d(d.P+d.F*(!!h&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!a("./_fails")(function(){h.call({})})),"Number",{toFixed:function(a){var b,c,d,h,i=f(this,k),j=e(a),q="",r="0";if(j<0||j>20)throw RangeError(k);if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return String(i);if(i<0&&(q="-",i=-i),i>1e-21)if(b=p(i*o(2,69,1))-69,c=b<0?i*o(2,-b,1):i/o(2,b,1),c*=4503599627370496,(b=52-b)>0){for(l(0,c),d=j;d>=7;)l(1e7,0),d-=7;for(l(o(10,d,1),0),d=b-1;d>=23;)m(1<<23),d-=23;m(1<0?(h=r.length,r=q+(h<=j?"0."+g.call("0",j-h)+r:r.slice(0,h-j)+"."+r.slice(h-j))):r=q+r,r}})},{"./_a-number-value":6,"./_export":34,"./_fails":36,"./_string-repeat":103,"./_to-integer":108}],180:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_fails"),f=a("./_a-number-value"),g=1..toPrecision;d(d.P+d.F*(e(function(){return"1"!==g.call(1,void 0)})||!e(function(){g.call({})})),"Number",{toPrecision:function(a){var b=f(this,"Number#toPrecision: incorrect invocation!");return void 0===a?g.call(b):g.call(b,a)}})},{"./_a-number-value":6,"./_export":34,"./_fails":36}],181:[function(a,b,c){var d=a("./_export");d(d.S+d.F,"Object",{assign:a("./_object-assign")})},{"./_export":34,"./_object-assign":67}],182:[function(a,b,c){var d=a("./_export");d(d.S,"Object",{create:a("./_object-create")})},{"./_export":34,"./_object-create":68}],183:[function(a,b,c){var d=a("./_export");d(d.S+d.F*!a("./_descriptors"),"Object",{defineProperties:a("./_object-dps")})},{"./_descriptors":30,"./_export":34,"./_object-dps":70}],184:[function(a,b,c){var d=a("./_export");d(d.S+d.F*!a("./_descriptors"),"Object",{defineProperty:a("./_object-dp").f})},{"./_descriptors":30,"./_export":34,"./_object-dp":69}],185:[function(a,b,c){var d=a("./_is-object"),e=a("./_meta").onFreeze;a("./_object-sap")("freeze",function(a){return function(b){return a&&d(b)?a(e(b)):b}})},{"./_is-object":51,"./_meta":64,"./_object-sap":80}],186:[function(a,b,c){var d=a("./_to-iobject"),e=a("./_object-gopd").f;a("./_object-sap")("getOwnPropertyDescriptor",function(){return function(a,b){return e(d(a),b)}})},{"./_object-gopd":72,"./_object-sap":80,"./_to-iobject":109}],187:[function(a,b,c){a("./_object-sap")("getOwnPropertyNames",function(){return a("./_object-gopn-ext").f})},{"./_object-gopn-ext":73,"./_object-sap":80}],188:[function(a,b,c){var d=a("./_to-object"),e=a("./_object-gpo");a("./_object-sap")("getPrototypeOf",function(){return function(a){return e(d(a))}})},{"./_object-gpo":76,"./_object-sap":80,"./_to-object":111}],189:[function(a,b,c){var d=a("./_is-object");a("./_object-sap")("isExtensible",function(a){return function(b){return!!d(b)&&(!a||a(b))}})},{"./_is-object":51,"./_object-sap":80}],190:[function(a,b,c){var d=a("./_is-object");a("./_object-sap")("isFrozen",function(a){return function(b){return!d(b)||!!a&&a(b)}})},{"./_is-object":51,"./_object-sap":80}],191:[function(a,b,c){var d=a("./_is-object");a("./_object-sap")("isSealed",function(a){return function(b){return!d(b)||!!a&&a(b)}})},{"./_is-object":51,"./_object-sap":80}],192:[function(a,b,c){var d=a("./_export");d(d.S,"Object",{is:a("./_same-value")})},{"./_export":34,"./_same-value":91}],193:[function(a,b,c){var d=a("./_to-object"),e=a("./_object-keys");a("./_object-sap")("keys",function(){return function(a){return e(d(a))}})},{"./_object-keys":78,"./_object-sap":80,"./_to-object":111}],194:[function(a,b,c){var d=a("./_is-object"),e=a("./_meta").onFreeze;a("./_object-sap")("preventExtensions",function(a){return function(b){return a&&d(b)?a(e(b)):b}})},{"./_is-object":51,"./_meta":64,"./_object-sap":80}],195:[function(a,b,c){var d=a("./_is-object"),e=a("./_meta").onFreeze;a("./_object-sap")("seal",function(a){return function(b){return a&&d(b)?a(e(b)):b}})},{"./_is-object":51,"./_meta":64,"./_object-sap":80}],196:[function(a,b,c){var d=a("./_export");d(d.S,"Object",{setPrototypeOf:a("./_set-proto").set})},{"./_export":34,"./_set-proto":92}],197:[function(a,b,c){"use strict";var d=a("./_classof"),e={};e[a("./_wks")("toStringTag")]="z",e+""!="[object z]"&&a("./_redefine")(Object.prototype,"toString",function(){return"[object "+d(this)+"]"},!0)},{"./_classof":19,"./_redefine":89,"./_wks":119}],198:[function(a,b,c){var d=a("./_export"),e=a("./_parse-float");d(d.G+d.F*(parseFloat!=e),{parseFloat:e})},{"./_export":34,"./_parse-float":83}],199:[function(a,b,c){var d=a("./_export"),e=a("./_parse-int");d(d.G+d.F*(parseInt!=e),{parseInt:e})},{"./_export":34,"./_parse-int":84}],200:[function(a,b,c){"use strict";var d,e,f,g=a("./_library"),h=a("./_global"),i=a("./_ctx"),j=a("./_classof"),k=a("./_export"),l=a("./_is-object"),m=a("./_a-function"),n=a("./_an-instance"),o=a("./_for-of"),p=a("./_species-constructor"),q=a("./_task").set,r=a("./_microtask")(),s=h.TypeError,t=h.process,u=h.Promise,t=h.process,v="process"==j(t),w=function(){},x=!!function(){try{var b=u.resolve(1),c=(b.constructor={})[a("./_wks")("species")]=function(a){a(w,w)};return(v||"function"==typeof PromiseRejectionEvent)&&b.then(w)instanceof c}catch(a){}}(),y=function(a,b){return a===b||a===u&&b===f},z=function(a){var b;return!(!l(a)||"function"!=typeof(b=a.then))&&b},A=function(a){return y(u,a)?new B(a):new e(a)},B=e=function(a){var b,c;this.promise=new a(function(a,d){if(void 0!==b||void 0!==c)throw s("Bad Promise constructor");b=a,c=d}),this.resolve=m(b),this.reject=m(c)},C=function(a){try{a()}catch(a){return{error:a}}},D=function(a,b){if(!a._n){a._n=!0;var c=a._c;r(function(){for(var d=a._v,e=1==a._s,f=0;c.length>f;)!function(b){var c,f,g=e?b.ok:b.fail,h=b.resolve,i=b.reject,j=b.domain;try{g?(e||(2==a._h&&G(a),a._h=1),g===!0?c=d:(j&&j.enter(),c=g(d),j&&j.exit()),c===b.promise?i(s("Promise-chain cycle")):(f=z(c))?f.call(c,h,i):h(c)):i(d)}catch(a){i(a)}}(c[f++]);a._c=[],a._n=!1,b&&!a._h&&E(a)})}},E=function(a){q.call(h,function(){var b,c,d,e=a._v;if(F(a)&&(b=C(function(){v?t.emit("unhandledRejection",e,a):(c=h.onunhandledrejection)?c({promise:a,reason:e}):(d=h.console)&&d.error&&d.error("Unhandled promise rejection",e)}),a._h=v||F(a)?2:1),a._a=void 0,b)throw b.error})},F=function(a){if(1==a._h)return!1;for(var b,c=a._a||a._c,d=0;c.length>d;)if(b=c[d++],b.fail||!F(b.promise))return!1;return!0},G=function(a){q.call(h,function(){var b;v?t.emit("rejectionHandled",a):(b=h.onrejectionhandled)&&b({promise:a,reason:a._v})})},H=function(a){var b=this;b._d||(b._d=!0,b=b._w||b,b._v=a,b._s=2,b._a||(b._a=b._c.slice()),D(b,!0))},I=function(a){var b,c=this;if(!c._d){c._d=!0,c=c._w||c;try{if(c===a)throw s("Promise can't be resolved itself");(b=z(a))?r(function(){var d={_w:c,_d:!1};try{b.call(a,i(I,d,1),i(H,d,1))}catch(a){H.call(d,a)}}):(c._v=a,c._s=1,D(c,!1))}catch(a){H.call({_w:c,_d:!1},a)}}};x||(u=function(a){n(this,u,"Promise","_h"),m(a),d.call(this);try{a(i(I,this,1),i(H,this,1))}catch(a){H.call(this,a)}},d=function(a){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},d.prototype=a("./_redefine-all")(u.prototype,{then:function(a,b){var c=A(p(this,u));return c.ok="function"!=typeof a||a,c.fail="function"==typeof b&&b,c.domain=v?t.domain:void 0,this._c.push(c),this._a&&this._a.push(c),this._s&&D(this,!1),c.promise},catch:function(a){return this.then(void 0,a)}}),B=function(){var a=new d;this.promise=a,this.resolve=i(I,a,1),this.reject=i(H,a,1)}),k(k.G+k.W+k.F*!x,{Promise:u}),a("./_set-to-string-tag")(u,"Promise"),a("./_set-species")("Promise"),f=a("./_core").Promise,k(k.S+k.F*!x,"Promise",{reject:function(a){var b=A(this);return(0,b.reject)(a),b.promise}}),k(k.S+k.F*(g||!x),"Promise",{resolve:function(a){if(a instanceof u&&y(a.constructor,this))return a;var b=A(this);return(0,b.resolve)(a),b.promise}}),k(k.S+k.F*!(x&&a("./_iter-detect")(function(a){u.all(a).catch(w)})),"Promise",{all:function(a){var b=this,c=A(b),d=c.resolve,e=c.reject,f=C(function(){var c=[],f=0,g=1;o(a,!1,function(a){var h=f++,i=!1;c.push(void 0),g++,b.resolve(a).then(function(a){i||(i=!0,c[h]=a,--g||d(c))},e)}),--g||d(c)});return f&&e(f.error),c.promise},race:function(a){var b=this,c=A(b),d=c.reject,e=C(function(){o(a,!1,function(a){b.resolve(a).then(c.resolve,d)})});return e&&d(e.error),c.promise}})},{"./_a-function":5,"./_an-instance":8,"./_classof":19,"./_core":25,"./_ctx":27,"./_export":34,"./_for-of":39,"./_global":40,"./_is-object":51,"./_iter-detect":56,"./_library":60,"./_microtask":66,"./_redefine-all":88,"./_set-species":93,"./_set-to-string-tag":94,"./_species-constructor":97,"./_task":106,"./_wks":119}],201:[function(a,b,c){var d=a("./_export"),e=a("./_a-function"),f=a("./_an-object"),g=(a("./_global").Reflect||{}).apply,h=Function.apply;d(d.S+d.F*!a("./_fails")(function(){g(function(){})}),"Reflect",{apply:function(a,b,c){var d=e(a),i=f(c);return g?g(d,b,i):h.call(d,b,i)}})},{"./_a-function":5,"./_an-object":9,"./_export":34,"./_fails":36,"./_global":40}],202:[function(a,b,c){var d=a("./_export"),e=a("./_object-create"),f=a("./_a-function"),g=a("./_an-object"),h=a("./_is-object"),i=a("./_fails"),j=a("./_bind"),k=(a("./_global").Reflect||{}).construct,l=i(function(){function a(){}return!(k(function(){},[],a)instanceof a)}),m=!i(function(){k(function(){})});d(d.S+d.F*(l||m),"Reflect",{construct:function(a,b){f(a),g(b);var c=arguments.length<3?a:f(arguments[2]);if(m&&!l)return k(a,b,c);if(a==c){switch(b.length){case 0:return new a;case 1:return new a(b[0]);case 2:return new a(b[0],b[1]);case 3:return new a(b[0],b[1],b[2]);case 4:return new a(b[0],b[1],b[2],b[3])}var d=[null];return d.push.apply(d,b),new(j.apply(a,d))}var i=c.prototype,n=e(h(i)?i:Object.prototype),o=Function.apply.call(a,n,b);return h(o)?o:n}})},{"./_a-function":5,"./_an-object":9,"./_bind":18,"./_export":34,"./_fails":36,"./_global":40,"./_is-object":51,"./_object-create":68}],203:[function(a,b,c){var d=a("./_object-dp"),e=a("./_export"),f=a("./_an-object"),g=a("./_to-primitive");e(e.S+e.F*a("./_fails")(function(){Reflect.defineProperty(d.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(a,b,c){f(a),b=g(b,!0),f(c);try{return d.f(a,b,c),!0}catch(a){return!1}}})},{"./_an-object":9,"./_export":34,"./_fails":36,"./_object-dp":69,"./_to-primitive":112}],204:[function(a,b,c){var d=a("./_export"),e=a("./_object-gopd").f,f=a("./_an-object");d(d.S,"Reflect",{deleteProperty:function(a,b){var c=e(f(a),b);return!(c&&!c.configurable)&&delete a[b]}})},{"./_an-object":9,"./_export":34,"./_object-gopd":72}],205:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_an-object"),f=function(a){this._t=e(a),this._i=0;var b,c=this._k=[];for(b in a)c.push(b)};a("./_iter-create")(f,"Object",function(){var a,b=this,c=b._k;do{if(b._i>=c.length)return{value:void 0,done:!0}}while(!((a=c[b._i++])in b._t));return{value:a,done:!1}}),d(d.S,"Reflect",{enumerate:function(a){return new f(a)}})},{"./_an-object":9,"./_export":34,"./_iter-create":54}],206:[function(a,b,c){var d=a("./_object-gopd"),e=a("./_export"),f=a("./_an-object");e(e.S,"Reflect",{getOwnPropertyDescriptor:function(a,b){return d.f(f(a),b)}})},{"./_an-object":9,"./_export":34,"./_object-gopd":72}],207:[function(a,b,c){var d=a("./_export"),e=a("./_object-gpo"),f=a("./_an-object");d(d.S,"Reflect",{getPrototypeOf:function(a){return e(f(a))}})},{"./_an-object":9,"./_export":34,"./_object-gpo":76}],208:[function(a,b,c){function d(a,b){var c,h,k=arguments.length<3?a:arguments[2];return j(a)===k?a[b]:(c=e.f(a,b))?g(c,"value")?c.value:void 0!==c.get?c.get.call(k):void 0:i(h=f(a))?d(h,b,k):void 0}var e=a("./_object-gopd"),f=a("./_object-gpo"),g=a("./_has"),h=a("./_export"),i=a("./_is-object"),j=a("./_an-object");h(h.S,"Reflect",{get:d})},{"./_an-object":9,"./_export":34,"./_has":41,"./_is-object":51,"./_object-gopd":72,"./_object-gpo":76}],209:[function(a,b,c){var d=a("./_export");d(d.S,"Reflect",{has:function(a,b){return b in a}})},{"./_export":34}],210:[function(a,b,c){var d=a("./_export"),e=a("./_an-object"),f=Object.isExtensible;d(d.S,"Reflect",{isExtensible:function(a){return e(a),!f||f(a)}})},{"./_an-object":9,"./_export":34}],211:[function(a,b,c){var d=a("./_export");d(d.S,"Reflect",{ownKeys:a("./_own-keys")})},{"./_export":34,"./_own-keys":82}],212:[function(a,b,c){var d=a("./_export"),e=a("./_an-object"),f=Object.preventExtensions;d(d.S,"Reflect",{preventExtensions:function(a){e(a);try{return f&&f(a),!0}catch(a){return!1}}})},{"./_an-object":9,"./_export":34}],213:[function(a,b,c){var d=a("./_export"),e=a("./_set-proto");e&&d(d.S,"Reflect",{setPrototypeOf:function(a,b){e.check(a,b);try{return e.set(a,b),!0}catch(a){return!1}}})},{"./_export":34,"./_set-proto":92}],214:[function(a,b,c){function d(a,b,c){var i,m,n=arguments.length<4?a:arguments[3],o=f.f(k(a),b);if(!o){if(l(m=g(a)))return d(m,b,c,n);o=j(0)}return h(o,"value")?!(o.writable===!1||!l(n))&&(i=f.f(n,b)||j(0),i.value=c,e.f(n,b,i),!0):void 0!==o.set&&(o.set.call(n,c),!0)}var e=a("./_object-dp"),f=a("./_object-gopd"),g=a("./_object-gpo"),h=a("./_has"),i=a("./_export"),j=a("./_property-desc"),k=a("./_an-object"),l=a("./_is-object");i(i.S,"Reflect",{set:d})},{"./_an-object":9,"./_export":34,"./_has":41,"./_is-object":51,"./_object-dp":69,"./_object-gopd":72,"./_object-gpo":76,"./_property-desc":87}],215:[function(a,b,c){var d=a("./_global"),e=a("./_inherit-if-required"),f=a("./_object-dp").f,g=a("./_object-gopn").f,h=a("./_is-regexp"),i=a("./_flags"),j=d.RegExp,k=j,l=j.prototype,m=/a/g,n=/a/g!==new j(/a/g);if(a("./_descriptors")&&(!n||a("./_fails")(function(){return m[a("./_wks")("match")]=!1,/a/g!=j(/a/g)||j(m)==m||"/a/i"!=j(/a/g,"i")}))){j=function(a,b){var c=this instanceof j,d=h(a),f=void 0===b;return!c&&d&&a.constructor===j&&f?a:e(n?new k(d&&!f?a.source:a,b):k((d=a instanceof j)?a.source:a,d&&f?i.call(a):b),c?this:l,j)};for(var o=g(k),p=0;o.length>p;)!function(a){a in j||f(j,a,{configurable:!0,get:function(){return k[a]},set:function(b){k[a]=b}})}(o[p++]);l.constructor=j,j.prototype=l,a("./_redefine")(d,"RegExp",j)}a("./_set-species")("RegExp")},{"./_descriptors":30,"./_fails":36,"./_flags":38,"./_global":40,"./_inherit-if-required":45,"./_is-regexp":52,"./_object-dp":69,"./_object-gopn":74,"./_redefine":89,"./_set-species":93,"./_wks":119}],216:[function(a,b,c){a("./_descriptors")&&"g"!=/./g.flags&&a("./_object-dp").f(RegExp.prototype,"flags",{configurable:!0,get:a("./_flags")})},{"./_descriptors":30,"./_flags":38,"./_object-dp":69}],217:[function(a,b,c){a("./_fix-re-wks")("match",1,function(a,b,c){return[function(c){"use strict";var d=a(this),e=void 0==c?void 0:c[b];return void 0!==e?e.call(c,d):new RegExp(c)[b](String(d))},c]})},{"./_fix-re-wks":37}],218:[function(a,b,c){a("./_fix-re-wks")("replace",2,function(a,b,c){return[function(d,e){"use strict";var f=a(this),g=void 0==d?void 0:d[b];return void 0!==g?g.call(d,f,e):c.call(String(f),d,e)},c]})},{"./_fix-re-wks":37}],219:[function(a,b,c){a("./_fix-re-wks")("search",1,function(a,b,c){return[function(c){"use strict";var d=a(this),e=void 0==c?void 0:c[b];return void 0!==e?e.call(c,d):new RegExp(c)[b](String(d))},c]})},{"./_fix-re-wks":37}],220:[function(a,b,c){a("./_fix-re-wks")("split",2,function(b,c,d){"use strict";var e=a("./_is-regexp"),f=d,g=[].push,h="length";if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[h]||2!="ab".split(/(?:ab)*/)[h]||4!=".".split(/(.?)(.?)/)[h]||".".split(/()()/)[h]>1||"".split(/.?/)[h]){var i=void 0===/()??/.exec("")[1];d=function(a,b){var c=String(this);if(void 0===a&&0===b)return[];if(!e(a))return f.call(c,a,b);var d,j,k,l,m,n=[],o=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(a.sticky?"y":""),p=0,q=void 0===b?4294967295:b>>>0,r=new RegExp(a.source,o+"g");for(i||(d=new RegExp("^"+r.source+"$(?!\\s)",o));(j=r.exec(c))&&!((k=j.index+j[0][h])>p&&(n.push(c.slice(p,j.index)),!i&&j[h]>1&&j[0].replace(d,function(){for(m=1;m1&&j.index=q));)r.lastIndex===j.index&&r.lastIndex++;return p===c[h]?!l&&r.test("")||n.push(""):n.push(c.slice(p)),n[h]>q?n.slice(0,q):n}}else"0".split(void 0,0)[h]&&(d=function(a,b){return void 0===a&&0===b?[]:f.call(this,a,b)});return[function(a,e){var f=b(this),g=void 0==a?void 0:a[c];return void 0!==g?g.call(a,f,e):d.call(String(f),a,e)},d]})},{"./_fix-re-wks":37,"./_is-regexp":52}],221:[function(a,b,c){"use strict";a("./es6.regexp.flags");var d=a("./_an-object"),e=a("./_flags"),f=a("./_descriptors"),g=/./.toString,h=function(b){a("./_redefine")(RegExp.prototype,"toString",b,!0)};a("./_fails")(function(){return"/a/b"!=g.call({source:"a",flags:"b"})})?h(function(){var a=d(this);return"/".concat(a.source,"/","flags"in a?a.flags:!f&&a instanceof RegExp?e.call(a):void 0)}):"toString"!=g.name&&h(function(){return g.call(this)})},{"./_an-object":9,"./_descriptors":30,"./_fails":36,"./_flags":38,"./_redefine":89,"./es6.regexp.flags":216}],222:[function(a,b,c){"use strict";var d=a("./_collection-strong");b.exports=a("./_collection")("Set",function(a){return function(){return a(this,arguments.length>0?arguments[0]:void 0)}},{add:function(a){return d.def(this,a=0===a?0:a,a)}},d)},{"./_collection":24,"./_collection-strong":21}],223:[function(a,b,c){"use strict";a("./_string-html")("anchor",function(a){return function(b){return a(this,"a","name",b)}})},{"./_string-html":101}],224:[function(a,b,c){"use strict";a("./_string-html")("big",function(a){return function(){return a(this,"big","","")}})},{"./_string-html":101}],225:[function(a,b,c){"use strict";a("./_string-html")("blink",function(a){return function(){return a(this,"blink","","")}})},{"./_string-html":101}],226:[function(a,b,c){"use strict";a("./_string-html")("bold",function(a){return function(){return a(this,"b","","")}})},{"./_string-html":101}],227:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_string-at")(!1);d(d.P,"String",{codePointAt:function(a){return e(this,a)}})},{"./_export":34,"./_string-at":99}],228:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-length"),f=a("./_string-context"),g="".endsWith;d(d.P+d.F*a("./_fails-is-regexp")("endsWith"),"String",{endsWith:function(a){var b=f(this,a,"endsWith"),c=arguments.length>1?arguments[1]:void 0,d=e(b.length),h=void 0===c?d:Math.min(e(c),d),i=String(a);return g?g.call(b,i,h):b.slice(h-i.length,h)===i}})},{"./_export":34,"./_fails-is-regexp":35,"./_string-context":100,"./_to-length":110}],229:[function(a,b,c){"use strict";a("./_string-html")("fixed",function(a){return function(){return a(this,"tt","","")}})},{"./_string-html":101}],230:[function(a,b,c){"use strict";a("./_string-html")("fontcolor",function(a){return function(b){return a(this,"font","color",b)}})},{"./_string-html":101}],231:[function(a,b,c){"use strict";a("./_string-html")("fontsize",function(a){return function(b){return a(this,"font","size",b)}})},{"./_string-html":101}],232:[function(a,b,c){var d=a("./_export"),e=a("./_to-index"),f=String.fromCharCode,g=String.fromCodePoint;d(d.S+d.F*(!!g&&1!=g.length),"String",{fromCodePoint:function(a){for(var b,c=[],d=arguments.length,g=0;d>g;){if(b=+arguments[g++],e(b,1114111)!==b)throw RangeError(b+" is not a valid code point");c.push(b<65536?f(b):f(55296+((b-=65536)>>10),b%1024+56320))}return c.join("")}})},{"./_export":34,"./_to-index":107}],233:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_string-context");d(d.P+d.F*a("./_fails-is-regexp")("includes"),"String",{includes:function(a){return!!~e(this,a,"includes").indexOf(a,arguments.length>1?arguments[1]:void 0)}})},{"./_export":34,"./_fails-is-regexp":35,"./_string-context":100}],234:[function(a,b,c){"use strict";a("./_string-html")("italics",function(a){return function(){return a(this,"i","","")}})},{"./_string-html":101}],235:[function(a,b,c){"use strict";var d=a("./_string-at")(!0);a("./_iter-define")(String,"String",function(a){this._t=String(a),this._i=0},function(){var a,b=this._t,c=this._i;return c>=b.length?{value:void 0,done:!0}:(a=d(b,c),this._i+=a.length,{value:a,done:!1})})},{"./_iter-define":55,"./_string-at":99}],236:[function(a,b,c){"use strict";a("./_string-html")("link",function(a){return function(b){return a(this,"a","href",b)}})},{"./_string-html":101}],237:[function(a,b,c){var d=a("./_export"),e=a("./_to-iobject"),f=a("./_to-length");d(d.S,"String",{raw:function(a){for(var b=e(a.raw),c=f(b.length),d=arguments.length,g=[],h=0;c>h;)g.push(String(b[h++])),h1?arguments[1]:void 0,b.length)),d=String(a);return g?g.call(b,d,c):b.slice(c,c+d.length)===d}})},{"./_export":34,"./_fails-is-regexp":35,"./_string-context":100,"./_to-length":110}],241:[function(a,b,c){"use strict";a("./_string-html")("strike",function(a){return function(){return a(this,"strike","","")}})},{"./_string-html":101}],242:[function(a,b,c){"use strict";a("./_string-html")("sub",function(a){return function(){return a(this,"sub","","")}})},{"./_string-html":101}],243:[function(a,b,c){"use strict";a("./_string-html")("sup",function(a){return function(){return a(this,"sup","","")}})},{"./_string-html":101}],244:[function(a,b,c){"use strict";a("./_string-trim")("trim",function(a){return function(){return a(this,3)}})},{"./_string-trim":104}],245:[function(a,b,c){"use strict";var d=a("./_global"),e=a("./_has"),f=a("./_descriptors"),g=a("./_export"),h=a("./_redefine"),i=a("./_meta").KEY,j=a("./_fails"),k=a("./_shared"),l=a("./_set-to-string-tag"),m=a("./_uid"),n=a("./_wks"),o=a("./_wks-ext"),p=a("./_wks-define"),q=a("./_keyof"),r=a("./_enum-keys"),s=a("./_is-array"),t=a("./_an-object"),u=a("./_to-iobject"),v=a("./_to-primitive"),w=a("./_property-desc"),x=a("./_object-create"),y=a("./_object-gopn-ext"),z=a("./_object-gopd"),A=a("./_object-dp"),B=a("./_object-keys"),C=z.f,D=A.f,E=y.f,F=d.Symbol,G=d.JSON,H=G&&G.stringify,I=n("_hidden"),J=n("toPrimitive"),K={}.propertyIsEnumerable,L=k("symbol-registry"),M=k("symbols"),N=k("op-symbols"),O=Object.prototype,P="function"==typeof F,Q=d.QObject,R=!Q||!Q.prototype||!Q.prototype.findChild,S=f&&j(function(){return 7!=x(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a})?function(a,b,c){var d=C(O,b);d&&delete O[b],D(a,b,c),d&&a!==O&&D(O,b,d)}:D,T=function(a){var b=M[a]=x(F.prototype);return b._k=a,b},U=P&&"symbol"==typeof F.iterator?function(a){return"symbol"==typeof a}:function(a){return a instanceof F},V=function(a,b,c){return a===O&&V(N,b,c),t(a),b=v(b,!0),t(c),e(M,b)?(c.enumerable?(e(a,I)&&a[I][b]&&(a[I][b]=!1),c=x(c,{enumerable:w(0,!1)})):(e(a,I)||D(a,I,w(1,{})),a[I][b]=!0),S(a,b,c)):D(a,b,c)},W=function(a,b){t(a);for(var c,d=r(b=u(b)),e=0,f=d.length;f>e;)V(a,c=d[e++],b[c]);return a},X=function(a,b){return void 0===b?x(a):W(x(a),b)},Y=function(a){var b=K.call(this,a=v(a,!0));return!(this===O&&e(M,a)&&!e(N,a))&&(!(b||!e(this,a)||!e(M,a)||e(this,I)&&this[I][a])||b)},Z=function(a,b){if(a=u(a),b=v(b,!0),a!==O||!e(M,b)||e(N,b)){var c=C(a,b);return!c||!e(M,b)||e(a,I)&&a[I][b]||(c.enumerable=!0),c}},$=function(a){for(var b,c=E(u(a)),d=[],f=0;c.length>f;)e(M,b=c[f++])||b==I||b==i||d.push(b);return d},_=function(a){for(var b,c=a===O,d=E(c?N:u(a)),f=[],g=0;d.length>g;)!e(M,b=d[g++])||c&&!e(O,b)||f.push(M[b]);return f};P||(F=function(){if(this instanceof F)throw TypeError("Symbol is not a constructor!");var a=m(arguments.length>0?arguments[0]:void 0),b=function(c){this===O&&b.call(N,c),e(this,I)&&e(this[I],a)&&(this[I][a]=!1),S(this,a,w(1,c))};return f&&R&&S(O,a,{configurable:!0,set:b}),T(a)},h(F.prototype,"toString",function(){return this._k}),z.f=Z,A.f=V,a("./_object-gopn").f=y.f=$,a("./_object-pie").f=Y,a("./_object-gops").f=_,f&&!a("./_library")&&h(O,"propertyIsEnumerable",Y,!0),o.f=function(a){return T(n(a))}),g(g.G+g.W+g.F*!P,{Symbol:F});for(var aa="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ba=0;aa.length>ba;)n(aa[ba++]);for(var aa=B(n.store),ba=0;aa.length>ba;)p(aa[ba++]);g(g.S+g.F*!P,"Symbol",{for:function(a){return e(L,a+="")?L[a]:L[a]=F(a)},keyFor:function(a){if(U(a))return q(L,a);throw TypeError(a+" is not a symbol!")},useSetter:function(){R=!0},useSimple:function(){R=!1}}),g(g.S+g.F*!P,"Object",{create:X,defineProperty:V,defineProperties:W,getOwnPropertyDescriptor:Z,getOwnPropertyNames:$,getOwnPropertySymbols:_}),G&&g(g.S+g.F*(!P||j(function(){var a=F();return"[null]"!=H([a])||"{}"!=H({a:a})||"{}"!=H(Object(a))})),"JSON",{stringify:function(a){if(void 0!==a&&!U(a)){for(var b,c,d=[a],e=1;arguments.length>e;)d.push(arguments[e++]);return b=d[1],"function"==typeof b&&(c=b),!c&&s(b)||(b=function(a,b){if(c&&(b=c.call(this,a,b)),!U(b))return b}),d[1]=b,H.apply(G,d)}}}),F.prototype[J]||a("./_hide")(F.prototype,J,F.prototype.valueOf),l(F,"Symbol"),l(Math,"Math",!0),l(d.JSON,"JSON",!0)},{"./_an-object":9,"./_descriptors":30,"./_enum-keys":33,"./_export":34,"./_fails":36,"./_global":40,"./_has":41,"./_hide":42,"./_is-array":49,"./_keyof":59,"./_library":60,"./_meta":64,"./_object-create":68,"./_object-dp":69,"./_object-gopd":72,"./_object-gopn":74,"./_object-gopn-ext":73,"./_object-gops":75,"./_object-keys":78,"./_object-pie":79,"./_property-desc":87,"./_redefine":89,"./_set-to-string-tag":94,"./_shared":96,"./_to-iobject":109,"./_to-primitive":112,"./_uid":116,"./_wks":119,"./_wks-define":117,"./_wks-ext":118}],246:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_typed"),f=a("./_typed-buffer"),g=a("./_an-object"),h=a("./_to-index"),i=a("./_to-length"),j=a("./_is-object"),k=a("./_global").ArrayBuffer,l=a("./_species-constructor"),m=f.ArrayBuffer,n=f.DataView,o=e.ABV&&k.isView,p=m.prototype.slice,q=e.VIEW;d(d.G+d.W+d.F*(k!==m),{ArrayBuffer:m}),d(d.S+d.F*!e.CONSTR,"ArrayBuffer",{isView:function(a){return o&&o(a)||j(a)&&q in a}}),d(d.P+d.U+d.F*a("./_fails")(function(){return!new m(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(a,b){if(void 0!==p&&void 0===b)return p.call(g(this),a);for(var c=g(this).byteLength,d=h(a,c),e=h(void 0===b?c:b,c),f=new(l(this,m))(i(e-d)),j=new n(this),k=new n(f),o=0;d0?arguments[0]:void 0)}},p={get:function(a){if(j(a)){var b=k(a);return b===!0?m(this).get(a):b?b[this._i]:void 0}},set:function(a,b){return i.def(this,a,b)}},q=b.exports=a("./_collection")("WeakMap",o,p,i,!0,!0);7!=(new q).set((Object.freeze||Object)(n),7).get(n)&&(d=i.getConstructor(o),h(d.prototype,p),g.NEED=!0,e(["delete","has","get","set"],function(a){var b=q.prototype,c=b[a];f(b,a,function(b,e){if(j(b)&&!l(b)){this._f||(this._f=new d);var f=this._f[a](b,e);return"set"==a?this:f}return c.call(this,b,e)})}))},{"./_array-methods":14,"./_collection":24,"./_collection-weak":23,"./_is-object":51,"./_meta":64,"./_object-assign":67,"./_redefine":89}],258:[function(a,b,c){"use strict";var d=a("./_collection-weak");a("./_collection")("WeakSet",function(a){return function(){return a(this,arguments.length>0?arguments[0]:void 0)}},{add:function(a){return d.def(this,a,!0)}},d,!1,!0)},{"./_collection":24,"./_collection-weak":23}],259:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-includes")(!0);d(d.P,"Array",{includes:function(a){return e(this,a,arguments.length>1?arguments[1]:void 0)}}),a("./_add-to-unscopables")("includes")},{"./_add-to-unscopables":7,"./_array-includes":13,"./_export":34}],260:[function(a,b,c){var d=a("./_export"),e=a("./_microtask")(),f=a("./_global").process,g="process"==a("./_cof")(f);d(d.G,{asap:function(a){var b=g&&f.domain;e(b?b.bind(a):a)}})},{"./_cof":20,"./_export":34,"./_global":40,"./_microtask":66}],261:[function(a,b,c){var d=a("./_export"),e=a("./_cof");d(d.S,"Error",{isError:function(a){return"Error"===e(a)}})},{"./_cof":20,"./_export":34}],262:[function(a,b,c){var d=a("./_export");d(d.P+d.R,"Map",{toJSON:a("./_collection-to-json")("Map")})},{ "./_collection-to-json":22,"./_export":34}],263:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{iaddh:function(a,b,c,d){var e=a>>>0,f=b>>>0,g=c>>>0;return f+(d>>>0)+((e&g|(e|g)&~(e+g>>>0))>>>31)|0}})},{"./_export":34}],264:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{imulh:function(a,b){var c=+a,d=+b,e=65535&c,f=65535&d,g=c>>16,h=d>>16,i=(g*f>>>0)+(e*f>>>16);return g*h+(i>>16)+((e*h>>>0)+(65535&i)>>16)}})},{"./_export":34}],265:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{isubh:function(a,b,c,d){var e=a>>>0,f=b>>>0,g=c>>>0;return f-(d>>>0)-((~e&g|~(e^g)&e-g>>>0)>>>31)|0}})},{"./_export":34}],266:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{umulh:function(a,b){var c=+a,d=+b,e=65535&c,f=65535&d,g=c>>>16,h=d>>>16,i=(g*f>>>0)+(e*f>>>16);return g*h+(i>>>16)+((e*h>>>0)+(65535&i)>>>16)}})},{"./_export":34}],267:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-object"),f=a("./_a-function"),g=a("./_object-dp");a("./_descriptors")&&d(d.P+a("./_object-forced-pam"),"Object",{__defineGetter__:function(a,b){g.f(e(this),a,{get:f(b),enumerable:!0,configurable:!0})}})},{"./_a-function":5,"./_descriptors":30,"./_export":34,"./_object-dp":69,"./_object-forced-pam":71,"./_to-object":111}],268:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-object"),f=a("./_a-function"),g=a("./_object-dp");a("./_descriptors")&&d(d.P+a("./_object-forced-pam"),"Object",{__defineSetter__:function(a,b){g.f(e(this),a,{set:f(b),enumerable:!0,configurable:!0})}})},{"./_a-function":5,"./_descriptors":30,"./_export":34,"./_object-dp":69,"./_object-forced-pam":71,"./_to-object":111}],269:[function(a,b,c){var d=a("./_export"),e=a("./_object-to-array")(!0);d(d.S,"Object",{entries:function(a){return e(a)}})},{"./_export":34,"./_object-to-array":81}],270:[function(a,b,c){var d=a("./_export"),e=a("./_own-keys"),f=a("./_to-iobject"),g=a("./_object-gopd"),h=a("./_create-property");d(d.S,"Object",{getOwnPropertyDescriptors:function(a){for(var b,c=f(a),d=g.f,i=e(c),j={},k=0;i.length>k;)h(j,b=i[k++],d(c,b));return j}})},{"./_create-property":26,"./_export":34,"./_object-gopd":72,"./_own-keys":82,"./_to-iobject":109}],271:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-object"),f=a("./_to-primitive"),g=a("./_object-gpo"),h=a("./_object-gopd").f;a("./_descriptors")&&d(d.P+a("./_object-forced-pam"),"Object",{__lookupGetter__:function(a){var b,c=e(this),d=f(a,!0);do{if(b=h(c,d))return b.get}while(c=g(c))}})},{"./_descriptors":30,"./_export":34,"./_object-forced-pam":71,"./_object-gopd":72,"./_object-gpo":76,"./_to-object":111,"./_to-primitive":112}],272:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-object"),f=a("./_to-primitive"),g=a("./_object-gpo"),h=a("./_object-gopd").f;a("./_descriptors")&&d(d.P+a("./_object-forced-pam"),"Object",{__lookupSetter__:function(a){var b,c=e(this),d=f(a,!0);do{if(b=h(c,d))return b.set}while(c=g(c))}})},{"./_descriptors":30,"./_export":34,"./_object-forced-pam":71,"./_object-gopd":72,"./_object-gpo":76,"./_to-object":111,"./_to-primitive":112}],273:[function(a,b,c){var d=a("./_export"),e=a("./_object-to-array")(!1);d(d.S,"Object",{values:function(a){return e(a)}})},{"./_export":34,"./_object-to-array":81}],274:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_global"),f=a("./_core"),g=a("./_microtask")(),h=a("./_wks")("observable"),i=a("./_a-function"),j=a("./_an-object"),k=a("./_an-instance"),l=a("./_redefine-all"),m=a("./_hide"),n=a("./_for-of"),o=n.RETURN,p=function(a){return null==a?void 0:i(a)},q=function(a){var b=a._c;b&&(a._c=void 0,b())},r=function(a){return void 0===a._o},s=function(a){r(a)||(a._o=void 0,q(a))},t=function(a,b){j(a),this._c=void 0,this._o=a,a=new u(this);try{var c=b(a),d=c;null!=c&&("function"==typeof c.unsubscribe?c=function(){d.unsubscribe()}:i(c),this._c=c)}catch(b){return void a.error(b)}r(this)&&q(this)};t.prototype=l({},{unsubscribe:function(){s(this)}});var u=function(a){this._s=a};u.prototype=l({},{next:function(a){var b=this._s;if(!r(b)){var c=b._o;try{var d=p(c.next);if(d)return d.call(c,a)}catch(a){try{s(b)}finally{throw a}}}},error:function(a){var b=this._s;if(r(b))throw a;var c=b._o;b._o=void 0;try{var d=p(c.error);if(!d)throw a;a=d.call(c,a)}catch(a){try{q(b)}finally{throw a}}return q(b),a},complete:function(a){var b=this._s;if(!r(b)){var c=b._o;b._o=void 0;try{var d=p(c.complete);a=d?d.call(c,a):void 0}catch(a){try{q(b)}finally{throw a}}return q(b),a}}});var v=function(a){k(this,v,"Observable","_f")._f=i(a)};l(v.prototype,{subscribe:function(a){return new t(a,this._f)},forEach:function(a){var b=this;return new(f.Promise||e.Promise)(function(c,d){i(a);var e=b.subscribe({next:function(b){try{return a(b)}catch(a){d(a),e.unsubscribe()}},error:d,complete:c})})}}),l(v,{from:function(a){var b="function"==typeof this?this:v,c=p(j(a)[h]);if(c){var d=j(c.call(a));return d.constructor===b?d:new b(function(a){return d.subscribe(a)})}return new b(function(b){var c=!1;return g(function(){if(!c){try{if(n(a,!1,function(a){if(b.next(a),c)return o})===o)return}catch(a){if(c)throw a;return void b.error(a)}b.complete()}}),function(){c=!0}})},of:function(){for(var a=0,b=arguments.length,c=Array(b);a1?arguments[1]:void 0,!1)}})},{"./_export":34,"./_string-pad":102}],288:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_string-pad");d(d.P,"String",{padStart:function(a){return e(this,a,arguments.length>1?arguments[1]:void 0,!0)}})},{"./_export":34,"./_string-pad":102}],289:[function(a,b,c){"use strict";a("./_string-trim")("trimLeft",function(a){return function(){return a(this,1)}},"trimStart")},{"./_string-trim":104}],290:[function(a,b,c){"use strict";a("./_string-trim")("trimRight",function(a){return function(){return a(this,2)}},"trimEnd")},{"./_string-trim":104}],291:[function(a,b,c){a("./_wks-define")("asyncIterator")},{"./_wks-define":117}],292:[function(a,b,c){a("./_wks-define")("observable")},{"./_wks-define":117}],293:[function(a,b,c){var d=a("./_export");d(d.S,"System",{global:a("./_global")})},{"./_export":34,"./_global":40}],294:[function(a,b,c){for(var d=a("./es6.array.iterator"),e=a("./_redefine"),f=a("./_global"),g=a("./_hide"),h=a("./_iterators"),i=a("./_wks"),j=i("iterator"),k=i("toStringTag"),l=h.Array,m=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],n=0;n<5;n++){var o,p=m[n],q=f[p],r=q&&q.prototype;if(r){r[j]||g(r,j,l),r[k]||g(r,k,p),h[p]=l;for(o in d)r[o]||e(r,o,d[o],!0)}}},{"./_global":40,"./_hide":42,"./_iterators":58,"./_redefine":89,"./_wks":119,"./es6.array.iterator":132}],295:[function(a,b,c){var d=a("./_export"),e=a("./_task");d(d.G+d.B,{setImmediate:e.set,clearImmediate:e.clear})},{"./_export":34,"./_task":106}],296:[function(a,b,c){var d=a("./_global"),e=a("./_export"),f=a("./_invoke"),g=a("./_partial"),h=d.navigator,i=!!h&&/MSIE .\./.test(h.userAgent),j=function(a){return i?function(b,c){return a(f(g,[].slice.call(arguments,2),"function"==typeof b?b:Function(b)),c)}:a};e(e.G+e.B+e.F*i,{setTimeout:j(d.setTimeout),setInterval:j(d.setInterval)})},{"./_export":34,"./_global":40,"./_invoke":46,"./_partial":85}],297:[function(a,b,c){a("./modules/es6.symbol"),a("./modules/es6.object.create"),a("./modules/es6.object.define-property"),a("./modules/es6.object.define-properties"),a("./modules/es6.object.get-own-property-descriptor"),a("./modules/es6.object.get-prototype-of"),a("./modules/es6.object.keys"),a("./modules/es6.object.get-own-property-names"),a("./modules/es6.object.freeze"),a("./modules/es6.object.seal"),a("./modules/es6.object.prevent-extensions"),a("./modules/es6.object.is-frozen"),a("./modules/es6.object.is-sealed"),a("./modules/es6.object.is-extensible"),a("./modules/es6.object.assign"),a("./modules/es6.object.is"),a("./modules/es6.object.set-prototype-of"),a("./modules/es6.object.to-string"),a("./modules/es6.function.bind"),a("./modules/es6.function.name"),a("./modules/es6.function.has-instance"),a("./modules/es6.parse-int"),a("./modules/es6.parse-float"),a("./modules/es6.number.constructor"),a("./modules/es6.number.to-fixed"),a("./modules/es6.number.to-precision"),a("./modules/es6.number.epsilon"),a("./modules/es6.number.is-finite"),a("./modules/es6.number.is-integer"),a("./modules/es6.number.is-nan"),a("./modules/es6.number.is-safe-integer"),a("./modules/es6.number.max-safe-integer"),a("./modules/es6.number.min-safe-integer"),a("./modules/es6.number.parse-float"),a("./modules/es6.number.parse-int"),a("./modules/es6.math.acosh"),a("./modules/es6.math.asinh"),a("./modules/es6.math.atanh"),a("./modules/es6.math.cbrt"),a("./modules/es6.math.clz32"),a("./modules/es6.math.cosh"),a("./modules/es6.math.expm1"),a("./modules/es6.math.fround"),a("./modules/es6.math.hypot"),a("./modules/es6.math.imul"),a("./modules/es6.math.log10"),a("./modules/es6.math.log1p"),a("./modules/es6.math.log2"),a("./modules/es6.math.sign"),a("./modules/es6.math.sinh"),a("./modules/es6.math.tanh"),a("./modules/es6.math.trunc"),a("./modules/es6.string.from-code-point"),a("./modules/es6.string.raw"),a("./modules/es6.string.trim"),a("./modules/es6.string.iterator"),a("./modules/es6.string.code-point-at"),a("./modules/es6.string.ends-with"),a("./modules/es6.string.includes"),a("./modules/es6.string.repeat"),a("./modules/es6.string.starts-with"),a("./modules/es6.string.anchor"),a("./modules/es6.string.big"),a("./modules/es6.string.blink"),a("./modules/es6.string.bold"),a("./modules/es6.string.fixed"),a("./modules/es6.string.fontcolor"),a("./modules/es6.string.fontsize"),a("./modules/es6.string.italics"),a("./modules/es6.string.link"),a("./modules/es6.string.small"),a("./modules/es6.string.strike"),a("./modules/es6.string.sub"),a("./modules/es6.string.sup"),a("./modules/es6.date.now"),a("./modules/es6.date.to-json"),a("./modules/es6.date.to-iso-string"),a("./modules/es6.date.to-string"),a("./modules/es6.date.to-primitive"),a("./modules/es6.array.is-array"),a("./modules/es6.array.from"),a("./modules/es6.array.of"),a("./modules/es6.array.join"),a("./modules/es6.array.slice"),a("./modules/es6.array.sort"),a("./modules/es6.array.for-each"),a("./modules/es6.array.map"),a("./modules/es6.array.filter"),a("./modules/es6.array.some"),a("./modules/es6.array.every"),a("./modules/es6.array.reduce"),a("./modules/es6.array.reduce-right"),a("./modules/es6.array.index-of"),a("./modules/es6.array.last-index-of"),a("./modules/es6.array.copy-within"),a("./modules/es6.array.fill"),a("./modules/es6.array.find"),a("./modules/es6.array.find-index"),a("./modules/es6.array.species"),a("./modules/es6.array.iterator"),a("./modules/es6.regexp.constructor"),a("./modules/es6.regexp.to-string"),a("./modules/es6.regexp.flags"),a("./modules/es6.regexp.match"),a("./modules/es6.regexp.replace"),a("./modules/es6.regexp.search"),a("./modules/es6.regexp.split"),a("./modules/es6.promise"),a("./modules/es6.map"),a("./modules/es6.set"),a("./modules/es6.weak-map"),a("./modules/es6.weak-set"),a("./modules/es6.typed.array-buffer"),a("./modules/es6.typed.data-view"),a("./modules/es6.typed.int8-array"),a("./modules/es6.typed.uint8-array"),a("./modules/es6.typed.uint8-clamped-array"),a("./modules/es6.typed.int16-array"),a("./modules/es6.typed.uint16-array"),a("./modules/es6.typed.int32-array"),a("./modules/es6.typed.uint32-array"),a("./modules/es6.typed.float32-array"),a("./modules/es6.typed.float64-array"),a("./modules/es6.reflect.apply"),a("./modules/es6.reflect.construct"),a("./modules/es6.reflect.define-property"),a("./modules/es6.reflect.delete-property"),a("./modules/es6.reflect.enumerate"),a("./modules/es6.reflect.get"),a("./modules/es6.reflect.get-own-property-descriptor"),a("./modules/es6.reflect.get-prototype-of"),a("./modules/es6.reflect.has"),a("./modules/es6.reflect.is-extensible"),a("./modules/es6.reflect.own-keys"),a("./modules/es6.reflect.prevent-extensions"),a("./modules/es6.reflect.set"),a("./modules/es6.reflect.set-prototype-of"),a("./modules/es7.array.includes"),a("./modules/es7.string.at"),a("./modules/es7.string.pad-start"),a("./modules/es7.string.pad-end"),a("./modules/es7.string.trim-left"),a("./modules/es7.string.trim-right"),a("./modules/es7.string.match-all"),a("./modules/es7.symbol.async-iterator"),a("./modules/es7.symbol.observable"),a("./modules/es7.object.get-own-property-descriptors"),a("./modules/es7.object.values"),a("./modules/es7.object.entries"),a("./modules/es7.object.define-getter"),a("./modules/es7.object.define-setter"),a("./modules/es7.object.lookup-getter"),a("./modules/es7.object.lookup-setter"),a("./modules/es7.map.to-json"),a("./modules/es7.set.to-json"),a("./modules/es7.system.global"),a("./modules/es7.error.is-error"),a("./modules/es7.math.iaddh"),a("./modules/es7.math.isubh"),a("./modules/es7.math.imulh"),a("./modules/es7.math.umulh"),a("./modules/es7.reflect.define-metadata"),a("./modules/es7.reflect.delete-metadata"),a("./modules/es7.reflect.get-metadata"),a("./modules/es7.reflect.get-metadata-keys"),a("./modules/es7.reflect.get-own-metadata"),a("./modules/es7.reflect.get-own-metadata-keys"),a("./modules/es7.reflect.has-metadata"),a("./modules/es7.reflect.has-own-metadata"),a("./modules/es7.reflect.metadata"),a("./modules/es7.asap"),a("./modules/es7.observable"),a("./modules/web.timers"),a("./modules/web.immediate"),a("./modules/web.dom.iterable"),b.exports=a("./modules/_core")},{"./modules/_core":25,"./modules/es6.array.copy-within":122,"./modules/es6.array.every":123,"./modules/es6.array.fill":124,"./modules/es6.array.filter":125,"./modules/es6.array.find":127,"./modules/es6.array.find-index":126,"./modules/es6.array.for-each":128,"./modules/es6.array.from":129,"./modules/es6.array.index-of":130,"./modules/es6.array.is-array":131,"./modules/es6.array.iterator":132,"./modules/es6.array.join":133,"./modules/es6.array.last-index-of":134,"./modules/es6.array.map":135,"./modules/es6.array.of":136,"./modules/es6.array.reduce":138,"./modules/es6.array.reduce-right":137,"./modules/es6.array.slice":139,"./modules/es6.array.some":140,"./modules/es6.array.sort":141,"./modules/es6.array.species":142,"./modules/es6.date.now":143,"./modules/es6.date.to-iso-string":144,"./modules/es6.date.to-json":145,"./modules/es6.date.to-primitive":146,"./modules/es6.date.to-string":147,"./modules/es6.function.bind":148,"./modules/es6.function.has-instance":149,"./modules/es6.function.name":150,"./modules/es6.map":151,"./modules/es6.math.acosh":152,"./modules/es6.math.asinh":153,"./modules/es6.math.atanh":154,"./modules/es6.math.cbrt":155,"./modules/es6.math.clz32":156,"./modules/es6.math.cosh":157,"./modules/es6.math.expm1":158,"./modules/es6.math.fround":159,"./modules/es6.math.hypot":160,"./modules/es6.math.imul":161,"./modules/es6.math.log10":162,"./modules/es6.math.log1p":163,"./modules/es6.math.log2":164,"./modules/es6.math.sign":165,"./modules/es6.math.sinh":166,"./modules/es6.math.tanh":167,"./modules/es6.math.trunc":168,"./modules/es6.number.constructor":169,"./modules/es6.number.epsilon":170,"./modules/es6.number.is-finite":171,"./modules/es6.number.is-integer":172,"./modules/es6.number.is-nan":173,"./modules/es6.number.is-safe-integer":174,"./modules/es6.number.max-safe-integer":175,"./modules/es6.number.min-safe-integer":176,"./modules/es6.number.parse-float":177,"./modules/es6.number.parse-int":178,"./modules/es6.number.to-fixed":179,"./modules/es6.number.to-precision":180,"./modules/es6.object.assign":181,"./modules/es6.object.create":182,"./modules/es6.object.define-properties":183,"./modules/es6.object.define-property":184,"./modules/es6.object.freeze":185,"./modules/es6.object.get-own-property-descriptor":186,"./modules/es6.object.get-own-property-names":187,"./modules/es6.object.get-prototype-of":188,"./modules/es6.object.is":192,"./modules/es6.object.is-extensible":189,"./modules/es6.object.is-frozen":190,"./modules/es6.object.is-sealed":191,"./modules/es6.object.keys":193,"./modules/es6.object.prevent-extensions":194,"./modules/es6.object.seal":195,"./modules/es6.object.set-prototype-of":196,"./modules/es6.object.to-string":197,"./modules/es6.parse-float":198,"./modules/es6.parse-int":199,"./modules/es6.promise":200,"./modules/es6.reflect.apply":201,"./modules/es6.reflect.construct":202,"./modules/es6.reflect.define-property":203,"./modules/es6.reflect.delete-property":204,"./modules/es6.reflect.enumerate":205,"./modules/es6.reflect.get":208,"./modules/es6.reflect.get-own-property-descriptor":206,"./modules/es6.reflect.get-prototype-of":207,"./modules/es6.reflect.has":209,"./modules/es6.reflect.is-extensible":210,"./modules/es6.reflect.own-keys":211,"./modules/es6.reflect.prevent-extensions":212,"./modules/es6.reflect.set":214,"./modules/es6.reflect.set-prototype-of":213,"./modules/es6.regexp.constructor":215,"./modules/es6.regexp.flags":216,"./modules/es6.regexp.match":217,"./modules/es6.regexp.replace":218,"./modules/es6.regexp.search":219,"./modules/es6.regexp.split":220,"./modules/es6.regexp.to-string":221,"./modules/es6.set":222,"./modules/es6.string.anchor":223,"./modules/es6.string.big":224,"./modules/es6.string.blink":225,"./modules/es6.string.bold":226,"./modules/es6.string.code-point-at":227,"./modules/es6.string.ends-with":228,"./modules/es6.string.fixed":229,"./modules/es6.string.fontcolor":230,"./modules/es6.string.fontsize":231,"./modules/es6.string.from-code-point":232,"./modules/es6.string.includes":233,"./modules/es6.string.italics":234,"./modules/es6.string.iterator":235,"./modules/es6.string.link":236,"./modules/es6.string.raw":237,"./modules/es6.string.repeat":238,"./modules/es6.string.small":239,"./modules/es6.string.starts-with":240,"./modules/es6.string.strike":241,"./modules/es6.string.sub":242,"./modules/es6.string.sup":243,"./modules/es6.string.trim":244,"./modules/es6.symbol":245,"./modules/es6.typed.array-buffer":246,"./modules/es6.typed.data-view":247,"./modules/es6.typed.float32-array":248,"./modules/es6.typed.float64-array":249,"./modules/es6.typed.int16-array":250,"./modules/es6.typed.int32-array":251,"./modules/es6.typed.int8-array":252,"./modules/es6.typed.uint16-array":253,"./modules/es6.typed.uint32-array":254,"./modules/es6.typed.uint8-array":255,"./modules/es6.typed.uint8-clamped-array":256,"./modules/es6.weak-map":257,"./modules/es6.weak-set":258,"./modules/es7.array.includes":259,"./modules/es7.asap":260,"./modules/es7.error.is-error":261,"./modules/es7.map.to-json":262,"./modules/es7.math.iaddh":263,"./modules/es7.math.imulh":264,"./modules/es7.math.isubh":265,"./modules/es7.math.umulh":266,"./modules/es7.object.define-getter":267,"./modules/es7.object.define-setter":268,"./modules/es7.object.entries":269,"./modules/es7.object.get-own-property-descriptors":270,"./modules/es7.object.lookup-getter":271,"./modules/es7.object.lookup-setter":272,"./modules/es7.object.values":273,"./modules/es7.observable":274,"./modules/es7.reflect.define-metadata":275,"./modules/es7.reflect.delete-metadata":276,"./modules/es7.reflect.get-metadata":278,"./modules/es7.reflect.get-metadata-keys":277,"./modules/es7.reflect.get-own-metadata":280,"./modules/es7.reflect.get-own-metadata-keys":279,"./modules/es7.reflect.has-metadata":281,"./modules/es7.reflect.has-own-metadata":282,"./modules/es7.reflect.metadata":283,"./modules/es7.set.to-json":284,"./modules/es7.string.at":285,"./modules/es7.string.match-all":286,"./modules/es7.string.pad-end":287,"./modules/es7.string.pad-start":288,"./modules/es7.string.trim-left":289,"./modules/es7.string.trim-right":290,"./modules/es7.symbol.async-iterator":291,"./modules/es7.symbol.observable":292,"./modules/es7.system.global":293,"./modules/web.dom.iterable":294,"./modules/web.immediate":295,"./modules/web.timers":296}],298:[function(a,b,c){!function(){"use strict";function a(a){return"detail"in a?new k(a.type,{bubbles:a.bubbles,cancelable:a.cancelable,detail:a.detail},a):new j(a.type,{bubbles:a.bubbles,cancelable:a.cancelable},a)}function d(a,b,c){var d=a[b];void 0===d&&(a[b]=d=[]),c="boolean"==typeof c?{capture:c}:c||{};var e=JSON.stringify(c);return{listenersByTypeOptions:d.filter(function(a){return e===JSON.stringify(a.options)}),options:c,listenersByType:d}}function e(){throw new TypeError("Illegal constructor")}var f,g={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3};f="undefined"==typeof DOMException?function(a,b){var c=new Error(a);return c.name=b,c}:DOMException;var h=new WeakMap,i=new WeakMap,j=function(a){this[Symbol.toStringTag]="Event",this.toString=function(){return"[object Event]"};var b=arguments[1],c=arguments[2];if(!arguments.length)throw new TypeError("Failed to construct 'Event': 1 argument required, but only 0 present.");b=b||{},c=c||{};var d={};"composed"in b&&(d.composed=b.composed),h.set(this,c),i.set(this,d),this.initEvent(a,b.bubbles,b.cancelable),Object.defineProperties(this,["target","currentTarget","eventPhase","defaultPrevented"].reduce(function(a,b){return a[b]={get:function(){return void 0!==d[b]?d[b]:b in c?c[b]:"eventPhase"===b?0:"defaultPrevented"!==b&&null}},a},{}));var e=["type","bubbles","cancelable","isTrusted","timeStamp","initEvent","composedPath","composed"];"[object CustomEvent]"===this.toString()&&e.push("detail","initCustomEvent"),Object.defineProperties(this,e.reduce(function(a,b){return a[b]={get:function(){return b in d?d[b]:b in c?c[b]:!(["bubbles","cancelable","composed"].indexOf(b)>-1)&&void 0}},a},{}))};j.prototype.preventDefault=function(){if(!(this instanceof j))throw new TypeError("Illegal invocation");var a=h.get(this),b=i.get(this);this.cancelable&&!b._passive&&(b.defaultPrevented=!0,"function"==typeof a.preventDefault&&a.preventDefault())},j.prototype.stopImmediatePropagation=function(){i.get(this)._stopImmediatePropagation=!0},j.prototype.stopPropagation=function(){i.get(this)._stopPropagation=!0},j.prototype.initEvent=function(a,b,c){var d=i.get(this);d._dispatched||(d.type=a,void 0!==b&&(d.bubbles=b),void 0!==c&&(d.cancelable=c))},["type","target","currentTarget"].forEach(function(a){Object.defineProperty(j.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),["eventPhase","defaultPrevented","bubbles","cancelable","timeStamp"].forEach(function(a){Object.defineProperty(j.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),["NONE","CAPTURING_PHASE","AT_TARGET","BUBBLING_PHASE"].forEach(function(a,b){Object.defineProperty(j,a,{enumerable:!0,writable:!1,value:b}),Object.defineProperty(j.prototype,a,{writable:!1,value:b})}),j[Symbol.toStringTag]="Function",j.prototype[Symbol.toStringTag]="EventPrototype",Object.defineProperty(j,"prototype",{writable:!1});var k=function(a){var b=arguments[1],c=arguments[2];j.call(this,a,b,c),this[Symbol.toStringTag]="CustomEvent",this.toString=function(){return"[object CustomEvent]"};i.get(this);b=b||{},this.initCustomEvent(a,evInit.bubbles,evInit.cancelable,"detail"in evInit?evInit.detail:null)};Object.defineProperty(k.prototype,"constructor",{enumerable:!1,writable:!0,configurable:!0,value:k}),k.prototype.initCustomEvent=function(a,b,c,d){if(!(this instanceof k))throw new TypeError("Illegal invocation");var e=i.get(this);k.call(this,a,{bubbles:b,cancelable:c,detail:d},arguments[4]),e._dispatched||(void 0!==d&&(e.detail=d),Object.defineProperty(this,"detail",{get:function(){return e.detail}}))},k[Symbol.toStringTag]="Function",k.prototype[Symbol.toStringTag]="CustomEventPrototype",Object.setPrototypeOf(k,j),Object.defineProperty(k.prototype,"detail",{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}}),Object.setPrototypeOf(k.prototype,j.prototype),Object.defineProperty(k,"prototype",{writable:!1});var l={addListener:function(a,b,c,e){var f=d(a,c,e),g=f.listenersByTypeOptions;e=f.options;var h=f.listenersByType;g.some(function(a){return a.listener===b})||h.push({listener:b,options:e})},removeListener:function(a,b,c,e){var f=d(a,c,e),g=f.listenersByType,h=JSON.stringify(f.options);g.some(function(d,e){if(d.listener===b&&h===JSON.stringify(d.options))return g.splice(e,1),g.length||delete a[c],!0})},hasListener:function(a,b,c,e){return d(a,c,e).listenersByTypeOptions.some(function(a){return a.listener===b})}};Object.assign(e.prototype,["Early","","Late","Default"].reduce(function(a,b){return["add","remove","has"].forEach(function(c){a[c+b+"EventListener"]=function(a,d){var e=arguments[2];if(arguments.length<2)throw new TypeError("2 or more arguments required");if("string"!=typeof a)throw new f("UNSPECIFIED_EVENT_TYPE_ERR","UNSPECIFIED_EVENT_TYPE_ERR");d.handleEvent&&(d=d.handleEvent.bind(d));var g="_"+b.toLowerCase()+(""===b?"l":"L")+"isteners";return this[g]||Object.defineProperty(this,g,{value:{}}),l[c+"Listener"](this[g],d,a,e)}}),a},{})),Object.assign(e.prototype,{__setOptions:function(a){a=a||{},this._defaultSync=a.defaultSync,this._extraProperties=a.extraProperties},dispatchEvent:function(a){return this._dispatchEvent(a,!0)},_dispatchEvent:function(b,c){function d(){k.eventPhase=g.NONE,k.currentTarget=null,delete k._children}function e(){k._stopImmediatePropagation=void 0,k._stopPropagation=void 0,l.defaultPrevented&&k.cancelable||(k.eventPhase=g.AT_TARGET,l.target.invokeCurrentListeners(l.target._defaultListeners,l,m)),d()}function h(){return k._stopImmediatePropagation=void 0,k._stopPropagation=void 0,j._defaultSync?e():setTimeout(e,0),k.eventPhase=g.AT_TARGET,k._stopPropagation||(k._stopImmediatePropagation=void 0,k._stopPropagation=void 0,l.target.invokeCurrentListeners(l.target._lateListeners,l,m)),d(),!l.defaultPrevented}var j=this;["early","","late","default"].forEach(function(a){var b="_"+a+(""===a?"l":"L")+"isteners";this[b]||Object.defineProperty(this,b,{value:{}})},this);var k=i.get(b);if(k&&c&&k._dispatched)throw new f("The object is in an invalid state.","InvalidStateError");var l;k?l=b:(l=a(b),k=i.get(l),k._dispatched=!0,(this._extraProperties||[]).forEach(function(a){a in b&&(l[a]=b[a])}));var m=l.type;switch(c&&(k.target=this),l.eventPhase){default:case g.NONE:if(k.eventPhase=g.AT_TARGET,this.invokeCurrentListeners(this._earlyListeners,l,m),!this.__getParent)return k.eventPhase=g.AT_TARGET,this._dispatchEvent(l,!1);for(var n=this,o=this;n.__getParent&&null!==(n=n.__getParent());)k._children||(k._children=[]),k._children.push(o),o=n;return o._defaultSync=j._defaultSync,k.eventPhase=g.CAPTURING_PHASE,o._dispatchEvent(l,!1);case g.CAPTURING_PHASE:if(k._stopPropagation)return h();this.invokeCurrentListeners(this._listeners,l,m);var p=k._children&&k._children.length&&k._children.pop();return p&&p!==l.target||(k.eventPhase=g.AT_TARGET),p&&(p._defaultSync=j._defaultSync),(p||this)._dispatchEvent(l,!1);case g.AT_TARGET:return k._stopPropagation?h():(this.invokeCurrentListeners(this._listeners,l,m,!0),k.bubbles?(k.eventPhase=g.BUBBLING_PHASE,this._dispatchEvent(l,!1)):h());case g.BUBBLING_PHASE:if(k._stopPropagation)return h();var q=this.__getParent&&this.__getParent();return q?(q.invokeCurrentListeners(q._listeners,l,m,!0),q._defaultSync=j._defaultSync,q._dispatchEvent(l,!1)):h()}},invokeCurrentListeners:function(a,b,c,e){var f=i.get(b),h=this;f.currentTarget=this;var j=d(a,c,{}),k=j.listenersByType.concat(),l=k.length?1:0;return k.some(function(a,d){var i=e?h["on"+c]:null;if(f._stopImmediatePropagation)return!0;d===l&&"function"==typeof i&&this.tryCatch(function(){i.call(b.currentTarget,b)===!1&&b.preventDefault()});var j=a.options,k=j.once,m=j.passive,n=j.capture;if(f._passive=m,n&&b.target!==b.currentTarget&&b.eventPhase===g.CAPTURING_PHASE||b.eventPhase===g.AT_TARGET||!n&&b.target!==b.currentTarget&&b.eventPhase===g.BUBBLING_PHASE){var o=a.listener;this.tryCatch(function(){o.call(b.currentTarget,b)}),k&&this.removeEventListener(c,o,j)}},this),this.tryCatch(function(){var a=e?h["on"+c]:null;if("function"==typeof a&&k.length<2){a.call(b.currentTarget,b)===!1&&b.preventDefault()}}),!b.defaultPrevented},tryCatch:function(a){try{a()}catch(a){this.triggerErrorEvent(a)}}, -triggerErrorEvent:function(a){var b=a;"string"==typeof a&&(b=new Error("Uncaught exception: "+a));var c;c="undefined"==typeof window||"undefined"==typeof ErrorEvent||window&&"object"==typeof window&&!window.dispatchEvent?function(){setTimeout(function(){throw b})}:function(){var c=new ErrorEvent("error",{error:a,message:b.message||"",filename:b.fileName||"",lineno:b.lineNumber||0,colno:b.columnNumber||0});window.dispatchEvent(c)},this.__userErrorEventHandler?this.__userErrorEventHandler(b,c):c()}}),e.prototype[Symbol.toStringTag]="EventTargetPrototype",Object.defineProperty(e,"prototype",{writable:!1});var m=e,n={createInstance:function(a){function b(){this.__setOptions(a)}return b.prototype=m.prototype,new b}},o=void 0!==b&&b.exports?c:window;o.ShimEvent=j,o.ShimCustomEvent=k,o.ShimDOMException=f,o.ShimEventTarget=e,o.EventTargetFactory=n}()},{}],299:[function(a,b,c){(function(a){function b(a,b){for(var c=0,d=a.length-1;d>=0;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c--;c)a.unshift("..");return a}function d(a,b){if(a.filter)return a.filter(b);for(var c=[],d=0;d=-1&&!e;f--){var g=f>=0?arguments[f]:a.cwd();if("string"!=typeof g)throw new TypeError("Arguments to path.resolve must be strings");g&&(c=g+"/"+c,e="/"===g.charAt(0))}return c=b(d(c.split("/"),function(a){return!!a}),!e).join("/"),(e?"/":"")+c||"."},c.normalize=function(a){var e=c.isAbsolute(a),f="/"===g(a,-1);return a=b(d(a.split("/"),function(a){return!!a}),!e).join("/"),a||e||(a="."),a&&f&&(a+="/"),(e?"/":"")+a},c.isAbsolute=function(a){return"/"===a.charAt(0)},c.join=function(){var a=Array.prototype.slice.call(arguments,0);return c.normalize(d(a,function(a,b){if("string"!=typeof a)throw new TypeError("Arguments to path.join must be strings");return a}).join("/"))},c.relative=function(a,b){function d(a){for(var b=0;b=0&&""===a[c];c--);return b>c?[]:a.slice(b,c-b+1)}a=c.resolve(a).substr(1),b=c.resolve(b).substr(1);for(var e=d(a.split("/")),f=d(b.split("/")),g=Math.min(e.length,f.length),h=g,i=0;i1)for(var c=1;c=0;--d){var e=this.tryEntries[d],f=e.completion;if("root"===e.tryLoc)return b("end");if(e.tryLoc<=this.prev){var g=t.call(e,"catchLoc"),h=t.call(e,"finallyLoc");if(g&&h){if(this.prev=0;--c){var d=this.tryEntries[c];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev=0;--b){var c=this.tryEntries[b];if(c.finallyLoc===a)return this.complete(c.completion,c.afterLoc),n(c),D}},catch:function(a){for(var b=this.tryEntries.length-1;b>=0;--b){var c=this.tryEntries[b];if(c.tryLoc===a){var d=c.completion;if("throw"===d.type){var e=d.arg;n(c)}return e}}throw new Error("illegal catch attempt")},delegateYield:function(a,b,c){return this.delegate={iterator:p(a),resultName:b,nextLoc:c},"next"===this.method&&(this.arg=r),D}}}("object"==typeof c?c:"object"==typeof window?window:"object"==typeof self?self:this)}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:300}],302:[function(a,b,c){function d(a){return a&&"function"==typeof a.then}function e(a,b){a.then(null,b)}function f(a){function b(a,b){j.v=a,j.s=b,j.c[b].forEach(function(b){b(a)}),j.c[b].length&&(j.c=null)}function c(a){j.c&&(d(a)?e(a.then(c),f):b(a,h))}function f(a){j.c&&(d(a)?e(a.then(f),f):b(a,i))}var j=this;j.v=0,j.s=g,j.c=[[],[]];try{a(c,f)}catch(a){f(a)}}var g=2,h=0,i=1,j=f.prototype;j.then=function(a,b){var c=this;return new f(function(d,e){function f(){try{d(a?a(c.v):c.v)}catch(a){g(a)}}var g="function"==typeof b?b:e;c.s===h?f():c.s===i?g(c.v):(c.c[h].push(f),c.c[i].push(g))})},j.catch=function(a){var b=this;return new f(function(c,d){function e(){try{c(a(b.v))}catch(a){d(a)}}b.s===i?e():b.s===h?c(b.v):(b.c[i].push(e),b.c[h].push(c))})},f.all=function(a){return new f(function(b,c,f){f=a.length;var g=[];if(!f)return void b(g);a.forEach(function(h,i){d(h)?e(h.then(function(a){g[i]=a,--f||b(g)}),c):(g[i]=h,--f||b(a))})})},f.race=function(a){var b=!1;return new f(function(c,f){a.some(function(a,g){if(!d(a))return c(a),b=!0,!0;e(a.then(function(a){b||(c(a),b=!0)}),f)})})},f.resolve=function(a){return new f(function(b,c){b(a)})},f.reject=function(a){return new f(function(b,c){c(a)})},b.exports=f},{}],303:[function(a,b,c){b.exports=[{sparseArrays:{testPlainObjects:!0,test:function(a){return Array.isArray(a)},replace:function(a,b){return b.iterateUnsetNumeric=!0,a}}},{sparseUndefined:{test:function(a,b){return void 0===a&&b.ownKeys===!1},replace:function(a){return null},revive:function(a){}}}]},{}],304:[function(a,b,c){b.exports=a("./structured-cloning").concat({checkDataCloneException:[function(a){var b={}.toString.call(a).slice(8,-1);if(["symbol","function"].includes(typeof a)||["Arguments","Module","Error","Promise","WeakMap","WeakSet"].includes(b)||a===Object.prototype||("Blob"===b||"File"===b)&&a.isClosed||a&&"object"==typeof a&&"number"==typeof a.nodeType&&"function"==typeof a.insertBefore)throw new DOMException("The object cannot be cloned.","DataCloneError");return!1}]})},{"./structured-cloning":305}],305:[function(a,b,c){b.exports=[a("../types/user-object"),a("../presets/undefined"),a("../types/primitive-objects"),a("../types/special-numbers"),a("../types/date"),a("../types/regexp"),"function"==typeof Map&&a("../types/map"),"function"==typeof Set&&a("../types/set"),"function"==typeof ArrayBuffer&&a("../types/arraybuffer"),"function"==typeof Uint8Array&&a("../types/typed-arrays"),"function"==typeof DataView&&a("../types/dataview"),"undefined"!=typeof Intl&&a("../types/intl-types"),a("../types/imagedata"),a("../types/imagebitmap"),a("../types/file"),a("../types/filelist"),a("../types/blob")]},{"../presets/undefined":306,"../types/arraybuffer":307,"../types/blob":308,"../types/dataview":309,"../types/date":310,"../types/file":311,"../types/filelist":312,"../types/imagebitmap":313,"../types/imagedata":314,"../types/intl-types":315,"../types/map":316,"../types/primitive-objects":317,"../types/regexp":318,"../types/set":319,"../types/special-numbers":320,"../types/typed-arrays":321,"../types/user-object":323}],306:[function(a,b,c){b.exports=[a("../presets/sparse-undefined"),a("../types/undefined")]},{"../presets/sparse-undefined":303,"../types/undefined":322}],307:[function(a,b,c){var d=a("typeson"),e=a("base64-arraybuffer");c.ArrayBuffer=[function(a){return"ArrayBuffer"===d.toStringTag(a)},function(a){return e.encode(a)},function(a){return e.decode(a)}]},{"base64-arraybuffer":2,typeson:325}],308:[function(a,b,c){var d=a("typeson");c.Blob={test:function(a){return"Blob"===d.toStringTag(a)},replace:function(a){var b=new XMLHttpRequest;if(b.open("GET",URL.createObjectURL(a),!1),200!==b.status&&0!==b.status)throw new Error("Bad Blob access: "+b.status);return b.send(),{type:a.type,stringContents:b.responseText}},revive:function(a){return new Blob([a.stringContents],{type:a.type})},replaceAsync:function(a){return new d.Promise(function(b,c){if(a.isClosed)return void c(new Error("The Blob is closed"));var d=new FileReader;d.addEventListener("load",function(){b({type:a.type,stringContents:d.result})}),d.addEventListener("error",function(){c(d.error)}),d.readAsText(a)})}}},{typeson:325}],309:[function(a,b,c){var d=a("typeson"),e=a("base64-arraybuffer");c.DataView=[function(a){return"DataView"===d.toStringTag(a)},function(a){return{buffer:e.encode(a.buffer),byteOffset:a.byteOffset,byteLength:a.byteLength}},function(a){return new DataView(e.decode(a.buffer),a.byteOffset,a.byteLength)}]},{"base64-arraybuffer":2,typeson:325}],310:[function(a,b,c){var d=a("typeson");c.Date=[function(a){return"Date"===d.toStringTag(a)},function(a){return a.getTime()},function(a){return new Date(a)}]},{typeson:325}],311:[function(a,b,c){var d=a("typeson");c.File={test:function(a){return"File"===d.toStringTag(a)},replace:function(a){var b=new XMLHttpRequest;if(b.open("GET",URL.createObjectURL(a),!1),200!==b.status&&0!==b.status)throw new Error("Bad Blob access: "+b.status);return b.send(),{type:a.type,stringContents:b.responseText,name:a.name,lastModified:a.lastModified}},revive:function(a){return new File([a.stringContents],a.name,{type:a.type,lastModified:a.lastModified})},replaceAsync:function(a){return new d.Promise(function(b,c){if(a.isClosed)return void c(new Error("The File is closed"));var d=new FileReader;d.addEventListener("load",function(){b({type:a.type,stringContents:d.result,name:a.name,lastModified:a.lastModified})}),d.addEventListener("error",function(){c(d.error)}),d.readAsText(a)})}}},{typeson:325}],312:[function(a,b,c){var d=a("typeson");c.File=a("./file").File,c.FileList={test:function(a){return"FileList"===d.toStringTag(a)},replace:function(a){for(var b=[],c=0;c0?"Infinity":"-Infinity"},function(a){return{NaN:0/0,Infinity:1/0,"-Infinity":-1/0}[a]}]},{}],321:[function(a,b,c){(function(b){var d=a("typeson"),e=a("base64-arraybuffer"),f="undefined"==typeof self?b:self;["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"].forEach(function(a){var b=f[a];b&&(c[a]=[function(b){return d.toStringTag(b)===a},function(a){return e.encode(a.buffer,a.byteOffset,a.byteLength)},function(a){return new b(e.decode(a))}])})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-arraybuffer":2,typeson:325}],322:[function(a,b,c){var d=a("typeson");b.exports={undefined:[function(a,b){return void 0===a&&(b.ownKeys||!("ownKeys"in b))},function(a){return null},function(a){return new d.Undefined}]}},{typeson:325}],323:[function(a,b,c){var d=a("typeson");c.userObjects=[function(a,b){return d.isUserObject(a)},function(a){return Object.assign({},a)},function(a){return a}]},{typeson:325}],324:[function(a,b,c){b.exports=Array.from||function(a){for(var b=[],c=a.next();!c.done;c=a.next())b.push(c.value);return b}},{}],325:[function(a,b,c){function d(a,b){return j.isObject(a)&&"function"==typeof a.then&&(!b||"function"==typeof a.catch)}function e(a){return q.call(a).slice(8,-1)}function f(a,b){if(!a||"object"!=typeof a)return!1;var c=r(a);if(!c)return!1;var d=s.call(c,"constructor")&&c.constructor;return"function"!=typeof d?null===b:"function"==typeof d&&null!==b&&t.call(d)===t.call(b)}function g(a){return!(!a||"Object"!==e(a))&&(!r(a)||f(a,Object))}function h(a){if(!a||"Object"!==e(a))return!1;var b=r(a);return!b||(f(a,Object)||h(b))}function i(a){return a&&"object"==typeof a}function j(a){var b=[],c=[],e={},h=this.types={},j=this.stringify=function(b,c,d,e){e=Object.assign({},a,e,{stringification:!0});var f=r(b,null,e);return p(f)?JSON.stringify(f[0],c,d):f.then(function(a){return JSON.stringify(a,c,d)})};this.stringifySync=function(a,b,c,d){return j(a,b,c,Object.assign({},{throwOnBadSyncType:!0},d,{sync:!0}))},this.stringifyAsync=function(a,b,c,d){return j(a,b,c,Object.assign({},{throwOnBadSyncType:!0},d,{sync:!1}))};var q=this.parse=function(b,c,d){return d=Object.assign({},a,d,{parse:!0}),s(JSON.parse(b,c),d)};this.parseSync=function(a,b,c){return q(a,b,Object.assign({},{throwOnBadSyncType:!0},c,{sync:!0}))},this.parseAsync=function(a,b,c){return q(a,b,Object.assign({},{throwOnBadSyncType:!0},c,{sync:!1}))};var r=this.encapsulate=function(d,h,j){function k(a){return o(s).length?a&&g(a)&&!a.hasOwnProperty("$types")?a.$types=s:a={$:a,$types:{$:s}}:i(a)&&a.hasOwnProperty("$types")&&(a={$:a,$types:!0}),a}function l(a,b){return Promise.all(b.map(function(a){return a[1].p})).then(function(c){return Promise.all(c.map(function(c){var d=[],e=b.splice(0,1)[0],g=e[0],h=e[2],i=e[3],j=e[4],k=e[5],o=m(g,c,h,i,d),p=f(o,n);return g&&p?o.p.then(function(b){return j[k]=b,l(a,d)}):(g?j[k]=o:a=p?o.p:o,l(a,d))}))}).then(function(){return a})}function m(a,c,d,e,h){var i=typeof c;if(i in{string:1,boolean:1,number:1,undefined:1})return void 0===c||"number"===i&&(isNaN(c)||c===-1/0||1/0===c)?q(a,c,e,h):c;if(null===c)return c;if(d&&!e.iterateIn&&!e.iterateUnsetNumeric){var j=t.indexOf(c);if(!(j<0))return s[a]="#","#"+u[j];d===!0&&(t.push(c),u.push(a))}var k=g(c),l=p(c),r=(k||l)&&(!b.length||e.replaced)||e.iterateIn?c:q(a,c,e,h,k||l);if(r!==c)return r;var v;if(l||"array"===e.iterateIn)v=new Array(c.length);else{if(!k&&"object"!==e.iterateIn)return""===a&&f(c,n)?(h.push([a,c,d,e]),c):c;v={}}if(e.iterateIn)for(var w in c){var x={ownKeys:c.hasOwnProperty(w)},y=a+(a?".":"")+w,z=m(y,c[w],!!d,x,h);f(z,n)?h.push([y,z,!!d,x,v,w]):void 0!==z&&(v[w]=z)}else o(c).forEach(function(b){var e=a+(a?".":"")+b,g=m(e,c[b],!!d,{ownKeys:!0},h);f(g,n)?h.push([e,g,!!d,{ownKeys:!0},v,b]):void 0!==g&&(v[b]=g)});if(e.iterateUnsetNumeric)for(var A=0,B=c.length;A=this.length||!Number.isInteger(a)?null:this._items[a]},clone:function(){var a=h.__createInstance();return a._items=this._items.slice(),a._length=this.length,a.addIndexes(),a},addIndexes:function(){for(var a=0;a":"<";void 0!==b&&(k.push("AND",j,n+"= ?"),l.push(v.encode(b))),void 0!==a?(k.push("AND",i,n+"= ?"),l.push(v.encode(a))):g&&void 0!==h.__key&&(k.push("AND",i,n+" ?"),l.push(v.encode(h.__key))),h.__count||(k.push("ORDER BY",i,m),h.__unique||"key"===h.__keyColumnName||k.push(",",j,m),!h.__unique&&h.__indexSource&&k.push(",",r.sqlQuote(h.__valueColumnName),m),k.push("LIMIT",f)),k=k.join(" "),B.default.DEBUG&&console.log(k,l),c.executeSql(k,l,function(a,b){h.__count?d(void 0,b.rows.length,void 0):b.rows.length>1?(h.__prefetchedIndex=0,h.__prefetchedData=b.rows,B.default.DEBUG&&console.log("Preloaded "+h.__prefetchedData.length+" records for cursor"),h.__decode(b.rows.item(0),d)):1===b.rows.length?h.__decode(b.rows.item(0),d):(B.default.DEBUG&&console.log("Reached end of cursors"),d(void 0,void 0,void 0))},function(a,b){B.default.DEBUG&&console.log("Could not execute Cursor.continue",k,l),e(b)})},i.prototype.__findMultiEntry=function(a,b,c,d,e){var f=this;if(f.__prefetchedData&&f.__prefetchedData.length===f.__prefetchedIndex)return B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),void d(void 0,void 0,void 0);var g=r.sqlQuote(f.__keyColumnName),h=["SELECT * FROM",r.escapeStoreNameForSQL(f.__store.__currentName)],i=[];h.push("WHERE",g,"NOT NULL"),f.__range&&void 0!==f.__range.lower&&Array.isArray(f.__range.upper)&&0===f.__range.upper.indexOf(f.__range.lower)&&(h.push("AND",g,"LIKE ? ESCAPE '^'"),i.push("%"+r.sqlLIKEEscape(f.__range.__lowerCached.slice(0,-1))+"%"));var j=f.__sqlDirection,k="ASC"===j?">":"<",l=r.sqlQuote("key");void 0!==b&&(h.push("AND",l,k+"= ?"),i.push(v.encode(b))),void 0!==a?(h.push("AND",g,k+"= ?"),i.push(v.encode(a))):void 0!==f.__key&&(h.push("AND",g,k+" ?"),i.push(v.encode(f.__key))),f.__count||(h.push("ORDER BY",g,j),f.__unique||"key"===f.__keyColumnName||h.push(",",r.sqlQuote("key"),j),!f.__unique&&f.__indexSource&&h.push(",",r.sqlQuote(f.__valueColumnName),j)),h=h.join(" "),B.default.DEBUG&&console.log(h,i),c.executeSql(h,i,function(a,b){if(b.rows.length>0){if(f.__count){for(var c=0,e=0;eb.matchingKey.replace("[","z")?q?-1:1:a.keyb.key?"prev"===f.direction?-1:1:0}),i.length>1?(f.__prefetchedIndex=0,f.__prefetchedData={data:i,length:i.length,item:function(a){return this.data[a]}},B.default.DEBUG&&console.log("Preloaded "+f.__prefetchedData.length+" records for multiEntry cursor"),f.__decode(i[0],d)):1===i.length?(B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),f.__decode(i[0],d)):(B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),d(void 0,void 0,void 0))}else B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),d(void 0,void 0,void 0)},function(a,b){B.default.DEBUG&&console.log("Could not execute Cursor.continue",h,i),e(b)})},i.prototype.__onsuccess=function(a){var b=this;return function(c,d,e){if(b.__count)a(d,b.__req);else{void 0!==c&&(b.__gotValue=!0),b.__key=void 0===c?null:c,b.__primaryKey=void 0===e?null:e,b.__value=void 0===d?null:d;a(void 0===c?null:b,b.__req)}}},i.prototype.__decode=function(a,b){var c=this;if(c.__multiEntryIndex&&c.__unique){if(c.__matchedKeys||(c.__matchedKeys={}),c.__matchedKeys[a.matchingKey])return void b(void 0,void 0,void 0);c.__matchedKeys[a.matchingKey]=!0}var d=r.unescapeSQLiteResponse(c.__multiEntryIndex?a.matchingKey:a[c.__keyColumnName]),e=r.unescapeSQLiteResponse(a[c.__valueColumnName]),f=r.unescapeSQLiteResponse(a.key);b(v.decode(d,c.__multiEntryIndex),c.__valueDecoder.decode(e),v.decode(f),d)},i.prototype.__sourceOrEffectiveObjStoreDeleted=function(){m.default.__invalidStateIfDeleted(this.__store,"The cursor's effective object store has been deleted"),this.__indexSource&&z.default.__invalidStateIfDeleted(this.source,"The cursor's index source has been deleted")},i.prototype.__invalidateCache=function(){this.__prefetchedData=null},i.prototype.__continue=function(a,b){var c=this,d=void 0!==c.__advanceCount;if(t.default.__assertActive(c.__store.transaction),c.__sourceOrEffectiveObjStoreDeleted(),!c.__gotValue&&!b)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");if(void 0!==a){v.convertValueToKeyRethrowingAndIfInvalid(a);var e=(0,p.cmp)(a,c.key);if(0===e||c.direction.includes("next")&&e===-1||c.direction.includes("prev")&&1===e)throw(0,n.createDOMException)("DataError","Cannot "+(d?"advance":"continue")+" the cursor in an unexpected direction")}this.__continueFinish(a,void 0,d)},i.prototype.__continueFinish=function(a,b,c){var d=this,e=d.__advanceCount||B.default.cursorPreloadPackSize||100;d.__gotValue=!1,d.__req.__readyState="pending",d.__store.transaction.__pushToQueue(d.__req,function f(g,h,i,j,k){function l(a,b,e){if(c){if(d.__advanceCount>=2&&void 0!==a)return d.__advanceCount--,d.__key=a,d.__continue(void 0,!0),void k();d.__advanceCount=void 0}d.__onsuccess(i)(a,b,e)}if(d.__prefetchedData&&++d.__prefetchedIndex0||0===m&&(d.__unique||void 0===b||(0,p.cmp)(k,b)>=0))return void l(c,e,k);f(g,h,i,j)}()});d.__find(a,b,g,l,function(){d.__advanceCount=void 0,j.apply(void 0,arguments)},e)})},i.prototype.continue=function(){this.__continue(arguments[0])},i.prototype.continuePrimaryKey=function(a,b){function c(){d.__continueFinish(a,b,!1)}var d=this;if(t.default.__assertActive(d.__store.transaction),d.__sourceOrEffectiveObjStoreDeleted(),!d.__indexSource)throw(0,n.createDOMException)("InvalidAccessError","`continuePrimaryKey` may only be called on an index source.");if(!["next","prev"].includes(d.direction))throw(0,n.createDOMException)("InvalidAccessError","`continuePrimaryKey` may not be called with unique cursors.");if(!d.__gotValue)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");v.convertValueToKeyRethrowingAndIfInvalid(a),v.convertValueToKeyRethrowingAndIfInvalid(b);var e=(0,p.cmp)(a,d.key);if("next"===d.direction&&e===-1||"prev"===d.direction&&1===e)throw(0,n.createDOMException)("DataError","Cannot continue the cursor in an unexpected direction");0===e?x.encode(b,function(a){x.encode(d.primaryKey,function(b){if(a===b||"next"===d.direction&&ab)throw(0,n.createDOMException)("DataError","Cannot continue the cursor in an unexpected direction");c()})}):c()},i.prototype.advance=function(a){var b=this;if(0===(a=r.enforceRange(a,"unsigned long")))throw new TypeError("Calling advance() with count argument 0");b.__gotValue&&(b.__advanceCount=a),b.__continue()},i.prototype.update=function(a){function b(a){m.default.__storingRecordObjectStore(d,c.__store,a,!1,e)}var c=this;if(!arguments.length)throw new TypeError("A value must be passed to update()");if(t.default.__assertActive(c.__store.transaction),c.__store.transaction.__assertWritable(),c.__sourceOrEffectiveObjStoreDeleted(),!c.__gotValue)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");if(c.__keyOnly)throw(0,n.createDOMException)("InvalidStateError","This cursor method cannot be called when the key only flag has been set.");var d=c.__store.transaction.__createRequest(c),e=c.primaryKey;if(null!==c.__store.keyPath){var f=c.__store.__validateKeyAndValueAndCloneValue(a,void 0,!0),g=j(f,2),h=g[0],i=g[1];if(0!==(0,p.cmp)(c.primaryKey,h))throw(0,n.createDOMException)("DataError","The key of the supplied value to `update` is not equal to the cursor's effective key");b(i)}else{b(x.clone(a))}return d},i.prototype.delete=function(){var a=this;if(t.default.__assertActive(a.__store.transaction),a.__store.transaction.__assertWritable(),a.__sourceOrEffectiveObjStoreDeleted(),!a.__gotValue)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");if(a.__keyOnly)throw(0,n.createDOMException)("InvalidStateError","This cursor method cannot be called when the key only flag has been set.");return this.__store.transaction.__addToTransactionQueue(function(b,c,d,e){a.__find(void 0,void 0,b,function(c,f,g){var h="DELETE FROM "+r.escapeStoreNameForSQL(a.__store.__currentName)+' WHERE "key" = ?';B.default.DEBUG&&console.log(h,c,g),b.executeSql(h,[r.escapeSQLiteStatement(v.encode(g))],function(b,f){1===f.rowsAffected?(a.__store.__cursors.forEach(function(a){a.__invalidateCache()}),d(void 0)):e("No rows with key found"+c)},function(a,b){e(b)})},e)},void 0,a)},i.prototype[Symbol.toStringTag]="IDBCursorPrototype",["source","direction","key","primaryKey"].forEach(function(a){Object.defineProperty(i.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),Object.defineProperty(i,"prototype",{writable:!1});var D=function(a){function b(){return f(this,b),g(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return h(b,a),b}(i),E=D;D.__createInstance=function(){function a(){var a;(a=i.__super).call.apply(a,[this].concat(c)),this[Symbol.toStringTag]="IDBCursorWithValue",r.defineReadonlyProperties(this,"value")}for(var b=arguments.length,c=Array(b),d=0;dd?1:c===d?0:-1;if(A.default.DEBUG){var f=u.decode(c),g=u.decode(d);"object"===(void 0===a?"undefined":j(a))&&(a=JSON.stringify(a),f=JSON.stringify(f)),"object"===(void 0===b?"undefined":j(b))&&(b=JSON.stringify(b),g=JSON.stringify(g)),f!==a&&console.warn(a+" was incorrectly encoded as "+f),g!==b&&console.warn(b+" was incorrectly encoded as "+g)}return e}Object.defineProperty(c,"__esModule",{value:!0}),c.shimIndexedDB=c.cmp=c.IDBFactory=void 0;var j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},k=a("./Event"),l=a("./IDBVersionChangeEvent"),m=e(l),n=a("./DOMException"),o=a("./IDBRequest"),p=a("./DOMStringList"),q=e(p),r=a("./util"),s=d(r),t=a("./Key"),u=d(t),v=a("./IDBTransaction"),w=e(v),x=a("./IDBDatabase"),y=e(x),z=a("./CFG"),A=e(z),B=void 0,C=h;h.__createInstance=function(){function a(){this[Symbol.toStringTag]="IDBFactory",this.modules={Event:"undefined"!=typeof Event?Event:k.ShimEvent,Error:Error,ShimEvent:k.ShimEvent,ShimCustomEvent:k.ShimCustomEvent,ShimEventTarget:k.ShimEventTarget,ShimDOMException:n.ShimDOMException,ShimDOMStringList:q.default,IDBFactory:C},this.utils={createDOMException:n.createDOMException},this.__connections=[]}return a.prototype=C.prototype,new a},h.prototype.open=function(a){function b(a,b){if(!j){b=b?(0,n.webSQLErrback)(b):a,j=!0;var c=(0,k.createEvent)("error",b,{bubbles:!0,cancelable:!0});i.__readyState="done",i.__error=b,i.__result=void 0,i.dispatchEvent(c)}}function c(c){var f=A.default.win.openDatabase(p,1,a,A.default.DEFAULT_DB_SIZE);if(i.__readyState="done",void 0===e&&(e=c||1),c>e){return void b((0,n.createDOMException)("VersionError","An attempt was made to open a database using a lower version than the existing version.",e))}f.transaction(function(g){g.executeSql("CREATE TABLE IF NOT EXISTS __sys__ (name VARCHAR(255), keyPath VARCHAR(255), autoInc BOOLEAN, indexList BLOB, currNum INTEGER)",[],function(){g.executeSql('SELECT "name", "keyPath", "autoInc", "indexList" FROM __sys__',[],function(g,h){if(i.__result=y.default.__createInstance(f,a,c,e,h),d.__connections.push(i.result),c=d.length?a.executeSql("DROP TABLE IF EXISTS __sys__",[],function(){f()},c):a.executeSql("DROP TABLE "+s.escapeStoreNameForSQL(s.unescapeSQLiteResponse(d.item(e).name)),[],function(){b(e+1)},function(){b(e+1)})}(0)},function(a){f()})})},c)},c,null,function(a,b,c,d,e){return!(!a.readOnly&&!b)||(p=function(a,b){a?d(a,b):e(b)},!1)})},c)},c)},c),i},h.prototype.cmp=function(a,b){if(!(this instanceof h))throw new TypeError("Illegal invocation") -;if(arguments.length<2)throw new TypeError("You must provide two keys to be compared");return u.convertValueToKeyRethrowingAndIfInvalid(a),u.convertValueToKeyRethrowingAndIfInvalid(b),i(a,b)},h.prototype.webkitGetDatabaseNames=function(){function a(a,d){if(!b){d=d?(0,n.webSQLErrback)(d):a,b=!0;var e=(0,k.createEvent)("error",d,{bubbles:!0,cancelable:!0});c.__readyState="done",c.__error=d,c.__result=void 0,c.dispatchEvent(e)}}if(!(this instanceof h))throw new TypeError("Illegal invocation");if(f())throw(0,n.createDOMException)("SecurityError","Cannot get IndexedDB database names from an opaque origin.");var b=!1,c=o.IDBRequest.__createInstance();return g(function(){B.readTransaction(function(b){b.executeSql('SELECT "name" FROM dbVersions',[],function(a,b){for(var d=q.default.__createInstance(),e=0;ed.__connections.length-1)throw new TypeError("If providing an argument, __forceClose must be called with a numeric index to indicate a specific connection to lose");c(d.__connections[a])}},h.prototype[Symbol.toStringTag]="IDBFactoryPrototype",Object.defineProperty(h,"prototype",{writable:!1});var D=h.__createInstance();c.IDBFactory=h,c.cmp=i,c.shimIndexedDB=D},{"./CFG":326,"./DOMException":327,"./DOMStringList":328,"./Event":329,"./IDBDatabase":331,"./IDBRequest":336,"./IDBTransaction":337,"./IDBVersionChangeEvent":338,"./Key":339,"./util":343,fs:3,path:299}],333:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function f(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b0&&h.push("OR"),h.push(m.escapeIndexNameForSQL(b.name),"LIKE ? ESCAPE '^' "),i.push("%"+m.sqlLIKEEscape(o.encode(a,b.multiEntry))+"%")}),h.push(")");else if(b.multiEntry)h.push("AND",m.escapeIndexNameForSQL(b.name),"LIKE ? ESCAPE '^'"),i.push("%"+m.sqlLIKEEscape(o.encode(c,b.multiEntry))+"%");else{var j=(0,p.convertValueToKeyRange)(c,a);(0,p.setSQLForKeyRange)(j,m.escapeIndexNameForSQL(b.name),h,i,!0,!1)}return[a,b,f,c,d,e,h,i]}Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.IDBIndex=c.executeFetchIndexData=c.buildFetchIndexDataSQL=void 0;var j=a("./DOMException"),k=a("./IDBCursor"),l=a("./util"),m=e(l),n=a("./Key"),o=e(n),p=a("./IDBKeyRange"),q=a("./IDBTransaction"),r=d(q),s=a("./Sca"),t=e(s),u=a("./CFG"),v=d(u),w=a("./IDBObjectStore"),x=d(w),y=["objectStore","keyPath","multiEntry","unique"],z=g;g.__createInstance=function(a,b){function c(){var c=this;c[Symbol.toStringTag]="IDBIndex",m.defineReadonlyProperties(c,y),c.__objectStore=a,c.__name=c.__originalName=b.columnName,c.__keyPath=Array.isArray(b.keyPath)?b.keyPath.slice():b.keyPath;var d=b.optionalParams;c.__multiEntry=!(!d||!d.multiEntry),c.__unique=!(!d||!d.unique),c.__deleted=!!b.__deleted,c.__objectStore.__cursors=b.cursors||[],Object.defineProperty(c,"__currentName",{get:function(){return"__pendingName"in c?c.__pendingName:c.name}}),Object.defineProperty(c,"name",{enumerable:!1,configurable:!1,get:function(){return this.__name},set:function(b){var c=this;b=m.convertToDOMString(b);var d=c.name;if(r.default.__assertVersionChange(c.objectStore.transaction),r.default.__assertActive(c.objectStore.transaction),z.__invalidStateIfDeleted(c),x.default.__invalidStateIfDeleted(c),b!==d){if(c.objectStore.__indexes[b]&&!c.objectStore.__indexes[b].__deleted&&!c.objectStore.__indexes[b].__pendingDelete)throw(0,j.createDOMException)("ConstraintError",'Index "'+b+'" already exists on '+c.objectStore.__currentName);c.__name=b;var e=c.objectStore;delete e.__indexes[d],e.__indexes[b]=c,e.indexNames.splice(e.indexNames.indexOf(d),1,b);var f=e.transaction.__storeHandles[e.name],g=f.__indexHandles[d];g.__name=b,f.__indexHandles[b]=g,c.__pendingName=d;var h=[["key","BLOB "+(e.autoIncrement?"UNIQUE, inc INTEGER PRIMARY KEY AUTOINCREMENT":"PRIMARY KEY")],["value","BLOB"]].concat(Array.from(e.indexNames).filter(function(a){return a!==b}).map(function(a){return[m.escapeIndexNameForSQL(a),"BLOB"]}));c.__renameIndex(e,d,b,h,function(b,c){z.__updateIndexList(a,b,function(a){delete f.__pendingName,c(a)})})}}})}return c.prototype=z.prototype,new c},g.__invalidStateIfDeleted=function(a,b){if(a.__deleted||a.__pendingDelete||a.__pendingCreate&&a.objectStore.transaction&&a.objectStore.transaction.__errored)throw(0,j.createDOMException)("InvalidStateError",b||"This index has been deleted")},g.__clone=function(a,b){var c=g.__createInstance(b,{columnName:a.name,keyPath:a.keyPath,optionalParams:{multiEntry:a.multiEntry,unique:a.unique}});return["__pendingCreate","__pendingDelete","__deleted","__originalName","__recreated"].forEach(function(b){c[b]=a[b]}),c},g.__createIndex=function(a,b){var c=b.name,d=a.__currentName,e=a.__indexes[c];b.__pendingCreate=!0,a.indexNames.push(c),a.__indexes[c]=b;var f=a.__indexHandles[c];(!f||b.__pendingDelete||b.__deleted||f.__pendingDelete||f.__deleted)&&(f=a.__indexHandles[c]=g.__clone(b,a)),a.transaction.__addNonRequestToTransactionQueue(function(h,i,k,l){function n(a,b){l((0,j.createDOMException)("UnknownError",'Could not create index "'+c+'"'+b.code+"::"+b.message,b))}function p(e){g.__updateIndexList(a,e,function(){e.executeSql('SELECT "key", "value" FROM '+m.escapeStoreNameForSQL(d),[],function(e,g){function h(i){if(i3&&void 0!==arguments[3]?arguments[3]:[],e=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,f=a.__currentName,g=m.escapeStoreNameForSQL(f),h=m.escapeStoreNameForSQL("tmp_"+f),i=d.map(function(a){return a[0]}),j=d.map(function(a){return a.join(" ")}),k=j.length?j.join(", ")+", ":"",l=i.length?i.join(", ")+", ":"";a.transaction.__addNonRequestToTransactionQueue(function(a,d,f,i){var j="ALTER TABLE "+g+" RENAME TO "+h;a.executeSql(j,[],function(a,d){var j="CREATE TABLE "+g+"("+k+m.escapeIndexNameForSQL(c)+" BLOB)";a.executeSql(j,[],function(a,d){var j="INSERT INTO "+g+"("+l+m.escapeIndexNameForSQL(c)+") SELECT "+l+m.escapeIndexNameForSQL(b)+" FROM "+h;a.executeSql(j,[],function(a,b){var c="DROP TABLE "+h;a.executeSql(c,[],function(a,b){if(e)return void e(a,f);f()},function(a,b){i(b)})},function(a,b){i(b)})})},function(a,b){i(b)})})},Object.defineProperty(g,Symbol.hasInstance,{value:function(a){return m.isObj(a)&&"function"==typeof a.openCursor&&"boolean"==typeof a.multiEntry}}),y.forEach(function(a){Object.defineProperty(g.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),Object.defineProperty(g.prototype,"name",{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")},set:function(a){throw new TypeError("Illegal invocation")}}),g.prototype[Symbol.toStringTag]="IDBIndexPrototype",Object.defineProperty(g,"prototype",{writable:!1}),c.buildFetchIndexDataSQL=i,c.executeFetchIndexData=h,c.IDBIndex=g,c.default=g},{"./CFG":326,"./DOMException":327,"./IDBCursor":330,"./IDBKeyRange":334,"./IDBObjectStore":335,"./IDBTransaction":337,"./Key":339,"./Sca":340,"./util":343}],334:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function e(){throw new TypeError("Illegal constructor")}function f(a,b,c,d,e,f){if(a&&(void 0!==a.lower||void 0!==a.upper)){e&&c.push("AND");var g=void 0,h=void 0,i=void 0!==a.lower,k=void 0!==a.upper;if(i&&(g=f?a.__lowerCached:j.encode(a.lower)),k&&(h=f?a.__upperCached:j.encode(a.upper)),i){if(d.push(l.escapeSQLiteStatement(g)),k&&g===h&&!a.lowerOpen&&!a.upperOpen)return void c.push(b,"=","?");c.push(b,a.lowerOpen?">":">=","?")}i&&k&&c.push("AND"),k&&(c.push(b,a.upperOpen?"<":"<=","?"),d.push(l.escapeSQLiteStatement(h)))}}function g(a,b){if(l.instanceOf(a,e))return"[object IDBKeyRange]"!==!a.toString()?e.__createInstance(a.lower,a.upper,a.lowerOpen,a.upperOpen):a;{if(null!=a)return j.convertValueToKeyRethrowingAndIfInvalid(a),e.only(a);if(b)throw(0,h.createDOMException)("DataError","No key or range was specified")}}Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.convertValueToKeyRange=c.IDBKeyRange=c.setSQLForKeyRange=void 0;var h=a("./DOMException"),i=a("./Key"),j=d(i),k=a("./util"),l=d(k),m=["lower","upper","lowerOpen","upperOpen"],n=e;e.__createInstance=function(a,b,c,d){function e(){if(this[Symbol.toStringTag]="IDBKeyRange",void 0===a&&void 0===b)throw(0,h.createDOMException)("DataError","Both arguments to the key range method cannot be undefined");var e=void 0,f=void 0;if(void 0!==a&&(e=j.roundTrip(a),j.convertValueToKeyRethrowingAndIfInvalid(a)),void 0!==b&&(f=j.roundTrip(b),j.convertValueToKeyRethrowingAndIfInvalid(b)),void 0!==a&&void 0!==b&&a!==b&&j.encode(a)>j.encode(b))throw(0,h.createDOMException)("DataError","`lower` must not be greater than `upper` argument in `bound()` call.");this.__lower=e,this.__upper=f,this.__lowerOpen=!!c,this.__upperOpen=!!d}return e.prototype=n.prototype,new e},e.prototype.includes=function(a){if(!l.isObj(this)||"boolean"!=typeof this.__lowerOpen)throw new TypeError("Illegal invocation");if(!arguments.length)throw new TypeError("IDBKeyRange.includes requires a key argument");return j.convertValueToKeyRethrowingAndIfInvalid(a),j.isKeyInRange(a,this)},e.only=function(a){if(!arguments.length)throw new TypeError("IDBKeyRange.only requires a value argument");return e.__createInstance(a,a,!1,!1)},e.lowerBound=function(a){if(!arguments.length)throw new TypeError("IDBKeyRange.lowerBound requires a value argument");return e.__createInstance(a,void 0,arguments[1],!0)},e.upperBound=function(a){if(!arguments.length)throw new TypeError("IDBKeyRange.upperBound requires a value argument");return e.__createInstance(void 0,a,!0,arguments[1])},e.bound=function(a,b){if(arguments.length<=1)throw new TypeError("IDBKeyRange.bound requires lower and upper arguments");return e.__createInstance(a,b,arguments[2],arguments[3])},e.prototype[Symbol.toStringTag]="IDBKeyRangePrototype",m.forEach(function(a){Object.defineProperty(e.prototype,"__"+a,{enumerable:!1,configurable:!1,writable:!0}),Object.defineProperty(e.prototype,a,{enumerable:!0,configurable:!0,get:function(){if(!l.isObj(this)||"boolean"!=typeof this.__lowerOpen)throw new TypeError("Illegal invocation");return this["__"+a]}})}),Object.defineProperty(e,Symbol.hasInstance,{value:function(a){return l.isObj(a)&&"upper"in a&&"boolean"==typeof a.lowerOpen}}),Object.defineProperty(e,"prototype",{writable:!1}),c.setSQLForKeyRange=f,c.IDBKeyRange=e,c.convertValueToKeyRange=g,c.default=e},{"./DOMException":327,"./Key":339,"./util":343}],335:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function e(a){return a&&a.__esModule?a:{default:a}}function f(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b0&&a.executeSql("DROP TABLE "+o.escapeStoreNameForSQL(b.__currentName),[],function(){a.executeSql('DELETE FROM __sys__ WHERE "name" = ?',[o.escapeSQLiteStatement(b.__currentName)],function(){delete b.__pendingDelete,b.__deleted=!0,c&&(delete c.__pendingDelete,c.__deleted=!0),e()},g)},g)})})},g.prototype.__validateKeyAndValueAndCloneValue=function(a,b,c){var d=this;if(null!==d.keyPath){if(void 0!==b)throw(0,i.createDOMException)("DataError","The object store uses in-line keys and the key parameter was provided",d);var e=v.clone(a);if(b=q.extractKeyValueDecodedFromValueUsingKeyPath(e,d.keyPath),b.invalid)throw(0,i.createDOMException)("DataError","KeyPath was specified, but key was invalid.");if(b.failure){if(!c){if(!d.autoIncrement)throw(0,i.createDOMException)("DataError","Could not evaluate a key from keyPath and there is no key generator");if(!q.checkKeyCouldBeInjectedIntoValue(e,d.keyPath))throw(0,i.createDOMException)("DataError","A key could not be injected into a value");return[void 0,e]}throw(0,i.createDOMException)("DataError","Could not evaluate a key from keyPath")}return[b.value,e]}if(void 0===b){if(!d.autoIncrement)throw(0,i.createDOMException)("DataError","The object store uses out-of-line keys and has no key generator and the key parameter was not provided.",d);b=void 0}else q.convertValueToKeyRethrowingAndIfInvalid(b);return[b,v.clone(a)]},g.prototype.__deriveKey=function(a,b,c,d,e){function f(){v.encode(c,function(a){a=v.decode(a),d(a)})}var g=this;g.autoIncrement?void 0===c?q.generateKeyForStore(a,g,function(a,c){if(a)return void e((0,i.createDOMException)("ConstraintError","The key generator's current number has reached the maximum safe integer limit"));null!==g.keyPath&&q.injectKeyIntoValueUsingKeyPath(b,c,g.keyPath),d(c)},e):q.possiblyUpdateKeyGenerator(a,g,c,f,e):f()},g.prototype.__insertData=function(a,b,c,d,e,g){var h=this,j={},k=Object.keys(h.__indexes).map(function(b){return new z.default(function(d,e){function g(a){void 0!==l&&(j[a.__currentName]=q.encode(l,a.multiEntry))}var k=h.__indexes[b];if(k.__pendingCreate||k.__deleted)return void d();var l=void 0;try{if(l=q.extractKeyValueDecodedFromValueUsingKeyPath(c,k.keyPath,k.multiEntry),l.invalid||l.failure)throw new Error("Go to catch")}catch(a){return void d()}if(l=l.value,k.unique){var m=k.multiEntry&&Array.isArray(l),n=(0,r.buildFetchIndexDataSQL)(!0,k,l,"key",m);r.executeFetchIndexData.apply(void 0,[null].concat(f(n),[a,null,function(a){if(void 0===a)return g(k),void d();e((0,i.createDOMException)("ConstraintError","Index already contains a record equal to "+(m?"one of the subkeys of":"")+"`indexKey`"))},e]))}else g(k),d()})});z.default.all(k).then(function(){var c=["INSERT INTO",o.escapeStoreNameForSQL(h.__currentName),"("],f=[" VALUES ("],k=[];void 0!==d&&(c.push(o.sqlQuote("key"),","),f.push("?,"),k.push(o.escapeSQLiteStatement(q.encode(d))));for(var l in j)c.push(o.escapeIndexNameForSQL(l)+","),f.push("?,"),k.push(o.escapeSQLiteStatement(j[l]));c.push(o.sqlQuote("value")+" )"),f.push("?)"),k.push(o.escapeSQLiteStatement(b));var m=c.join(" ")+f.join(" ");x.default.DEBUG&&console.log("SQL for adding",m,k),a.executeSql(m,k,function(a,b){e(d)},function(a,b){g((0,i.createDOMException)("ConstraintError",b.message,b))})}).catch(function(a){g(a)})},g.prototype.add=function(a){var b=this,c=arguments[1];if(!(b instanceof g))throw new TypeError("Illegal invocation");if(0===arguments.length)throw new TypeError("No value was specified");g.__invalidStateIfDeleted(b),t.default.__assertActive(b.transaction),b.transaction.__assertWritable();var d=b.transaction.__createRequest(b),e=b.__validateKeyAndValueAndCloneValue(a,c,!1),f=h(e,2),i=f[0],j=f[1];return g.__storingRecordObjectStore(d,b,j,!0,i),d},g.prototype.put=function(a){var b=this,c=arguments[1];if(!(b instanceof g))throw new TypeError("Illegal invocation");if(0===arguments.length)throw new TypeError("No value was specified");g.__invalidStateIfDeleted(b),t.default.__assertActive(b.transaction),b.transaction.__assertWritable();var d=b.transaction.__createRequest(b),e=b.__validateKeyAndValueAndCloneValue(a,c,!1),f=h(e,2),i=f[0],j=f[1];return g.__storingRecordObjectStore(d,b,j,!1,i),d},g.prototype.__overwrite=function(a,b,c,d){var e=this,f="DELETE FROM "+o.escapeStoreNameForSQL(e.__currentName)+' WHERE "key" = ?',g=q.encode(b);a.executeSql(f,[o.escapeSQLiteStatement(g)],function(a,d){x.default.DEBUG&&console.log("Did the row with the",b,"exist? ",d.rowsAffected),c(a)},function(a,b){d(b)})},g.__storingRecordObjectStore=function(a,b,c,d){var e=arguments[4];b.transaction.__pushToQueue(a,function(a,f,g,h){b.__deriveKey(a,c,e,function(e){v.encode(c,function(f){function i(a){b.__insertData(a,f,c,e,function(){b.__cursors.forEach(function(a){a.__invalidateCache()}),g.apply(void 0,arguments)},h)}if(!d)return void b.__overwrite(a,e,i,h);i(a)})},h)})},g.prototype.__get=function(a,b,c,d){var e=this;void 0!==d&&(d=o.enforceRange(d,"unsigned long")),g.__invalidStateIfDeleted(e),t.default.__assertActive(e.transaction);var f=(0,k.convertValueToKeyRange)(a,!c),h=b?"key":"value",i=["SELECT",o.sqlQuote(h),"FROM",o.escapeStoreNameForSQL(e.__currentName)],j=[];if(void 0!==f&&(i.push("WHERE"),(0,k.setSQLForKeyRange)(f,o.sqlQuote("key"),i,j)),c||(d=1),d){if("number"!=typeof d||isNaN(d)||!isFinite(d))throw new TypeError("The count parameter must be a finite number");i.push("LIMIT",d)}return i=i.join(" "),e.transaction.__addToTransactionQueue(function(a,d,f,g){x.default.DEBUG&&console.log("Fetching",e.__currentName,j),a.executeSql(i,j,function(a,d){x.default.DEBUG&&console.log("Fetched data",d);var e=void 0;try{if(0===d.rows.length)return c?f([]):f();if(e=[],b)for(var g=0;g=b.__requests.length)b.__requests=[],b.__active&&a();else try{if(i=b.__requests[j],!i.req)return void i.op(c,i.args,h,e);if("done"===i.req.__readyState)return;i.op(c,i.args,d,e,h)}catch(a){e(a)}}b.__tx=c;var i=null,j=-1;h()},function(a){if(a!==!0){var c=(0,g.webSQLErrback)(a);b.__abortTransaction(c)}},function(){if(b.__transFinishedCb===e.prototype.__transFinishedCb)return b.__transactionEndCallback||b.__requestsFinished?void(b.__transactionEndCallback&&!b.__completed&&b.__transFinishedCb(b.__errored,b.__transactionEndCallback)):void(b.__transactionFinished=!0)},function(a,c,d,e,f){return!(!a.readOnly&&!c)||(b.__transFinishedCb=function(a,b){a?e(a,b):f(b)},b.__transactionEndCallback&&!b.__completed&&b.__transFinishedCb(b.__errored,b.__transactionEndCallback),!1)})},e.prototype.__createRequest=function(a){var b=this,c=h.IDBRequest.__createInstance();return c.__source=void 0!==a?a:b.db,c.__transaction=b,c},e.prototype.__addToTransactionQueue=function(a,b,c){var d=this.__createRequest(c);return this.__pushToQueue(d,a,b),d},e.prototype.__addNonRequestToTransactionQueue=function(a,b,c){this.__pushToQueue(null,a,b)},e.prototype.__pushToQueue=function(a,b,c){this.__assertActive(),this.__requests.push({op:b,args:c,req:a})},e.prototype.__assertActive=function(){if(!this.__active)throw(0,g.createDOMException)("TransactionInactiveError","A request was placed against a transaction which is currently not active, or which is finished")},e.prototype.__assertWritable=function(){if("readonly"===this.mode)throw(0,g.createDOMException)("ReadOnlyError","The transaction is read only")},e.prototype.__assertVersionChange=function(){e.__assertVersionChange(this)},e.prototype.objectStore=function(a){var b=this;if(!(b instanceof e))throw new TypeError("Illegal invocation");if(0===arguments.length)throw new TypeError("No object store name was specified");if(e.__assertNotFinished(b),b.__objectStoreNames.indexOf(a)===-1)throw(0,g.createDOMException)("NotFoundError",a+" is not participating in this transaction");var c=b.db.__objectStores[a];if(!c)throw(0,g.createDOMException)("NotFoundError",a+" does not exist in "+b.db.name);return(!b.__storeHandles[a]||b.__storeHandles[a].__pendingDelete||b.__storeHandles[a].__deleted)&&(b.__storeHandles[a]=l.default.__clone(c,b)),b.__storeHandles[a]},e.prototype.__abortTransaction=function(a){function b(b,d){b?d&&"number"==typeof d.code?n.default.DEBUG&&console.log("Rollback erred; feature is probably not supported as per WebSQL",c):n.default.DEBUG&&console.log("Rollback succeeded",c):n.default.DEBUG&&console.log("Rollback not possible due to missing transaction",c),c.__requests.filter(function(a){return a.req&&"done"!==a.req.__readyState}).reduce(function(a,b){return a.then(function(){b.req.__readyState="done",b.req.__result=void 0,b.req.__error=(0,g.createDOMException)("AbortError","A request was aborted.");var a=(0,f.createEvent)("error",b.req.__error,{bubbles:!0,cancelable:!0});return new q.default(function(c){setTimeout(function(){b.req.dispatchEvent(a),c()})})})},q.default.resolve()).then(function(){var b=(0,f.createEvent)("abort",a,{bubbles:!0,cancelable:!1});setTimeout(function(){c.__abortFinished=!0,c.dispatchEvent(b),c.__storeHandles={},c.dispatchEvent((0,f.createEvent)("__abort"))})})}var c=this;(0,g.logError)("Error","An error occurred in a transaction",a),c.__errored||(c.__errored=!0,"versionchange"===c.mode&&(c.db.__version=c.db.__oldVersion,c.db.__objectStoreNames=c.db.__oldObjectStoreNames,c.__objectStoreNames=c.db.__oldObjectStoreNames,Object.values(c.db.__objectStores).concat(Object.values(c.__storeHandles)).forEach(function(a){"__pendingName"in a&&c.db.__oldObjectStoreNames.indexOf(a.__pendingName)>-1&&(a.__name=a.__originalName),a.__indexNames=a.__oldIndexNames,delete a.__pendingDelete,Object.values(a.__indexes).concat(Object.values(a.__indexHandles)).forEach(function(b){"__pendingName"in b&&a.__oldIndexNames.indexOf(b.__pendingName)>-1&&(b.__name=b.__originalName),delete b.__pendingDelete})})),c.__active=!1,null!==a&&(c.__error=a),c.__requestsFinished&&setTimeout(function(){throw a},0),c.__transFinishedCb(!0,function(a){if(a&&c.__tx){if("readwrite"===c.mode)return c.__transactionFinished?void b():void(c.__transactionEndCallback=b);try{c.__tx.executeSql("ROLLBACK",[],b,b)}catch(a){b()}}else b(null,{code:0})}))},e.prototype.abort=function(){var a=this;if(!(a instanceof e))throw new TypeError("Illegal invocation");n.default.DEBUG&&console.log("The transaction was aborted",a),e.__assertNotFinished(a),a.__abortTransaction(null)},e.prototype[Symbol.toStringTag]="IDBTransactionPrototype",e.__assertVersionChange=function(a){if(!a||"versionchange"!==a.mode)throw(0,g.createDOMException)("InvalidStateError","Not a version transaction")},e.__assertNotVersionChange=function(a){if(a&&"versionchange"===a.mode)throw(0,g.createDOMException)("InvalidStateError","Cannot be called during a version transaction")},e.__assertNotFinished=function(a){if(!a||a.__completed||a.__abortFinished)throw(0,g.createDOMException)("InvalidStateError","Transaction finished by commit or abort")},e.__assertActive=function(a){if(!a||!a.__active)throw(0,g.createDOMException)("TransactionInactiveError","A request was placed against a transaction which is currently not active, or which is finished")},e.prototype.__getParent=function(){return this.db},e.prototype.__userErrorEventHandler=function(a,b){if(this.__internal)throw this.__internal=!1,a;b()},s.forEach(function(a){Object.defineProperty(e.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")},set:function(a){throw new TypeError("Illegal invocation")}})}),t.forEach(function(a){Object.defineProperty(e.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),Object.defineProperty(e.prototype,"constructor",{enumerable:!1,writable:!0,configurable:!0,value:e}),Object.defineProperty(e,"prototype",{writable:!1}),c.default=e,b.exports=c.default},{"./CFG":326,"./DOMException":327,"./Event":329,"./IDBObjectStore":335,"./IDBRequest":336,"./util":343,eventtarget:298,"sync-promise":302}],338:[function(a,b,c){"use strict";function d(a){e.ShimEvent.call(this,a),this[Symbol.toStringTag]="IDBVersionChangeEvent",this.toString=function(){return"[object IDBVersionChangeEvent]"},this.__eventInitDict=arguments[1]||{}}Object.defineProperty(c,"__esModule",{value:!0});var e=a("./Event"),f=a("./util"),g=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(f),h=["oldVersion","newVersion"];d.prototype=Object.create(e.ShimEvent.prototype),d.prototype[Symbol.toStringTag]="IDBVersionChangeEventPrototype",h.forEach(function(a){Object.defineProperty(d.prototype,a,{enumerable:!0,configurable:!0,get:function(){if(!(this instanceof d))throw new TypeError("Illegal invocation");return this.__eventInitDict&&this.__eventInitDict[a]||("oldVersion"===a?0:null)}})}),Object.defineProperty(d,Symbol.hasInstance,{value:function(a){return g.isObj(a)&&"oldVersion"in a&&"boolean"==typeof a.defaultPrevented}}),Object.defineProperty(d.prototype,"constructor",{enumerable:!1,writable:!0,configurable:!0,value:d}),Object.defineProperty(d,"prototype",{writable:!1}),c.default=d,b.exports=c.default},{"./Event":329,"./util":343}],339:[function(a,b,c){"use strict";function d(a,b,c){return new Array(b-String(a).length+1).join(c)+a}function e(a){return a=a.toString(32),1===a.length?"0"+a:a}function f(a){return(a+j(11)).slice(0,11)}function g(a){for(var b="",c=0;cg&&(d=!0),!b.lowerOpen&&f>=g&&(d=!0)),void 0!==b.upper&&(b.upperOpen&&f1:b===a}function A(a,b){var c=[];if(Array.isArray(a))for(var d=0;d0&&c.push(e);continue}e=e[0]}(null==b||y(e,b,!0))&&c.push(e)}else(null==b||y(a,b,!0))&&c.push(a);return c}function B(a){var b=a.type,c=a.value;switch(b){case"number":case"string":return c;case"array":for(var d=[],e=c.length,f=0;fT)return c("failure");G(a,b,e,function(){c(null,e)},d)},d)}function I(a,b,c,d,e){"number"!=typeof c||c<1?d():F(a,b,function(f){var g=Math.floor(Math.min(c,T));g>=f?G(a,b,g,d,e):d()},e)}Object.defineProperty(c,"__esModule",{value:!0}),c.possiblyUpdateKeyGenerator=c.generateKeyForStore=c.findMultiEntryMatches=c.isKeyInRange=c.isMultiEntryMatch=c.checkKeyCouldBeInjectedIntoValue=c.injectKeyIntoValueUsingKeyPath=c.extractKeyValueDecodedFromValueUsingKeyPath=c.evaluateKeyPathOnValue=c.extractKeyFromValueUsingKeyPath=c.convertValueToKeyRethrowingAndIfInvalid=c.convertValueToMultiEntryKey=c.convertValueToKey=c.convertValueToMultiEntryKeyDecoded=c.convertValueToKeyValueDecoded=c.convertKeyToValue=c.roundTrip=c.decode=c.encode=void 0;var J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},K=a("./DOMException"),L=a("./util"),M=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(L),N=a("./IDBFactory"),O=a("./CFG"),P=function(a){return a&&a.__esModule?a:{default:a}}(O),Q=["invalid","number","date","string","binary","array"],R=["negativeInfinity","bigNegative","smallNegative","smallPositive","bigPositive","positiveInfinity"],S={invalid:{encode:function(a){return Q.indexOf("invalid")+"-"},decode:function(a){}},number:{encode:function(a){var b=Math.abs(a).toString(32),c=b.indexOf(".");b=c!==-1?b.replace(".",""):b;var d=b.search(/[^0]/);b=b.slice(d);var h=void 0,i=void 0,k=void 0;return isFinite(a)?a<0?a>-1?(h=R.indexOf("smallNegative"),i=e(d),k=g(f(b))):(h=R.indexOf("bigNegative"),i=g(e(c!==-1?c:b.length)),k=g(f(b))):a<1?(h=R.indexOf("smallPositive"),i=g(e(d)),k=f(b)):(h=R.indexOf("bigPositive"),i=e(c!==-1?c:b.length),k=f(b)):(i=j(2),k=j(11),h=R.indexOf(a>0?"positiveInfinity":"negativeInfinity")),Q.indexOf("number")+"-"+h+i+k},decode:function(a){var b=+a.substr(2,1),c=a.substr(3,2),d=a.substr(5,11);switch(R[b]){case"negativeInfinity":return-1/0;case"positiveInfinity":return 1/0;case"bigPositive":return h(d,c);case"smallPositive":return c=k(g(c)),h(d,c);case"smallNegative":return c=k(c),d=g(d),-h(d,c);case"bigNegative":return c=g(c),d=g(d),-h(d,c);default:throw new Error("Invalid number.")}}},string:{encode:function(a,b){return b&&(a=a.replace(/(.)/g,"-$1")+" "),Q.indexOf("string")+"-"+a},decode:function(a,b){return a=a.slice(2),b&&(a=a.substr(0,a.length-1).replace(/-(.)/g,"$1")),a}},array:{encode:function(a){for(var b=[],c=0;c889)throw(0,o.createDOMException)("DataError","The encoded key is "+a.length+" characters long, but IE only allows 889 characters. Consider replacing numeric keys with strings to reduce the encoded length.")}Object.defineProperty(c,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},o=a("./DOMException"),p=a("./Key"),q=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(p),r="__$$compoundKey",s=/\$\$/g,t="$$$$",u="$_$";c.default=d,b.exports=c.default},{"./DOMException":327,"./Key":339}],342:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{default:a}}function f(a,b){if(a&&"object"===(void 0===a?"undefined":i(a)))for(var c in a)f(c,a[c]);else{if(!(a in C.default))throw new Error(a+" is not a valid configuration property");C.default[a]=b}}function g(a,b){function c(a,b,c){ -if(!c||!Object.defineProperty)try{e[a]=b}catch(a){console.log(a)}if(e[a]!==b&&Object.defineProperty)try{var d=c||{};d.get=function(){return b},Object.defineProperty(e,a,d)}catch(a){}e[a]!==b&&"undefined"!=typeof console&&console.warn&&console.warn("Unable to shim "+a)}b&&f(b);var e=a||("undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==d?d:{});c("shimIndexedDB",o.shimIndexedDB,{enumerable:!1,configurable:!0}),e.shimIndexedDB&&(e.shimIndexedDB.__useShim=function(){var a=e.shimIndexedDB.modules.IDBFactory;if(void 0!==C.default.win.openDatabase){if(C.default.fullIDLSupport){var b=e.shimIndexedDB.modules.ShimEvent,d=e.shimIndexedDB.modules.ShimEventTarget;Object.setPrototypeOf(y.default,d),Object.setPrototypeOf(m.IDBRequest,d),Object.setPrototypeOf(w.default,d),Object.setPrototypeOf(k.default,b),Object.setPrototypeOf(n.ShimDOMException,Error),Object.setPrototypeOf(n.ShimDOMException.prototype,Error.prototype)}[["indexedDB",o.shimIndexedDB],["IDBFactory",a],["IDBDatabase",y.default],["IDBObjectStore",s.default],["IDBIndex",u.default],["IDBTransaction",w.default],["IDBCursor",l.IDBCursor],["IDBCursorWithValue",l.IDBCursorWithValue],["IDBKeyRange",q.default],["IDBRequest",m.IDBRequest],["IDBOpenDBRequest",m.IDBOpenDBRequest],["IDBVersionChangeEvent",k.default]].forEach(function(a){var b=h(a,2);c(b[0],b[1],{enumerable:!1,configurable:!0})}),C.default.addNonIDBGlobals&&e.indexedDB&&e.indexedDB.modules&&(c("ShimDOMStringList",e.indexedDB.modules.ShimDOMStringList,{enumerable:!1,configurable:!0}),c("ShimEvent",e.indexedDB.modules.ShimEvent),c("ShimCustomEvent",e.indexedDB.modules.ShimCustomEvent),c("ShimEventTarget",e.indexedDB.modules.ShimEventTarget),c("ShimDOMException",e.indexedDB.modules.ShimDOMException))}else"object"===i(e.indexedDB)&&(0,A.default)(l.IDBCursor,l.IDBCursorWithValue,y.default,a,u.default,q.default,s.default,m.IDBRequest,w.default)},e.shimIndexedDB.__debug=function(a){C.default.DEBUG=a},e.shimIndexedDB.__setConfig=f,e.shimIndexedDB.__getConfig=function(a){if(!(a in C.default))throw new Error(a+" is not a valid configuration property");return C.default[a]},e.shimIndexedDB.__setUnicodeIdentifiers=function(a){f({UnicodeIDStart:a.UnicodeIDStart,UnicodeIDContinue:a.UnicodeIDContinue})}),"indexedDB"in e||"undefined"==typeof window||(e.indexedDB=e.indexedDB||e.webkitIndexedDB||e.mozIndexedDB||e.oIndexedDB||e.msIndexedDB);var g=!1;return"undefined"!=typeof navigator&&(navigator.userAgent.match(/Android (?:2|3|4\.[0-3])/)&&!navigator.userAgent.match(/Chrome/)||(navigator.userAgent.indexOf("Safari")===-1||navigator.userAgent.indexOf("Chrome")>-1)&&/(iPad|iPhone|iPod).* os 9_/i.test(navigator.userAgent)&&!window.MSStream)&&(g=!0),C.default.DEFAULT_DB_SIZE||(C.default.DEFAULT_DB_SIZE=1024*("undefined"!=typeof navigator&&navigator.userAgent.indexOf("Safari")>-1&&navigator.userAgent.indexOf("Chrome")===-1?25:4)*1024),e.indexedDB&&!g||void 0===C.default.win.openDatabase?(e.IDBDatabase=e.IDBDatabase||e.webkitIDBDatabase,e.IDBTransaction=e.IDBTransaction||e.webkitIDBTransaction||{},e.IDBCursor=e.IDBCursor||e.webkitIDBCursor,e.IDBKeyRange=e.IDBKeyRange||e.webkitIDBKeyRange):e.shimIndexedDB.__useShim(),e}Object.defineProperty(c,"__esModule",{value:!0});var h=function(){function a(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!b||c.length!==b);d=!0);}catch(a){e=!0,f=a}finally{try{!d&&h.return&&h.return()}finally{if(e)throw f}}return c}return function(b,c){if(Array.isArray(b))return b;if(Symbol.iterator in Object(b))return a(b,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};a("babel-polyfill");var j=a("./IDBVersionChangeEvent"),k=e(j),l=a("./IDBCursor"),m=a("./IDBRequest"),n=a("./DOMException"),o=a("./IDBFactory"),p=a("./IDBKeyRange"),q=e(p),r=a("./IDBObjectStore"),s=e(r),t=a("./IDBIndex"),u=e(t),v=a("./IDBTransaction"),w=e(v),x=a("./IDBDatabase"),y=e(x),z=a("./polyfill"),A=e(z),B=a("./CFG"),C=e(B);(void 0!==d?d:"undefined"!=typeof window?window:self)._babelPolyfill=!1,c.default=g,b.exports=c.default}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./CFG":326,"./DOMException":327,"./IDBCursor":330,"./IDBDatabase":331,"./IDBFactory":332,"./IDBIndex":333,"./IDBKeyRange":334,"./IDBObjectStore":335,"./IDBRequest":336,"./IDBTransaction":337,"./IDBVersionChangeEvent":338,"./polyfill":341,"babel-polyfill":1}],343:[function(a,b,c){"use strict";function d(a){return"_"+a.replace(/\^/g,"^^").replace(/\0/g,"^0").replace(/([A-Z])/g,"^$1").replace(/([\uD800-\uDBFF])(?![\uDC00-\uDFFF])|(^|[^\uD800-\uDBFF])([\uDC00-\uDFFF])/g,function(a,b,c){return b?"^2"+b+"�":"^3�"+c})}function e(a){return a.replace(/\^/g,"^^").replace(/\0/g,"^0")}function f(a){return a.replace(/\^0/g,"\0").replace(/\^\^/g,"^")}function g(a){return a.replace(/"/g,'""')}function h(a){return'"'+g(a)+'"'}function i(a){if(G.default.escapeDatabaseName)return G.default.escapeDatabaseName(e(a));if(a="D"+d(a),G.default.databaseCharacterEscapeList!==!1&&(a=a.replace(G.default.databaseCharacterEscapeList?new RegExp(G.default.databaseCharacterEscapeList,"g"):/[\u0000-\u001F\u007F"*\/:<>?\\|]/g,function(a){return"^1"+a.charCodeAt().toString(16).padStart(2,"0")})),G.default.databaseNameLengthLimit!==!1&&a.length>=(G.default.databaseNameLengthLimit||254)-(G.default.addSQLiteExtension!==!1?7:0))throw new Error("Unexpectedly long database name supplied; length limit required for Node compatibility; passed length: "+a.length+"; length limit setting: "+(G.default.databaseNameLengthLimit||254)+".");return a+(G.default.addSQLiteExtension!==!1?".sqlite":"")}function j(a){return G.default.unescapeDatabaseName?G.default.unescapeDatabaseName(f(a)):a.slice(2).replace(/(\^+)1([0-9a-f]{2})/g,function(a,b,c){return b%2?String.fromCharCode(parseInt(c,16)):a}).replace(/(\^+)3\uD800([\uDC00-\uDFFF])/g,function(a,b,c){return b%2?c:a}).replace(/(\^+)2([\uD800-\uDBFF])\uDC00/g,function(a,b,c){return b%2?c:a}).replace(/(\^+)([A-Z])/g,function(a,b,c){return b%2?c:a}).replace(/(\^+)0/g,function(a,b){return b%2?"\0":a}).replace(/\^\^/g,"^")}function k(a){return h("S"+d(a))}function l(a){return h("I"+d(a))}function m(a){return"I"+d(a)}function n(a){return g(a).replace(/\^/g,"^^")}function o(a,b){return b[Symbol.hasInstance](a)}function p(a){return a&&"object"===(void 0===a?"undefined":E(a))}function q(a){return p(a)&&"function"==typeof a.getDate}function r(a){return p(a)&&"number"==typeof a.size&&"function"==typeof a.slice&&!("lastModified"in a)}function s(a){return p(a)&&"string"==typeof a.flags&&"function"==typeof a.exec}function t(a){return p(a)&&"string"==typeof a.name&&"function"==typeof a.slice&&"lastModified"in a}function u(a){return p(a)&&"number"==typeof a.byteLength&&("function"==typeof a.slice||"function"==typeof a.getFloat64)}function v(a){return p(a)&&"function"==typeof a[Symbol.iterator]}function w(a,b){b="string"==typeof b?[b]:b,b.forEach(function(b){Object.defineProperty(a,"__"+b,{enumerable:!1,configurable:!1,writable:!0}),Object.defineProperty(a,b,{enumerable:!0,configurable:!0,get:function(){return this["__"+b]}})})}function x(a){var b=G.default.UnicodeIDStart||"[$A-Z_a-z]",c=G.default.UnicodeIDContinue||"[$0-9A-Z_a-z]",d="(?:"+b+"|[$_]|\\\\"+H+")",e="(?:"+c+"|[$_]|\\\\"+H+"|\\u200C|\\u200D)";return new RegExp("^"+d+e+"*$").test(a)}function y(a){return"string"==typeof a&&(""===a||x(a)||a.split(".").every(x))}function z(a){return y(a)||Array.isArray(a)&&a.length&&Array.apply(null,a).every(function(a){return y(a)})}function A(a,b){a=Math.floor(Number(a));var c=void 0,d=void 0;switch(b){case"unsigned long long":c=9007199254740991,d=0;break;case"unsigned long":c=4294967295,d=0;break;default:throw new Error("Unrecognized type supplied to enforceRange")}if(isNaN(a)||!isFinite(a)||a>c||a=0;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c--;c)a.unshift("..");return a}function d(a,b){if(a.filter)return a.filter(b);for(var c=[],d=0;d=-1&&!e;f--){var g=f>=0?arguments[f]:a.cwd();if("string"!=typeof g)throw new TypeError("Arguments to path.resolve must be strings");g&&(c=g+"/"+c,e="/"===g.charAt(0))}return c=b(d(c.split("/"),function(a){return!!a}),!e).join("/"),(e?"/":"")+c||"."},c.normalize=function(a){var e=c.isAbsolute(a),f="/"===g(a,-1);return a=b(d(a.split("/"),function(a){return!!a}),!e).join("/"),a||e||(a="."),a&&f&&(a+="/"),(e?"/":"")+a},c.isAbsolute=function(a){return"/"===a.charAt(0)},c.join=function(){var a=Array.prototype.slice.call(arguments,0);return c.normalize(d(a,function(a,b){if("string"!=typeof a)throw new TypeError("Arguments to path.join must be strings");return a}).join("/"))},c.relative=function(a,b){function d(a){for(var b=0;b=0&&""===a[c];c--);return b>c?[]:a.slice(b,c-b+1)}a=c.resolve(a).substr(1),b=c.resolve(b).substr(1);for(var e=d(a.split("/")),f=d(b.split("/")),g=Math.min(e.length,f.length),h=g,i=0;i1)for(var c=1;c=0;--d){var e=this.tryEntries[d],f=e.completion;if("root"===e.tryLoc)return b("end");if(e.tryLoc<=this.prev){var g=t.call(e,"catchLoc"),h=t.call(e,"finallyLoc");if(g&&h){if(this.prev=0;--c){var d=this.tryEntries[c];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev=0;--b){var c=this.tryEntries[b];if(c.finallyLoc===a)return this.complete(c.completion,c.afterLoc),n(c),D}},catch:function(a){for(var b=this.tryEntries.length-1;b>=0;--b){var c=this.tryEntries[b];if(c.tryLoc===a){var d=c.completion;if("throw"===d.type){var e=d.arg;n(c)}return e}}throw new Error("illegal catch attempt")},delegateYield:function(a,b,c){return this.delegate={iterator:p(a),resultName:b,nextLoc:c},"next"===this.method&&(this.arg=r),D}}}("object"==typeof c?c:"object"==typeof window?window:"object"==typeof self?self:this)}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:300}],302:[function(a,b,c){function d(a){return a&&"function"==typeof a.then}function e(a,b){a.then(null,b)}function f(a){function b(a,b){j.v=a,j.s=b,j.c[b].forEach(function(b){b(a)}),j.c[b].length&&(j.c=null)}function c(a){j.c&&(d(a)?e(a.then(c),f):b(a,h))}function f(a){j.c&&(d(a)?e(a.then(f),f):b(a,i))}var j=this;j.v=0,j.s=g,j.c=[[],[]];try{a(c,f)}catch(a){f(a)}}var g=2,h=0,i=1,j=f.prototype;j.then=function(a,b){var c=this;return new f(function(d,e){function f(){try{d(a?a(c.v):c.v)}catch(a){g(a)}}var g="function"==typeof b?b:e;c.s===h?f():c.s===i?g(c.v):(c.c[h].push(f),c.c[i].push(g))})},j.catch=function(a){var b=this;return new f(function(c,d){function e(){try{c(a(b.v))}catch(a){d(a)}}b.s===i?e():b.s===h?c(b.v):(b.c[i].push(e),b.c[h].push(c))})},f.all=function(a){return new f(function(b,c,f){f=a.length;var g=[];if(!f)return void b(g);a.forEach(function(h,i){d(h)?e(h.then(function(a){g[i]=a,--f||b(g)}),c):(g[i]=h,--f||b(a))})})},f.race=function(a){var b=!1;return new f(function(c,f){a.some(function(a,g){if(!d(a))return c(a),b=!0,!0;e(a.then(function(a){b||(c(a),b=!0)}),f)})})},f.resolve=function(a){return new f(function(b,c){b(a)})},f.reject=function(a){return new f(function(b,c){c(a)})},b.exports=f},{}],303:[function(a,b,c){b.exports=[{sparseArrays:{testPlainObjects:!0,test:function(a){return Array.isArray(a)},replace:function(a,b){return b.iterateUnsetNumeric=!0,a}}},{sparseUndefined:{test:function(a,b){return void 0===a&&b.ownKeys===!1},replace:function(a){return null},revive:function(a){}}}]},{}],304:[function(a,b,c){b.exports=a("./structured-cloning").concat({checkDataCloneException:[function(a){var b={}.toString.call(a).slice(8,-1);if(["symbol","function"].includes(typeof a)||["Arguments","Module","Error","Promise","WeakMap","WeakSet"].includes(b)||a===Object.prototype||("Blob"===b||"File"===b)&&a.isClosed||a&&"object"==typeof a&&"number"==typeof a.nodeType&&"function"==typeof a.insertBefore)throw new DOMException("The object cannot be cloned.","DataCloneError");return!1}]})},{"./structured-cloning":305}],305:[function(a,b,c){b.exports=[a("../types/user-object"),a("../presets/undefined"),a("../types/primitive-objects"),a("../types/special-numbers"),a("../types/date"),a("../types/regexp"),"function"==typeof Map&&a("../types/map"),"function"==typeof Set&&a("../types/set"),"function"==typeof ArrayBuffer&&a("../types/arraybuffer"),"function"==typeof Uint8Array&&a("../types/typed-arrays"),"function"==typeof DataView&&a("../types/dataview"),"undefined"!=typeof Intl&&a("../types/intl-types"),a("../types/imagedata"),a("../types/imagebitmap"),a("../types/file"),a("../types/filelist"),a("../types/blob")]},{"../presets/undefined":306,"../types/arraybuffer":307,"../types/blob":308,"../types/dataview":309,"../types/date":310,"../types/file":311,"../types/filelist":312,"../types/imagebitmap":313,"../types/imagedata":314,"../types/intl-types":315,"../types/map":316,"../types/primitive-objects":317,"../types/regexp":318,"../types/set":319,"../types/special-numbers":320,"../types/typed-arrays":321,"../types/user-object":323}],306:[function(a,b,c){b.exports=[a("../presets/sparse-undefined"),a("../types/undefined")]},{"../presets/sparse-undefined":303,"../types/undefined":322}],307:[function(a,b,c){var d=a("typeson"),e=a("base64-arraybuffer");c.ArrayBuffer=[function(a){return"ArrayBuffer"===d.toStringTag(a)},function(a){return e.encode(a)},function(a){return e.decode(a)}]},{"base64-arraybuffer":2,typeson:325}],308:[function(a,b,c){var d=a("typeson");c.Blob={test:function(a){return"Blob"===d.toStringTag(a)},replace:function(a){var b=new XMLHttpRequest;if(b.open("GET",URL.createObjectURL(a),!1),200!==b.status&&0!==b.status)throw new Error("Bad Blob access: "+b.status);return b.send(),{type:a.type,stringContents:b.responseText}},revive:function(a){return new Blob([a.stringContents],{type:a.type})},replaceAsync:function(a){return new d.Promise(function(b,c){if(a.isClosed)return void c(new Error("The Blob is closed"));var d=new FileReader;d.addEventListener("load",function(){b({type:a.type,stringContents:d.result})}),d.addEventListener("error",function(){c(d.error)}),d.readAsText(a)})}}},{typeson:325}],309:[function(a,b,c){var d=a("typeson"),e=a("base64-arraybuffer");c.DataView=[function(a){return"DataView"===d.toStringTag(a)},function(a){return{buffer:e.encode(a.buffer),byteOffset:a.byteOffset,byteLength:a.byteLength}},function(a){return new DataView(e.decode(a.buffer),a.byteOffset,a.byteLength)}]},{"base64-arraybuffer":2,typeson:325}],310:[function(a,b,c){var d=a("typeson");c.Date=[function(a){return"Date"===d.toStringTag(a)},function(a){return a.getTime()},function(a){return new Date(a)}]},{typeson:325}],311:[function(a,b,c){var d=a("typeson");c.File={test:function(a){return"File"===d.toStringTag(a)},replace:function(a){var b=new XMLHttpRequest;if(b.open("GET",URL.createObjectURL(a),!1),200!==b.status&&0!==b.status)throw new Error("Bad Blob access: "+b.status);return b.send(),{type:a.type,stringContents:b.responseText,name:a.name,lastModified:a.lastModified}},revive:function(a){return new File([a.stringContents],a.name,{type:a.type,lastModified:a.lastModified})},replaceAsync:function(a){return new d.Promise(function(b,c){if(a.isClosed)return void c(new Error("The File is closed"));var d=new FileReader;d.addEventListener("load",function(){b({type:a.type,stringContents:d.result,name:a.name,lastModified:a.lastModified})}),d.addEventListener("error",function(){c(d.error)}),d.readAsText(a)})}}},{typeson:325}],312:[function(a,b,c){var d=a("typeson");c.File=a("./file").File,c.FileList={test:function(a){return"FileList"===d.toStringTag(a)},replace:function(a){for(var b=[],c=0;c0?"Infinity":"-Infinity"},function(a){return{NaN:0/0,Infinity:1/0,"-Infinity":-1/0}[a]}]},{}],321:[function(a,b,c){(function(b){var d=a("typeson"),e=a("base64-arraybuffer"),f="undefined"==typeof self?b:self;["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"].forEach(function(a){var b=f[a];b&&(c[a]=[function(b){return d.toStringTag(b)===a},function(a){return e.encode(a.buffer,a.byteOffset,a.byteLength)},function(a){return new b(e.decode(a))}])})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-arraybuffer":2,typeson:325}],322:[function(a,b,c){var d=a("typeson");b.exports={undefined:[function(a,b){return void 0===a&&(b.ownKeys||!("ownKeys"in b))},function(a){return null},function(a){return new d.Undefined}]}},{typeson:325}],323:[function(a,b,c){var d=a("typeson");c.userObjects=[function(a,b){return d.isUserObject(a)},function(a){return Object.assign({},a)},function(a){return a}]},{typeson:325}],324:[function(a,b,c){b.exports=Array.from||function(a){for(var b=[],c=a.next();!c.done;c=a.next())b.push(c.value);return b}},{}],325:[function(a,b,c){function d(a,b){return j.isObject(a)&&"function"==typeof a.then&&(!b||"function"==typeof a.catch)}function e(a){return q.call(a).slice(8,-1)}function f(a,b){if(!a||"object"!=typeof a)return!1;var c=r(a);if(!c)return!1;var d=s.call(c,"constructor")&&c.constructor;return"function"!=typeof d?null===b:"function"==typeof d&&null!==b&&t.call(d)===t.call(b)}function g(a){return!(!a||"Object"!==e(a))&&(!r(a)||f(a,Object))}function h(a){if(!a||"Object"!==e(a))return!1;var b=r(a);return!b||(f(a,Object)||h(b))}function i(a){return a&&"object"==typeof a}function j(a){var b=[],c=[],e={},h=this.types={},j=this.stringify=function(b,c,d,e){e=Object.assign({},a,e,{stringification:!0});var f=r(b,null,e);return p(f)?JSON.stringify(f[0],c,d):f.then(function(a){return JSON.stringify(a,c,d)})};this.stringifySync=function(a,b,c,d){return j(a,b,c,Object.assign({},{throwOnBadSyncType:!0},d,{sync:!0}))},this.stringifyAsync=function(a,b,c,d){return j(a,b,c,Object.assign({},{throwOnBadSyncType:!0},d,{sync:!1}))};var q=this.parse=function(b,c,d){return d=Object.assign({},a,d,{parse:!0}),s(JSON.parse(b,c),d)};this.parseSync=function(a,b,c){return q(a,b,Object.assign({},{throwOnBadSyncType:!0},c,{sync:!0}))},this.parseAsync=function(a,b,c){return q(a,b,Object.assign({},{throwOnBadSyncType:!0},c,{sync:!1}))};var r=this.encapsulate=function(d,h,j){function k(a){return o(s).length?a&&g(a)&&!a.hasOwnProperty("$types")?a.$types=s:a={$:a,$types:{$:s}}:i(a)&&a.hasOwnProperty("$types")&&(a={$:a,$types:!0}),a}function l(a,b){return Promise.all(b.map(function(a){return a[1].p})).then(function(c){return Promise.all(c.map(function(c){var d=[],e=b.splice(0,1)[0],g=e[0],h=e[2],i=e[3],j=e[4],k=e[5],o=m(g,c,h,i,d),p=f(o,n);return g&&p?o.p.then(function(b){return j[k]=b,l(a,d)}):(g?j[k]=o:a=p?o.p:o,l(a,d))}))}).then(function(){return a})}function m(a,c,d,e,h){var i=typeof c;if(i in{string:1,boolean:1,number:1,undefined:1})return void 0===c||"number"===i&&(isNaN(c)||c===-1/0||1/0===c)?q(a,c,e,h):c;if(null===c)return c;if(d&&!e.iterateIn&&!e.iterateUnsetNumeric){var j=t.indexOf(c);if(!(j<0))return s[a]="#","#"+u[j];d===!0&&(t.push(c),u.push(a))}var k=g(c),l=p(c),r=(k||l)&&(!b.length||e.replaced)||e.iterateIn?c:q(a,c,e,h,k||l);if(r!==c)return r;var v;if(l||"array"===e.iterateIn)v=new Array(c.length);else{if(!k&&"object"!==e.iterateIn)return""===a&&f(c,n)?(h.push([a,c,d,e]),c):c;v={}}if(e.iterateIn)for(var w in c){var x={ownKeys:c.hasOwnProperty(w)},y=a+(a?".":"")+w,z=m(y,c[w],!!d,x,h);f(z,n)?h.push([y,z,!!d,x,v,w]):void 0!==z&&(v[w]=z)}else o(c).forEach(function(b){var e=a+(a?".":"")+b,g=m(e,c[b],!!d,{ownKeys:!0},h);f(g,n)?h.push([e,g,!!d,{ownKeys:!0},v,b]):void 0!==g&&(v[b]=g)});if(e.iterateUnsetNumeric)for(var A=0,B=c.length;A=this.length||!Number.isInteger(a)?null:this._items[a]},clone:function(){var a=h.__createInstance();return a._items=this._items.slice(),a._length=this.length,a.addIndexes(),a},addIndexes:function(){for(var a=0;a":"<";void 0!==b&&(k.push("AND",j,n+"= ?"),l.push(v.encode(b))),void 0!==a?(k.push("AND",i,n+"= ?"),l.push(v.encode(a))):g&&void 0!==h.__key&&(k.push("AND",i,n+" ?"),l.push(v.encode(h.__key))),h.__count||(k.push("ORDER BY",i,m),h.__unique||"key"===h.__keyColumnName||k.push(",",j,m),!h.__unique&&h.__indexSource&&k.push(",",r.sqlQuote(h.__valueColumnName),m),k.push("LIMIT",f)),k=k.join(" "),B.default.DEBUG&&console.log(k,l),c.executeSql(k,l,function(a,b){h.__count?d(void 0,b.rows.length,void 0):b.rows.length>1?(h.__prefetchedIndex=0,h.__prefetchedData=b.rows,B.default.DEBUG&&console.log("Preloaded "+h.__prefetchedData.length+" records for cursor"),h.__decode(b.rows.item(0),d)):1===b.rows.length?h.__decode(b.rows.item(0),d):(B.default.DEBUG&&console.log("Reached end of cursors"),d(void 0,void 0,void 0))},function(a,b){B.default.DEBUG&&console.log("Could not execute Cursor.continue",k,l),e(b)})},i.prototype.__findMultiEntry=function(a,b,c,d,e){var f=this;if(f.__prefetchedData&&f.__prefetchedData.length===f.__prefetchedIndex)return B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),void d(void 0,void 0,void 0);var g=r.sqlQuote(f.__keyColumnName),h=["SELECT * FROM",r.escapeStoreNameForSQL(f.__store.__currentName)],i=[];h.push("WHERE",g,"NOT NULL"),f.__range&&void 0!==f.__range.lower&&Array.isArray(f.__range.upper)&&0===f.__range.upper.indexOf(f.__range.lower)&&(h.push("AND",g,"LIKE ? ESCAPE '^'"),i.push("%"+r.sqlLIKEEscape(f.__range.__lowerCached.slice(0,-1))+"%"));var j=f.__sqlDirection,k="ASC"===j?">":"<",l=r.sqlQuote("key");void 0!==b&&(h.push("AND",l,k+"= ?"),i.push(v.encode(b))),void 0!==a?(h.push("AND",g,k+"= ?"),i.push(v.encode(a))):void 0!==f.__key&&(h.push("AND",g,k+" ?"),i.push(v.encode(f.__key))),f.__count||(h.push("ORDER BY",g,j),f.__unique||"key"===f.__keyColumnName||h.push(",",r.sqlQuote("key"),j),!f.__unique&&f.__indexSource&&h.push(",",r.sqlQuote(f.__valueColumnName),j)),h=h.join(" "),B.default.DEBUG&&console.log(h,i),c.executeSql(h,i,function(a,b){if(b.rows.length>0){if(f.__count){for(var c=0,e=0;eb.matchingKey.replace("[","z")?q?-1:1:a.keyb.key?"prev"===f.direction?-1:1:0}),i.length>1?(f.__prefetchedIndex=0,f.__prefetchedData={data:i,length:i.length,item:function(a){return this.data[a]}},B.default.DEBUG&&console.log("Preloaded "+f.__prefetchedData.length+" records for multiEntry cursor"),f.__decode(i[0],d)):1===i.length?(B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),f.__decode(i[0],d)):(B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),d(void 0,void 0,void 0))}else B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),d(void 0,void 0,void 0)},function(a,b){B.default.DEBUG&&console.log("Could not execute Cursor.continue",h,i),e(b)})},i.prototype.__onsuccess=function(a){var b=this;return function(c,d,e){if(b.__count)a(d,b.__req);else{void 0!==c&&(b.__gotValue=!0),b.__key=void 0===c?null:c,b.__primaryKey=void 0===e?null:e,b.__value=void 0===d?null:d;a(void 0===c?null:b,b.__req)}}},i.prototype.__decode=function(a,b){var c=this;if(c.__multiEntryIndex&&c.__unique){if(c.__matchedKeys||(c.__matchedKeys={}),c.__matchedKeys[a.matchingKey])return void b(void 0,void 0,void 0);c.__matchedKeys[a.matchingKey]=!0}var d=r.unescapeSQLiteResponse(c.__multiEntryIndex?a.matchingKey:a[c.__keyColumnName]),e=r.unescapeSQLiteResponse(a[c.__valueColumnName]),f=r.unescapeSQLiteResponse(a.key);b(v.decode(d,c.__multiEntryIndex),c.__valueDecoder.decode(e),v.decode(f),d)},i.prototype.__sourceOrEffectiveObjStoreDeleted=function(){m.default.__invalidStateIfDeleted(this.__store,"The cursor's effective object store has been deleted"),this.__indexSource&&z.default.__invalidStateIfDeleted(this.source,"The cursor's index source has been deleted")},i.prototype.__invalidateCache=function(){this.__prefetchedData=null},i.prototype.__continue=function(a,b){var c=this,d=void 0!==c.__advanceCount;if(t.default.__assertActive(c.__store.transaction),c.__sourceOrEffectiveObjStoreDeleted(),!c.__gotValue&&!b)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");if(void 0!==a){v.convertValueToKeyRethrowingAndIfInvalid(a);var e=(0,p.cmp)(a,c.key);if(0===e||c.direction.includes("next")&&e===-1||c.direction.includes("prev")&&1===e)throw(0,n.createDOMException)("DataError","Cannot "+(d?"advance":"continue")+" the cursor in an unexpected direction")}this.__continueFinish(a,void 0,d)},i.prototype.__continueFinish=function(a,b,c){var d=this,e=d.__advanceCount||B.default.cursorPreloadPackSize||100;d.__gotValue=!1,d.__req.__readyState="pending",d.__store.transaction.__pushToQueue(d.__req,function f(g,h,i,j,k){function l(a,b,e){if(c){if(d.__advanceCount>=2&&void 0!==a)return d.__advanceCount--,d.__key=a,d.__continue(void 0,!0),void k();d.__advanceCount=void 0}d.__onsuccess(i)(a,b,e)}if(d.__prefetchedData&&++d.__prefetchedIndex0||0===m&&(d.__unique||void 0===b||(0,p.cmp)(k,b)>=0))return void l(c,e,k);f(g,h,i,j)}()});d.__find(a,b,g,l,function(){d.__advanceCount=void 0,j.apply(void 0,arguments)},e)})},i.prototype.continue=function(){this.__continue(arguments[0])},i.prototype.continuePrimaryKey=function(a,b){function c(){d.__continueFinish(a,b,!1)}var d=this;if(t.default.__assertActive(d.__store.transaction),d.__sourceOrEffectiveObjStoreDeleted(),!d.__indexSource)throw(0,n.createDOMException)("InvalidAccessError","`continuePrimaryKey` may only be called on an index source.");if(!["next","prev"].includes(d.direction))throw(0,n.createDOMException)("InvalidAccessError","`continuePrimaryKey` may not be called with unique cursors.");if(!d.__gotValue)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");v.convertValueToKeyRethrowingAndIfInvalid(a),v.convertValueToKeyRethrowingAndIfInvalid(b);var e=(0,p.cmp)(a,d.key);if("next"===d.direction&&e===-1||"prev"===d.direction&&1===e)throw(0,n.createDOMException)("DataError","Cannot continue the cursor in an unexpected direction");0===e?x.encode(b,function(a){x.encode(d.primaryKey,function(b){if(a===b||"next"===d.direction&&ab)throw(0,n.createDOMException)("DataError","Cannot continue the cursor in an unexpected direction");c()})}):c()},i.prototype.advance=function(a){var b=this;if(0===(a=r.enforceRange(a,"unsigned long")))throw new TypeError("Calling advance() with count argument 0");b.__gotValue&&(b.__advanceCount=a),b.__continue()},i.prototype.update=function(a){function b(a){m.default.__storingRecordObjectStore(d,c.__store,a,!1,e)}var c=this;if(!arguments.length)throw new TypeError("A value must be passed to update()");if(t.default.__assertActive(c.__store.transaction),c.__store.transaction.__assertWritable(),c.__sourceOrEffectiveObjStoreDeleted(),!c.__gotValue)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");if(c.__keyOnly)throw(0,n.createDOMException)("InvalidStateError","This cursor method cannot be called when the key only flag has been set.");var d=c.__store.transaction.__createRequest(c),e=c.primaryKey;if(null!==c.__store.keyPath){var f=c.__store.__validateKeyAndValueAndCloneValue(a,void 0,!0),g=j(f,2),h=g[0],i=g[1];if(0!==(0,p.cmp)(c.primaryKey,h))throw(0,n.createDOMException)("DataError","The key of the supplied value to `update` is not equal to the cursor's effective key");b(i)}else{b(x.clone(a))}return d},i.prototype.delete=function(){var a=this;if(t.default.__assertActive(a.__store.transaction),a.__store.transaction.__assertWritable(),a.__sourceOrEffectiveObjStoreDeleted(),!a.__gotValue)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");if(a.__keyOnly)throw(0,n.createDOMException)("InvalidStateError","This cursor method cannot be called when the key only flag has been set.");return this.__store.transaction.__addToTransactionQueue(function(b,c,d,e){a.__find(void 0,void 0,b,function(c,f,g){var h="DELETE FROM "+r.escapeStoreNameForSQL(a.__store.__currentName)+' WHERE "key" = ?';B.default.DEBUG&&console.log(h,c,g),b.executeSql(h,[r.escapeSQLiteStatement(v.encode(g))],function(b,f){1===f.rowsAffected?(a.__store.__cursors.forEach(function(a){a.__invalidateCache()}),d(void 0)):e("No rows with key found"+c)},function(a,b){e(b)})},e)},void 0,a)},i.prototype[Symbol.toStringTag]="IDBCursorPrototype",["source","direction","key","primaryKey"].forEach(function(a){Object.defineProperty(i.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),Object.defineProperty(i,"prototype",{writable:!1});var D=function(a){function b(){return f(this,b),g(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return h(b,a),b}(i),E=D;D.__createInstance=function(){function a(){var a;(a=i.__super).call.apply(a,[this].concat(c)),this[Symbol.toStringTag]="IDBCursorWithValue",r.defineReadonlyProperties(this,"value")}for(var b=arguments.length,c=Array(b),d=0;dd?1:c===d?0:-1;if(A.default.DEBUG){var f=u.decode(c),g=u.decode(d);"object"===(void 0===a?"undefined":j(a))&&(a=JSON.stringify(a),f=JSON.stringify(f)),"object"===(void 0===b?"undefined":j(b))&&(b=JSON.stringify(b),g=JSON.stringify(g)),f!==a&&console.warn(a+" was incorrectly encoded as "+f),g!==b&&console.warn(b+" was incorrectly encoded as "+g)}return e}Object.defineProperty(c,"__esModule",{value:!0}),c.shimIndexedDB=c.cmp=c.IDBFactory=void 0;var j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},k=a("./Event"),l=a("./IDBVersionChangeEvent"),m=e(l),n=a("./DOMException"),o=a("./IDBRequest"),p=a("./DOMStringList"),q=e(p),r=a("./util"),s=d(r),t=a("./Key"),u=d(t),v=a("./IDBTransaction"),w=e(v),x=a("./IDBDatabase"),y=e(x),z=a("./CFG"),A=e(z),B=void 0,C=h;h.__createInstance=function(){function a(){this[Symbol.toStringTag]="IDBFactory",this.modules={Event:"undefined"!=typeof Event?Event:k.ShimEvent,Error:Error,ShimEvent:k.ShimEvent,ShimCustomEvent:k.ShimCustomEvent,ShimEventTarget:k.ShimEventTarget,ShimDOMException:n.ShimDOMException,ShimDOMStringList:q.default,IDBFactory:C},this.utils={createDOMException:n.createDOMException},this.__connections=[]}return a.prototype=C.prototype,new a},h.prototype.open=function(a){function b(a,b){if(!j){b=b?(0,n.webSQLErrback)(b):a,j=!0;var c=(0,k.createEvent)("error",b,{bubbles:!0,cancelable:!0});i.__readyState="done",i.__error=b,i.__result=void 0,i.dispatchEvent(c)}}function c(c){var f=A.default.win.openDatabase(p,1,a,A.default.DEFAULT_DB_SIZE);if(i.__readyState="done",void 0===e&&(e=c||1),c>e){return void b((0,n.createDOMException)("VersionError","An attempt was made to open a database using a lower version than the existing version.",e))}f.transaction(function(g){g.executeSql("CREATE TABLE IF NOT EXISTS __sys__ (name VARCHAR(255), keyPath VARCHAR(255), autoInc BOOLEAN, indexList BLOB, currNum INTEGER)",[],function(){g.executeSql('SELECT "name", "keyPath", "autoInc", "indexList" FROM __sys__',[],function(g,h){if(i.__result=y.default.__createInstance(f,a,c,e,h),d.__connections.push(i.result),c=d.length?a.executeSql("DROP TABLE IF EXISTS __sys__",[],function(){f()},c):a.executeSql("DROP TABLE "+s.escapeStoreNameForSQL(s.unescapeSQLiteResponse(d.item(e).name)),[],function(){b(e+1)},function(){b(e+1)})}(0)},function(a){f()})})},c)},c,null,function(a,b,c,d,e){return!(!a.readOnly&&!b)||(p=function(a,b){a?d(a,b):e(b)},!1)})},c)},c)},c),i},h.prototype.cmp=function(a,b){if(!(this instanceof h))throw new TypeError("Illegal invocation");if(arguments.length<2)throw new TypeError("You must provide two keys to be compared");return u.convertValueToKeyRethrowingAndIfInvalid(a),u.convertValueToKeyRethrowingAndIfInvalid(b),i(a,b)},h.prototype.webkitGetDatabaseNames=function(){function a(a,d){if(!b){d=d?(0,n.webSQLErrback)(d):a,b=!0;var e=(0,k.createEvent)("error",d,{bubbles:!0,cancelable:!0});c.__readyState="done",c.__error=d,c.__result=void 0,c.dispatchEvent(e)}}if(!(this instanceof h))throw new TypeError("Illegal invocation");if(f())throw(0,n.createDOMException)("SecurityError","Cannot get IndexedDB database names from an opaque origin.");var b=!1,c=o.IDBRequest.__createInstance();return g(function(){B.readTransaction(function(b){b.executeSql('SELECT "name" FROM dbVersions',[],function(a,b){for(var d=q.default.__createInstance(),e=0;ed.__connections.length-1)throw new TypeError("If providing an argument, __forceClose must be called with a numeric index to indicate a specific connection to lose");c(d.__connections[a])}},h.prototype[Symbol.toStringTag]="IDBFactoryPrototype",Object.defineProperty(h,"prototype",{writable:!1});var D=h.__createInstance();c.IDBFactory=h,c.cmp=i,c.shimIndexedDB=D},{"./CFG":327,"./DOMException":328,"./DOMStringList":329,"./Event":330,"./IDBDatabase":332,"./IDBRequest":337,"./IDBTransaction":338,"./IDBVersionChangeEvent":339,"./Key":340,"./util":344,fs:3,path:299}],334:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function f(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b0&&h.push("OR"),h.push(m.escapeIndexNameForSQL(b.name),"LIKE ? ESCAPE '^' "),i.push("%"+m.sqlLIKEEscape(o.encode(a,b.multiEntry))+"%")}),h.push(")");else if(b.multiEntry)h.push("AND",m.escapeIndexNameForSQL(b.name),"LIKE ? ESCAPE '^'"),i.push("%"+m.sqlLIKEEscape(o.encode(c,b.multiEntry))+"%");else{var j=(0,p.convertValueToKeyRange)(c,a);(0,p.setSQLForKeyRange)(j,m.escapeIndexNameForSQL(b.name),h,i,!0,!1)}return[a,b,f,c,d,e,h,i]}Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.IDBIndex=c.executeFetchIndexData=c.buildFetchIndexDataSQL=void 0;var j=a("./DOMException"),k=a("./IDBCursor"),l=a("./util"),m=e(l),n=a("./Key"),o=e(n),p=a("./IDBKeyRange"),q=a("./IDBTransaction"),r=d(q),s=a("./Sca"),t=e(s),u=a("./CFG"),v=d(u),w=a("./IDBObjectStore"),x=d(w),y=["objectStore","keyPath","multiEntry","unique"],z=g;g.__createInstance=function(a,b){function c(){var c=this;c[Symbol.toStringTag]="IDBIndex",m.defineReadonlyProperties(c,y),c.__objectStore=a,c.__name=c.__originalName=b.columnName,c.__keyPath=Array.isArray(b.keyPath)?b.keyPath.slice():b.keyPath;var d=b.optionalParams;c.__multiEntry=!(!d||!d.multiEntry),c.__unique=!(!d||!d.unique),c.__deleted=!!b.__deleted,c.__objectStore.__cursors=b.cursors||[],Object.defineProperty(c,"__currentName",{get:function(){return"__pendingName"in c?c.__pendingName:c.name}}),Object.defineProperty(c,"name",{enumerable:!1,configurable:!1,get:function(){return this.__name},set:function(b){var c=this;b=m.convertToDOMString(b);var d=c.name;if(r.default.__assertVersionChange(c.objectStore.transaction),r.default.__assertActive(c.objectStore.transaction),z.__invalidStateIfDeleted(c),x.default.__invalidStateIfDeleted(c),b!==d){if(c.objectStore.__indexes[b]&&!c.objectStore.__indexes[b].__deleted&&!c.objectStore.__indexes[b].__pendingDelete)throw(0,j.createDOMException)("ConstraintError",'Index "'+b+'" already exists on '+c.objectStore.__currentName);c.__name=b;var e=c.objectStore;delete e.__indexes[d],e.__indexes[b]=c,e.indexNames.splice(e.indexNames.indexOf(d),1,b);var f=e.transaction.__storeHandles[e.name],g=f.__indexHandles[d];g.__name=b,f.__indexHandles[b]=g,c.__pendingName=d;var h=[["key","BLOB "+(e.autoIncrement?"UNIQUE, inc INTEGER PRIMARY KEY AUTOINCREMENT":"PRIMARY KEY")],["value","BLOB"]].concat(Array.from(e.indexNames).filter(function(a){return a!==b}).map(function(a){return[m.escapeIndexNameForSQL(a),"BLOB"]}));c.__renameIndex(e,d,b,h,function(b,c){z.__updateIndexList(a,b,function(a){delete f.__pendingName,c(a)})})}}})}return c.prototype=z.prototype,new c},g.__invalidStateIfDeleted=function(a,b){if(a.__deleted||a.__pendingDelete||a.__pendingCreate&&a.objectStore.transaction&&a.objectStore.transaction.__errored)throw(0,j.createDOMException)("InvalidStateError",b||"This index has been deleted")},g.__clone=function(a,b){var c=g.__createInstance(b,{columnName:a.name,keyPath:a.keyPath,optionalParams:{multiEntry:a.multiEntry,unique:a.unique}});return["__pendingCreate","__pendingDelete","__deleted","__originalName","__recreated"].forEach(function(b){c[b]=a[b]}),c},g.__createIndex=function(a,b){var c=b.name,d=a.__currentName,e=a.__indexes[c];b.__pendingCreate=!0,a.indexNames.push(c),a.__indexes[c]=b;var f=a.__indexHandles[c];(!f||b.__pendingDelete||b.__deleted||f.__pendingDelete||f.__deleted)&&(f=a.__indexHandles[c]=g.__clone(b,a)),a.transaction.__addNonRequestToTransactionQueue(function(h,i,k,l){function n(a,b){l((0,j.createDOMException)("UnknownError",'Could not create index "'+c+'"'+b.code+"::"+b.message,b))}function p(e){g.__updateIndexList(a,e,function(){e.executeSql('SELECT "key", "value" FROM '+m.escapeStoreNameForSQL(d),[],function(e,g){function h(i){if(i3&&void 0!==arguments[3]?arguments[3]:[],e=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,f=a.__currentName,g=m.escapeStoreNameForSQL(f),h=m.escapeStoreNameForSQL("tmp_"+f),i=d.map(function(a){return a[0]}),j=d.map(function(a){return a.join(" ")}),k=j.length?j.join(", ")+", ":"",l=i.length?i.join(", ")+", ":"";a.transaction.__addNonRequestToTransactionQueue(function(a,d,f,i){var j="ALTER TABLE "+g+" RENAME TO "+h;a.executeSql(j,[],function(a,d){var j="CREATE TABLE "+g+"("+k+m.escapeIndexNameForSQL(c)+" BLOB)";a.executeSql(j,[],function(a,d){var j="INSERT INTO "+g+"("+l+m.escapeIndexNameForSQL(c)+") SELECT "+l+m.escapeIndexNameForSQL(b)+" FROM "+h;a.executeSql(j,[],function(a,b){var c="DROP TABLE "+h;a.executeSql(c,[],function(a,b){if(e)return void e(a,f);f()},function(a,b){i(b)})},function(a,b){i(b)})})},function(a,b){i(b)})})},Object.defineProperty(g,Symbol.hasInstance,{value:function(a){return m.isObj(a)&&"function"==typeof a.openCursor&&"boolean"==typeof a.multiEntry}}),y.forEach(function(a){Object.defineProperty(g.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),Object.defineProperty(g.prototype,"name",{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")},set:function(a){throw new TypeError("Illegal invocation")}}),g.prototype[Symbol.toStringTag]="IDBIndexPrototype",Object.defineProperty(g,"prototype",{writable:!1}),c.buildFetchIndexDataSQL=i,c.executeFetchIndexData=h,c.IDBIndex=g,c.default=g},{"./CFG":327,"./DOMException":328,"./IDBCursor":331,"./IDBKeyRange":335,"./IDBObjectStore":336,"./IDBTransaction":338,"./Key":340,"./Sca":341,"./util":344}],335:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function e(){throw new TypeError("Illegal constructor")}function f(a,b,c,d,e,f){if(a&&(void 0!==a.lower||void 0!==a.upper)){e&&c.push("AND");var g=void 0,h=void 0,i=void 0!==a.lower,k=void 0!==a.upper;if(i&&(g=f?a.__lowerCached:j.encode(a.lower)),k&&(h=f?a.__upperCached:j.encode(a.upper)),i){if(d.push(l.escapeSQLiteStatement(g)),k&&g===h&&!a.lowerOpen&&!a.upperOpen)return void c.push(b,"=","?");c.push(b,a.lowerOpen?">":">=","?")}i&&k&&c.push("AND"),k&&(c.push(b,a.upperOpen?"<":"<=","?"),d.push(l.escapeSQLiteStatement(h)))}}function g(a,b){if(l.instanceOf(a,e))return"[object IDBKeyRange]"!==!a.toString()?e.__createInstance(a.lower,a.upper,a.lowerOpen,a.upperOpen):a;{if(null!=a)return j.convertValueToKeyRethrowingAndIfInvalid(a),e.only(a);if(b)throw(0,h.createDOMException)("DataError","No key or range was specified")}}Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.convertValueToKeyRange=c.IDBKeyRange=c.setSQLForKeyRange=void 0;var h=a("./DOMException"),i=a("./Key"),j=d(i),k=a("./util"),l=d(k),m=["lower","upper","lowerOpen","upperOpen"],n=e;e.__createInstance=function(a,b,c,d){function e(){if(this[Symbol.toStringTag]="IDBKeyRange",void 0===a&&void 0===b)throw(0,h.createDOMException)("DataError","Both arguments to the key range method cannot be undefined");var e=void 0,f=void 0;if(void 0!==a&&(e=j.roundTrip(a),j.convertValueToKeyRethrowingAndIfInvalid(a)),void 0!==b&&(f=j.roundTrip(b),j.convertValueToKeyRethrowingAndIfInvalid(b)),void 0!==a&&void 0!==b&&a!==b&&j.encode(a)>j.encode(b))throw(0,h.createDOMException)("DataError","`lower` must not be greater than `upper` argument in `bound()` call.");this.__lower=e,this.__upper=f,this.__lowerOpen=!!c,this.__upperOpen=!!d}return e.prototype=n.prototype,new e},e.prototype.includes=function(a){if(!l.isObj(this)||"boolean"!=typeof this.__lowerOpen)throw new TypeError("Illegal invocation");if(!arguments.length)throw new TypeError("IDBKeyRange.includes requires a key argument");return j.convertValueToKeyRethrowingAndIfInvalid(a),j.isKeyInRange(a,this)},e.only=function(a){if(!arguments.length)throw new TypeError("IDBKeyRange.only requires a value argument");return e.__createInstance(a,a,!1,!1)},e.lowerBound=function(a){if(!arguments.length)throw new TypeError("IDBKeyRange.lowerBound requires a value argument");return e.__createInstance(a,void 0,arguments[1],!0)},e.upperBound=function(a){if(!arguments.length)throw new TypeError("IDBKeyRange.upperBound requires a value argument");return e.__createInstance(void 0,a,!0,arguments[1])},e.bound=function(a,b){if(arguments.length<=1)throw new TypeError("IDBKeyRange.bound requires lower and upper arguments");return e.__createInstance(a,b,arguments[2],arguments[3])},e.prototype[Symbol.toStringTag]="IDBKeyRangePrototype",m.forEach(function(a){Object.defineProperty(e.prototype,"__"+a,{enumerable:!1,configurable:!1,writable:!0}),Object.defineProperty(e.prototype,a,{enumerable:!0,configurable:!0,get:function(){if(!l.isObj(this)||"boolean"!=typeof this.__lowerOpen)throw new TypeError("Illegal invocation");return this["__"+a]}})}),Object.defineProperty(e,Symbol.hasInstance,{value:function(a){return l.isObj(a)&&"upper"in a&&"boolean"==typeof a.lowerOpen}}),Object.defineProperty(e,"prototype",{writable:!1}),c.setSQLForKeyRange=f,c.IDBKeyRange=e,c.convertValueToKeyRange=g,c.default=e},{"./DOMException":328,"./Key":340,"./util":344}],336:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function e(a){return a&&a.__esModule?a:{default:a}}function f(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b0&&a.executeSql("DROP TABLE "+o.escapeStoreNameForSQL(b.__currentName),[],function(){a.executeSql('DELETE FROM __sys__ WHERE "name" = ?',[o.escapeSQLiteStatement(b.__currentName)],function(){delete b.__pendingDelete,b.__deleted=!0,c&&(delete c.__pendingDelete,c.__deleted=!0),e()},g)},g)})})},g.prototype.__validateKeyAndValueAndCloneValue=function(a,b,c){var d=this;if(null!==d.keyPath){if(void 0!==b)throw(0,i.createDOMException)("DataError","The object store uses in-line keys and the key parameter was provided",d);var e=v.clone(a);if(b=q.extractKeyValueDecodedFromValueUsingKeyPath(e,d.keyPath),b.invalid)throw(0,i.createDOMException)("DataError","KeyPath was specified, but key was invalid.");if(b.failure){if(!c){if(!d.autoIncrement)throw(0,i.createDOMException)("DataError","Could not evaluate a key from keyPath and there is no key generator");if(!q.checkKeyCouldBeInjectedIntoValue(e,d.keyPath))throw(0,i.createDOMException)("DataError","A key could not be injected into a value");return[void 0,e]}throw(0,i.createDOMException)("DataError","Could not evaluate a key from keyPath")}return[b.value,e]}if(void 0===b){if(!d.autoIncrement)throw(0,i.createDOMException)("DataError","The object store uses out-of-line keys and has no key generator and the key parameter was not provided.",d);b=void 0}else q.convertValueToKeyRethrowingAndIfInvalid(b);return[b,v.clone(a)]},g.prototype.__deriveKey=function(a,b,c,d,e){function f(){v.encode(c,function(a){a=v.decode(a),d(a)})}var g=this;g.autoIncrement?void 0===c?q.generateKeyForStore(a,g,function(a,c){if(a)return void e((0,i.createDOMException)("ConstraintError","The key generator's current number has reached the maximum safe integer limit"));null!==g.keyPath&&q.injectKeyIntoValueUsingKeyPath(b,c,g.keyPath),d(c)},e):q.possiblyUpdateKeyGenerator(a,g,c,f,e):f()},g.prototype.__insertData=function(a,b,c,d,e,g){var h=this,j={},k=Object.keys(h.__indexes).map(function(b){return new z.default(function(d,e){function g(a){void 0!==l&&(j[a.__currentName]=q.encode(l,a.multiEntry))}var k=h.__indexes[b];if(k.__pendingCreate||k.__deleted)return void d();var l=void 0;try{if(l=q.extractKeyValueDecodedFromValueUsingKeyPath(c,k.keyPath,k.multiEntry),l.invalid||l.failure)throw new Error("Go to catch")}catch(a){return void d()}if(l=l.value,k.unique){var m=k.multiEntry&&Array.isArray(l),n=(0,r.buildFetchIndexDataSQL)(!0,k,l,"key",m);r.executeFetchIndexData.apply(void 0,[null].concat(f(n),[a,null,function(a){if(void 0===a)return g(k),void d();e((0,i.createDOMException)("ConstraintError","Index already contains a record equal to "+(m?"one of the subkeys of":"")+"`indexKey`"))},e]))}else g(k),d()})});z.default.all(k).then(function(){var c=["INSERT INTO",o.escapeStoreNameForSQL(h.__currentName),"("],f=[" VALUES ("],k=[];void 0!==d&&(c.push(o.sqlQuote("key"),","),f.push("?,"),k.push(o.escapeSQLiteStatement(q.encode(d))));for(var l in j)c.push(o.escapeIndexNameForSQL(l)+","),f.push("?,"),k.push(o.escapeSQLiteStatement(j[l]));c.push(o.sqlQuote("value")+" )"),f.push("?)"),k.push(o.escapeSQLiteStatement(b));var m=c.join(" ")+f.join(" ");x.default.DEBUG&&console.log("SQL for adding",m,k),a.executeSql(m,k,function(a,b){e(d)},function(a,b){g((0,i.createDOMException)("ConstraintError",b.message,b))})}).catch(function(a){g(a)})},g.prototype.add=function(a){var b=this,c=arguments[1];if(!(b instanceof g))throw new TypeError("Illegal invocation");if(0===arguments.length)throw new TypeError("No value was specified");g.__invalidStateIfDeleted(b),t.default.__assertActive(b.transaction),b.transaction.__assertWritable();var d=b.transaction.__createRequest(b),e=b.__validateKeyAndValueAndCloneValue(a,c,!1),f=h(e,2),i=f[0],j=f[1];return g.__storingRecordObjectStore(d,b,j,!0,i),d},g.prototype.put=function(a){var b=this,c=arguments[1];if(!(b instanceof g))throw new TypeError("Illegal invocation");if(0===arguments.length)throw new TypeError("No value was specified");g.__invalidStateIfDeleted(b),t.default.__assertActive(b.transaction),b.transaction.__assertWritable();var d=b.transaction.__createRequest(b),e=b.__validateKeyAndValueAndCloneValue(a,c,!1),f=h(e,2),i=f[0],j=f[1];return g.__storingRecordObjectStore(d,b,j,!1,i),d},g.prototype.__overwrite=function(a,b,c,d){var e=this,f="DELETE FROM "+o.escapeStoreNameForSQL(e.__currentName)+' WHERE "key" = ?',g=q.encode(b);a.executeSql(f,[o.escapeSQLiteStatement(g)],function(a,d){x.default.DEBUG&&console.log("Did the row with the",b,"exist? ",d.rowsAffected),c(a)},function(a,b){d(b)})},g.__storingRecordObjectStore=function(a,b,c,d){var e=arguments[4];b.transaction.__pushToQueue(a,function(a,f,g,h){b.__deriveKey(a,c,e,function(e){v.encode(c,function(f){function i(a){b.__insertData(a,f,c,e,function(){b.__cursors.forEach(function(a){a.__invalidateCache()}),g.apply(void 0,arguments)},h)}if(!d)return void b.__overwrite(a,e,i,h);i(a)})},h)})},g.prototype.__get=function(a,b,c,d){var e=this;void 0!==d&&(d=o.enforceRange(d,"unsigned long")),g.__invalidStateIfDeleted(e),t.default.__assertActive(e.transaction);var f=(0,k.convertValueToKeyRange)(a,!c),h=b?"key":"value",i=["SELECT",o.sqlQuote(h),"FROM",o.escapeStoreNameForSQL(e.__currentName)],j=[];if(void 0!==f&&(i.push("WHERE"),(0,k.setSQLForKeyRange)(f,o.sqlQuote("key"),i,j)),c||(d=1),d){if("number"!=typeof d||isNaN(d)||!isFinite(d))throw new TypeError("The count parameter must be a finite number");i.push("LIMIT",d)}return i=i.join(" "),e.transaction.__addToTransactionQueue(function(a,d,f,g){x.default.DEBUG&&console.log("Fetching",e.__currentName,j),a.executeSql(i,j,function(a,d){x.default.DEBUG&&console.log("Fetched data",d);var e=void 0;try{if(0===d.rows.length)return c?f([]):f();if(e=[],b)for(var g=0;g=b.__requests.length)b.__requests=[],b.__active&&a();else try{if(i=b.__requests[j],!i.req)return void i.op(c,i.args,h,e);if("done"===i.req.__readyState)return;i.op(c,i.args,d,e,h)}catch(a){e(a)}}b.__tx=c;var i=null,j=-1;h()},function(a){if(a!==!0){var c=(0,g.webSQLErrback)(a);b.__abortTransaction(c)}},function(){if(b.__transFinishedCb===e.prototype.__transFinishedCb)return b.__transactionEndCallback||b.__requestsFinished?void(b.__transactionEndCallback&&!b.__completed&&b.__transFinishedCb(b.__errored,b.__transactionEndCallback)):void(b.__transactionFinished=!0)},function(a,c,d,e,f){return!(!a.readOnly&&!c)||(b.__transFinishedCb=function(a,b){a?e(a,b):f(b)},b.__transactionEndCallback&&!b.__completed&&b.__transFinishedCb(b.__errored,b.__transactionEndCallback),!1)})},e.prototype.__createRequest=function(a){var b=this,c=h.IDBRequest.__createInstance();return c.__source=void 0!==a?a:b.db,c.__transaction=b,c},e.prototype.__addToTransactionQueue=function(a,b,c){var d=this.__createRequest(c);return this.__pushToQueue(d,a,b),d},e.prototype.__addNonRequestToTransactionQueue=function(a,b,c){this.__pushToQueue(null,a,b)},e.prototype.__pushToQueue=function(a,b,c){this.__assertActive(),this.__requests.push({op:b,args:c,req:a})},e.prototype.__assertActive=function(){if(!this.__active)throw(0,g.createDOMException)("TransactionInactiveError","A request was placed against a transaction which is currently not active, or which is finished")},e.prototype.__assertWritable=function(){if("readonly"===this.mode)throw(0,g.createDOMException)("ReadOnlyError","The transaction is read only")},e.prototype.__assertVersionChange=function(){e.__assertVersionChange(this)},e.prototype.objectStore=function(a){var b=this;if(!(b instanceof e))throw new TypeError("Illegal invocation");if(0===arguments.length)throw new TypeError("No object store name was specified");if(e.__assertNotFinished(b),b.__objectStoreNames.indexOf(a)===-1)throw(0,g.createDOMException)("NotFoundError",a+" is not participating in this transaction");var c=b.db.__objectStores[a];if(!c)throw(0,g.createDOMException)("NotFoundError",a+" does not exist in "+b.db.name);return(!b.__storeHandles[a]||b.__storeHandles[a].__pendingDelete||b.__storeHandles[a].__deleted)&&(b.__storeHandles[a]=l.default.__clone(c,b)),b.__storeHandles[a]},e.prototype.__abortTransaction=function(a){function b(b,d){b?d&&"number"==typeof d.code?n.default.DEBUG&&console.log("Rollback erred; feature is probably not supported as per WebSQL",c):n.default.DEBUG&&console.log("Rollback succeeded",c):n.default.DEBUG&&console.log("Rollback not possible due to missing transaction",c),c.__requests.filter(function(a){return a.req&&"done"!==a.req.__readyState}).reduce(function(a,b){return a.then(function(){b.req.__readyState="done",b.req.__result=void 0,b.req.__error=(0,g.createDOMException)("AbortError","A request was aborted.");var a=(0,f.createEvent)("error",b.req.__error,{bubbles:!0,cancelable:!0});return new q.default(function(c){setTimeout(function(){b.req.dispatchEvent(a),c()})})})},q.default.resolve()).then(function(){var b=(0,f.createEvent)("abort",a,{bubbles:!0,cancelable:!1});setTimeout(function(){c.__abortFinished=!0,c.dispatchEvent(b),c.__storeHandles={},c.dispatchEvent((0,f.createEvent)("__abort"))})})}var c=this;(0,g.logError)("Error","An error occurred in a transaction",a),c.__errored||(c.__errored=!0,"versionchange"===c.mode&&(c.db.__version=c.db.__oldVersion,c.db.__objectStoreNames=c.db.__oldObjectStoreNames,c.__objectStoreNames=c.db.__oldObjectStoreNames,Object.values(c.db.__objectStores).concat(Object.values(c.__storeHandles)).forEach(function(a){"__pendingName"in a&&c.db.__oldObjectStoreNames.indexOf(a.__pendingName)>-1&&(a.__name=a.__originalName),a.__indexNames=a.__oldIndexNames,delete a.__pendingDelete,Object.values(a.__indexes).concat(Object.values(a.__indexHandles)).forEach(function(b){"__pendingName"in b&&a.__oldIndexNames.indexOf(b.__pendingName)>-1&&(b.__name=b.__originalName),delete b.__pendingDelete})})),c.__active=!1,null!==a&&(c.__error=a),c.__requestsFinished&&setTimeout(function(){throw a},0),c.__transFinishedCb(!0,function(a){if(a&&c.__tx){if("readwrite"===c.mode)return c.__transactionFinished?void b():void(c.__transactionEndCallback=b);try{c.__tx.executeSql("ROLLBACK",[],b,b)}catch(a){b()}}else b(null,{code:0})}))},e.prototype.abort=function(){var a=this;if(!(a instanceof e))throw new TypeError("Illegal invocation");n.default.DEBUG&&console.log("The transaction was aborted",a),e.__assertNotFinished(a),a.__abortTransaction(null)},e.prototype[Symbol.toStringTag]="IDBTransactionPrototype",e.__assertVersionChange=function(a){if(!a||"versionchange"!==a.mode)throw(0,g.createDOMException)("InvalidStateError","Not a version transaction")},e.__assertNotVersionChange=function(a){if(a&&"versionchange"===a.mode)throw(0,g.createDOMException)("InvalidStateError","Cannot be called during a version transaction")},e.__assertNotFinished=function(a){if(!a||a.__completed||a.__abortFinished)throw(0,g.createDOMException)("InvalidStateError","Transaction finished by commit or abort")},e.__assertActive=function(a){if(!a||!a.__active)throw(0,g.createDOMException)("TransactionInactiveError","A request was placed against a transaction which is currently not active, or which is finished")},e.prototype.__getParent=function(){return this.db},e.prototype.__userErrorEventHandler=function(a,b){if(this.__internal)throw this.__internal=!1,a;b()},s.forEach(function(a){Object.defineProperty(e.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")},set:function(a){throw new TypeError("Illegal invocation")}})}),t.forEach(function(a){Object.defineProperty(e.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),Object.defineProperty(e.prototype,"constructor",{enumerable:!1,writable:!0,configurable:!0,value:e}),Object.defineProperty(e,"prototype",{writable:!1}),c.default=e,b.exports=c.default},{"./CFG":327,"./DOMException":328,"./Event":330,"./IDBObjectStore":336,"./IDBRequest":337,"./util":344,eventtarget:298,"sync-promise":302}],339:[function(a,b,c){"use strict";function d(a){e.ShimEvent.call(this,a),this[Symbol.toStringTag]="IDBVersionChangeEvent",this.toString=function(){return"[object IDBVersionChangeEvent]"},this.__eventInitDict=arguments[1]||{}}Object.defineProperty(c,"__esModule",{value:!0});var e=a("./Event"),f=a("./util"),g=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(f),h=["oldVersion","newVersion"];d.prototype=Object.create(e.ShimEvent.prototype),d.prototype[Symbol.toStringTag]="IDBVersionChangeEventPrototype",h.forEach(function(a){Object.defineProperty(d.prototype,a,{enumerable:!0,configurable:!0,get:function(){if(!(this instanceof d))throw new TypeError("Illegal invocation");return this.__eventInitDict&&this.__eventInitDict[a]||("oldVersion"===a?0:null)}})}),Object.defineProperty(d,Symbol.hasInstance,{value:function(a){return g.isObj(a)&&"oldVersion"in a&&"boolean"==typeof a.defaultPrevented}}),Object.defineProperty(d.prototype,"constructor",{enumerable:!1,writable:!0,configurable:!0,value:d}),Object.defineProperty(d,"prototype",{writable:!1}),c.default=d,b.exports=c.default},{"./Event":330,"./util":344}],340:[function(a,b,c){"use strict";function d(a,b,c){return new Array(b-String(a).length+1).join(c)+a}function e(a){return a=a.toString(32),1===a.length?"0"+a:a}function f(a){return(a+j(11)).slice(0,11)}function g(a){for(var b="",c=0;cg&&(d=!0),!b.lowerOpen&&f>=g&&(d=!0)),void 0!==b.upper&&(b.upperOpen&&f1:b===a}function A(a,b){var c=[];if(Array.isArray(a))for(var d=0;d0&&c.push(e);continue}e=e[0]}(null==b||y(e,b,!0))&&c.push(e)}else(null==b||y(a,b,!0))&&c.push(a);return c}function B(a){var b=a.type,c=a.value;switch(b){case"number":case"string":return c;case"array":for(var d=[],e=c.length,f=0;fT)return c("failure");G(a,b,e,function(){c(null,e)},d)},d)}function I(a,b,c,d,e){"number"!=typeof c||c<1?d():F(a,b,function(f){var g=Math.floor(Math.min(c,T));g>=f?G(a,b,g,d,e):d()},e)}Object.defineProperty(c,"__esModule",{value:!0}),c.possiblyUpdateKeyGenerator=c.generateKeyForStore=c.findMultiEntryMatches=c.isKeyInRange=c.isMultiEntryMatch=c.checkKeyCouldBeInjectedIntoValue=c.injectKeyIntoValueUsingKeyPath=c.extractKeyValueDecodedFromValueUsingKeyPath=c.evaluateKeyPathOnValue=c.extractKeyFromValueUsingKeyPath=c.convertValueToKeyRethrowingAndIfInvalid=c.convertValueToMultiEntryKey=c.convertValueToKey=c.convertValueToMultiEntryKeyDecoded=c.convertValueToKeyValueDecoded=c.convertKeyToValue=c.roundTrip=c.decode=c.encode=void 0;var J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},K=a("./DOMException"),L=a("./util"),M=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(L),N=a("./IDBFactory"),O=a("./CFG"),P=function(a){return a&&a.__esModule?a:{default:a}}(O),Q=["invalid","number","date","string","binary","array"],R=["negativeInfinity","bigNegative","smallNegative","smallPositive","bigPositive","positiveInfinity"],S={invalid:{encode:function(a){return Q.indexOf("invalid")+"-"},decode:function(a){}},number:{encode:function(a){var b=Math.abs(a).toString(32),c=b.indexOf(".");b=c!==-1?b.replace(".",""):b;var d=b.search(/[^0]/);b=b.slice(d);var h=void 0,i=void 0,k=void 0;return isFinite(a)?a<0?a>-1?(h=R.indexOf("smallNegative"),i=e(d),k=g(f(b))):(h=R.indexOf("bigNegative"),i=g(e(c!==-1?c:b.length)),k=g(f(b))):a<1?(h=R.indexOf("smallPositive"),i=g(e(d)),k=f(b)):(h=R.indexOf("bigPositive"),i=e(c!==-1?c:b.length),k=f(b)):(i=j(2),k=j(11),h=R.indexOf(a>0?"positiveInfinity":"negativeInfinity")),Q.indexOf("number")+"-"+h+i+k},decode:function(a){var b=+a.substr(2,1),c=a.substr(3,2),d=a.substr(5,11);switch(R[b]){case"negativeInfinity":return-1/0;case"positiveInfinity":return 1/0;case"bigPositive":return h(d,c);case"smallPositive":return c=k(g(c)),h(d,c);case"smallNegative":return c=k(c),d=g(d),-h(d,c);case"bigNegative":return c=g(c),d=g(d),-h(d,c);default:throw new Error("Invalid number.")}}},string:{encode:function(a,b){return b&&(a=a.replace(/(.)/g,"-$1")+" "),Q.indexOf("string")+"-"+a},decode:function(a,b){return a=a.slice(2),b&&(a=a.substr(0,a.length-1).replace(/-(.)/g,"$1")),a}},array:{encode:function(a){for(var b=[],c=0;c889)throw(0,o.createDOMException)("DataError","The encoded key is "+a.length+" characters long, but IE only allows 889 characters. Consider replacing numeric keys with strings to reduce the encoded length.")}Object.defineProperty(c,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},o=a("./DOMException"),p=a("./Key"),q=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(p),r="__$$compoundKey",s=/\$\$/g,t="$$$$",u="$_$";c.default=d,b.exports=c.default},{"./DOMException":328,"./Key":340}],343:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{default:a}}function f(a,b){if(a&&"object"===(void 0===a?"undefined":i(a)))for(var c in a)f(c,a[c]);else{if(!(a in C.default))throw new Error(a+" is not a valid configuration property");C.default[a]=b}}function g(a,b){function c(a,b,c){if(!c||!Object.defineProperty)try{e[a]=b}catch(a){console.log(a)}if(e[a]!==b&&Object.defineProperty)try{var d=c||{};d.get=function(){return b},Object.defineProperty(e,a,d)}catch(a){}e[a]!==b&&"undefined"!=typeof console&&console.warn&&console.warn("Unable to shim "+a)}b&&f(b);var e=a||("undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==d?d:{});c("shimIndexedDB",o.shimIndexedDB,{enumerable:!1,configurable:!0}),e.shimIndexedDB&&(e.shimIndexedDB.__useShim=function(){var a=e.shimIndexedDB.modules.IDBFactory;if(void 0!==C.default.win.openDatabase){if(C.default.fullIDLSupport){var b=e.shimIndexedDB.modules.ShimEvent,d=e.shimIndexedDB.modules.ShimEventTarget;Object.setPrototypeOf(y.default,d),Object.setPrototypeOf(m.IDBRequest,d),Object.setPrototypeOf(w.default,d),Object.setPrototypeOf(k.default,b),Object.setPrototypeOf(n.ShimDOMException,Error),Object.setPrototypeOf(n.ShimDOMException.prototype,Error.prototype)}[["indexedDB",o.shimIndexedDB],["IDBFactory",a],["IDBDatabase",y.default],["IDBObjectStore",s.default],["IDBIndex",u.default],["IDBTransaction",w.default],["IDBCursor",l.IDBCursor],["IDBCursorWithValue",l.IDBCursorWithValue],["IDBKeyRange",q.default],["IDBRequest",m.IDBRequest],["IDBOpenDBRequest",m.IDBOpenDBRequest],["IDBVersionChangeEvent",k.default]].forEach(function(a){var b=h(a,2);c(b[0],b[1],{enumerable:!1,configurable:!0})}),C.default.addNonIDBGlobals&&e.indexedDB&&e.indexedDB.modules&&(c("ShimDOMStringList",e.indexedDB.modules.ShimDOMStringList,{enumerable:!1,configurable:!0}),c("ShimEvent",e.indexedDB.modules.ShimEvent),c("ShimCustomEvent",e.indexedDB.modules.ShimCustomEvent),c("ShimEventTarget",e.indexedDB.modules.ShimEventTarget),c("ShimDOMException",e.indexedDB.modules.ShimDOMException))}else"object"===i(e.indexedDB)&&(0,A.default)(l.IDBCursor,l.IDBCursorWithValue,y.default,a,u.default,q.default,s.default,m.IDBRequest,w.default)},e.shimIndexedDB.__debug=function(a){C.default.DEBUG=a},e.shimIndexedDB.__setConfig=f,e.shimIndexedDB.__getConfig=function(a){if(!(a in C.default))throw new Error(a+" is not a valid configuration property");return C.default[a]},e.shimIndexedDB.__setUnicodeIdentifiers=function(a){f({UnicodeIDStart:a.UnicodeIDStart,UnicodeIDContinue:a.UnicodeIDContinue})}),"indexedDB"in e||"undefined"==typeof window||(e.indexedDB=e.indexedDB||e.webkitIndexedDB||e.mozIndexedDB||e.oIndexedDB||e.msIndexedDB);var g=!1;return"undefined"!=typeof navigator&&(navigator.userAgent.match(/Android (?:2|3|4\.[0-3])/)&&!navigator.userAgent.match(/Chrome/)||(navigator.userAgent.indexOf("Safari")===-1||navigator.userAgent.indexOf("Chrome")>-1)&&/(iPad|iPhone|iPod).* os 9_/i.test(navigator.userAgent)&&!window.MSStream)&&(g=!0),C.default.DEFAULT_DB_SIZE||(C.default.DEFAULT_DB_SIZE=1024*("undefined"!=typeof navigator&&navigator.userAgent.indexOf("Safari")>-1&&navigator.userAgent.indexOf("Chrome")===-1?25:4)*1024),e.indexedDB&&!g||void 0===C.default.win.openDatabase?(e.IDBDatabase=e.IDBDatabase||e.webkitIDBDatabase,e.IDBTransaction=e.IDBTransaction||e.webkitIDBTransaction||{},e.IDBCursor=e.IDBCursor||e.webkitIDBCursor,e.IDBKeyRange=e.IDBKeyRange||e.webkitIDBKeyRange):e.shimIndexedDB.__useShim(),e}Object.defineProperty(c,"__esModule",{value:!0});var h=function(){function a(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!b||c.length!==b);d=!0);}catch(a){e=!0,f=a}finally{try{!d&&h.return&&h.return()}finally{if(e)throw f}}return c}return function(b,c){if(Array.isArray(b))return b;if(Symbol.iterator in Object(b))return a(b,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};a("babel-polyfill");var j=a("./IDBVersionChangeEvent"),k=e(j),l=a("./IDBCursor"),m=a("./IDBRequest"),n=a("./DOMException"),o=a("./IDBFactory"),p=a("./IDBKeyRange"),q=e(p),r=a("./IDBObjectStore"),s=e(r),t=a("./IDBIndex"),u=e(t),v=a("./IDBTransaction"),w=e(v),x=a("./IDBDatabase"),y=e(x),z=a("./polyfill"),A=e(z),B=a("./CFG"),C=e(B);(void 0!==d?d:"undefined"!=typeof window?window:self)._babelPolyfill=!1,c.default=g,b.exports=c.default}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./CFG":327,"./DOMException":328,"./IDBCursor":331,"./IDBDatabase":332,"./IDBFactory":333,"./IDBIndex":334,"./IDBKeyRange":335,"./IDBObjectStore":336,"./IDBRequest":337,"./IDBTransaction":338,"./IDBVersionChangeEvent":339,"./polyfill":342,"babel-polyfill":1}],344:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a){return"_"+a.replace(/\^/g,"^^").replace(/\0/g,"^0").replace(/([A-Z])/g,"^$1").replace(/([\uD800-\uDBFF])(?![\uDC00-\uDFFF])|(^|[^\uD800-\uDBFF])([\uDC00-\uDFFF])/g,function(a,b,c){return b?"^2"+b+"�":"^3�"+c})}function f(a){return a.replace(/\^/g,"^^").replace(/\0/g,"^0")}function g(a){return a.replace(/\^0/g,"\0").replace(/\^\^/g,"^")}function h(a){return a.replace(/"/g,'""')}function i(a){return'"'+h(a)+'"'}function j(a){if(H.default.escapeDatabaseName)return H.default.escapeDatabaseName(f(a));if(a="D"+e(a),H.default.escapeNFDForDatabaseNames!==!1&&(a=a.replace(new RegExp(J.default,"g"),function(a){return"^4"+a.codePointAt().toString(16).padStart(6,"0")})),H.default.databaseCharacterEscapeList!==!1&&(a=a.replace(H.default.databaseCharacterEscapeList?new RegExp(H.default.databaseCharacterEscapeList,"g"):/[\u0000-\u001F\u007F"*\/:<>?\\|]/g,function(a){return"^1"+a.charCodeAt().toString(16).padStart(2,"0")})),H.default.databaseNameLengthLimit!==!1&&a.length>=(H.default.databaseNameLengthLimit||254)-(H.default.addSQLiteExtension!==!1?7:0))throw new Error("Unexpectedly long database name supplied; length limit required for Node compatibility; passed length: "+a.length+"; length limit setting: "+(H.default.databaseNameLengthLimit||254)+".");return a+(H.default.addSQLiteExtension!==!1?".sqlite":"")}function k(a){return H.default.unescapeDatabaseName?H.default.unescapeDatabaseName(g(a)):a.slice(2).replace(/(\^+)1([0-9a-f]{2})/g,function(a,b,c){return b.length%2?String.fromCharCode(parseInt(c,16)):a}).replace(/(\^+)4([0-9a-f]{6})/g,function(a,b,c){return b.length%2?String.fromCodePoint(parseInt(c,16)):a}).replace(/(\^+)3\uD800([\uDC00-\uDFFF])/g,function(a,b,c){return b.length%2?c:a}).replace(/(\^+)2([\uD800-\uDBFF])\uDC00/g,function(a,b,c){return b.length%2?c:a}).replace(/(\^+)([A-Z])/g,function(a,b,c){return b.length%2?c:a}).replace(/(\^+)0/g,function(a,b){return b.length%2?"\0":a}).replace(/\^\^/g,"^")}function l(a){return i("S"+e(a))}function m(a){return i("I"+e(a))}function n(a){return"I"+e(a)}function o(a){return h(a).replace(/\^/g,"^^")}function p(a,b){return b[Symbol.hasInstance](a)}function q(a){return a&&"object"===(void 0===a?"undefined":F(a))}function r(a){return q(a)&&"function"==typeof a.getDate}function s(a){return q(a)&&"number"==typeof a.size&&"function"==typeof a.slice&&!("lastModified"in a)}function t(a){return q(a)&&"string"==typeof a.flags&&"function"==typeof a.exec}function u(a){return q(a)&&"string"==typeof a.name&&"function"==typeof a.slice&&"lastModified"in a}function v(a){return q(a)&&"number"==typeof a.byteLength&&("function"==typeof a.slice||"function"==typeof a.getFloat64)}function w(a){return q(a)&&"function"==typeof a[Symbol.iterator]}function x(a,b){b="string"==typeof b?[b]:b,b.forEach(function(b){Object.defineProperty(a,"__"+b,{enumerable:!1,configurable:!1,writable:!0}),Object.defineProperty(a,b,{enumerable:!0,configurable:!0,get:function(){return this["__"+b]}})})}function y(a){var b=H.default.UnicodeIDStart||"[$A-Z_a-z]",c=H.default.UnicodeIDContinue||"[$0-9A-Z_a-z]",d="(?:"+b+"|[$_]|\\\\"+K+")",e="(?:"+c+"|[$_]|\\\\"+K+"|\\u200C|\\u200D)";return new RegExp("^"+d+e+"*$").test(a)}function z(a){return"string"==typeof a&&(""===a||y(a)||a.split(".").every(y))}function A(a){return z(a)||Array.isArray(a)&&a.length&&Array.apply(null,a).every(function(a){return z(a)})}function B(a,b){a=Math.floor(Number(a));var c=void 0,d=void 0;switch(b){case"unsigned long long":c=9007199254740991,d=0;break;case"unsigned long":c=4294967295,d=0;break;default:throw new Error("Unrecognized type supplied to enforceRange")}if(isNaN(a)||!isFinite(a)||a>c||a ? \ | 'databaseNameLengthLimit', // Defaults to 254 (shortest typical modern file length limit) +'escapeNFDForDatabaseNames', // Boolean defaulting to true on whether to escape NFD-escaping +// characters to avoid clashes on MacOS which performs NFD on files +// Boolean on whether to add the `.sqlite` extension to file names; +// defaults to `true` +'addSQLiteExtension', + +// NODE-SPECIFIC CONFIG +// Boolean on whether to delete the database file itself after `deleteDatabase`; +// defaults to `true` as the database will be empty +'deleteDatabaseFiles', -// Optional Node WebSQL config +// NODE-SPECIFIC WEBSQL CONFIG 'sqlBusyTimeout', // Defaults to 1000 'sqlTrace', // Callback not used by default 'sqlProfile' // Callback not used by default @@ -9072,7 +9079,7 @@ var CFG = {}; exports.default = CFG; module.exports = exports['default']; -},{}],327:[function(require,module,exports){ +},{}],328:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -9380,7 +9387,7 @@ exports.ShimDOMException = ShimDOMException; exports.createDOMException = createDOMException; exports.webSQLErrback = webSQLErrback; -},{"./CFG":326}],328:[function(require,module,exports){ +},{"./CFG":327}],329:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -9566,7 +9573,7 @@ if (cleanInterface) { exports.default = DOMStringList; module.exports = exports['default']; -},{}],329:[function(require,module,exports){ +},{}],330:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -9600,7 +9607,7 @@ exports.ShimEvent = _eventtarget.ShimEvent; exports.ShimCustomEvent = _eventtarget.ShimCustomEvent; exports.ShimEventTarget = _eventtarget.ShimEventTarget; -},{"./util":344,"eventtarget":298}],330:[function(require,module,exports){ +},{"./util":345,"eventtarget":298}],331:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -10245,7 +10252,7 @@ Object.defineProperty(IDBCursorWithValue, 'prototype', { exports.IDBCursor = IDBCursor; exports.IDBCursorWithValue = IDBCursorWithValue; -},{"./CFG":326,"./DOMException":327,"./IDBFactory":332,"./IDBIndex":333,"./IDBKeyRange":334,"./IDBObjectStore":335,"./IDBRequest":336,"./IDBTransaction":337,"./Key":339,"./Sca":340,"./util":344}],331:[function(require,module,exports){ +},{"./CFG":327,"./DOMException":328,"./IDBFactory":333,"./IDBIndex":334,"./IDBKeyRange":335,"./IDBObjectStore":336,"./IDBRequest":337,"./IDBTransaction":338,"./Key":340,"./Sca":341,"./util":345}],332:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -10553,7 +10560,7 @@ Object.defineProperty(IDBDatabase, 'prototype', { exports.default = IDBDatabase; module.exports = exports['default']; -},{"./CFG":326,"./DOMException":327,"./DOMStringList":328,"./Event":329,"./IDBObjectStore":335,"./IDBTransaction":337,"./Sca":340,"./util":344,"eventtarget":298}],332:[function(require,module,exports){ +},{"./CFG":327,"./DOMException":328,"./DOMStringList":329,"./Event":330,"./IDBObjectStore":336,"./IDBTransaction":338,"./Sca":341,"./util":345,"eventtarget":298}],333:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -11106,7 +11113,7 @@ exports.IDBFactory = IDBFactory; exports.cmp = cmp; exports.shimIndexedDB = shimIndexedDB; -},{"./CFG":326,"./DOMException":327,"./DOMStringList":328,"./Event":329,"./IDBDatabase":331,"./IDBRequest":336,"./IDBTransaction":337,"./IDBVersionChangeEvent":338,"./Key":339,"./util":344,"fs":3,"path":299}],333:[function(require,module,exports){ +},{"./CFG":327,"./DOMException":328,"./DOMStringList":329,"./Event":330,"./IDBDatabase":332,"./IDBRequest":337,"./IDBTransaction":338,"./IDBVersionChangeEvent":339,"./Key":340,"./util":345,"fs":3,"path":299}],334:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -11722,7 +11729,7 @@ exports.executeFetchIndexData = executeFetchIndexData; exports.IDBIndex = IDBIndex; exports.default = IDBIndex; -},{"./CFG":326,"./DOMException":327,"./IDBCursor":330,"./IDBKeyRange":334,"./IDBObjectStore":335,"./IDBTransaction":337,"./Key":339,"./Sca":340,"./util":344}],334:[function(require,module,exports){ +},{"./CFG":327,"./DOMException":328,"./IDBCursor":331,"./IDBKeyRange":335,"./IDBObjectStore":336,"./IDBTransaction":338,"./Key":340,"./Sca":341,"./util":345}],335:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -11906,7 +11913,7 @@ exports.IDBKeyRange = IDBKeyRange; exports.convertValueToKeyRange = convertValueToKeyRange; exports.default = IDBKeyRange; -},{"./DOMException":327,"./Key":339,"./util":344}],335:[function(require,module,exports){ +},{"./DOMException":328,"./Key":340,"./util":345}],336:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -12790,7 +12797,7 @@ Object.defineProperty(IDBObjectStore, 'prototype', { exports.default = IDBObjectStore; module.exports = exports['default']; -},{"./CFG":326,"./DOMException":327,"./DOMStringList":328,"./IDBCursor":330,"./IDBIndex":333,"./IDBKeyRange":334,"./IDBTransaction":337,"./Key":339,"./Sca":340,"./util":344,"sync-promise":302}],336:[function(require,module,exports){ +},{"./CFG":327,"./DOMException":328,"./DOMStringList":329,"./IDBCursor":331,"./IDBIndex":334,"./IDBKeyRange":335,"./IDBTransaction":338,"./Key":340,"./Sca":341,"./util":345,"sync-promise":302}],337:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -13007,7 +13014,7 @@ Object.defineProperty(IDBOpenDBRequest, 'prototype', { exports.IDBRequest = IDBRequest; exports.IDBOpenDBRequest = IDBOpenDBRequest; -},{"./DOMException":327,"./util":344,"eventtarget":298}],337:[function(require,module,exports){ +},{"./DOMException":328,"./util":345,"eventtarget":298}],338:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -13623,7 +13630,7 @@ Object.defineProperty(IDBTransaction, 'prototype', { exports.default = IDBTransaction; module.exports = exports['default']; -},{"./CFG":326,"./DOMException":327,"./Event":329,"./IDBObjectStore":335,"./IDBRequest":336,"./util":344,"eventtarget":298,"sync-promise":302}],338:[function(require,module,exports){ +},{"./CFG":327,"./DOMException":328,"./Event":330,"./IDBObjectStore":336,"./IDBRequest":337,"./util":345,"eventtarget":298,"sync-promise":302}],339:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -13688,7 +13695,7 @@ Object.defineProperty(IDBVersionChangeEvent, 'prototype', { exports.default = IDBVersionChangeEvent; module.exports = exports['default']; -},{"./Event":329,"./util":344}],339:[function(require,module,exports){ +},{"./Event":330,"./util":345}],340:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -14502,7 +14509,7 @@ exports.findMultiEntryMatches = findMultiEntryMatches; exports.generateKeyForStore = generateKeyForStore; exports.possiblyUpdateKeyGenerator = possiblyUpdateKeyGenerator; -},{"./CFG":326,"./DOMException":327,"./IDBFactory":332,"./util":344}],340:[function(require,module,exports){ +},{"./CFG":327,"./DOMException":328,"./IDBFactory":333,"./util":345}],341:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -14566,7 +14573,7 @@ exports.encode = encode; exports.decode = decode; exports.clone = clone; -},{"./DOMException":327,"typeson":325,"typeson-registry/presets/structured-cloning-throwing":304}],341:[function(require,module,exports){ +},{"./DOMException":328,"typeson":325,"typeson-registry/presets/structured-cloning-throwing":304}],342:[function(require,module,exports){ 'use strict'; var _setGlobalVars = require('./setGlobalVars'); @@ -14583,7 +14590,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de _CFG2.default.win = typeof window !== 'undefined' ? window : self; // For Web Workers (0, _setGlobalVars2.default)(); -},{"./CFG":326,"./setGlobalVars":343}],342:[function(require,module,exports){ +},{"./CFG":327,"./setGlobalVars":344}],343:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -14945,7 +14952,7 @@ function validateKeyLength(key) { exports.default = polyfill; module.exports = exports['default']; -},{"./DOMException":327,"./Key":339}],343:[function(require,module,exports){ +},{"./DOMException":328,"./Key":340}],344:[function(require,module,exports){ (function (global){ 'use strict'; @@ -15172,7 +15179,7 @@ exports.default = setGlobalVars; module.exports = exports['default']; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"./CFG":326,"./DOMException":327,"./IDBCursor":330,"./IDBDatabase":331,"./IDBFactory":332,"./IDBIndex":333,"./IDBKeyRange":334,"./IDBObjectStore":335,"./IDBRequest":336,"./IDBTransaction":337,"./IDBVersionChangeEvent":338,"./polyfill":342,"babel-polyfill":1}],344:[function(require,module,exports){ +},{"./CFG":327,"./DOMException":328,"./IDBCursor":331,"./IDBDatabase":332,"./IDBFactory":333,"./IDBIndex":334,"./IDBKeyRange":335,"./IDBObjectStore":336,"./IDBRequest":337,"./IDBTransaction":338,"./IDBVersionChangeEvent":339,"./polyfill":343,"babel-polyfill":1}],345:[function(require,module,exports){ 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -15186,6 +15193,10 @@ var _CFG = require('./CFG'); var _CFG2 = _interopRequireDefault(_CFG); +var _regex = require('unicode-9.0.0/Binary_Property/Expands_On_NFD/regex'); + +var _regex2 = _interopRequireDefault(_regex); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function escapeNameForSQLiteIdentifier(arg) { @@ -15236,6 +15247,12 @@ function escapeDatabaseNameForSQLAndFiles(db) { return _CFG2.default.escapeDatabaseName(escapeSQLiteStatement(db)); } db = 'D' + escapeNameForSQLiteIdentifier(db); + if (_CFG2.default.escapeNFDForDatabaseNames !== false) { + // ES6 copying of regex with different flags + db = db.replace(new RegExp(_regex2.default, 'g'), function (expandable) { + return '^4' + expandable.codePointAt().toString(16).padStart(6, '0'); + }); + } if (_CFG2.default.databaseCharacterEscapeList !== false) { db = db.replace(_CFG2.default.databaseCharacterEscapeList ? new RegExp(_CFG2.default.databaseCharacterEscapeList, 'g') : /[\u0000-\u001F\u007F"*/:<>?\\|]/g, function (n0) { return '^1' + n0.charCodeAt().toString(16).padStart(2, '0'); @@ -15258,17 +15275,23 @@ function unescapeDatabaseNameForSQLAndFiles(db) { } return db.slice(2) // D_ + // CFG.databaseCharacterEscapeList .replace(/(\^+)1([0-9a-f]{2})/g, function (_, esc, hex) { - return esc % 2 ? String.fromCharCode(parseInt(hex, 16)) : _; - }) // databaseCharacterEscapeList + return esc.length % 2 ? String.fromCharCode(parseInt(hex, 16)) : _; + }) + // CFG.escapeNFDForDatabaseNames + .replace(/(\^+)4([0-9a-f]{6})/g, function (_, esc, hex) { + return esc.length % 2 ? String.fromCodePoint(parseInt(hex, 16)) : _; + }) + // escapeNameForSQLiteIdentifier .replace(/(\^+)3\uD800([\uDC00-\uDFFF])/g, function (_, esc, lowSurr) { - return esc % 2 ? lowSurr : _; + return esc.length % 2 ? lowSurr : _; }).replace(/(\^+)2([\uD800-\uDBFF])\uDC00/g, function (_, esc, highSurr) { - return esc % 2 ? highSurr : _; + return esc.length % 2 ? highSurr : _; }).replace(/(\^+)([A-Z])/g, function (_, esc, upperCase) { - return esc % 2 ? upperCase : _; + return esc.length % 2 ? upperCase : _; }).replace(/(\^+)0/g, function (_, esc) { - return esc % 2 ? '\0' : _; + return esc.length % 2 ? '\0' : _; }).replace(/\^\^/g, '^'); } @@ -15444,4 +15467,4 @@ exports.enforceRange = enforceRange; exports.convertToDOMString = convertToDOMString; exports.convertToSequenceDOMString = convertToSequenceDOMString; -},{"./CFG":326}]},{},[341]); +},{"./CFG":327,"unicode-9.0.0/Binary_Property/Expands_On_NFD/regex":326}]},{},[342]); diff --git a/dist/indexeddbshim.min.js b/dist/indexeddbshim.min.js index 4503a7f9..2ef9f13f 100644 --- a/dist/indexeddbshim.min.js +++ b/dist/indexeddbshim.min.js @@ -4,9 +4,9 @@ "./_defined":29,"./_to-integer":108}],100:[function(a,b,c){var d=a("./_is-regexp"),e=a("./_defined");b.exports=function(a,b,c){if(d(b))throw TypeError("String#"+c+" doesn't accept regex!");return String(e(a))}},{"./_defined":29,"./_is-regexp":52}],101:[function(a,b,c){var d=a("./_export"),e=a("./_fails"),f=a("./_defined"),g=function(a,b,c,d){var e=String(f(a)),g="<"+b;return""!==c&&(g+=" "+c+'="'+String(d).replace(/"/g,""")+'"'),g+">"+e+""};b.exports=function(a,b){var c={};c[a]=b(g),d(d.P+d.F*e(function(){var b=""[a]('"');return b!==b.toLowerCase()||b.split('"').length>3}),"String",c)}},{"./_defined":29,"./_export":34,"./_fails":36}],102:[function(a,b,c){var d=a("./_to-length"),e=a("./_string-repeat"),f=a("./_defined");b.exports=function(a,b,c,g){var h=String(f(a)),i=h.length,j=void 0===c?" ":String(c),k=d(b);if(k<=i||""==j)return h;var l=k-i,m=e.call(j,Math.ceil(l/j.length));return m.length>l&&(m=m.slice(0,l)),g?m+h:h+m}},{"./_defined":29,"./_string-repeat":103,"./_to-length":110}],103:[function(a,b,c){"use strict";var d=a("./_to-integer"),e=a("./_defined");b.exports=function(a){var b=String(e(this)),c="",f=d(a);if(f<0||1/0==f)throw RangeError("Count can't be negative");for(;f>0;(f>>>=1)&&(b+=b))1&f&&(c+=b);return c}},{"./_defined":29,"./_to-integer":108}],104:[function(a,b,c){var d=a("./_export"),e=a("./_defined"),f=a("./_fails"),g=a("./_string-ws"),h="["+g+"]",i="​…",j=RegExp("^"+h+h+"*"),k=RegExp(h+h+"*$"),l=function(a,b,c){var e={},h=f(function(){return!!g[a]()||i[a]()!=i}),j=e[a]=h?b(m):g[a];c&&(e[c]=j),d(d.P+d.F*h,"String",e)},m=l.trim=function(a,b){return a=String(e(a)),1&b&&(a=a.replace(j,"")),2&b&&(a=a.replace(k,"")),a};b.exports=l},{"./_defined":29,"./_export":34,"./_fails":36,"./_string-ws":105}],105:[function(a,b,c){b.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},{}],106:[function(a,b,c){var d,e,f,g=a("./_ctx"),h=a("./_invoke"),i=a("./_html"),j=a("./_dom-create"),k=a("./_global"),l=k.process,m=k.setImmediate,n=k.clearImmediate,o=k.MessageChannel,p=0,q={},r=function(){var a=+this;if(q.hasOwnProperty(a)){var b=q[a];delete q[a],b()}},s=function(a){r.call(a.data)};m&&n||(m=function(a){for(var b=[],c=1;arguments.length>c;)b.push(arguments[c++]);return q[++p]=function(){h("function"==typeof a?a:Function(a),b)},d(p),p},n=function(a){delete q[a]},"process"==a("./_cof")(l)?d=function(a){l.nextTick(g(r,a,1))}:o?(e=new o,f=e.port2,e.port1.onmessage=s,d=g(f.postMessage,f,1)):k.addEventListener&&"function"==typeof postMessage&&!k.importScripts?(d=function(a){k.postMessage(a+"","*")},k.addEventListener("message",s,!1)):d="onreadystatechange"in j("script")?function(a){i.appendChild(j("script")).onreadystatechange=function(){i.removeChild(this),r.call(a)}}:function(a){setTimeout(g(r,a,1),0)}),b.exports={set:m,clear:n}},{"./_cof":20,"./_ctx":27,"./_dom-create":31,"./_global":40,"./_html":43,"./_invoke":46}],107:[function(a,b,c){var d=a("./_to-integer"),e=Math.max,f=Math.min;b.exports=function(a,b){return a=d(a),a<0?e(a+b,0):f(a,b)}},{"./_to-integer":108}],108:[function(a,b,c){var d=Math.ceil,e=Math.floor;b.exports=function(a){return isNaN(a=+a)?0:(a>0?e:d)(a)}},{}],109:[function(a,b,c){var d=a("./_iobject"),e=a("./_defined");b.exports=function(a){return d(e(a))}},{"./_defined":29,"./_iobject":47}],110:[function(a,b,c){var d=a("./_to-integer"),e=Math.min;b.exports=function(a){return a>0?e(d(a),9007199254740991):0}},{"./_to-integer":108}],111:[function(a,b,c){var d=a("./_defined");b.exports=function(a){return Object(d(a))}},{"./_defined":29}],112:[function(a,b,c){var d=a("./_is-object");b.exports=function(a,b){if(!d(a))return a;var c,e;if(b&&"function"==typeof(c=a.toString)&&!d(e=c.call(a)))return e;if("function"==typeof(c=a.valueOf)&&!d(e=c.call(a)))return e;if(!b&&"function"==typeof(c=a.toString)&&!d(e=c.call(a)))return e;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":51}],113:[function(a,b,c){"use strict";if(a("./_descriptors")){var d=a("./_library"),e=a("./_global"),f=a("./_fails"),g=a("./_export"),h=a("./_typed"),i=a("./_typed-buffer"),j=a("./_ctx"),k=a("./_an-instance"),l=a("./_property-desc"),m=a("./_hide"),n=a("./_redefine-all"),o=a("./_to-integer"),p=a("./_to-length"),q=a("./_to-index"),r=a("./_to-primitive"),s=a("./_has"),t=a("./_same-value"),u=a("./_classof"),v=a("./_is-object"),w=a("./_to-object"),x=a("./_is-array-iter"),y=a("./_object-create"),z=a("./_object-gpo"),A=a("./_object-gopn").f,B=a("./core.get-iterator-method"),C=a("./_uid"),D=a("./_wks"),E=a("./_array-methods"),F=a("./_array-includes"),G=a("./_species-constructor"),H=a("./es6.array.iterator"),I=a("./_iterators"),J=a("./_iter-detect"),K=a("./_set-species"),L=a("./_array-fill"),M=a("./_array-copy-within"),N=a("./_object-dp"),O=a("./_object-gopd"),P=N.f,Q=O.f,R=e.RangeError,S=e.TypeError,T=e.Uint8Array,U=Array.prototype,V=i.ArrayBuffer,W=i.DataView,X=E(0),Y=E(2),Z=E(3),$=E(4),_=E(5),aa=E(6),ba=F(!0),ca=F(!1),da=H.values,ea=H.keys,fa=H.entries,ga=U.lastIndexOf,ha=U.reduce,ia=U.reduceRight,ja=U.join,ka=U.sort,la=U.slice,ma=U.toString,na=U.toLocaleString,oa=D("iterator"),pa=D("toStringTag"),qa=C("typed_constructor"),ra=C("def_constructor"),sa=h.CONSTR,ta=h.TYPED,ua=h.VIEW,va=E(1,function(a,b){return Ba(G(a,a[ra]),b)}),wa=f(function(){return 1===new T(new Uint16Array([1]).buffer)[0]}),xa=!!T&&!!T.prototype.set&&f(function(){new T(1).set({})}),ya=function(a,b){if(void 0===a)throw S("Wrong length!");var c=+a,d=p(a);if(b&&!t(c,d))throw R("Wrong length!");return d},za=function(a,b){var c=o(a);if(c<0||c%b)throw R("Wrong offset!");return c},Aa=function(a){if(v(a)&&ta in a)return a;throw S(a+" is not a typed array!")},Ba=function(a,b){if(!(v(a)&&qa in a))throw S("It is not a typed array constructor!");return new a(b)},Ca=function(a,b){return Da(G(a,a[ra]),b)},Da=function(a,b){for(var c=0,d=b.length,e=Ba(a,d);d>c;)e[c]=b[c++];return e},Ea=function(a,b,c){P(a,b,{get:function(){return this._d[c]}})},Fa=function(a){var b,c,d,e,f,g,h=w(a),i=arguments.length,k=i>1?arguments[1]:void 0,l=void 0!==k,m=B(h);if(void 0!=m&&!x(m)){for(g=m.call(h),d=[],b=0;!(f=g.next()).done;b++)d.push(f.value);h=d}for(l&&i>2&&(k=j(k,arguments[2],2)),b=0,c=p(h.length),e=Ba(this,c);c>b;b++)e[b]=l?k(h[b],b):h[b];return e},Ga=function(){for(var a=0,b=arguments.length,c=Ba(this,b);b>a;)c[a]=arguments[a++];return c},Ha=!!T&&f(function(){na.call(new T(1))}),Ia=function(){return na.apply(Ha?la.call(Aa(this)):Aa(this),arguments)},Ja={copyWithin:function(a,b){return M.call(Aa(this),a,b,arguments.length>2?arguments[2]:void 0)},every:function(a){return $(Aa(this),a,arguments.length>1?arguments[1]:void 0)},fill:function(a){return L.apply(Aa(this),arguments)},filter:function(a){return Ca(this,Y(Aa(this),a,arguments.length>1?arguments[1]:void 0))},find:function(a){return _(Aa(this),a,arguments.length>1?arguments[1]:void 0)},findIndex:function(a){return aa(Aa(this),a,arguments.length>1?arguments[1]:void 0)},forEach:function(a){X(Aa(this),a,arguments.length>1?arguments[1]:void 0)},indexOf:function(a){return ca(Aa(this),a,arguments.length>1?arguments[1]:void 0)},includes:function(a){return ba(Aa(this),a,arguments.length>1?arguments[1]:void 0)},join:function(a){return ja.apply(Aa(this),arguments)},lastIndexOf:function(a){return ga.apply(Aa(this),arguments)},map:function(a){return va(Aa(this),a,arguments.length>1?arguments[1]:void 0)},reduce:function(a){return ha.apply(Aa(this),arguments)},reduceRight:function(a){return ia.apply(Aa(this),arguments)},reverse:function(){for(var a,b=this,c=Aa(b).length,d=Math.floor(c/2),e=0;e1?arguments[1]:void 0)},sort:function(a){return ka.call(Aa(this),a)},subarray:function(a,b){var c=Aa(this),d=c.length,e=q(a,d);return new(G(c,c[ra]))(c.buffer,c.byteOffset+e*c.BYTES_PER_ELEMENT,p((void 0===b?d:q(b,d))-e))}},Ka=function(a,b){return Ca(this,la.call(Aa(this),a,b))},La=function(a){Aa(this);var b=za(arguments[1],1),c=this.length,d=w(a),e=p(d.length),f=0;if(e+b>c)throw R("Wrong length!");for(;f255?255:255&d),e.v[o](c*b+e.o,d,wa)},D=function(a,b){P(a,b,{get:function(){return B(this,b)},set:function(a){return C(this,b,a)},enumerable:!0})};t?(q=c(function(a,c,d,e){k(a,q,j,"_d");var f,g,h,i,l=0,n=0;if(v(c)){if(!(c instanceof V||"ArrayBuffer"==(i=u(c))||"SharedArrayBuffer"==i))return ta in c?Da(q,c):Fa.call(q,c);f=c,n=za(d,b);var o=c.byteLength;if(void 0===e){if(o%b)throw R("Wrong length!");if((g=o-n)<0)throw R("Wrong length!")}else if((g=p(e)*b)+n>o)throw R("Wrong length!");h=g/b}else h=ya(c,!0),g=h*b,f=new V(g);for(m(a,"_d",{b:f,o:n,l:g,e:h,v:new W(f)});l>1,k=23===b?y(2,-24)-y(2,-77):0,l=0,m=a<0||0===a&&1/a<0?1:0;for(a=x(a),a!=a||a===v?(e=a!=a?1:0,d=i):(d=z(A(a)/B),a*(f=y(2,-d))<1&&(d--,f*=2),a+=d+j>=1?k/f:k*y(2,1-j),a*f>=2&&(d++,f/=2),d+j>=i?(e=0,d=i):d+j>=1?(e=(a*f-1)*y(2,b),d+=j):(e=a*y(2,j-1)*y(2,b),d=0));b>=8;g[l++]=255&e,e/=256,b-=8);for(d=d<0;g[l++]=255&d,d/=256,h-=8);return g[--l]|=128*m,g},G=function(a,b,c){var d,e=8*c-b-1,f=(1<>1,h=e-7,i=c-1,j=a[i--],k=127&j;for(j>>=7;h>0;k=256*k+a[i],i--,h-=8);for(d=k&(1<<-h)-1,k>>=-h,h+=b;h>0;d=256*d+a[i],i--,h-=8);if(0===k)k=1-g;else{if(k===f)return d?0/0:j?-v:v;d+=y(2,b),k-=g}return(j?-1:1)*d*y(2,k-b)},H=function(a){return a[3]<<24|a[2]<<16|a[1]<<8|a[0]},I=function(a){return[255&a]},J=function(a){return[255&a,a>>8&255]},K=function(a){return[255&a,a>>8&255,a>>16&255,a>>24&255]},L=function(a){return F(a,52,8)},M=function(a){return F(a,23,4)},N=function(a,b,c){o(a.prototype,b,{get:function(){return this[c]}})},O=function(a,b,c,d){var e=+c,f=l(e);if(e!=f||f<0||f+b>a[D])throw u("Wrong index!");var g=a[C]._b,h=f+a[E],i=g.slice(h,h+b);return d?i:i.reverse()},P=function(a,b,c,d,e,f){var g=+c,h=l(g);if(g!=h||h<0||h+b>a[D])throw u("Wrong index!");for(var i=a[C]._b,j=h+a[E],k=d(+e),m=0;mU;)(R=T[U++])in r||h(r,R,w[R]);f||(S.constructor=r)}var V=new s(new r(2)),W=s.prototype.setInt8;V.setInt8(0,2147483648),V.setInt8(1,2147483649),!V.getInt8(0)&&V.getInt8(1)||i(s.prototype,{setInt8:function(a,b){W.call(this,a,b<<24>>24)},setUint8:function(a,b){W.call(this,a,b<<24>>24)}},!0)}else r=function(a){var b=Q(this,a);this._b=p.call(Array(b),0),this[D]=b},s=function(a,b,c){k(this,s,"DataView"),k(a,r,"DataView");var d=a[D],e=l(b);if(e<0||e>d)throw u("Wrong offset!");if(c=void 0===c?d-e:m(c),e+c>d)throw u("Wrong length!");this[C]=a,this[E]=e,this[D]=c},e&&(N(r,"byteLength","_l"),N(s,"buffer","_b"),N(s,"byteLength","_l"),N(s,"byteOffset","_o")),i(s.prototype,{getInt8:function(a){return O(this,1,a)[0]<<24>>24},getUint8:function(a){return O(this,1,a)[0]},getInt16:function(a){var b=O(this,2,a,arguments[1]);return(b[1]<<8|b[0])<<16>>16},getUint16:function(a){var b=O(this,2,a,arguments[1]);return b[1]<<8|b[0]},getInt32:function(a){return H(O(this,4,a,arguments[1]))},getUint32:function(a){return H(O(this,4,a,arguments[1]))>>>0},getFloat32:function(a){return G(O(this,4,a,arguments[1]),23,4)},getFloat64:function(a){return G(O(this,8,a,arguments[1]),52,8)},setInt8:function(a,b){P(this,1,a,I,b)},setUint8:function(a,b){P(this,1,a,I,b)},setInt16:function(a,b){P(this,2,a,J,b,arguments[2])},setUint16:function(a,b){P(this,2,a,J,b,arguments[2])},setInt32:function(a,b){P(this,4,a,K,b,arguments[2])},setUint32:function(a,b){P(this,4,a,K,b,arguments[2])},setFloat32:function(a,b){P(this,4,a,M,b,arguments[2])},setFloat64:function(a,b){P(this,8,a,L,b,arguments[2])}});q(r,"ArrayBuffer"),q(s,"DataView"),h(s.prototype,g.VIEW,!0),c.ArrayBuffer=r,c.DataView=s},{"./_an-instance":8,"./_array-fill":11,"./_descriptors":30,"./_fails":36,"./_global":40,"./_hide":42,"./_library":60,"./_object-dp":69,"./_object-gopn":74,"./_redefine-all":88,"./_set-to-string-tag":94,"./_to-integer":108,"./_to-length":110,"./_typed":115}],115:[function(a,b,c){for(var d,e=a("./_global"),f=a("./_hide"),g=a("./_uid"),h=g("typed_array"),i=g("view"),j=!(!e.ArrayBuffer||!e.DataView),k=j,l=0,m="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(d=e[m[l++]])?(f(d.prototype,h,!0),f(d.prototype,i,!0)):k=!1;b.exports={ABV:j,CONSTR:k,TYPED:h,VIEW:i}},{"./_global":40,"./_hide":42,"./_uid":116}],116:[function(a,b,c){var d=0,e=Math.random();b.exports=function(a){return"Symbol(".concat(void 0===a?"":a,")_",(++d+e).toString(36))}},{}],117:[function(a,b,c){var d=a("./_global"),e=a("./_core"),f=a("./_library"),g=a("./_wks-ext"),h=a("./_object-dp").f;b.exports=function(a){var b=e.Symbol||(e.Symbol=f?{}:d.Symbol||{});"_"==a.charAt(0)||a in b||h(b,a,{value:g.f(a)})}},{"./_core":25,"./_global":40,"./_library":60,"./_object-dp":69,"./_wks-ext":118}],118:[function(a,b,c){c.f=a("./_wks")},{"./_wks":119}],119:[function(a,b,c){var d=a("./_shared")("wks"),e=a("./_uid"),f=a("./_global").Symbol,g="function"==typeof f;(b.exports=function(a){return d[a]||(d[a]=g&&f[a]||(g?f:e)("Symbol."+a))}).store=d},{"./_global":40,"./_shared":96,"./_uid":116}],120:[function(a,b,c){var d=a("./_classof"),e=a("./_wks")("iterator"),f=a("./_iterators");b.exports=a("./_core").getIteratorMethod=function(a){if(void 0!=a)return a[e]||a["@@iterator"]||f[d(a)]}},{"./_classof":19,"./_core":25,"./_iterators":58,"./_wks":119}],121:[function(a,b,c){var d=a("./_export"),e=a("./_replacer")(/[\\^$*+?.()|[\]{}]/g,"\\$&");d(d.S,"RegExp",{escape:function(a){return e(a)}})},{"./_export":34,"./_replacer":90}],122:[function(a,b,c){var d=a("./_export");d(d.P,"Array",{copyWithin:a("./_array-copy-within")}),a("./_add-to-unscopables")("copyWithin")},{"./_add-to-unscopables":7,"./_array-copy-within":10,"./_export":34}],123:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-methods")(4);d(d.P+d.F*!a("./_strict-method")([].every,!0),"Array",{every:function(a){return e(this,a,arguments[1])}})},{"./_array-methods":14,"./_export":34,"./_strict-method":98}],124:[function(a,b,c){var d=a("./_export");d(d.P,"Array",{fill:a("./_array-fill")}),a("./_add-to-unscopables")("fill")},{"./_add-to-unscopables":7,"./_array-fill":11,"./_export":34}],125:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-methods")(2);d(d.P+d.F*!a("./_strict-method")([].filter,!0),"Array",{filter:function(a){return e(this,a,arguments[1])}})},{"./_array-methods":14,"./_export":34,"./_strict-method":98}],126:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-methods")(6),f="findIndex",g=!0;f in[]&&Array(1)[f](function(){g=!1}),d(d.P+d.F*g,"Array",{findIndex:function(a){return e(this,a,arguments.length>1?arguments[1]:void 0)}}),a("./_add-to-unscopables")(f)},{"./_add-to-unscopables":7,"./_array-methods":14,"./_export":34}],127:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-methods")(5),f=!0;"find"in[]&&Array(1).find(function(){f=!1}),d(d.P+d.F*f,"Array",{find:function(a){return e(this,a,arguments.length>1?arguments[1]:void 0)}}),a("./_add-to-unscopables")("find")},{"./_add-to-unscopables":7,"./_array-methods":14,"./_export":34}],128:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-methods")(0),f=a("./_strict-method")([].forEach,!0);d(d.P+d.F*!f,"Array",{forEach:function(a){return e(this,a,arguments[1])}})},{"./_array-methods":14,"./_export":34,"./_strict-method":98}],129:[function(a,b,c){"use strict";var d=a("./_ctx"),e=a("./_export"),f=a("./_to-object"),g=a("./_iter-call"),h=a("./_is-array-iter"),i=a("./_to-length"),j=a("./_create-property"),k=a("./core.get-iterator-method");e(e.S+e.F*!a("./_iter-detect")(function(a){Array.from(a)}),"Array",{from:function(a){var b,c,e,l,m=f(a),n="function"==typeof this?this:Array,o=arguments.length,p=o>1?arguments[1]:void 0,q=void 0!==p,r=0,s=k(m);if(q&&(p=d(p,o>2?arguments[2]:void 0,2)),void 0==s||n==Array&&h(s))for(b=i(m.length),c=new n(b);b>r;r++)j(c,r,q?p(m[r],r):m[r]);else for(l=s.call(m),c=new n;!(e=l.next()).done;r++)j(c,r,q?g(l,p,[e.value,r],!0):e.value);return c.length=r,c}})},{"./_create-property":26,"./_ctx":27,"./_export":34,"./_is-array-iter":48,"./_iter-call":53,"./_iter-detect":56,"./_to-length":110,"./_to-object":111,"./core.get-iterator-method":120}],130:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-includes")(!1),f=[].indexOf,g=!!f&&1/[1].indexOf(1,-0)<0;d(d.P+d.F*(g||!a("./_strict-method")(f)),"Array",{indexOf:function(a){return g?f.apply(this,arguments)||0:e(this,a,arguments[1])}})},{"./_array-includes":13,"./_export":34,"./_strict-method":98}],131:[function(a,b,c){var d=a("./_export");d(d.S,"Array",{isArray:a("./_is-array")})},{"./_export":34,"./_is-array":49}],132:[function(a,b,c){"use strict";var d=a("./_add-to-unscopables"),e=a("./_iter-step"),f=a("./_iterators"),g=a("./_to-iobject");b.exports=a("./_iter-define")(Array,"Array",function(a,b){this._t=g(a),this._i=0,this._k=b},function(){var a=this._t,b=this._k,c=this._i++;return!a||c>=a.length?(this._t=void 0,e(1)):"keys"==b?e(0,c):"values"==b?e(0,a[c]):e(0,[c,a[c]])},"values"),f.Arguments=f.Array,d("keys"),d("values"),d("entries")},{"./_add-to-unscopables":7,"./_iter-define":55,"./_iter-step":57,"./_iterators":58,"./_to-iobject":109}],133:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-iobject"),f=[].join;d(d.P+d.F*(a("./_iobject")!=Object||!a("./_strict-method")(f)),"Array",{join:function(a){return f.call(e(this),void 0===a?",":a)}})},{"./_export":34,"./_iobject":47,"./_strict-method":98,"./_to-iobject":109}],134:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-iobject"),f=a("./_to-integer"),g=a("./_to-length"),h=[].lastIndexOf,i=!!h&&1/[1].lastIndexOf(1,-0)<0;d(d.P+d.F*(i||!a("./_strict-method")(h)),"Array",{lastIndexOf:function(a){if(i)return h.apply(this,arguments)||0;var b=e(this),c=g(b.length),d=c-1;for(arguments.length>1&&(d=Math.min(d,f(arguments[1]))),d<0&&(d=c+d);d>=0;d--)if(d in b&&b[d]===a)return d||0;return-1}})},{"./_export":34,"./_strict-method":98,"./_to-integer":108,"./_to-iobject":109,"./_to-length":110}],135:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-methods")(1);d(d.P+d.F*!a("./_strict-method")([].map,!0),"Array",{map:function(a){return e(this,a,arguments[1])}})},{"./_array-methods":14,"./_export":34,"./_strict-method":98}],136:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_create-property");d(d.S+d.F*a("./_fails")(function(){function a(){}return!(Array.of.call(a)instanceof a)}),"Array",{of:function(){for(var a=0,b=arguments.length,c=new("function"==typeof this?this:Array)(b);b>a;)e(c,a,arguments[a++]);return c.length=b,c}})},{"./_create-property":26,"./_export":34,"./_fails":36}],137:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-reduce");d(d.P+d.F*!a("./_strict-method")([].reduceRight,!0),"Array",{reduceRight:function(a){return e(this,a,arguments.length,arguments[1],!0)}})},{"./_array-reduce":15,"./_export":34,"./_strict-method":98}],138:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-reduce");d(d.P+d.F*!a("./_strict-method")([].reduce,!0),"Array",{reduce:function(a){return e(this,a,arguments.length,arguments[1],!1)}})},{"./_array-reduce":15,"./_export":34,"./_strict-method":98}],139:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_html"),f=a("./_cof"),g=a("./_to-index"),h=a("./_to-length"),i=[].slice;d(d.P+d.F*a("./_fails")(function(){e&&i.call(e)}),"Array",{slice:function(a,b){var c=h(this.length),d=f(this);if(b=void 0===b?c:b,"Array"==d)return i.call(this,a,b);for(var e=g(a,c),j=g(b,c),k=h(j-e),l=Array(k),m=0;m9?a:"0"+a};d(d.P+d.F*(e(function(){return"0385-07-25T07:06:39.999Z"!=new Date(-5e13-1).toISOString()})||!e(function(){new Date(0/0).toISOString()})),"Date",{toISOString:function(){if(!isFinite(f.call(this)))throw RangeError("Invalid time value");var a=this,b=a.getUTCFullYear(),c=a.getUTCMilliseconds(),d=b<0?"-":b>9999?"+":"";return d+("00000"+Math.abs(b)).slice(d?-6:-4)+"-"+g(a.getUTCMonth()+1)+"-"+g(a.getUTCDate())+"T"+g(a.getUTCHours())+":"+g(a.getUTCMinutes())+":"+g(a.getUTCSeconds())+"."+(c>99?c:"0"+g(c))+"Z"}})},{"./_export":34,"./_fails":36}],145:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-object"),f=a("./_to-primitive");d(d.P+d.F*a("./_fails")(function(){return null!==new Date(0/0).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(a){var b=e(this),c=f(b);return"number"!=typeof c||isFinite(c)?b.toISOString():null}})},{"./_export":34,"./_fails":36,"./_to-object":111,"./_to-primitive":112}],146:[function(a,b,c){var d=a("./_wks")("toPrimitive"),e=Date.prototype;d in e||a("./_hide")(e,d,a("./_date-to-primitive"))},{"./_date-to-primitive":28,"./_hide":42,"./_wks":119}],147:[function(a,b,c){var d=Date.prototype,e=d.toString,f=d.getTime;new Date(0/0)+""!="Invalid Date"&&a("./_redefine")(d,"toString",function(){var a=f.call(this);return a===a?e.call(this):"Invalid Date"})},{"./_redefine":89}],148:[function(a,b,c){var d=a("./_export");d(d.P,"Function",{bind:a("./_bind")})},{"./_bind":18,"./_export":34}],149:[function(a,b,c){"use strict";var d=a("./_is-object"),e=a("./_object-gpo"),f=a("./_wks")("hasInstance"),g=Function.prototype;f in g||a("./_object-dp").f(g,f,{value:function(a){if("function"!=typeof this||!d(a))return!1;if(!d(this.prototype))return a instanceof this;for(;a=e(a);)if(this.prototype===a)return!0;return!1}})},{"./_is-object":51,"./_object-dp":69,"./_object-gpo":76,"./_wks":119}],150:[function(a,b,c){var d=a("./_object-dp").f,e=a("./_property-desc"),f=a("./_has"),g=Function.prototype,h=Object.isExtensible||function(){return!0};"name"in g||a("./_descriptors")&&d(g,"name",{configurable:!0,get:function(){try{var a=this,b=(""+a).match(/^\s*function ([^ (]*)/)[1];return f(a,"name")||!h(a)||d(a,"name",e(5,b)),b}catch(a){return""}}})},{"./_descriptors":30,"./_has":41,"./_object-dp":69,"./_property-desc":87}],151:[function(a,b,c){"use strict";var d=a("./_collection-strong");b.exports=a("./_collection")("Map",function(a){return function(){return a(this,arguments.length>0?arguments[0]:void 0)}},{get:function(a){var b=d.getEntry(this,a);return b&&b.v},set:function(a,b){return d.def(this,0===a?0:a,b)}},d,!0)},{"./_collection":24,"./_collection-strong":21}],152:[function(a,b,c){var d=a("./_export"),e=a("./_math-log1p"),f=Math.sqrt,g=Math.acosh;d(d.S+d.F*!(g&&710==Math.floor(g(Number.MAX_VALUE))&&1/0==g(1/0)),"Math",{acosh:function(a){return(a=+a)<1?0/0:a>94906265.62425156?Math.log(a)+Math.LN2:e(a-1+f(a-1)*f(a+1))}})},{"./_export":34,"./_math-log1p":62}],153:[function(a,b,c){function d(a){return isFinite(a=+a)&&0!=a?a<0?-d(-a):Math.log(a+Math.sqrt(a*a+1)):a}var e=a("./_export"),f=Math.asinh;e(e.S+e.F*!(f&&1/f(0)>0),"Math",{asinh:d})},{"./_export":34}],154:[function(a,b,c){var d=a("./_export"),e=Math.atanh;d(d.S+d.F*!(e&&1/e(-0)<0),"Math",{atanh:function(a){return 0==(a=+a)?a:Math.log((1+a)/(1-a))/2}})},{"./_export":34}],155:[function(a,b,c){var d=a("./_export"),e=a("./_math-sign");d(d.S,"Math",{cbrt:function(a){return e(a=+a)*Math.pow(Math.abs(a),1/3)}})},{"./_export":34,"./_math-sign":63}],156:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{clz32:function(a){return(a>>>=0)?31-Math.floor(Math.log(a+.5)*Math.LOG2E):32}})},{"./_export":34}],157:[function(a,b,c){var d=a("./_export"),e=Math.exp;d(d.S,"Math",{cosh:function(a){return(e(a=+a)+e(-a))/2}})},{"./_export":34}],158:[function(a,b,c){var d=a("./_export"),e=a("./_math-expm1");d(d.S+d.F*(e!=Math.expm1),"Math",{expm1:e})},{"./_export":34,"./_math-expm1":61}],159:[function(a,b,c){var d=a("./_export"),e=a("./_math-sign"),f=Math.pow,g=f(2,-52),h=f(2,-23),i=f(2,127)*(2-h),j=f(2,-126),k=function(a){return a+1/g-1/g};d(d.S,"Math",{fround:function(a){var b,c,d=Math.abs(a),f=e(a);return di||c!=c?1/0*f:f*c)}})},{"./_export":34,"./_math-sign":63}],160:[function(a,b,c){var d=a("./_export"),e=Math.abs;d(d.S,"Math",{hypot:function(a,b){for(var c,d,f=0,g=0,h=arguments.length,i=0;g0?(d=c/i,f+=d*d):f+=c;return 1/0===i?1/0:i*Math.sqrt(f)}})},{"./_export":34}],161:[function(a,b,c){var d=a("./_export"),e=Math.imul;d(d.S+d.F*a("./_fails")(function(){return e(4294967295,5)!=-5||2!=e.length}),"Math",{imul:function(a,b){var c=+a,d=+b,e=65535&c,f=65535&d;return 0|e*f+((65535&c>>>16)*f+e*(65535&d>>>16)<<16>>>0)}})},{"./_export":34,"./_fails":36}],162:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{log10:function(a){return Math.log(a)/Math.LN10}})},{"./_export":34}],163:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{log1p:a("./_math-log1p")})},{"./_export":34,"./_math-log1p":62}],164:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{log2:function(a){return Math.log(a)/Math.LN2}})},{"./_export":34}],165:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{sign:a("./_math-sign")})},{"./_export":34,"./_math-sign":63}],166:[function(a,b,c){var d=a("./_export"),e=a("./_math-expm1"),f=Math.exp;d(d.S+d.F*a("./_fails")(function(){return!Math.sinh(-2e-17)!=-2e-17}),"Math",{sinh:function(a){return Math.abs(a=+a)<1?(e(a)-e(-a))/2:(f(a-1)-f(-a-1))*(Math.E/2)}})},{"./_export":34,"./_fails":36,"./_math-expm1":61}],167:[function(a,b,c){var d=a("./_export"),e=a("./_math-expm1"),f=Math.exp;d(d.S,"Math",{tanh:function(a){var b=e(a=+a),c=e(-a);return 1/0==b?1:1/0==c?-1:(b-c)/(f(a)+f(-a))}})},{"./_export":34,"./_math-expm1":61}],168:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{trunc:function(a){return(a>0?Math.floor:Math.ceil)(a)}})},{"./_export":34}],169:[function(a,b,c){"use strict";var d=a("./_global"),e=a("./_has"),f=a("./_cof"),g=a("./_inherit-if-required"),h=a("./_to-primitive"),i=a("./_fails"),j=a("./_object-gopn").f,k=a("./_object-gopd").f,l=a("./_object-dp").f,m=a("./_string-trim").trim,n=d.Number,o=n,p=n.prototype,q="Number"==f(a("./_object-create")(p)),r="trim"in String.prototype,s=function(a){var b=h(a,!1);if("string"==typeof b&&b.length>2){b=r?b.trim():m(b,3);var c,d,e,f=b.charCodeAt(0);if(43===f||45===f){if(88===(c=b.charCodeAt(2))||120===c)return 0/0}else if(48===f){switch(b.charCodeAt(1)){case 66:case 98:d=2,e=49;break;case 79:case 111:d=8,e=55;break;default:return+b}for(var g,i=b.slice(2),j=0,k=i.length;je)return 0/0;return parseInt(i,d)}}return+b};if(!n(" 0o1")||!n("0b1")||n("+0x1")){n=function(a){var b=arguments.length<1?0:a,c=this;return c instanceof n&&(q?i(function(){p.valueOf.call(c)}):"Number"!=f(c))?g(new o(s(b)),c,n):s(b)};for(var t,u=a("./_descriptors")?j(o):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),v=0;u.length>v;v++)e(o,t=u[v])&&!e(n,t)&&l(n,t,k(o,t));n.prototype=p,p.constructor=n,a("./_redefine")(d,"Number",n)}},{"./_cof":20,"./_descriptors":30,"./_fails":36,"./_global":40,"./_has":41,"./_inherit-if-required":45,"./_object-create":68,"./_object-dp":69,"./_object-gopd":72,"./_object-gopn":74,"./_redefine":89,"./_string-trim":104,"./_to-primitive":112}],170:[function(a,b,c){var d=a("./_export");d(d.S,"Number",{EPSILON:Math.pow(2,-52)})},{"./_export":34}],171:[function(a,b,c){ var d=a("./_export"),e=a("./_global").isFinite;d(d.S,"Number",{isFinite:function(a){return"number"==typeof a&&e(a)}})},{"./_export":34,"./_global":40}],172:[function(a,b,c){var d=a("./_export");d(d.S,"Number",{isInteger:a("./_is-integer")})},{"./_export":34,"./_is-integer":50}],173:[function(a,b,c){var d=a("./_export");d(d.S,"Number",{isNaN:function(a){return a!=a}})},{"./_export":34}],174:[function(a,b,c){var d=a("./_export"),e=a("./_is-integer"),f=Math.abs;d(d.S,"Number",{isSafeInteger:function(a){return e(a)&&f(a)<=9007199254740991}})},{"./_export":34,"./_is-integer":50}],175:[function(a,b,c){var d=a("./_export");d(d.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},{"./_export":34}],176:[function(a,b,c){var d=a("./_export");d(d.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},{"./_export":34}],177:[function(a,b,c){var d=a("./_export"),e=a("./_parse-float");d(d.S+d.F*(Number.parseFloat!=e),"Number",{parseFloat:e})},{"./_export":34,"./_parse-float":83}],178:[function(a,b,c){var d=a("./_export"),e=a("./_parse-int");d(d.S+d.F*(Number.parseInt!=e),"Number",{parseInt:e})},{"./_export":34,"./_parse-int":84}],179:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-integer"),f=a("./_a-number-value"),g=a("./_string-repeat"),h=1..toFixed,i=Math.floor,j=[0,0,0,0,0,0],k="Number.toFixed: incorrect invocation!",l=function(a,b){for(var c=-1,d=b;++c<6;)d+=a*j[c],j[c]=d%1e7,d=i(d/1e7)},m=function(a){for(var b=6,c=0;--b>=0;)c+=j[b],j[b]=i(c/a),c=c%a*1e7},n=function(){for(var a=6,b="";--a>=0;)if(""!==b||0===a||0!==j[a]){var c=String(j[a]);b=""===b?c:b+g.call("0",7-c.length)+c}return b},o=function(a,b,c){return 0===b?c:b%2==1?o(a,b-1,c*a):o(a*a,b/2,c)},p=function(a){for(var b=0,c=a;c>=4096;)b+=12,c/=4096;for(;c>=2;)b+=1,c/=2;return b};d(d.P+d.F*(!!h&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!a("./_fails")(function(){h.call({})})),"Number",{toFixed:function(a){var b,c,d,h,i=f(this,k),j=e(a),q="",r="0";if(j<0||j>20)throw RangeError(k);if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return String(i);if(i<0&&(q="-",i=-i),i>1e-21)if(b=p(i*o(2,69,1))-69,c=b<0?i*o(2,-b,1):i/o(2,b,1),c*=4503599627370496,(b=52-b)>0){for(l(0,c),d=j;d>=7;)l(1e7,0),d-=7;for(l(o(10,d,1),0),d=b-1;d>=23;)m(1<<23),d-=23;m(1<0?(h=r.length,r=q+(h<=j?"0."+g.call("0",j-h)+r:r.slice(0,h-j)+"."+r.slice(h-j))):r=q+r,r}})},{"./_a-number-value":6,"./_export":34,"./_fails":36,"./_string-repeat":103,"./_to-integer":108}],180:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_fails"),f=a("./_a-number-value"),g=1..toPrecision;d(d.P+d.F*(e(function(){return"1"!==g.call(1,void 0)})||!e(function(){g.call({})})),"Number",{toPrecision:function(a){var b=f(this,"Number#toPrecision: incorrect invocation!");return void 0===a?g.call(b):g.call(b,a)}})},{"./_a-number-value":6,"./_export":34,"./_fails":36}],181:[function(a,b,c){var d=a("./_export");d(d.S+d.F,"Object",{assign:a("./_object-assign")})},{"./_export":34,"./_object-assign":67}],182:[function(a,b,c){var d=a("./_export");d(d.S,"Object",{create:a("./_object-create")})},{"./_export":34,"./_object-create":68}],183:[function(a,b,c){var d=a("./_export");d(d.S+d.F*!a("./_descriptors"),"Object",{defineProperties:a("./_object-dps")})},{"./_descriptors":30,"./_export":34,"./_object-dps":70}],184:[function(a,b,c){var d=a("./_export");d(d.S+d.F*!a("./_descriptors"),"Object",{defineProperty:a("./_object-dp").f})},{"./_descriptors":30,"./_export":34,"./_object-dp":69}],185:[function(a,b,c){var d=a("./_is-object"),e=a("./_meta").onFreeze;a("./_object-sap")("freeze",function(a){return function(b){return a&&d(b)?a(e(b)):b}})},{"./_is-object":51,"./_meta":64,"./_object-sap":80}],186:[function(a,b,c){var d=a("./_to-iobject"),e=a("./_object-gopd").f;a("./_object-sap")("getOwnPropertyDescriptor",function(){return function(a,b){return e(d(a),b)}})},{"./_object-gopd":72,"./_object-sap":80,"./_to-iobject":109}],187:[function(a,b,c){a("./_object-sap")("getOwnPropertyNames",function(){return a("./_object-gopn-ext").f})},{"./_object-gopn-ext":73,"./_object-sap":80}],188:[function(a,b,c){var d=a("./_to-object"),e=a("./_object-gpo");a("./_object-sap")("getPrototypeOf",function(){return function(a){return e(d(a))}})},{"./_object-gpo":76,"./_object-sap":80,"./_to-object":111}],189:[function(a,b,c){var d=a("./_is-object");a("./_object-sap")("isExtensible",function(a){return function(b){return!!d(b)&&(!a||a(b))}})},{"./_is-object":51,"./_object-sap":80}],190:[function(a,b,c){var d=a("./_is-object");a("./_object-sap")("isFrozen",function(a){return function(b){return!d(b)||!!a&&a(b)}})},{"./_is-object":51,"./_object-sap":80}],191:[function(a,b,c){var d=a("./_is-object");a("./_object-sap")("isSealed",function(a){return function(b){return!d(b)||!!a&&a(b)}})},{"./_is-object":51,"./_object-sap":80}],192:[function(a,b,c){var d=a("./_export");d(d.S,"Object",{is:a("./_same-value")})},{"./_export":34,"./_same-value":91}],193:[function(a,b,c){var d=a("./_to-object"),e=a("./_object-keys");a("./_object-sap")("keys",function(){return function(a){return e(d(a))}})},{"./_object-keys":78,"./_object-sap":80,"./_to-object":111}],194:[function(a,b,c){var d=a("./_is-object"),e=a("./_meta").onFreeze;a("./_object-sap")("preventExtensions",function(a){return function(b){return a&&d(b)?a(e(b)):b}})},{"./_is-object":51,"./_meta":64,"./_object-sap":80}],195:[function(a,b,c){var d=a("./_is-object"),e=a("./_meta").onFreeze;a("./_object-sap")("seal",function(a){return function(b){return a&&d(b)?a(e(b)):b}})},{"./_is-object":51,"./_meta":64,"./_object-sap":80}],196:[function(a,b,c){var d=a("./_export");d(d.S,"Object",{setPrototypeOf:a("./_set-proto").set})},{"./_export":34,"./_set-proto":92}],197:[function(a,b,c){"use strict";var d=a("./_classof"),e={};e[a("./_wks")("toStringTag")]="z",e+""!="[object z]"&&a("./_redefine")(Object.prototype,"toString",function(){return"[object "+d(this)+"]"},!0)},{"./_classof":19,"./_redefine":89,"./_wks":119}],198:[function(a,b,c){var d=a("./_export"),e=a("./_parse-float");d(d.G+d.F*(parseFloat!=e),{parseFloat:e})},{"./_export":34,"./_parse-float":83}],199:[function(a,b,c){var d=a("./_export"),e=a("./_parse-int");d(d.G+d.F*(parseInt!=e),{parseInt:e})},{"./_export":34,"./_parse-int":84}],200:[function(a,b,c){"use strict";var d,e,f,g=a("./_library"),h=a("./_global"),i=a("./_ctx"),j=a("./_classof"),k=a("./_export"),l=a("./_is-object"),m=a("./_a-function"),n=a("./_an-instance"),o=a("./_for-of"),p=a("./_species-constructor"),q=a("./_task").set,r=a("./_microtask")(),s=h.TypeError,t=h.process,u=h.Promise,t=h.process,v="process"==j(t),w=function(){},x=!!function(){try{var b=u.resolve(1),c=(b.constructor={})[a("./_wks")("species")]=function(a){a(w,w)};return(v||"function"==typeof PromiseRejectionEvent)&&b.then(w)instanceof c}catch(a){}}(),y=function(a,b){return a===b||a===u&&b===f},z=function(a){var b;return!(!l(a)||"function"!=typeof(b=a.then))&&b},A=function(a){return y(u,a)?new B(a):new e(a)},B=e=function(a){var b,c;this.promise=new a(function(a,d){if(void 0!==b||void 0!==c)throw s("Bad Promise constructor");b=a,c=d}),this.resolve=m(b),this.reject=m(c)},C=function(a){try{a()}catch(a){return{error:a}}},D=function(a,b){if(!a._n){a._n=!0;var c=a._c;r(function(){for(var d=a._v,e=1==a._s,f=0;c.length>f;)!function(b){var c,f,g=e?b.ok:b.fail,h=b.resolve,i=b.reject,j=b.domain;try{g?(e||(2==a._h&&G(a),a._h=1),g===!0?c=d:(j&&j.enter(),c=g(d),j&&j.exit()),c===b.promise?i(s("Promise-chain cycle")):(f=z(c))?f.call(c,h,i):h(c)):i(d)}catch(a){i(a)}}(c[f++]);a._c=[],a._n=!1,b&&!a._h&&E(a)})}},E=function(a){q.call(h,function(){var b,c,d,e=a._v;if(F(a)&&(b=C(function(){v?t.emit("unhandledRejection",e,a):(c=h.onunhandledrejection)?c({promise:a,reason:e}):(d=h.console)&&d.error&&d.error("Unhandled promise rejection",e)}),a._h=v||F(a)?2:1),a._a=void 0,b)throw b.error})},F=function(a){if(1==a._h)return!1;for(var b,c=a._a||a._c,d=0;c.length>d;)if(b=c[d++],b.fail||!F(b.promise))return!1;return!0},G=function(a){q.call(h,function(){var b;v?t.emit("rejectionHandled",a):(b=h.onrejectionhandled)&&b({promise:a,reason:a._v})})},H=function(a){var b=this;b._d||(b._d=!0,b=b._w||b,b._v=a,b._s=2,b._a||(b._a=b._c.slice()),D(b,!0))},I=function(a){var b,c=this;if(!c._d){c._d=!0,c=c._w||c;try{if(c===a)throw s("Promise can't be resolved itself");(b=z(a))?r(function(){var d={_w:c,_d:!1};try{b.call(a,i(I,d,1),i(H,d,1))}catch(a){H.call(d,a)}}):(c._v=a,c._s=1,D(c,!1))}catch(a){H.call({_w:c,_d:!1},a)}}};x||(u=function(a){n(this,u,"Promise","_h"),m(a),d.call(this);try{a(i(I,this,1),i(H,this,1))}catch(a){H.call(this,a)}},d=function(a){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},d.prototype=a("./_redefine-all")(u.prototype,{then:function(a,b){var c=A(p(this,u));return c.ok="function"!=typeof a||a,c.fail="function"==typeof b&&b,c.domain=v?t.domain:void 0,this._c.push(c),this._a&&this._a.push(c),this._s&&D(this,!1),c.promise},catch:function(a){return this.then(void 0,a)}}),B=function(){var a=new d;this.promise=a,this.resolve=i(I,a,1),this.reject=i(H,a,1)}),k(k.G+k.W+k.F*!x,{Promise:u}),a("./_set-to-string-tag")(u,"Promise"),a("./_set-species")("Promise"),f=a("./_core").Promise,k(k.S+k.F*!x,"Promise",{reject:function(a){var b=A(this);return(0,b.reject)(a),b.promise}}),k(k.S+k.F*(g||!x),"Promise",{resolve:function(a){if(a instanceof u&&y(a.constructor,this))return a;var b=A(this);return(0,b.resolve)(a),b.promise}}),k(k.S+k.F*!(x&&a("./_iter-detect")(function(a){u.all(a).catch(w)})),"Promise",{all:function(a){var b=this,c=A(b),d=c.resolve,e=c.reject,f=C(function(){var c=[],f=0,g=1;o(a,!1,function(a){var h=f++,i=!1;c.push(void 0),g++,b.resolve(a).then(function(a){i||(i=!0,c[h]=a,--g||d(c))},e)}),--g||d(c)});return f&&e(f.error),c.promise},race:function(a){var b=this,c=A(b),d=c.reject,e=C(function(){o(a,!1,function(a){b.resolve(a).then(c.resolve,d)})});return e&&d(e.error),c.promise}})},{"./_a-function":5,"./_an-instance":8,"./_classof":19,"./_core":25,"./_ctx":27,"./_export":34,"./_for-of":39,"./_global":40,"./_is-object":51,"./_iter-detect":56,"./_library":60,"./_microtask":66,"./_redefine-all":88,"./_set-species":93,"./_set-to-string-tag":94,"./_species-constructor":97,"./_task":106,"./_wks":119}],201:[function(a,b,c){var d=a("./_export"),e=a("./_a-function"),f=a("./_an-object"),g=(a("./_global").Reflect||{}).apply,h=Function.apply;d(d.S+d.F*!a("./_fails")(function(){g(function(){})}),"Reflect",{apply:function(a,b,c){var d=e(a),i=f(c);return g?g(d,b,i):h.call(d,b,i)}})},{"./_a-function":5,"./_an-object":9,"./_export":34,"./_fails":36,"./_global":40}],202:[function(a,b,c){var d=a("./_export"),e=a("./_object-create"),f=a("./_a-function"),g=a("./_an-object"),h=a("./_is-object"),i=a("./_fails"),j=a("./_bind"),k=(a("./_global").Reflect||{}).construct,l=i(function(){function a(){}return!(k(function(){},[],a)instanceof a)}),m=!i(function(){k(function(){})});d(d.S+d.F*(l||m),"Reflect",{construct:function(a,b){f(a),g(b);var c=arguments.length<3?a:f(arguments[2]);if(m&&!l)return k(a,b,c);if(a==c){switch(b.length){case 0:return new a;case 1:return new a(b[0]);case 2:return new a(b[0],b[1]);case 3:return new a(b[0],b[1],b[2]);case 4:return new a(b[0],b[1],b[2],b[3])}var d=[null];return d.push.apply(d,b),new(j.apply(a,d))}var i=c.prototype,n=e(h(i)?i:Object.prototype),o=Function.apply.call(a,n,b);return h(o)?o:n}})},{"./_a-function":5,"./_an-object":9,"./_bind":18,"./_export":34,"./_fails":36,"./_global":40,"./_is-object":51,"./_object-create":68}],203:[function(a,b,c){var d=a("./_object-dp"),e=a("./_export"),f=a("./_an-object"),g=a("./_to-primitive");e(e.S+e.F*a("./_fails")(function(){Reflect.defineProperty(d.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(a,b,c){f(a),b=g(b,!0),f(c);try{return d.f(a,b,c),!0}catch(a){return!1}}})},{"./_an-object":9,"./_export":34,"./_fails":36,"./_object-dp":69,"./_to-primitive":112}],204:[function(a,b,c){var d=a("./_export"),e=a("./_object-gopd").f,f=a("./_an-object");d(d.S,"Reflect",{deleteProperty:function(a,b){var c=e(f(a),b);return!(c&&!c.configurable)&&delete a[b]}})},{"./_an-object":9,"./_export":34,"./_object-gopd":72}],205:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_an-object"),f=function(a){this._t=e(a),this._i=0;var b,c=this._k=[];for(b in a)c.push(b)};a("./_iter-create")(f,"Object",function(){var a,b=this,c=b._k;do{if(b._i>=c.length)return{value:void 0,done:!0}}while(!((a=c[b._i++])in b._t));return{value:a,done:!1}}),d(d.S,"Reflect",{enumerate:function(a){return new f(a)}})},{"./_an-object":9,"./_export":34,"./_iter-create":54}],206:[function(a,b,c){var d=a("./_object-gopd"),e=a("./_export"),f=a("./_an-object");e(e.S,"Reflect",{getOwnPropertyDescriptor:function(a,b){return d.f(f(a),b)}})},{"./_an-object":9,"./_export":34,"./_object-gopd":72}],207:[function(a,b,c){var d=a("./_export"),e=a("./_object-gpo"),f=a("./_an-object");d(d.S,"Reflect",{getPrototypeOf:function(a){return e(f(a))}})},{"./_an-object":9,"./_export":34,"./_object-gpo":76}],208:[function(a,b,c){function d(a,b){var c,h,k=arguments.length<3?a:arguments[2];return j(a)===k?a[b]:(c=e.f(a,b))?g(c,"value")?c.value:void 0!==c.get?c.get.call(k):void 0:i(h=f(a))?d(h,b,k):void 0}var e=a("./_object-gopd"),f=a("./_object-gpo"),g=a("./_has"),h=a("./_export"),i=a("./_is-object"),j=a("./_an-object");h(h.S,"Reflect",{get:d})},{"./_an-object":9,"./_export":34,"./_has":41,"./_is-object":51,"./_object-gopd":72,"./_object-gpo":76}],209:[function(a,b,c){var d=a("./_export");d(d.S,"Reflect",{has:function(a,b){return b in a}})},{"./_export":34}],210:[function(a,b,c){var d=a("./_export"),e=a("./_an-object"),f=Object.isExtensible;d(d.S,"Reflect",{isExtensible:function(a){return e(a),!f||f(a)}})},{"./_an-object":9,"./_export":34}],211:[function(a,b,c){var d=a("./_export");d(d.S,"Reflect",{ownKeys:a("./_own-keys")})},{"./_export":34,"./_own-keys":82}],212:[function(a,b,c){var d=a("./_export"),e=a("./_an-object"),f=Object.preventExtensions;d(d.S,"Reflect",{preventExtensions:function(a){e(a);try{return f&&f(a),!0}catch(a){return!1}}})},{"./_an-object":9,"./_export":34}],213:[function(a,b,c){var d=a("./_export"),e=a("./_set-proto");e&&d(d.S,"Reflect",{setPrototypeOf:function(a,b){e.check(a,b);try{return e.set(a,b),!0}catch(a){return!1}}})},{"./_export":34,"./_set-proto":92}],214:[function(a,b,c){function d(a,b,c){var i,m,n=arguments.length<4?a:arguments[3],o=f.f(k(a),b);if(!o){if(l(m=g(a)))return d(m,b,c,n);o=j(0)}return h(o,"value")?!(o.writable===!1||!l(n))&&(i=f.f(n,b)||j(0),i.value=c,e.f(n,b,i),!0):void 0!==o.set&&(o.set.call(n,c),!0)}var e=a("./_object-dp"),f=a("./_object-gopd"),g=a("./_object-gpo"),h=a("./_has"),i=a("./_export"),j=a("./_property-desc"),k=a("./_an-object"),l=a("./_is-object");i(i.S,"Reflect",{set:d})},{"./_an-object":9,"./_export":34,"./_has":41,"./_is-object":51,"./_object-dp":69,"./_object-gopd":72,"./_object-gpo":76,"./_property-desc":87}],215:[function(a,b,c){var d=a("./_global"),e=a("./_inherit-if-required"),f=a("./_object-dp").f,g=a("./_object-gopn").f,h=a("./_is-regexp"),i=a("./_flags"),j=d.RegExp,k=j,l=j.prototype,m=/a/g,n=/a/g!==new j(/a/g);if(a("./_descriptors")&&(!n||a("./_fails")(function(){return m[a("./_wks")("match")]=!1,/a/g!=j(/a/g)||j(m)==m||"/a/i"!=j(/a/g,"i")}))){j=function(a,b){var c=this instanceof j,d=h(a),f=void 0===b;return!c&&d&&a.constructor===j&&f?a:e(n?new k(d&&!f?a.source:a,b):k((d=a instanceof j)?a.source:a,d&&f?i.call(a):b),c?this:l,j)};for(var o=g(k),p=0;o.length>p;)!function(a){a in j||f(j,a,{configurable:!0,get:function(){return k[a]},set:function(b){k[a]=b}})}(o[p++]);l.constructor=j,j.prototype=l,a("./_redefine")(d,"RegExp",j)}a("./_set-species")("RegExp")},{"./_descriptors":30,"./_fails":36,"./_flags":38,"./_global":40,"./_inherit-if-required":45,"./_is-regexp":52,"./_object-dp":69,"./_object-gopn":74,"./_redefine":89,"./_set-species":93,"./_wks":119}],216:[function(a,b,c){a("./_descriptors")&&"g"!=/./g.flags&&a("./_object-dp").f(RegExp.prototype,"flags",{configurable:!0,get:a("./_flags")})},{"./_descriptors":30,"./_flags":38,"./_object-dp":69}],217:[function(a,b,c){a("./_fix-re-wks")("match",1,function(a,b,c){return[function(c){"use strict";var d=a(this),e=void 0==c?void 0:c[b];return void 0!==e?e.call(c,d):new RegExp(c)[b](String(d))},c]})},{"./_fix-re-wks":37}],218:[function(a,b,c){a("./_fix-re-wks")("replace",2,function(a,b,c){return[function(d,e){"use strict";var f=a(this),g=void 0==d?void 0:d[b];return void 0!==g?g.call(d,f,e):c.call(String(f),d,e)},c]})},{"./_fix-re-wks":37}],219:[function(a,b,c){a("./_fix-re-wks")("search",1,function(a,b,c){return[function(c){"use strict";var d=a(this),e=void 0==c?void 0:c[b];return void 0!==e?e.call(c,d):new RegExp(c)[b](String(d))},c]})},{"./_fix-re-wks":37}],220:[function(a,b,c){a("./_fix-re-wks")("split",2,function(b,c,d){"use strict";var e=a("./_is-regexp"),f=d,g=[].push,h="length";if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[h]||2!="ab".split(/(?:ab)*/)[h]||4!=".".split(/(.?)(.?)/)[h]||".".split(/()()/)[h]>1||"".split(/.?/)[h]){var i=void 0===/()??/.exec("")[1];d=function(a,b){var c=String(this);if(void 0===a&&0===b)return[];if(!e(a))return f.call(c,a,b);var d,j,k,l,m,n=[],o=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(a.sticky?"y":""),p=0,q=void 0===b?4294967295:b>>>0,r=new RegExp(a.source,o+"g");for(i||(d=new RegExp("^"+r.source+"$(?!\\s)",o));(j=r.exec(c))&&!((k=j.index+j[0][h])>p&&(n.push(c.slice(p,j.index)),!i&&j[h]>1&&j[0].replace(d,function(){for(m=1;m1&&j.index=q));)r.lastIndex===j.index&&r.lastIndex++;return p===c[h]?!l&&r.test("")||n.push(""):n.push(c.slice(p)),n[h]>q?n.slice(0,q):n}}else"0".split(void 0,0)[h]&&(d=function(a,b){return void 0===a&&0===b?[]:f.call(this,a,b)});return[function(a,e){var f=b(this),g=void 0==a?void 0:a[c];return void 0!==g?g.call(a,f,e):d.call(String(f),a,e)},d]})},{"./_fix-re-wks":37,"./_is-regexp":52}],221:[function(a,b,c){"use strict";a("./es6.regexp.flags");var d=a("./_an-object"),e=a("./_flags"),f=a("./_descriptors"),g=/./.toString,h=function(b){a("./_redefine")(RegExp.prototype,"toString",b,!0)};a("./_fails")(function(){return"/a/b"!=g.call({source:"a",flags:"b"})})?h(function(){var a=d(this);return"/".concat(a.source,"/","flags"in a?a.flags:!f&&a instanceof RegExp?e.call(a):void 0)}):"toString"!=g.name&&h(function(){return g.call(this)})},{"./_an-object":9,"./_descriptors":30,"./_fails":36,"./_flags":38,"./_redefine":89,"./es6.regexp.flags":216}],222:[function(a,b,c){"use strict";var d=a("./_collection-strong");b.exports=a("./_collection")("Set",function(a){return function(){return a(this,arguments.length>0?arguments[0]:void 0)}},{add:function(a){return d.def(this,a=0===a?0:a,a)}},d)},{"./_collection":24,"./_collection-strong":21}],223:[function(a,b,c){"use strict";a("./_string-html")("anchor",function(a){return function(b){return a(this,"a","name",b)}})},{"./_string-html":101}],224:[function(a,b,c){"use strict";a("./_string-html")("big",function(a){return function(){return a(this,"big","","")}})},{"./_string-html":101}],225:[function(a,b,c){"use strict";a("./_string-html")("blink",function(a){return function(){return a(this,"blink","","")}})},{"./_string-html":101}],226:[function(a,b,c){"use strict";a("./_string-html")("bold",function(a){return function(){return a(this,"b","","")}})},{"./_string-html":101}],227:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_string-at")(!1);d(d.P,"String",{codePointAt:function(a){return e(this,a)}})},{"./_export":34,"./_string-at":99}],228:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-length"),f=a("./_string-context"),g="".endsWith;d(d.P+d.F*a("./_fails-is-regexp")("endsWith"),"String",{endsWith:function(a){var b=f(this,a,"endsWith"),c=arguments.length>1?arguments[1]:void 0,d=e(b.length),h=void 0===c?d:Math.min(e(c),d),i=String(a);return g?g.call(b,i,h):b.slice(h-i.length,h)===i}})},{"./_export":34,"./_fails-is-regexp":35,"./_string-context":100,"./_to-length":110}],229:[function(a,b,c){"use strict";a("./_string-html")("fixed",function(a){return function(){return a(this,"tt","","")}})},{"./_string-html":101}],230:[function(a,b,c){"use strict";a("./_string-html")("fontcolor",function(a){return function(b){return a(this,"font","color",b)}})},{"./_string-html":101}],231:[function(a,b,c){"use strict";a("./_string-html")("fontsize",function(a){return function(b){return a(this,"font","size",b)}})},{"./_string-html":101}],232:[function(a,b,c){var d=a("./_export"),e=a("./_to-index"),f=String.fromCharCode,g=String.fromCodePoint;d(d.S+d.F*(!!g&&1!=g.length),"String",{fromCodePoint:function(a){for(var b,c=[],d=arguments.length,g=0;d>g;){if(b=+arguments[g++],e(b,1114111)!==b)throw RangeError(b+" is not a valid code point");c.push(b<65536?f(b):f(55296+((b-=65536)>>10),b%1024+56320))}return c.join("")}})},{"./_export":34,"./_to-index":107}],233:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_string-context");d(d.P+d.F*a("./_fails-is-regexp")("includes"),"String",{includes:function(a){return!!~e(this,a,"includes").indexOf(a,arguments.length>1?arguments[1]:void 0)}})},{"./_export":34,"./_fails-is-regexp":35,"./_string-context":100}],234:[function(a,b,c){"use strict";a("./_string-html")("italics",function(a){return function(){return a(this,"i","","")}})},{"./_string-html":101}],235:[function(a,b,c){"use strict";var d=a("./_string-at")(!0);a("./_iter-define")(String,"String",function(a){this._t=String(a),this._i=0},function(){var a,b=this._t,c=this._i;return c>=b.length?{value:void 0,done:!0}:(a=d(b,c),this._i+=a.length,{value:a,done:!1})})},{"./_iter-define":55,"./_string-at":99}],236:[function(a,b,c){"use strict";a("./_string-html")("link",function(a){return function(b){return a(this,"a","href",b)}})},{"./_string-html":101}],237:[function(a,b,c){var d=a("./_export"),e=a("./_to-iobject"),f=a("./_to-length");d(d.S,"String",{raw:function(a){for(var b=e(a.raw),c=f(b.length),d=arguments.length,g=[],h=0;c>h;)g.push(String(b[h++])),h1?arguments[1]:void 0,b.length)),d=String(a);return g?g.call(b,d,c):b.slice(c,c+d.length)===d}})},{"./_export":34,"./_fails-is-regexp":35,"./_string-context":100,"./_to-length":110}],241:[function(a,b,c){"use strict";a("./_string-html")("strike",function(a){return function(){return a(this,"strike","","")}})},{"./_string-html":101}],242:[function(a,b,c){"use strict";a("./_string-html")("sub",function(a){return function(){return a(this,"sub","","")}})},{"./_string-html":101}],243:[function(a,b,c){"use strict";a("./_string-html")("sup",function(a){return function(){return a(this,"sup","","")}})},{"./_string-html":101}],244:[function(a,b,c){"use strict";a("./_string-trim")("trim",function(a){return function(){return a(this,3)}})},{"./_string-trim":104}],245:[function(a,b,c){"use strict";var d=a("./_global"),e=a("./_has"),f=a("./_descriptors"),g=a("./_export"),h=a("./_redefine"),i=a("./_meta").KEY,j=a("./_fails"),k=a("./_shared"),l=a("./_set-to-string-tag"),m=a("./_uid"),n=a("./_wks"),o=a("./_wks-ext"),p=a("./_wks-define"),q=a("./_keyof"),r=a("./_enum-keys"),s=a("./_is-array"),t=a("./_an-object"),u=a("./_to-iobject"),v=a("./_to-primitive"),w=a("./_property-desc"),x=a("./_object-create"),y=a("./_object-gopn-ext"),z=a("./_object-gopd"),A=a("./_object-dp"),B=a("./_object-keys"),C=z.f,D=A.f,E=y.f,F=d.Symbol,G=d.JSON,H=G&&G.stringify,I=n("_hidden"),J=n("toPrimitive"),K={}.propertyIsEnumerable,L=k("symbol-registry"),M=k("symbols"),N=k("op-symbols"),O=Object.prototype,P="function"==typeof F,Q=d.QObject,R=!Q||!Q.prototype||!Q.prototype.findChild,S=f&&j(function(){return 7!=x(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a})?function(a,b,c){var d=C(O,b);d&&delete O[b],D(a,b,c),d&&a!==O&&D(O,b,d)}:D,T=function(a){var b=M[a]=x(F.prototype);return b._k=a,b},U=P&&"symbol"==typeof F.iterator?function(a){return"symbol"==typeof a}:function(a){return a instanceof F},V=function(a,b,c){return a===O&&V(N,b,c),t(a),b=v(b,!0),t(c),e(M,b)?(c.enumerable?(e(a,I)&&a[I][b]&&(a[I][b]=!1),c=x(c,{enumerable:w(0,!1)})):(e(a,I)||D(a,I,w(1,{})),a[I][b]=!0),S(a,b,c)):D(a,b,c)},W=function(a,b){t(a);for(var c,d=r(b=u(b)),e=0,f=d.length;f>e;)V(a,c=d[e++],b[c]);return a},X=function(a,b){return void 0===b?x(a):W(x(a),b)},Y=function(a){var b=K.call(this,a=v(a,!0));return!(this===O&&e(M,a)&&!e(N,a))&&(!(b||!e(this,a)||!e(M,a)||e(this,I)&&this[I][a])||b)},Z=function(a,b){if(a=u(a),b=v(b,!0),a!==O||!e(M,b)||e(N,b)){var c=C(a,b);return!c||!e(M,b)||e(a,I)&&a[I][b]||(c.enumerable=!0),c}},$=function(a){for(var b,c=E(u(a)),d=[],f=0;c.length>f;)e(M,b=c[f++])||b==I||b==i||d.push(b);return d},_=function(a){for(var b,c=a===O,d=E(c?N:u(a)),f=[],g=0;d.length>g;)!e(M,b=d[g++])||c&&!e(O,b)||f.push(M[b]);return f};P||(F=function(){if(this instanceof F)throw TypeError("Symbol is not a constructor!");var a=m(arguments.length>0?arguments[0]:void 0),b=function(c){this===O&&b.call(N,c),e(this,I)&&e(this[I],a)&&(this[I][a]=!1),S(this,a,w(1,c))};return f&&R&&S(O,a,{configurable:!0,set:b}),T(a)},h(F.prototype,"toString",function(){return this._k}),z.f=Z,A.f=V,a("./_object-gopn").f=y.f=$,a("./_object-pie").f=Y,a("./_object-gops").f=_,f&&!a("./_library")&&h(O,"propertyIsEnumerable",Y,!0),o.f=function(a){return T(n(a))}),g(g.G+g.W+g.F*!P,{Symbol:F});for(var aa="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ba=0;aa.length>ba;)n(aa[ba++]);for(var aa=B(n.store),ba=0;aa.length>ba;)p(aa[ba++]);g(g.S+g.F*!P,"Symbol",{for:function(a){return e(L,a+="")?L[a]:L[a]=F(a)},keyFor:function(a){if(U(a))return q(L,a);throw TypeError(a+" is not a symbol!")},useSetter:function(){R=!0},useSimple:function(){R=!1}}),g(g.S+g.F*!P,"Object",{create:X,defineProperty:V,defineProperties:W,getOwnPropertyDescriptor:Z,getOwnPropertyNames:$,getOwnPropertySymbols:_}),G&&g(g.S+g.F*(!P||j(function(){var a=F();return"[null]"!=H([a])||"{}"!=H({a:a})||"{}"!=H(Object(a))})),"JSON",{stringify:function(a){if(void 0!==a&&!U(a)){for(var b,c,d=[a],e=1;arguments.length>e;)d.push(arguments[e++]);return b=d[1],"function"==typeof b&&(c=b),!c&&s(b)||(b=function(a,b){if(c&&(b=c.call(this,a,b)),!U(b))return b}),d[1]=b,H.apply(G,d)}}}),F.prototype[J]||a("./_hide")(F.prototype,J,F.prototype.valueOf),l(F,"Symbol"),l(Math,"Math",!0),l(d.JSON,"JSON",!0)},{"./_an-object":9,"./_descriptors":30,"./_enum-keys":33,"./_export":34,"./_fails":36,"./_global":40,"./_has":41,"./_hide":42,"./_is-array":49,"./_keyof":59,"./_library":60,"./_meta":64,"./_object-create":68,"./_object-dp":69,"./_object-gopd":72,"./_object-gopn":74,"./_object-gopn-ext":73,"./_object-gops":75,"./_object-keys":78,"./_object-pie":79,"./_property-desc":87,"./_redefine":89,"./_set-to-string-tag":94,"./_shared":96,"./_to-iobject":109,"./_to-primitive":112,"./_uid":116,"./_wks":119,"./_wks-define":117,"./_wks-ext":118}],246:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_typed"),f=a("./_typed-buffer"),g=a("./_an-object"),h=a("./_to-index"),i=a("./_to-length"),j=a("./_is-object"),k=a("./_global").ArrayBuffer,l=a("./_species-constructor"),m=f.ArrayBuffer,n=f.DataView,o=e.ABV&&k.isView,p=m.prototype.slice,q=e.VIEW;d(d.G+d.W+d.F*(k!==m),{ArrayBuffer:m}),d(d.S+d.F*!e.CONSTR,"ArrayBuffer",{isView:function(a){return o&&o(a)||j(a)&&q in a}}),d(d.P+d.U+d.F*a("./_fails")(function(){return!new m(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(a,b){if(void 0!==p&&void 0===b)return p.call(g(this),a);for(var c=g(this).byteLength,d=h(a,c),e=h(void 0===b?c:b,c),f=new(l(this,m))(i(e-d)),j=new n(this),k=new n(f),o=0;d0?arguments[0]:void 0)}},p={get:function(a){if(j(a)){var b=k(a);return b===!0?m(this).get(a):b?b[this._i]:void 0}},set:function(a,b){return i.def(this,a,b)}},q=b.exports=a("./_collection")("WeakMap",o,p,i,!0,!0);7!=(new q).set((Object.freeze||Object)(n),7).get(n)&&(d=i.getConstructor(o),h(d.prototype,p),g.NEED=!0,e(["delete","has","get","set"],function(a){var b=q.prototype,c=b[a];f(b,a,function(b,e){if(j(b)&&!l(b)){this._f||(this._f=new d);var f=this._f[a](b,e);return"set"==a?this:f}return c.call(this,b,e)})}))},{"./_array-methods":14,"./_collection":24,"./_collection-weak":23,"./_is-object":51,"./_meta":64,"./_object-assign":67,"./_redefine":89}],258:[function(a,b,c){"use strict";var d=a("./_collection-weak");a("./_collection")("WeakSet",function(a){return function(){return a(this,arguments.length>0?arguments[0]:void 0)}},{add:function(a){return d.def(this,a,!0)}},d,!1,!0)},{"./_collection":24,"./_collection-weak":23}],259:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_array-includes")(!0);d(d.P,"Array",{includes:function(a){return e(this,a,arguments.length>1?arguments[1]:void 0)}}),a("./_add-to-unscopables")("includes")},{"./_add-to-unscopables":7,"./_array-includes":13,"./_export":34}],260:[function(a,b,c){var d=a("./_export"),e=a("./_microtask")(),f=a("./_global").process,g="process"==a("./_cof")(f);d(d.G,{asap:function(a){var b=g&&f.domain;e(b?b.bind(a):a)}})},{"./_cof":20,"./_export":34,"./_global":40,"./_microtask":66}],261:[function(a,b,c){var d=a("./_export"),e=a("./_cof");d(d.S,"Error",{isError:function(a){return"Error"===e(a)}})},{"./_cof":20,"./_export":34}],262:[function(a,b,c){var d=a("./_export");d(d.P+d.R,"Map",{toJSON:a("./_collection-to-json")("Map")})},{ "./_collection-to-json":22,"./_export":34}],263:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{iaddh:function(a,b,c,d){var e=a>>>0,f=b>>>0,g=c>>>0;return f+(d>>>0)+((e&g|(e|g)&~(e+g>>>0))>>>31)|0}})},{"./_export":34}],264:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{imulh:function(a,b){var c=+a,d=+b,e=65535&c,f=65535&d,g=c>>16,h=d>>16,i=(g*f>>>0)+(e*f>>>16);return g*h+(i>>16)+((e*h>>>0)+(65535&i)>>16)}})},{"./_export":34}],265:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{isubh:function(a,b,c,d){var e=a>>>0,f=b>>>0,g=c>>>0;return f-(d>>>0)-((~e&g|~(e^g)&e-g>>>0)>>>31)|0}})},{"./_export":34}],266:[function(a,b,c){var d=a("./_export");d(d.S,"Math",{umulh:function(a,b){var c=+a,d=+b,e=65535&c,f=65535&d,g=c>>>16,h=d>>>16,i=(g*f>>>0)+(e*f>>>16);return g*h+(i>>>16)+((e*h>>>0)+(65535&i)>>>16)}})},{"./_export":34}],267:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-object"),f=a("./_a-function"),g=a("./_object-dp");a("./_descriptors")&&d(d.P+a("./_object-forced-pam"),"Object",{__defineGetter__:function(a,b){g.f(e(this),a,{get:f(b),enumerable:!0,configurable:!0})}})},{"./_a-function":5,"./_descriptors":30,"./_export":34,"./_object-dp":69,"./_object-forced-pam":71,"./_to-object":111}],268:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-object"),f=a("./_a-function"),g=a("./_object-dp");a("./_descriptors")&&d(d.P+a("./_object-forced-pam"),"Object",{__defineSetter__:function(a,b){g.f(e(this),a,{set:f(b),enumerable:!0,configurable:!0})}})},{"./_a-function":5,"./_descriptors":30,"./_export":34,"./_object-dp":69,"./_object-forced-pam":71,"./_to-object":111}],269:[function(a,b,c){var d=a("./_export"),e=a("./_object-to-array")(!0);d(d.S,"Object",{entries:function(a){return e(a)}})},{"./_export":34,"./_object-to-array":81}],270:[function(a,b,c){var d=a("./_export"),e=a("./_own-keys"),f=a("./_to-iobject"),g=a("./_object-gopd"),h=a("./_create-property");d(d.S,"Object",{getOwnPropertyDescriptors:function(a){for(var b,c=f(a),d=g.f,i=e(c),j={},k=0;i.length>k;)h(j,b=i[k++],d(c,b));return j}})},{"./_create-property":26,"./_export":34,"./_object-gopd":72,"./_own-keys":82,"./_to-iobject":109}],271:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-object"),f=a("./_to-primitive"),g=a("./_object-gpo"),h=a("./_object-gopd").f;a("./_descriptors")&&d(d.P+a("./_object-forced-pam"),"Object",{__lookupGetter__:function(a){var b,c=e(this),d=f(a,!0);do{if(b=h(c,d))return b.get}while(c=g(c))}})},{"./_descriptors":30,"./_export":34,"./_object-forced-pam":71,"./_object-gopd":72,"./_object-gpo":76,"./_to-object":111,"./_to-primitive":112}],272:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_to-object"),f=a("./_to-primitive"),g=a("./_object-gpo"),h=a("./_object-gopd").f;a("./_descriptors")&&d(d.P+a("./_object-forced-pam"),"Object",{__lookupSetter__:function(a){var b,c=e(this),d=f(a,!0);do{if(b=h(c,d))return b.set}while(c=g(c))}})},{"./_descriptors":30,"./_export":34,"./_object-forced-pam":71,"./_object-gopd":72,"./_object-gpo":76,"./_to-object":111,"./_to-primitive":112}],273:[function(a,b,c){var d=a("./_export"),e=a("./_object-to-array")(!1);d(d.S,"Object",{values:function(a){return e(a)}})},{"./_export":34,"./_object-to-array":81}],274:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_global"),f=a("./_core"),g=a("./_microtask")(),h=a("./_wks")("observable"),i=a("./_a-function"),j=a("./_an-object"),k=a("./_an-instance"),l=a("./_redefine-all"),m=a("./_hide"),n=a("./_for-of"),o=n.RETURN,p=function(a){return null==a?void 0:i(a)},q=function(a){var b=a._c;b&&(a._c=void 0,b())},r=function(a){return void 0===a._o},s=function(a){r(a)||(a._o=void 0,q(a))},t=function(a,b){j(a),this._c=void 0,this._o=a,a=new u(this);try{var c=b(a),d=c;null!=c&&("function"==typeof c.unsubscribe?c=function(){d.unsubscribe()}:i(c),this._c=c)}catch(b){return void a.error(b)}r(this)&&q(this)};t.prototype=l({},{unsubscribe:function(){s(this)}});var u=function(a){this._s=a};u.prototype=l({},{next:function(a){var b=this._s;if(!r(b)){var c=b._o;try{var d=p(c.next);if(d)return d.call(c,a)}catch(a){try{s(b)}finally{throw a}}}},error:function(a){var b=this._s;if(r(b))throw a;var c=b._o;b._o=void 0;try{var d=p(c.error);if(!d)throw a;a=d.call(c,a)}catch(a){try{q(b)}finally{throw a}}return q(b),a},complete:function(a){var b=this._s;if(!r(b)){var c=b._o;b._o=void 0;try{var d=p(c.complete);a=d?d.call(c,a):void 0}catch(a){try{q(b)}finally{throw a}}return q(b),a}}});var v=function(a){k(this,v,"Observable","_f")._f=i(a)};l(v.prototype,{subscribe:function(a){return new t(a,this._f)},forEach:function(a){var b=this;return new(f.Promise||e.Promise)(function(c,d){i(a);var e=b.subscribe({next:function(b){try{return a(b)}catch(a){d(a),e.unsubscribe()}},error:d,complete:c})})}}),l(v,{from:function(a){var b="function"==typeof this?this:v,c=p(j(a)[h]);if(c){var d=j(c.call(a));return d.constructor===b?d:new b(function(a){return d.subscribe(a)})}return new b(function(b){var c=!1;return g(function(){if(!c){try{if(n(a,!1,function(a){if(b.next(a),c)return o})===o)return}catch(a){if(c)throw a;return void b.error(a)}b.complete()}}),function(){c=!0}})},of:function(){for(var a=0,b=arguments.length,c=Array(b);a1?arguments[1]:void 0,!1)}})},{"./_export":34,"./_string-pad":102}],288:[function(a,b,c){"use strict";var d=a("./_export"),e=a("./_string-pad");d(d.P,"String",{padStart:function(a){return e(this,a,arguments.length>1?arguments[1]:void 0,!0)}})},{"./_export":34,"./_string-pad":102}],289:[function(a,b,c){"use strict";a("./_string-trim")("trimLeft",function(a){return function(){return a(this,1)}},"trimStart")},{"./_string-trim":104}],290:[function(a,b,c){"use strict";a("./_string-trim")("trimRight",function(a){return function(){return a(this,2)}},"trimEnd")},{"./_string-trim":104}],291:[function(a,b,c){a("./_wks-define")("asyncIterator")},{"./_wks-define":117}],292:[function(a,b,c){a("./_wks-define")("observable")},{"./_wks-define":117}],293:[function(a,b,c){var d=a("./_export");d(d.S,"System",{global:a("./_global")})},{"./_export":34,"./_global":40}],294:[function(a,b,c){for(var d=a("./es6.array.iterator"),e=a("./_redefine"),f=a("./_global"),g=a("./_hide"),h=a("./_iterators"),i=a("./_wks"),j=i("iterator"),k=i("toStringTag"),l=h.Array,m=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],n=0;n<5;n++){var o,p=m[n],q=f[p],r=q&&q.prototype;if(r){r[j]||g(r,j,l),r[k]||g(r,k,p),h[p]=l;for(o in d)r[o]||e(r,o,d[o],!0)}}},{"./_global":40,"./_hide":42,"./_iterators":58,"./_redefine":89,"./_wks":119,"./es6.array.iterator":132}],295:[function(a,b,c){var d=a("./_export"),e=a("./_task");d(d.G+d.B,{setImmediate:e.set,clearImmediate:e.clear})},{"./_export":34,"./_task":106}],296:[function(a,b,c){var d=a("./_global"),e=a("./_export"),f=a("./_invoke"),g=a("./_partial"),h=d.navigator,i=!!h&&/MSIE .\./.test(h.userAgent),j=function(a){return i?function(b,c){return a(f(g,[].slice.call(arguments,2),"function"==typeof b?b:Function(b)),c)}:a};e(e.G+e.B+e.F*i,{setTimeout:j(d.setTimeout),setInterval:j(d.setInterval)})},{"./_export":34,"./_global":40,"./_invoke":46,"./_partial":85}],297:[function(a,b,c){a("./modules/es6.symbol"),a("./modules/es6.object.create"),a("./modules/es6.object.define-property"),a("./modules/es6.object.define-properties"),a("./modules/es6.object.get-own-property-descriptor"),a("./modules/es6.object.get-prototype-of"),a("./modules/es6.object.keys"),a("./modules/es6.object.get-own-property-names"),a("./modules/es6.object.freeze"),a("./modules/es6.object.seal"),a("./modules/es6.object.prevent-extensions"),a("./modules/es6.object.is-frozen"),a("./modules/es6.object.is-sealed"),a("./modules/es6.object.is-extensible"),a("./modules/es6.object.assign"),a("./modules/es6.object.is"),a("./modules/es6.object.set-prototype-of"),a("./modules/es6.object.to-string"),a("./modules/es6.function.bind"),a("./modules/es6.function.name"),a("./modules/es6.function.has-instance"),a("./modules/es6.parse-int"),a("./modules/es6.parse-float"),a("./modules/es6.number.constructor"),a("./modules/es6.number.to-fixed"),a("./modules/es6.number.to-precision"),a("./modules/es6.number.epsilon"),a("./modules/es6.number.is-finite"),a("./modules/es6.number.is-integer"),a("./modules/es6.number.is-nan"),a("./modules/es6.number.is-safe-integer"),a("./modules/es6.number.max-safe-integer"),a("./modules/es6.number.min-safe-integer"),a("./modules/es6.number.parse-float"),a("./modules/es6.number.parse-int"),a("./modules/es6.math.acosh"),a("./modules/es6.math.asinh"),a("./modules/es6.math.atanh"),a("./modules/es6.math.cbrt"),a("./modules/es6.math.clz32"),a("./modules/es6.math.cosh"),a("./modules/es6.math.expm1"),a("./modules/es6.math.fround"),a("./modules/es6.math.hypot"),a("./modules/es6.math.imul"),a("./modules/es6.math.log10"),a("./modules/es6.math.log1p"),a("./modules/es6.math.log2"),a("./modules/es6.math.sign"),a("./modules/es6.math.sinh"),a("./modules/es6.math.tanh"),a("./modules/es6.math.trunc"),a("./modules/es6.string.from-code-point"),a("./modules/es6.string.raw"),a("./modules/es6.string.trim"),a("./modules/es6.string.iterator"),a("./modules/es6.string.code-point-at"),a("./modules/es6.string.ends-with"),a("./modules/es6.string.includes"),a("./modules/es6.string.repeat"),a("./modules/es6.string.starts-with"),a("./modules/es6.string.anchor"),a("./modules/es6.string.big"),a("./modules/es6.string.blink"),a("./modules/es6.string.bold"),a("./modules/es6.string.fixed"),a("./modules/es6.string.fontcolor"),a("./modules/es6.string.fontsize"),a("./modules/es6.string.italics"),a("./modules/es6.string.link"),a("./modules/es6.string.small"),a("./modules/es6.string.strike"),a("./modules/es6.string.sub"),a("./modules/es6.string.sup"),a("./modules/es6.date.now"),a("./modules/es6.date.to-json"),a("./modules/es6.date.to-iso-string"),a("./modules/es6.date.to-string"),a("./modules/es6.date.to-primitive"),a("./modules/es6.array.is-array"),a("./modules/es6.array.from"),a("./modules/es6.array.of"),a("./modules/es6.array.join"),a("./modules/es6.array.slice"),a("./modules/es6.array.sort"),a("./modules/es6.array.for-each"),a("./modules/es6.array.map"),a("./modules/es6.array.filter"),a("./modules/es6.array.some"),a("./modules/es6.array.every"),a("./modules/es6.array.reduce"),a("./modules/es6.array.reduce-right"),a("./modules/es6.array.index-of"),a("./modules/es6.array.last-index-of"),a("./modules/es6.array.copy-within"),a("./modules/es6.array.fill"),a("./modules/es6.array.find"),a("./modules/es6.array.find-index"),a("./modules/es6.array.species"),a("./modules/es6.array.iterator"),a("./modules/es6.regexp.constructor"),a("./modules/es6.regexp.to-string"),a("./modules/es6.regexp.flags"),a("./modules/es6.regexp.match"),a("./modules/es6.regexp.replace"),a("./modules/es6.regexp.search"),a("./modules/es6.regexp.split"),a("./modules/es6.promise"),a("./modules/es6.map"),a("./modules/es6.set"),a("./modules/es6.weak-map"),a("./modules/es6.weak-set"),a("./modules/es6.typed.array-buffer"),a("./modules/es6.typed.data-view"),a("./modules/es6.typed.int8-array"),a("./modules/es6.typed.uint8-array"),a("./modules/es6.typed.uint8-clamped-array"),a("./modules/es6.typed.int16-array"),a("./modules/es6.typed.uint16-array"),a("./modules/es6.typed.int32-array"),a("./modules/es6.typed.uint32-array"),a("./modules/es6.typed.float32-array"),a("./modules/es6.typed.float64-array"),a("./modules/es6.reflect.apply"),a("./modules/es6.reflect.construct"),a("./modules/es6.reflect.define-property"),a("./modules/es6.reflect.delete-property"),a("./modules/es6.reflect.enumerate"),a("./modules/es6.reflect.get"),a("./modules/es6.reflect.get-own-property-descriptor"),a("./modules/es6.reflect.get-prototype-of"),a("./modules/es6.reflect.has"),a("./modules/es6.reflect.is-extensible"),a("./modules/es6.reflect.own-keys"),a("./modules/es6.reflect.prevent-extensions"),a("./modules/es6.reflect.set"),a("./modules/es6.reflect.set-prototype-of"),a("./modules/es7.array.includes"),a("./modules/es7.string.at"),a("./modules/es7.string.pad-start"),a("./modules/es7.string.pad-end"),a("./modules/es7.string.trim-left"),a("./modules/es7.string.trim-right"),a("./modules/es7.string.match-all"),a("./modules/es7.symbol.async-iterator"),a("./modules/es7.symbol.observable"),a("./modules/es7.object.get-own-property-descriptors"),a("./modules/es7.object.values"),a("./modules/es7.object.entries"),a("./modules/es7.object.define-getter"),a("./modules/es7.object.define-setter"),a("./modules/es7.object.lookup-getter"),a("./modules/es7.object.lookup-setter"),a("./modules/es7.map.to-json"),a("./modules/es7.set.to-json"),a("./modules/es7.system.global"),a("./modules/es7.error.is-error"),a("./modules/es7.math.iaddh"),a("./modules/es7.math.isubh"),a("./modules/es7.math.imulh"),a("./modules/es7.math.umulh"),a("./modules/es7.reflect.define-metadata"),a("./modules/es7.reflect.delete-metadata"),a("./modules/es7.reflect.get-metadata"),a("./modules/es7.reflect.get-metadata-keys"),a("./modules/es7.reflect.get-own-metadata"),a("./modules/es7.reflect.get-own-metadata-keys"),a("./modules/es7.reflect.has-metadata"),a("./modules/es7.reflect.has-own-metadata"),a("./modules/es7.reflect.metadata"),a("./modules/es7.asap"),a("./modules/es7.observable"),a("./modules/web.timers"),a("./modules/web.immediate"),a("./modules/web.dom.iterable"),b.exports=a("./modules/_core")},{"./modules/_core":25,"./modules/es6.array.copy-within":122,"./modules/es6.array.every":123,"./modules/es6.array.fill":124,"./modules/es6.array.filter":125,"./modules/es6.array.find":127,"./modules/es6.array.find-index":126,"./modules/es6.array.for-each":128,"./modules/es6.array.from":129,"./modules/es6.array.index-of":130,"./modules/es6.array.is-array":131,"./modules/es6.array.iterator":132,"./modules/es6.array.join":133,"./modules/es6.array.last-index-of":134,"./modules/es6.array.map":135,"./modules/es6.array.of":136,"./modules/es6.array.reduce":138,"./modules/es6.array.reduce-right":137,"./modules/es6.array.slice":139,"./modules/es6.array.some":140,"./modules/es6.array.sort":141,"./modules/es6.array.species":142,"./modules/es6.date.now":143,"./modules/es6.date.to-iso-string":144,"./modules/es6.date.to-json":145,"./modules/es6.date.to-primitive":146,"./modules/es6.date.to-string":147,"./modules/es6.function.bind":148,"./modules/es6.function.has-instance":149,"./modules/es6.function.name":150,"./modules/es6.map":151,"./modules/es6.math.acosh":152,"./modules/es6.math.asinh":153,"./modules/es6.math.atanh":154,"./modules/es6.math.cbrt":155,"./modules/es6.math.clz32":156,"./modules/es6.math.cosh":157,"./modules/es6.math.expm1":158,"./modules/es6.math.fround":159,"./modules/es6.math.hypot":160,"./modules/es6.math.imul":161,"./modules/es6.math.log10":162,"./modules/es6.math.log1p":163,"./modules/es6.math.log2":164,"./modules/es6.math.sign":165,"./modules/es6.math.sinh":166,"./modules/es6.math.tanh":167,"./modules/es6.math.trunc":168,"./modules/es6.number.constructor":169,"./modules/es6.number.epsilon":170,"./modules/es6.number.is-finite":171,"./modules/es6.number.is-integer":172,"./modules/es6.number.is-nan":173,"./modules/es6.number.is-safe-integer":174,"./modules/es6.number.max-safe-integer":175,"./modules/es6.number.min-safe-integer":176,"./modules/es6.number.parse-float":177,"./modules/es6.number.parse-int":178,"./modules/es6.number.to-fixed":179,"./modules/es6.number.to-precision":180,"./modules/es6.object.assign":181,"./modules/es6.object.create":182,"./modules/es6.object.define-properties":183,"./modules/es6.object.define-property":184,"./modules/es6.object.freeze":185,"./modules/es6.object.get-own-property-descriptor":186,"./modules/es6.object.get-own-property-names":187,"./modules/es6.object.get-prototype-of":188,"./modules/es6.object.is":192,"./modules/es6.object.is-extensible":189,"./modules/es6.object.is-frozen":190,"./modules/es6.object.is-sealed":191,"./modules/es6.object.keys":193,"./modules/es6.object.prevent-extensions":194,"./modules/es6.object.seal":195,"./modules/es6.object.set-prototype-of":196,"./modules/es6.object.to-string":197,"./modules/es6.parse-float":198,"./modules/es6.parse-int":199,"./modules/es6.promise":200,"./modules/es6.reflect.apply":201,"./modules/es6.reflect.construct":202,"./modules/es6.reflect.define-property":203,"./modules/es6.reflect.delete-property":204,"./modules/es6.reflect.enumerate":205,"./modules/es6.reflect.get":208,"./modules/es6.reflect.get-own-property-descriptor":206,"./modules/es6.reflect.get-prototype-of":207,"./modules/es6.reflect.has":209,"./modules/es6.reflect.is-extensible":210,"./modules/es6.reflect.own-keys":211,"./modules/es6.reflect.prevent-extensions":212,"./modules/es6.reflect.set":214,"./modules/es6.reflect.set-prototype-of":213,"./modules/es6.regexp.constructor":215,"./modules/es6.regexp.flags":216,"./modules/es6.regexp.match":217,"./modules/es6.regexp.replace":218,"./modules/es6.regexp.search":219,"./modules/es6.regexp.split":220,"./modules/es6.regexp.to-string":221,"./modules/es6.set":222,"./modules/es6.string.anchor":223,"./modules/es6.string.big":224,"./modules/es6.string.blink":225,"./modules/es6.string.bold":226,"./modules/es6.string.code-point-at":227,"./modules/es6.string.ends-with":228,"./modules/es6.string.fixed":229,"./modules/es6.string.fontcolor":230,"./modules/es6.string.fontsize":231,"./modules/es6.string.from-code-point":232,"./modules/es6.string.includes":233,"./modules/es6.string.italics":234,"./modules/es6.string.iterator":235,"./modules/es6.string.link":236,"./modules/es6.string.raw":237,"./modules/es6.string.repeat":238,"./modules/es6.string.small":239,"./modules/es6.string.starts-with":240,"./modules/es6.string.strike":241,"./modules/es6.string.sub":242,"./modules/es6.string.sup":243,"./modules/es6.string.trim":244,"./modules/es6.symbol":245,"./modules/es6.typed.array-buffer":246,"./modules/es6.typed.data-view":247,"./modules/es6.typed.float32-array":248,"./modules/es6.typed.float64-array":249,"./modules/es6.typed.int16-array":250,"./modules/es6.typed.int32-array":251,"./modules/es6.typed.int8-array":252,"./modules/es6.typed.uint16-array":253,"./modules/es6.typed.uint32-array":254,"./modules/es6.typed.uint8-array":255,"./modules/es6.typed.uint8-clamped-array":256,"./modules/es6.weak-map":257,"./modules/es6.weak-set":258,"./modules/es7.array.includes":259,"./modules/es7.asap":260,"./modules/es7.error.is-error":261,"./modules/es7.map.to-json":262,"./modules/es7.math.iaddh":263,"./modules/es7.math.imulh":264,"./modules/es7.math.isubh":265,"./modules/es7.math.umulh":266,"./modules/es7.object.define-getter":267,"./modules/es7.object.define-setter":268,"./modules/es7.object.entries":269,"./modules/es7.object.get-own-property-descriptors":270,"./modules/es7.object.lookup-getter":271,"./modules/es7.object.lookup-setter":272,"./modules/es7.object.values":273,"./modules/es7.observable":274,"./modules/es7.reflect.define-metadata":275,"./modules/es7.reflect.delete-metadata":276,"./modules/es7.reflect.get-metadata":278,"./modules/es7.reflect.get-metadata-keys":277,"./modules/es7.reflect.get-own-metadata":280,"./modules/es7.reflect.get-own-metadata-keys":279,"./modules/es7.reflect.has-metadata":281,"./modules/es7.reflect.has-own-metadata":282,"./modules/es7.reflect.metadata":283,"./modules/es7.set.to-json":284,"./modules/es7.string.at":285,"./modules/es7.string.match-all":286,"./modules/es7.string.pad-end":287,"./modules/es7.string.pad-start":288,"./modules/es7.string.trim-left":289,"./modules/es7.string.trim-right":290,"./modules/es7.symbol.async-iterator":291,"./modules/es7.symbol.observable":292,"./modules/es7.system.global":293,"./modules/web.dom.iterable":294,"./modules/web.immediate":295,"./modules/web.timers":296}],298:[function(a,b,c){!function(){"use strict";function a(a){return"detail"in a?new k(a.type,{bubbles:a.bubbles,cancelable:a.cancelable,detail:a.detail},a):new j(a.type,{bubbles:a.bubbles,cancelable:a.cancelable},a)}function d(a,b,c){var d=a[b];void 0===d&&(a[b]=d=[]),c="boolean"==typeof c?{capture:c}:c||{};var e=JSON.stringify(c);return{listenersByTypeOptions:d.filter(function(a){return e===JSON.stringify(a.options)}),options:c,listenersByType:d}}function e(){throw new TypeError("Illegal constructor")}var f,g={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3};f="undefined"==typeof DOMException?function(a,b){var c=new Error(a);return c.name=b,c}:DOMException;var h=new WeakMap,i=new WeakMap,j=function(a){this[Symbol.toStringTag]="Event",this.toString=function(){return"[object Event]"};var b=arguments[1],c=arguments[2];if(!arguments.length)throw new TypeError("Failed to construct 'Event': 1 argument required, but only 0 present.");b=b||{},c=c||{};var d={};"composed"in b&&(d.composed=b.composed),h.set(this,c),i.set(this,d),this.initEvent(a,b.bubbles,b.cancelable),Object.defineProperties(this,["target","currentTarget","eventPhase","defaultPrevented"].reduce(function(a,b){return a[b]={get:function(){return void 0!==d[b]?d[b]:b in c?c[b]:"eventPhase"===b?0:"defaultPrevented"!==b&&null}},a},{}));var e=["type","bubbles","cancelable","isTrusted","timeStamp","initEvent","composedPath","composed"];"[object CustomEvent]"===this.toString()&&e.push("detail","initCustomEvent"),Object.defineProperties(this,e.reduce(function(a,b){return a[b]={get:function(){return b in d?d[b]:b in c?c[b]:!(["bubbles","cancelable","composed"].indexOf(b)>-1)&&void 0}},a},{}))};j.prototype.preventDefault=function(){if(!(this instanceof j))throw new TypeError("Illegal invocation");var a=h.get(this),b=i.get(this);this.cancelable&&!b._passive&&(b.defaultPrevented=!0,"function"==typeof a.preventDefault&&a.preventDefault())},j.prototype.stopImmediatePropagation=function(){i.get(this)._stopImmediatePropagation=!0},j.prototype.stopPropagation=function(){i.get(this)._stopPropagation=!0},j.prototype.initEvent=function(a,b,c){var d=i.get(this);d._dispatched||(d.type=a,void 0!==b&&(d.bubbles=b),void 0!==c&&(d.cancelable=c))},["type","target","currentTarget"].forEach(function(a){Object.defineProperty(j.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),["eventPhase","defaultPrevented","bubbles","cancelable","timeStamp"].forEach(function(a){Object.defineProperty(j.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),["NONE","CAPTURING_PHASE","AT_TARGET","BUBBLING_PHASE"].forEach(function(a,b){Object.defineProperty(j,a,{enumerable:!0,writable:!1,value:b}),Object.defineProperty(j.prototype,a,{writable:!1,value:b})}),j[Symbol.toStringTag]="Function",j.prototype[Symbol.toStringTag]="EventPrototype",Object.defineProperty(j,"prototype",{writable:!1});var k=function(a){var b=arguments[1],c=arguments[2];j.call(this,a,b,c),this[Symbol.toStringTag]="CustomEvent",this.toString=function(){return"[object CustomEvent]"};i.get(this);b=b||{},this.initCustomEvent(a,evInit.bubbles,evInit.cancelable,"detail"in evInit?evInit.detail:null)};Object.defineProperty(k.prototype,"constructor",{enumerable:!1,writable:!0,configurable:!0,value:k}),k.prototype.initCustomEvent=function(a,b,c,d){if(!(this instanceof k))throw new TypeError("Illegal invocation");var e=i.get(this);k.call(this,a,{bubbles:b,cancelable:c,detail:d},arguments[4]),e._dispatched||(void 0!==d&&(e.detail=d),Object.defineProperty(this,"detail",{get:function(){return e.detail}}))},k[Symbol.toStringTag]="Function",k.prototype[Symbol.toStringTag]="CustomEventPrototype",Object.setPrototypeOf(k,j),Object.defineProperty(k.prototype,"detail",{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}}),Object.setPrototypeOf(k.prototype,j.prototype),Object.defineProperty(k,"prototype",{writable:!1});var l={addListener:function(a,b,c,e){var f=d(a,c,e),g=f.listenersByTypeOptions;e=f.options;var h=f.listenersByType;g.some(function(a){return a.listener===b})||h.push({listener:b,options:e})},removeListener:function(a,b,c,e){var f=d(a,c,e),g=f.listenersByType,h=JSON.stringify(f.options);g.some(function(d,e){if(d.listener===b&&h===JSON.stringify(d.options))return g.splice(e,1),g.length||delete a[c],!0})},hasListener:function(a,b,c,e){return d(a,c,e).listenersByTypeOptions.some(function(a){return a.listener===b})}};Object.assign(e.prototype,["Early","","Late","Default"].reduce(function(a,b){return["add","remove","has"].forEach(function(c){a[c+b+"EventListener"]=function(a,d){var e=arguments[2];if(arguments.length<2)throw new TypeError("2 or more arguments required");if("string"!=typeof a)throw new f("UNSPECIFIED_EVENT_TYPE_ERR","UNSPECIFIED_EVENT_TYPE_ERR");d.handleEvent&&(d=d.handleEvent.bind(d));var g="_"+b.toLowerCase()+(""===b?"l":"L")+"isteners";return this[g]||Object.defineProperty(this,g,{value:{}}),l[c+"Listener"](this[g],d,a,e)}}),a},{})),Object.assign(e.prototype,{__setOptions:function(a){a=a||{},this._defaultSync=a.defaultSync,this._extraProperties=a.extraProperties},dispatchEvent:function(a){return this._dispatchEvent(a,!0)},_dispatchEvent:function(b,c){function d(){k.eventPhase=g.NONE,k.currentTarget=null,delete k._children}function e(){k._stopImmediatePropagation=void 0,k._stopPropagation=void 0,l.defaultPrevented&&k.cancelable||(k.eventPhase=g.AT_TARGET,l.target.invokeCurrentListeners(l.target._defaultListeners,l,m)),d()}function h(){return k._stopImmediatePropagation=void 0,k._stopPropagation=void 0,j._defaultSync?e():setTimeout(e,0),k.eventPhase=g.AT_TARGET,k._stopPropagation||(k._stopImmediatePropagation=void 0,k._stopPropagation=void 0,l.target.invokeCurrentListeners(l.target._lateListeners,l,m)),d(),!l.defaultPrevented}var j=this;["early","","late","default"].forEach(function(a){var b="_"+a+(""===a?"l":"L")+"isteners";this[b]||Object.defineProperty(this,b,{value:{}})},this);var k=i.get(b);if(k&&c&&k._dispatched)throw new f("The object is in an invalid state.","InvalidStateError");var l;k?l=b:(l=a(b),k=i.get(l),k._dispatched=!0,(this._extraProperties||[]).forEach(function(a){a in b&&(l[a]=b[a])}));var m=l.type;switch(c&&(k.target=this),l.eventPhase){default:case g.NONE:if(k.eventPhase=g.AT_TARGET,this.invokeCurrentListeners(this._earlyListeners,l,m),!this.__getParent)return k.eventPhase=g.AT_TARGET,this._dispatchEvent(l,!1);for(var n=this,o=this;n.__getParent&&null!==(n=n.__getParent());)k._children||(k._children=[]),k._children.push(o),o=n;return o._defaultSync=j._defaultSync,k.eventPhase=g.CAPTURING_PHASE,o._dispatchEvent(l,!1);case g.CAPTURING_PHASE:if(k._stopPropagation)return h();this.invokeCurrentListeners(this._listeners,l,m);var p=k._children&&k._children.length&&k._children.pop();return p&&p!==l.target||(k.eventPhase=g.AT_TARGET),p&&(p._defaultSync=j._defaultSync),(p||this)._dispatchEvent(l,!1);case g.AT_TARGET:return k._stopPropagation?h():(this.invokeCurrentListeners(this._listeners,l,m,!0),k.bubbles?(k.eventPhase=g.BUBBLING_PHASE,this._dispatchEvent(l,!1)):h());case g.BUBBLING_PHASE:if(k._stopPropagation)return h();var q=this.__getParent&&this.__getParent();return q?(q.invokeCurrentListeners(q._listeners,l,m,!0),q._defaultSync=j._defaultSync,q._dispatchEvent(l,!1)):h()}},invokeCurrentListeners:function(a,b,c,e){var f=i.get(b),h=this;f.currentTarget=this;var j=d(a,c,{}),k=j.listenersByType.concat(),l=k.length?1:0;return k.some(function(a,d){var i=e?h["on"+c]:null;if(f._stopImmediatePropagation)return!0;d===l&&"function"==typeof i&&this.tryCatch(function(){i.call(b.currentTarget,b)===!1&&b.preventDefault()});var j=a.options,k=j.once,m=j.passive,n=j.capture;if(f._passive=m,n&&b.target!==b.currentTarget&&b.eventPhase===g.CAPTURING_PHASE||b.eventPhase===g.AT_TARGET||!n&&b.target!==b.currentTarget&&b.eventPhase===g.BUBBLING_PHASE){var o=a.listener;this.tryCatch(function(){o.call(b.currentTarget,b)}),k&&this.removeEventListener(c,o,j)}},this),this.tryCatch(function(){var a=e?h["on"+c]:null;if("function"==typeof a&&k.length<2){a.call(b.currentTarget,b)===!1&&b.preventDefault()}}),!b.defaultPrevented},tryCatch:function(a){try{a()}catch(a){this.triggerErrorEvent(a)}}, -triggerErrorEvent:function(a){var b=a;"string"==typeof a&&(b=new Error("Uncaught exception: "+a));var c;c="undefined"==typeof window||"undefined"==typeof ErrorEvent||window&&"object"==typeof window&&!window.dispatchEvent?function(){setTimeout(function(){throw b})}:function(){var c=new ErrorEvent("error",{error:a,message:b.message||"",filename:b.fileName||"",lineno:b.lineNumber||0,colno:b.columnNumber||0});window.dispatchEvent(c)},this.__userErrorEventHandler?this.__userErrorEventHandler(b,c):c()}}),e.prototype[Symbol.toStringTag]="EventTargetPrototype",Object.defineProperty(e,"prototype",{writable:!1});var m=e,n={createInstance:function(a){function b(){this.__setOptions(a)}return b.prototype=m.prototype,new b}},o=void 0!==b&&b.exports?c:window;o.ShimEvent=j,o.ShimCustomEvent=k,o.ShimDOMException=f,o.ShimEventTarget=e,o.EventTargetFactory=n}()},{}],299:[function(a,b,c){(function(a){function b(a,b){for(var c=0,d=a.length-1;d>=0;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c--;c)a.unshift("..");return a}function d(a,b){if(a.filter)return a.filter(b);for(var c=[],d=0;d=-1&&!e;f--){var g=f>=0?arguments[f]:a.cwd();if("string"!=typeof g)throw new TypeError("Arguments to path.resolve must be strings");g&&(c=g+"/"+c,e="/"===g.charAt(0))}return c=b(d(c.split("/"),function(a){return!!a}),!e).join("/"),(e?"/":"")+c||"."},c.normalize=function(a){var e=c.isAbsolute(a),f="/"===g(a,-1);return a=b(d(a.split("/"),function(a){return!!a}),!e).join("/"),a||e||(a="."),a&&f&&(a+="/"),(e?"/":"")+a},c.isAbsolute=function(a){return"/"===a.charAt(0)},c.join=function(){var a=Array.prototype.slice.call(arguments,0);return c.normalize(d(a,function(a,b){if("string"!=typeof a)throw new TypeError("Arguments to path.join must be strings");return a}).join("/"))},c.relative=function(a,b){function d(a){for(var b=0;b=0&&""===a[c];c--);return b>c?[]:a.slice(b,c-b+1)}a=c.resolve(a).substr(1),b=c.resolve(b).substr(1);for(var e=d(a.split("/")),f=d(b.split("/")),g=Math.min(e.length,f.length),h=g,i=0;i1)for(var c=1;c=0;--d){var e=this.tryEntries[d],f=e.completion;if("root"===e.tryLoc)return b("end");if(e.tryLoc<=this.prev){var g=t.call(e,"catchLoc"),h=t.call(e,"finallyLoc");if(g&&h){if(this.prev=0;--c){var d=this.tryEntries[c];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev=0;--b){var c=this.tryEntries[b];if(c.finallyLoc===a)return this.complete(c.completion,c.afterLoc),n(c),D}},catch:function(a){for(var b=this.tryEntries.length-1;b>=0;--b){var c=this.tryEntries[b];if(c.tryLoc===a){var d=c.completion;if("throw"===d.type){var e=d.arg;n(c)}return e}}throw new Error("illegal catch attempt")},delegateYield:function(a,b,c){return this.delegate={iterator:p(a),resultName:b,nextLoc:c},"next"===this.method&&(this.arg=r),D}}}("object"==typeof c?c:"object"==typeof window?window:"object"==typeof self?self:this)}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:300}],302:[function(a,b,c){function d(a){return a&&"function"==typeof a.then}function e(a,b){a.then(null,b)}function f(a){function b(a,b){j.v=a,j.s=b,j.c[b].forEach(function(b){b(a)}),j.c[b].length&&(j.c=null)}function c(a){j.c&&(d(a)?e(a.then(c),f):b(a,h))}function f(a){j.c&&(d(a)?e(a.then(f),f):b(a,i))}var j=this;j.v=0,j.s=g,j.c=[[],[]];try{a(c,f)}catch(a){f(a)}}var g=2,h=0,i=1,j=f.prototype;j.then=function(a,b){var c=this;return new f(function(d,e){function f(){try{d(a?a(c.v):c.v)}catch(a){g(a)}}var g="function"==typeof b?b:e;c.s===h?f():c.s===i?g(c.v):(c.c[h].push(f),c.c[i].push(g))})},j.catch=function(a){var b=this;return new f(function(c,d){function e(){try{c(a(b.v))}catch(a){d(a)}}b.s===i?e():b.s===h?c(b.v):(b.c[i].push(e),b.c[h].push(c))})},f.all=function(a){return new f(function(b,c,f){f=a.length;var g=[];if(!f)return void b(g);a.forEach(function(h,i){d(h)?e(h.then(function(a){g[i]=a,--f||b(g)}),c):(g[i]=h,--f||b(a))})})},f.race=function(a){var b=!1;return new f(function(c,f){a.some(function(a,g){if(!d(a))return c(a),b=!0,!0;e(a.then(function(a){b||(c(a),b=!0)}),f)})})},f.resolve=function(a){return new f(function(b,c){b(a)})},f.reject=function(a){return new f(function(b,c){c(a)})},b.exports=f},{}],303:[function(a,b,c){b.exports=[{sparseArrays:{testPlainObjects:!0,test:function(a){return Array.isArray(a)},replace:function(a,b){return b.iterateUnsetNumeric=!0,a}}},{sparseUndefined:{test:function(a,b){return void 0===a&&b.ownKeys===!1},replace:function(a){return null},revive:function(a){}}}]},{}],304:[function(a,b,c){b.exports=a("./structured-cloning").concat({checkDataCloneException:[function(a){var b={}.toString.call(a).slice(8,-1);if(["symbol","function"].includes(typeof a)||["Arguments","Module","Error","Promise","WeakMap","WeakSet"].includes(b)||a===Object.prototype||("Blob"===b||"File"===b)&&a.isClosed||a&&"object"==typeof a&&"number"==typeof a.nodeType&&"function"==typeof a.insertBefore)throw new DOMException("The object cannot be cloned.","DataCloneError");return!1}]})},{"./structured-cloning":305}],305:[function(a,b,c){b.exports=[a("../types/user-object"),a("../presets/undefined"),a("../types/primitive-objects"),a("../types/special-numbers"),a("../types/date"),a("../types/regexp"),"function"==typeof Map&&a("../types/map"),"function"==typeof Set&&a("../types/set"),"function"==typeof ArrayBuffer&&a("../types/arraybuffer"),"function"==typeof Uint8Array&&a("../types/typed-arrays"),"function"==typeof DataView&&a("../types/dataview"),"undefined"!=typeof Intl&&a("../types/intl-types"),a("../types/imagedata"),a("../types/imagebitmap"),a("../types/file"),a("../types/filelist"),a("../types/blob")]},{"../presets/undefined":306,"../types/arraybuffer":307,"../types/blob":308,"../types/dataview":309,"../types/date":310,"../types/file":311,"../types/filelist":312,"../types/imagebitmap":313,"../types/imagedata":314,"../types/intl-types":315,"../types/map":316,"../types/primitive-objects":317,"../types/regexp":318,"../types/set":319,"../types/special-numbers":320,"../types/typed-arrays":321,"../types/user-object":323}],306:[function(a,b,c){b.exports=[a("../presets/sparse-undefined"),a("../types/undefined")]},{"../presets/sparse-undefined":303,"../types/undefined":322}],307:[function(a,b,c){var d=a("typeson"),e=a("base64-arraybuffer");c.ArrayBuffer=[function(a){return"ArrayBuffer"===d.toStringTag(a)},function(a){return e.encode(a)},function(a){return e.decode(a)}]},{"base64-arraybuffer":2,typeson:325}],308:[function(a,b,c){var d=a("typeson");c.Blob={test:function(a){return"Blob"===d.toStringTag(a)},replace:function(a){var b=new XMLHttpRequest;if(b.open("GET",URL.createObjectURL(a),!1),200!==b.status&&0!==b.status)throw new Error("Bad Blob access: "+b.status);return b.send(),{type:a.type,stringContents:b.responseText}},revive:function(a){return new Blob([a.stringContents],{type:a.type})},replaceAsync:function(a){return new d.Promise(function(b,c){if(a.isClosed)return void c(new Error("The Blob is closed"));var d=new FileReader;d.addEventListener("load",function(){b({type:a.type,stringContents:d.result})}),d.addEventListener("error",function(){c(d.error)}),d.readAsText(a)})}}},{typeson:325}],309:[function(a,b,c){var d=a("typeson"),e=a("base64-arraybuffer");c.DataView=[function(a){return"DataView"===d.toStringTag(a)},function(a){return{buffer:e.encode(a.buffer),byteOffset:a.byteOffset,byteLength:a.byteLength}},function(a){return new DataView(e.decode(a.buffer),a.byteOffset,a.byteLength)}]},{"base64-arraybuffer":2,typeson:325}],310:[function(a,b,c){var d=a("typeson");c.Date=[function(a){return"Date"===d.toStringTag(a)},function(a){return a.getTime()},function(a){return new Date(a)}]},{typeson:325}],311:[function(a,b,c){var d=a("typeson");c.File={test:function(a){return"File"===d.toStringTag(a)},replace:function(a){var b=new XMLHttpRequest;if(b.open("GET",URL.createObjectURL(a),!1),200!==b.status&&0!==b.status)throw new Error("Bad Blob access: "+b.status);return b.send(),{type:a.type,stringContents:b.responseText,name:a.name,lastModified:a.lastModified}},revive:function(a){return new File([a.stringContents],a.name,{type:a.type,lastModified:a.lastModified})},replaceAsync:function(a){return new d.Promise(function(b,c){if(a.isClosed)return void c(new Error("The File is closed"));var d=new FileReader;d.addEventListener("load",function(){b({type:a.type,stringContents:d.result,name:a.name,lastModified:a.lastModified})}),d.addEventListener("error",function(){c(d.error)}),d.readAsText(a)})}}},{typeson:325}],312:[function(a,b,c){var d=a("typeson");c.File=a("./file").File,c.FileList={test:function(a){return"FileList"===d.toStringTag(a)},replace:function(a){for(var b=[],c=0;c0?"Infinity":"-Infinity"},function(a){return{NaN:0/0,Infinity:1/0,"-Infinity":-1/0}[a]}]},{}],321:[function(a,b,c){(function(b){var d=a("typeson"),e=a("base64-arraybuffer"),f="undefined"==typeof self?b:self;["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"].forEach(function(a){var b=f[a];b&&(c[a]=[function(b){return d.toStringTag(b)===a},function(a){return e.encode(a.buffer,a.byteOffset,a.byteLength)},function(a){return new b(e.decode(a))}])})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-arraybuffer":2,typeson:325}],322:[function(a,b,c){var d=a("typeson");b.exports={undefined:[function(a,b){return void 0===a&&(b.ownKeys||!("ownKeys"in b))},function(a){return null},function(a){return new d.Undefined}]}},{typeson:325}],323:[function(a,b,c){var d=a("typeson");c.userObjects=[function(a,b){return d.isUserObject(a)},function(a){return Object.assign({},a)},function(a){return a}]},{typeson:325}],324:[function(a,b,c){b.exports=Array.from||function(a){for(var b=[],c=a.next();!c.done;c=a.next())b.push(c.value);return b}},{}],325:[function(a,b,c){function d(a,b){return j.isObject(a)&&"function"==typeof a.then&&(!b||"function"==typeof a.catch)}function e(a){return q.call(a).slice(8,-1)}function f(a,b){if(!a||"object"!=typeof a)return!1;var c=r(a);if(!c)return!1;var d=s.call(c,"constructor")&&c.constructor;return"function"!=typeof d?null===b:"function"==typeof d&&null!==b&&t.call(d)===t.call(b)}function g(a){return!(!a||"Object"!==e(a))&&(!r(a)||f(a,Object))}function h(a){if(!a||"Object"!==e(a))return!1;var b=r(a);return!b||(f(a,Object)||h(b))}function i(a){return a&&"object"==typeof a}function j(a){var b=[],c=[],e={},h=this.types={},j=this.stringify=function(b,c,d,e){e=Object.assign({},a,e,{stringification:!0});var f=r(b,null,e);return p(f)?JSON.stringify(f[0],c,d):f.then(function(a){return JSON.stringify(a,c,d)})};this.stringifySync=function(a,b,c,d){return j(a,b,c,Object.assign({},{throwOnBadSyncType:!0},d,{sync:!0}))},this.stringifyAsync=function(a,b,c,d){return j(a,b,c,Object.assign({},{throwOnBadSyncType:!0},d,{sync:!1}))};var q=this.parse=function(b,c,d){return d=Object.assign({},a,d,{parse:!0}),s(JSON.parse(b,c),d)};this.parseSync=function(a,b,c){return q(a,b,Object.assign({},{throwOnBadSyncType:!0},c,{sync:!0}))},this.parseAsync=function(a,b,c){return q(a,b,Object.assign({},{throwOnBadSyncType:!0},c,{sync:!1}))};var r=this.encapsulate=function(d,h,j){function k(a){return o(s).length?a&&g(a)&&!a.hasOwnProperty("$types")?a.$types=s:a={$:a,$types:{$:s}}:i(a)&&a.hasOwnProperty("$types")&&(a={$:a,$types:!0}),a}function l(a,b){return Promise.all(b.map(function(a){return a[1].p})).then(function(c){return Promise.all(c.map(function(c){var d=[],e=b.splice(0,1)[0],g=e[0],h=e[2],i=e[3],j=e[4],k=e[5],o=m(g,c,h,i,d),p=f(o,n);return g&&p?o.p.then(function(b){return j[k]=b,l(a,d)}):(g?j[k]=o:a=p?o.p:o,l(a,d))}))}).then(function(){return a})}function m(a,c,d,e,h){var i=typeof c;if(i in{string:1,boolean:1,number:1,undefined:1})return void 0===c||"number"===i&&(isNaN(c)||c===-1/0||1/0===c)?q(a,c,e,h):c;if(null===c)return c;if(d&&!e.iterateIn&&!e.iterateUnsetNumeric){var j=t.indexOf(c);if(!(j<0))return s[a]="#","#"+u[j];d===!0&&(t.push(c),u.push(a))}var k=g(c),l=p(c),r=(k||l)&&(!b.length||e.replaced)||e.iterateIn?c:q(a,c,e,h,k||l);if(r!==c)return r;var v;if(l||"array"===e.iterateIn)v=new Array(c.length);else{if(!k&&"object"!==e.iterateIn)return""===a&&f(c,n)?(h.push([a,c,d,e]),c):c;v={}}if(e.iterateIn)for(var w in c){var x={ownKeys:c.hasOwnProperty(w)},y=a+(a?".":"")+w,z=m(y,c[w],!!d,x,h);f(z,n)?h.push([y,z,!!d,x,v,w]):void 0!==z&&(v[w]=z)}else o(c).forEach(function(b){var e=a+(a?".":"")+b,g=m(e,c[b],!!d,{ownKeys:!0},h);f(g,n)?h.push([e,g,!!d,{ownKeys:!0},v,b]):void 0!==g&&(v[b]=g)});if(e.iterateUnsetNumeric)for(var A=0,B=c.length;A=this.length||!Number.isInteger(a)?null:this._items[a]},clone:function(){var a=h.__createInstance();return a._items=this._items.slice(),a._length=this.length,a.addIndexes(),a},addIndexes:function(){for(var a=0;a":"<";void 0!==b&&(k.push("AND",j,n+"= ?"),l.push(v.encode(b))),void 0!==a?(k.push("AND",i,n+"= ?"),l.push(v.encode(a))):g&&void 0!==h.__key&&(k.push("AND",i,n+" ?"),l.push(v.encode(h.__key))),h.__count||(k.push("ORDER BY",i,m),h.__unique||"key"===h.__keyColumnName||k.push(",",j,m),!h.__unique&&h.__indexSource&&k.push(",",r.sqlQuote(h.__valueColumnName),m),k.push("LIMIT",f)),k=k.join(" "),B.default.DEBUG&&console.log(k,l),c.executeSql(k,l,function(a,b){h.__count?d(void 0,b.rows.length,void 0):b.rows.length>1?(h.__prefetchedIndex=0,h.__prefetchedData=b.rows,B.default.DEBUG&&console.log("Preloaded "+h.__prefetchedData.length+" records for cursor"),h.__decode(b.rows.item(0),d)):1===b.rows.length?h.__decode(b.rows.item(0),d):(B.default.DEBUG&&console.log("Reached end of cursors"),d(void 0,void 0,void 0))},function(a,b){B.default.DEBUG&&console.log("Could not execute Cursor.continue",k,l),e(b)})},i.prototype.__findMultiEntry=function(a,b,c,d,e){var f=this;if(f.__prefetchedData&&f.__prefetchedData.length===f.__prefetchedIndex)return B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),void d(void 0,void 0,void 0);var g=r.sqlQuote(f.__keyColumnName),h=["SELECT * FROM",r.escapeStoreNameForSQL(f.__store.__currentName)],i=[];h.push("WHERE",g,"NOT NULL"),f.__range&&void 0!==f.__range.lower&&Array.isArray(f.__range.upper)&&0===f.__range.upper.indexOf(f.__range.lower)&&(h.push("AND",g,"LIKE ? ESCAPE '^'"),i.push("%"+r.sqlLIKEEscape(f.__range.__lowerCached.slice(0,-1))+"%"));var j=f.__sqlDirection,k="ASC"===j?">":"<",l=r.sqlQuote("key");void 0!==b&&(h.push("AND",l,k+"= ?"),i.push(v.encode(b))),void 0!==a?(h.push("AND",g,k+"= ?"),i.push(v.encode(a))):void 0!==f.__key&&(h.push("AND",g,k+" ?"),i.push(v.encode(f.__key))),f.__count||(h.push("ORDER BY",g,j),f.__unique||"key"===f.__keyColumnName||h.push(",",r.sqlQuote("key"),j),!f.__unique&&f.__indexSource&&h.push(",",r.sqlQuote(f.__valueColumnName),j)),h=h.join(" "),B.default.DEBUG&&console.log(h,i),c.executeSql(h,i,function(a,b){if(b.rows.length>0){if(f.__count){for(var c=0,e=0;eb.matchingKey.replace("[","z")?q?-1:1:a.keyb.key?"prev"===f.direction?-1:1:0}),i.length>1?(f.__prefetchedIndex=0,f.__prefetchedData={data:i,length:i.length,item:function(a){return this.data[a]}},B.default.DEBUG&&console.log("Preloaded "+f.__prefetchedData.length+" records for multiEntry cursor"),f.__decode(i[0],d)):1===i.length?(B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),f.__decode(i[0],d)):(B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),d(void 0,void 0,void 0))}else B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),d(void 0,void 0,void 0)},function(a,b){B.default.DEBUG&&console.log("Could not execute Cursor.continue",h,i),e(b)})},i.prototype.__onsuccess=function(a){var b=this;return function(c,d,e){if(b.__count)a(d,b.__req);else{void 0!==c&&(b.__gotValue=!0),b.__key=void 0===c?null:c,b.__primaryKey=void 0===e?null:e,b.__value=void 0===d?null:d;a(void 0===c?null:b,b.__req)}}},i.prototype.__decode=function(a,b){var c=this;if(c.__multiEntryIndex&&c.__unique){if(c.__matchedKeys||(c.__matchedKeys={}),c.__matchedKeys[a.matchingKey])return void b(void 0,void 0,void 0);c.__matchedKeys[a.matchingKey]=!0}var d=r.unescapeSQLiteResponse(c.__multiEntryIndex?a.matchingKey:a[c.__keyColumnName]),e=r.unescapeSQLiteResponse(a[c.__valueColumnName]),f=r.unescapeSQLiteResponse(a.key);b(v.decode(d,c.__multiEntryIndex),c.__valueDecoder.decode(e),v.decode(f),d)},i.prototype.__sourceOrEffectiveObjStoreDeleted=function(){m.default.__invalidStateIfDeleted(this.__store,"The cursor's effective object store has been deleted"),this.__indexSource&&z.default.__invalidStateIfDeleted(this.source,"The cursor's index source has been deleted")},i.prototype.__invalidateCache=function(){this.__prefetchedData=null},i.prototype.__continue=function(a,b){var c=this,d=void 0!==c.__advanceCount;if(t.default.__assertActive(c.__store.transaction),c.__sourceOrEffectiveObjStoreDeleted(),!c.__gotValue&&!b)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");if(void 0!==a){v.convertValueToKeyRethrowingAndIfInvalid(a);var e=(0,p.cmp)(a,c.key);if(0===e||c.direction.includes("next")&&e===-1||c.direction.includes("prev")&&1===e)throw(0,n.createDOMException)("DataError","Cannot "+(d?"advance":"continue")+" the cursor in an unexpected direction")}this.__continueFinish(a,void 0,d)},i.prototype.__continueFinish=function(a,b,c){var d=this,e=d.__advanceCount||B.default.cursorPreloadPackSize||100;d.__gotValue=!1,d.__req.__readyState="pending",d.__store.transaction.__pushToQueue(d.__req,function f(g,h,i,j,k){function l(a,b,e){if(c){if(d.__advanceCount>=2&&void 0!==a)return d.__advanceCount--,d.__key=a,d.__continue(void 0,!0),void k();d.__advanceCount=void 0}d.__onsuccess(i)(a,b,e)}if(d.__prefetchedData&&++d.__prefetchedIndex0||0===m&&(d.__unique||void 0===b||(0,p.cmp)(k,b)>=0))return void l(c,e,k);f(g,h,i,j)}()});d.__find(a,b,g,l,function(){d.__advanceCount=void 0,j.apply(void 0,arguments)},e)})},i.prototype.continue=function(){this.__continue(arguments[0])},i.prototype.continuePrimaryKey=function(a,b){function c(){d.__continueFinish(a,b,!1)}var d=this;if(t.default.__assertActive(d.__store.transaction),d.__sourceOrEffectiveObjStoreDeleted(),!d.__indexSource)throw(0,n.createDOMException)("InvalidAccessError","`continuePrimaryKey` may only be called on an index source.");if(!["next","prev"].includes(d.direction))throw(0,n.createDOMException)("InvalidAccessError","`continuePrimaryKey` may not be called with unique cursors.");if(!d.__gotValue)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");v.convertValueToKeyRethrowingAndIfInvalid(a),v.convertValueToKeyRethrowingAndIfInvalid(b);var e=(0,p.cmp)(a,d.key);if("next"===d.direction&&e===-1||"prev"===d.direction&&1===e)throw(0,n.createDOMException)("DataError","Cannot continue the cursor in an unexpected direction");0===e?x.encode(b,function(a){x.encode(d.primaryKey,function(b){if(a===b||"next"===d.direction&&ab)throw(0,n.createDOMException)("DataError","Cannot continue the cursor in an unexpected direction");c()})}):c()},i.prototype.advance=function(a){var b=this;if(0===(a=r.enforceRange(a,"unsigned long")))throw new TypeError("Calling advance() with count argument 0");b.__gotValue&&(b.__advanceCount=a),b.__continue()},i.prototype.update=function(a){function b(a){m.default.__storingRecordObjectStore(d,c.__store,a,!1,e)}var c=this;if(!arguments.length)throw new TypeError("A value must be passed to update()");if(t.default.__assertActive(c.__store.transaction),c.__store.transaction.__assertWritable(),c.__sourceOrEffectiveObjStoreDeleted(),!c.__gotValue)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");if(c.__keyOnly)throw(0,n.createDOMException)("InvalidStateError","This cursor method cannot be called when the key only flag has been set.");var d=c.__store.transaction.__createRequest(c),e=c.primaryKey;if(null!==c.__store.keyPath){var f=c.__store.__validateKeyAndValueAndCloneValue(a,void 0,!0),g=j(f,2),h=g[0],i=g[1];if(0!==(0,p.cmp)(c.primaryKey,h))throw(0,n.createDOMException)("DataError","The key of the supplied value to `update` is not equal to the cursor's effective key");b(i)}else{b(x.clone(a))}return d},i.prototype.delete=function(){var a=this;if(t.default.__assertActive(a.__store.transaction),a.__store.transaction.__assertWritable(),a.__sourceOrEffectiveObjStoreDeleted(),!a.__gotValue)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");if(a.__keyOnly)throw(0,n.createDOMException)("InvalidStateError","This cursor method cannot be called when the key only flag has been set.");return this.__store.transaction.__addToTransactionQueue(function(b,c,d,e){a.__find(void 0,void 0,b,function(c,f,g){var h="DELETE FROM "+r.escapeStoreNameForSQL(a.__store.__currentName)+' WHERE "key" = ?';B.default.DEBUG&&console.log(h,c,g),b.executeSql(h,[r.escapeSQLiteStatement(v.encode(g))],function(b,f){1===f.rowsAffected?(a.__store.__cursors.forEach(function(a){a.__invalidateCache()}),d(void 0)):e("No rows with key found"+c)},function(a,b){e(b)})},e)},void 0,a)},i.prototype[Symbol.toStringTag]="IDBCursorPrototype",["source","direction","key","primaryKey"].forEach(function(a){Object.defineProperty(i.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),Object.defineProperty(i,"prototype",{writable:!1});var D=function(a){function b(){return f(this,b),g(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return h(b,a),b}(i),E=D;D.__createInstance=function(){function a(){var a;(a=i.__super).call.apply(a,[this].concat(c)),this[Symbol.toStringTag]="IDBCursorWithValue",r.defineReadonlyProperties(this,"value")}for(var b=arguments.length,c=Array(b),d=0;dd?1:c===d?0:-1;if(A.default.DEBUG){var f=u.decode(c),g=u.decode(d);"object"===(void 0===a?"undefined":j(a))&&(a=JSON.stringify(a),f=JSON.stringify(f)),"object"===(void 0===b?"undefined":j(b))&&(b=JSON.stringify(b),g=JSON.stringify(g)),f!==a&&console.warn(a+" was incorrectly encoded as "+f),g!==b&&console.warn(b+" was incorrectly encoded as "+g)}return e}Object.defineProperty(c,"__esModule",{value:!0}),c.shimIndexedDB=c.cmp=c.IDBFactory=void 0;var j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},k=a("./Event"),l=a("./IDBVersionChangeEvent"),m=e(l),n=a("./DOMException"),o=a("./IDBRequest"),p=a("./DOMStringList"),q=e(p),r=a("./util"),s=d(r),t=a("./Key"),u=d(t),v=a("./IDBTransaction"),w=e(v),x=a("./IDBDatabase"),y=e(x),z=a("./CFG"),A=e(z),B=void 0,C=h;h.__createInstance=function(){function a(){this[Symbol.toStringTag]="IDBFactory",this.modules={Event:"undefined"!=typeof Event?Event:k.ShimEvent,Error:Error,ShimEvent:k.ShimEvent,ShimCustomEvent:k.ShimCustomEvent,ShimEventTarget:k.ShimEventTarget,ShimDOMException:n.ShimDOMException,ShimDOMStringList:q.default,IDBFactory:C},this.utils={createDOMException:n.createDOMException},this.__connections=[]}return a.prototype=C.prototype,new a},h.prototype.open=function(a){function b(a,b){if(!j){b=b?(0,n.webSQLErrback)(b):a,j=!0;var c=(0,k.createEvent)("error",b,{bubbles:!0,cancelable:!0});i.__readyState="done",i.__error=b,i.__result=void 0,i.dispatchEvent(c)}}function c(c){var f=A.default.win.openDatabase(p,1,a,A.default.DEFAULT_DB_SIZE);if(i.__readyState="done",void 0===e&&(e=c||1),c>e){return void b((0,n.createDOMException)("VersionError","An attempt was made to open a database using a lower version than the existing version.",e))}f.transaction(function(g){g.executeSql("CREATE TABLE IF NOT EXISTS __sys__ (name VARCHAR(255), keyPath VARCHAR(255), autoInc BOOLEAN, indexList BLOB, currNum INTEGER)",[],function(){g.executeSql('SELECT "name", "keyPath", "autoInc", "indexList" FROM __sys__',[],function(g,h){if(i.__result=y.default.__createInstance(f,a,c,e,h),d.__connections.push(i.result),c=d.length?a.executeSql("DROP TABLE IF EXISTS __sys__",[],function(){f()},c):a.executeSql("DROP TABLE "+s.escapeStoreNameForSQL(s.unescapeSQLiteResponse(d.item(e).name)),[],function(){b(e+1)},function(){b(e+1)})}(0)},function(a){f()})})},c)},c,null,function(a,b,c,d,e){return!(!a.readOnly&&!b)||(p=function(a,b){a?d(a,b):e(b)},!1)})},c)},c)},c),i},h.prototype.cmp=function(a,b){if(!(this instanceof h))throw new TypeError("Illegal invocation") -;if(arguments.length<2)throw new TypeError("You must provide two keys to be compared");return u.convertValueToKeyRethrowingAndIfInvalid(a),u.convertValueToKeyRethrowingAndIfInvalid(b),i(a,b)},h.prototype.webkitGetDatabaseNames=function(){function a(a,d){if(!b){d=d?(0,n.webSQLErrback)(d):a,b=!0;var e=(0,k.createEvent)("error",d,{bubbles:!0,cancelable:!0});c.__readyState="done",c.__error=d,c.__result=void 0,c.dispatchEvent(e)}}if(!(this instanceof h))throw new TypeError("Illegal invocation");if(f())throw(0,n.createDOMException)("SecurityError","Cannot get IndexedDB database names from an opaque origin.");var b=!1,c=o.IDBRequest.__createInstance();return g(function(){B.readTransaction(function(b){b.executeSql('SELECT "name" FROM dbVersions',[],function(a,b){for(var d=q.default.__createInstance(),e=0;ed.__connections.length-1)throw new TypeError("If providing an argument, __forceClose must be called with a numeric index to indicate a specific connection to lose");c(d.__connections[a])}},h.prototype[Symbol.toStringTag]="IDBFactoryPrototype",Object.defineProperty(h,"prototype",{writable:!1});var D=h.__createInstance();c.IDBFactory=h,c.cmp=i,c.shimIndexedDB=D},{"./CFG":326,"./DOMException":327,"./DOMStringList":328,"./Event":329,"./IDBDatabase":331,"./IDBRequest":336,"./IDBTransaction":337,"./IDBVersionChangeEvent":338,"./Key":339,"./util":344,fs:3,path:299}],333:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function f(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b0&&h.push("OR"),h.push(m.escapeIndexNameForSQL(b.name),"LIKE ? ESCAPE '^' "),i.push("%"+m.sqlLIKEEscape(o.encode(a,b.multiEntry))+"%")}),h.push(")");else if(b.multiEntry)h.push("AND",m.escapeIndexNameForSQL(b.name),"LIKE ? ESCAPE '^'"),i.push("%"+m.sqlLIKEEscape(o.encode(c,b.multiEntry))+"%");else{var j=(0,p.convertValueToKeyRange)(c,a);(0,p.setSQLForKeyRange)(j,m.escapeIndexNameForSQL(b.name),h,i,!0,!1)}return[a,b,f,c,d,e,h,i]}Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.IDBIndex=c.executeFetchIndexData=c.buildFetchIndexDataSQL=void 0;var j=a("./DOMException"),k=a("./IDBCursor"),l=a("./util"),m=e(l),n=a("./Key"),o=e(n),p=a("./IDBKeyRange"),q=a("./IDBTransaction"),r=d(q),s=a("./Sca"),t=e(s),u=a("./CFG"),v=d(u),w=a("./IDBObjectStore"),x=d(w),y=["objectStore","keyPath","multiEntry","unique"],z=g;g.__createInstance=function(a,b){function c(){var c=this;c[Symbol.toStringTag]="IDBIndex",m.defineReadonlyProperties(c,y),c.__objectStore=a,c.__name=c.__originalName=b.columnName,c.__keyPath=Array.isArray(b.keyPath)?b.keyPath.slice():b.keyPath;var d=b.optionalParams;c.__multiEntry=!(!d||!d.multiEntry),c.__unique=!(!d||!d.unique),c.__deleted=!!b.__deleted,c.__objectStore.__cursors=b.cursors||[],Object.defineProperty(c,"__currentName",{get:function(){return"__pendingName"in c?c.__pendingName:c.name}}),Object.defineProperty(c,"name",{enumerable:!1,configurable:!1,get:function(){return this.__name},set:function(b){var c=this;b=m.convertToDOMString(b);var d=c.name;if(r.default.__assertVersionChange(c.objectStore.transaction),r.default.__assertActive(c.objectStore.transaction),z.__invalidStateIfDeleted(c),x.default.__invalidStateIfDeleted(c),b!==d){if(c.objectStore.__indexes[b]&&!c.objectStore.__indexes[b].__deleted&&!c.objectStore.__indexes[b].__pendingDelete)throw(0,j.createDOMException)("ConstraintError",'Index "'+b+'" already exists on '+c.objectStore.__currentName);c.__name=b;var e=c.objectStore;delete e.__indexes[d],e.__indexes[b]=c,e.indexNames.splice(e.indexNames.indexOf(d),1,b);var f=e.transaction.__storeHandles[e.name],g=f.__indexHandles[d];g.__name=b,f.__indexHandles[b]=g,c.__pendingName=d;var h=[["key","BLOB "+(e.autoIncrement?"UNIQUE, inc INTEGER PRIMARY KEY AUTOINCREMENT":"PRIMARY KEY")],["value","BLOB"]].concat(Array.from(e.indexNames).filter(function(a){return a!==b}).map(function(a){return[m.escapeIndexNameForSQL(a),"BLOB"]}));c.__renameIndex(e,d,b,h,function(b,c){z.__updateIndexList(a,b,function(a){delete f.__pendingName,c(a)})})}}})}return c.prototype=z.prototype,new c},g.__invalidStateIfDeleted=function(a,b){if(a.__deleted||a.__pendingDelete||a.__pendingCreate&&a.objectStore.transaction&&a.objectStore.transaction.__errored)throw(0,j.createDOMException)("InvalidStateError",b||"This index has been deleted")},g.__clone=function(a,b){var c=g.__createInstance(b,{columnName:a.name,keyPath:a.keyPath,optionalParams:{multiEntry:a.multiEntry,unique:a.unique}});return["__pendingCreate","__pendingDelete","__deleted","__originalName","__recreated"].forEach(function(b){c[b]=a[b]}),c},g.__createIndex=function(a,b){var c=b.name,d=a.__currentName,e=a.__indexes[c];b.__pendingCreate=!0,a.indexNames.push(c),a.__indexes[c]=b;var f=a.__indexHandles[c];(!f||b.__pendingDelete||b.__deleted||f.__pendingDelete||f.__deleted)&&(f=a.__indexHandles[c]=g.__clone(b,a)),a.transaction.__addNonRequestToTransactionQueue(function(h,i,k,l){function n(a,b){l((0,j.createDOMException)("UnknownError",'Could not create index "'+c+'"'+b.code+"::"+b.message,b))}function p(e){g.__updateIndexList(a,e,function(){e.executeSql('SELECT "key", "value" FROM '+m.escapeStoreNameForSQL(d),[],function(e,g){function h(i){if(i3&&void 0!==arguments[3]?arguments[3]:[],e=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,f=a.__currentName,g=m.escapeStoreNameForSQL(f),h=m.escapeStoreNameForSQL("tmp_"+f),i=d.map(function(a){return a[0]}),j=d.map(function(a){return a.join(" ")}),k=j.length?j.join(", ")+", ":"",l=i.length?i.join(", ")+", ":"";a.transaction.__addNonRequestToTransactionQueue(function(a,d,f,i){var j="ALTER TABLE "+g+" RENAME TO "+h;a.executeSql(j,[],function(a,d){var j="CREATE TABLE "+g+"("+k+m.escapeIndexNameForSQL(c)+" BLOB)";a.executeSql(j,[],function(a,d){var j="INSERT INTO "+g+"("+l+m.escapeIndexNameForSQL(c)+") SELECT "+l+m.escapeIndexNameForSQL(b)+" FROM "+h;a.executeSql(j,[],function(a,b){var c="DROP TABLE "+h;a.executeSql(c,[],function(a,b){if(e)return void e(a,f);f()},function(a,b){i(b)})},function(a,b){i(b)})})},function(a,b){i(b)})})},Object.defineProperty(g,Symbol.hasInstance,{value:function(a){return m.isObj(a)&&"function"==typeof a.openCursor&&"boolean"==typeof a.multiEntry}}),y.forEach(function(a){Object.defineProperty(g.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),Object.defineProperty(g.prototype,"name",{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")},set:function(a){throw new TypeError("Illegal invocation")}}),g.prototype[Symbol.toStringTag]="IDBIndexPrototype",Object.defineProperty(g,"prototype",{writable:!1}),c.buildFetchIndexDataSQL=i,c.executeFetchIndexData=h,c.IDBIndex=g,c.default=g},{"./CFG":326,"./DOMException":327,"./IDBCursor":330,"./IDBKeyRange":334,"./IDBObjectStore":335,"./IDBTransaction":337,"./Key":339,"./Sca":340,"./util":344}],334:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function e(){throw new TypeError("Illegal constructor")}function f(a,b,c,d,e,f){if(a&&(void 0!==a.lower||void 0!==a.upper)){e&&c.push("AND");var g=void 0,h=void 0,i=void 0!==a.lower,k=void 0!==a.upper;if(i&&(g=f?a.__lowerCached:j.encode(a.lower)),k&&(h=f?a.__upperCached:j.encode(a.upper)),i){if(d.push(l.escapeSQLiteStatement(g)),k&&g===h&&!a.lowerOpen&&!a.upperOpen)return void c.push(b,"=","?");c.push(b,a.lowerOpen?">":">=","?")}i&&k&&c.push("AND"),k&&(c.push(b,a.upperOpen?"<":"<=","?"),d.push(l.escapeSQLiteStatement(h)))}}function g(a,b){if(l.instanceOf(a,e))return"[object IDBKeyRange]"!==!a.toString()?e.__createInstance(a.lower,a.upper,a.lowerOpen,a.upperOpen):a;{if(null!=a)return j.convertValueToKeyRethrowingAndIfInvalid(a),e.only(a);if(b)throw(0,h.createDOMException)("DataError","No key or range was specified")}}Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.convertValueToKeyRange=c.IDBKeyRange=c.setSQLForKeyRange=void 0;var h=a("./DOMException"),i=a("./Key"),j=d(i),k=a("./util"),l=d(k),m=["lower","upper","lowerOpen","upperOpen"],n=e;e.__createInstance=function(a,b,c,d){function e(){if(this[Symbol.toStringTag]="IDBKeyRange",void 0===a&&void 0===b)throw(0,h.createDOMException)("DataError","Both arguments to the key range method cannot be undefined");var e=void 0,f=void 0;if(void 0!==a&&(e=j.roundTrip(a),j.convertValueToKeyRethrowingAndIfInvalid(a)),void 0!==b&&(f=j.roundTrip(b),j.convertValueToKeyRethrowingAndIfInvalid(b)),void 0!==a&&void 0!==b&&a!==b&&j.encode(a)>j.encode(b))throw(0,h.createDOMException)("DataError","`lower` must not be greater than `upper` argument in `bound()` call.");this.__lower=e,this.__upper=f,this.__lowerOpen=!!c,this.__upperOpen=!!d}return e.prototype=n.prototype,new e},e.prototype.includes=function(a){if(!l.isObj(this)||"boolean"!=typeof this.__lowerOpen)throw new TypeError("Illegal invocation");if(!arguments.length)throw new TypeError("IDBKeyRange.includes requires a key argument");return j.convertValueToKeyRethrowingAndIfInvalid(a),j.isKeyInRange(a,this)},e.only=function(a){if(!arguments.length)throw new TypeError("IDBKeyRange.only requires a value argument");return e.__createInstance(a,a,!1,!1)},e.lowerBound=function(a){if(!arguments.length)throw new TypeError("IDBKeyRange.lowerBound requires a value argument");return e.__createInstance(a,void 0,arguments[1],!0)},e.upperBound=function(a){if(!arguments.length)throw new TypeError("IDBKeyRange.upperBound requires a value argument");return e.__createInstance(void 0,a,!0,arguments[1])},e.bound=function(a,b){if(arguments.length<=1)throw new TypeError("IDBKeyRange.bound requires lower and upper arguments");return e.__createInstance(a,b,arguments[2],arguments[3])},e.prototype[Symbol.toStringTag]="IDBKeyRangePrototype",m.forEach(function(a){Object.defineProperty(e.prototype,"__"+a,{enumerable:!1,configurable:!1,writable:!0}),Object.defineProperty(e.prototype,a,{enumerable:!0,configurable:!0,get:function(){if(!l.isObj(this)||"boolean"!=typeof this.__lowerOpen)throw new TypeError("Illegal invocation");return this["__"+a]}})}),Object.defineProperty(e,Symbol.hasInstance,{value:function(a){return l.isObj(a)&&"upper"in a&&"boolean"==typeof a.lowerOpen}}),Object.defineProperty(e,"prototype",{writable:!1}),c.setSQLForKeyRange=f,c.IDBKeyRange=e,c.convertValueToKeyRange=g,c.default=e},{"./DOMException":327,"./Key":339,"./util":344}],335:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function e(a){return a&&a.__esModule?a:{default:a}}function f(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b0&&a.executeSql("DROP TABLE "+o.escapeStoreNameForSQL(b.__currentName),[],function(){a.executeSql('DELETE FROM __sys__ WHERE "name" = ?',[o.escapeSQLiteStatement(b.__currentName)],function(){delete b.__pendingDelete,b.__deleted=!0,c&&(delete c.__pendingDelete,c.__deleted=!0),e()},g)},g)})})},g.prototype.__validateKeyAndValueAndCloneValue=function(a,b,c){var d=this;if(null!==d.keyPath){if(void 0!==b)throw(0,i.createDOMException)("DataError","The object store uses in-line keys and the key parameter was provided",d);var e=v.clone(a);if(b=q.extractKeyValueDecodedFromValueUsingKeyPath(e,d.keyPath),b.invalid)throw(0,i.createDOMException)("DataError","KeyPath was specified, but key was invalid.");if(b.failure){if(!c){if(!d.autoIncrement)throw(0,i.createDOMException)("DataError","Could not evaluate a key from keyPath and there is no key generator");if(!q.checkKeyCouldBeInjectedIntoValue(e,d.keyPath))throw(0,i.createDOMException)("DataError","A key could not be injected into a value");return[void 0,e]}throw(0,i.createDOMException)("DataError","Could not evaluate a key from keyPath")}return[b.value,e]}if(void 0===b){if(!d.autoIncrement)throw(0,i.createDOMException)("DataError","The object store uses out-of-line keys and has no key generator and the key parameter was not provided.",d);b=void 0}else q.convertValueToKeyRethrowingAndIfInvalid(b);return[b,v.clone(a)]},g.prototype.__deriveKey=function(a,b,c,d,e){function f(){v.encode(c,function(a){a=v.decode(a),d(a)})}var g=this;g.autoIncrement?void 0===c?q.generateKeyForStore(a,g,function(a,c){if(a)return void e((0,i.createDOMException)("ConstraintError","The key generator's current number has reached the maximum safe integer limit"));null!==g.keyPath&&q.injectKeyIntoValueUsingKeyPath(b,c,g.keyPath),d(c)},e):q.possiblyUpdateKeyGenerator(a,g,c,f,e):f()},g.prototype.__insertData=function(a,b,c,d,e,g){var h=this,j={},k=Object.keys(h.__indexes).map(function(b){return new z.default(function(d,e){function g(a){void 0!==l&&(j[a.__currentName]=q.encode(l,a.multiEntry))}var k=h.__indexes[b];if(k.__pendingCreate||k.__deleted)return void d();var l=void 0;try{if(l=q.extractKeyValueDecodedFromValueUsingKeyPath(c,k.keyPath,k.multiEntry),l.invalid||l.failure)throw new Error("Go to catch")}catch(a){return void d()}if(l=l.value,k.unique){var m=k.multiEntry&&Array.isArray(l),n=(0,r.buildFetchIndexDataSQL)(!0,k,l,"key",m);r.executeFetchIndexData.apply(void 0,[null].concat(f(n),[a,null,function(a){if(void 0===a)return g(k),void d();e((0,i.createDOMException)("ConstraintError","Index already contains a record equal to "+(m?"one of the subkeys of":"")+"`indexKey`"))},e]))}else g(k),d()})});z.default.all(k).then(function(){var c=["INSERT INTO",o.escapeStoreNameForSQL(h.__currentName),"("],f=[" VALUES ("],k=[];void 0!==d&&(c.push(o.sqlQuote("key"),","),f.push("?,"),k.push(o.escapeSQLiteStatement(q.encode(d))));for(var l in j)c.push(o.escapeIndexNameForSQL(l)+","),f.push("?,"),k.push(o.escapeSQLiteStatement(j[l]));c.push(o.sqlQuote("value")+" )"),f.push("?)"),k.push(o.escapeSQLiteStatement(b));var m=c.join(" ")+f.join(" ");x.default.DEBUG&&console.log("SQL for adding",m,k),a.executeSql(m,k,function(a,b){e(d)},function(a,b){g((0,i.createDOMException)("ConstraintError",b.message,b))})}).catch(function(a){g(a)})},g.prototype.add=function(a){var b=this,c=arguments[1];if(!(b instanceof g))throw new TypeError("Illegal invocation");if(0===arguments.length)throw new TypeError("No value was specified");g.__invalidStateIfDeleted(b),t.default.__assertActive(b.transaction),b.transaction.__assertWritable();var d=b.transaction.__createRequest(b),e=b.__validateKeyAndValueAndCloneValue(a,c,!1),f=h(e,2),i=f[0],j=f[1];return g.__storingRecordObjectStore(d,b,j,!0,i),d},g.prototype.put=function(a){var b=this,c=arguments[1];if(!(b instanceof g))throw new TypeError("Illegal invocation");if(0===arguments.length)throw new TypeError("No value was specified");g.__invalidStateIfDeleted(b),t.default.__assertActive(b.transaction),b.transaction.__assertWritable();var d=b.transaction.__createRequest(b),e=b.__validateKeyAndValueAndCloneValue(a,c,!1),f=h(e,2),i=f[0],j=f[1];return g.__storingRecordObjectStore(d,b,j,!1,i),d},g.prototype.__overwrite=function(a,b,c,d){var e=this,f="DELETE FROM "+o.escapeStoreNameForSQL(e.__currentName)+' WHERE "key" = ?',g=q.encode(b);a.executeSql(f,[o.escapeSQLiteStatement(g)],function(a,d){x.default.DEBUG&&console.log("Did the row with the",b,"exist? ",d.rowsAffected),c(a)},function(a,b){d(b)})},g.__storingRecordObjectStore=function(a,b,c,d){var e=arguments[4];b.transaction.__pushToQueue(a,function(a,f,g,h){b.__deriveKey(a,c,e,function(e){v.encode(c,function(f){function i(a){b.__insertData(a,f,c,e,function(){b.__cursors.forEach(function(a){a.__invalidateCache()}),g.apply(void 0,arguments)},h)}if(!d)return void b.__overwrite(a,e,i,h);i(a)})},h)})},g.prototype.__get=function(a,b,c,d){var e=this;void 0!==d&&(d=o.enforceRange(d,"unsigned long")),g.__invalidStateIfDeleted(e),t.default.__assertActive(e.transaction);var f=(0,k.convertValueToKeyRange)(a,!c),h=b?"key":"value",i=["SELECT",o.sqlQuote(h),"FROM",o.escapeStoreNameForSQL(e.__currentName)],j=[];if(void 0!==f&&(i.push("WHERE"),(0,k.setSQLForKeyRange)(f,o.sqlQuote("key"),i,j)),c||(d=1),d){if("number"!=typeof d||isNaN(d)||!isFinite(d))throw new TypeError("The count parameter must be a finite number");i.push("LIMIT",d)}return i=i.join(" "),e.transaction.__addToTransactionQueue(function(a,d,f,g){x.default.DEBUG&&console.log("Fetching",e.__currentName,j),a.executeSql(i,j,function(a,d){x.default.DEBUG&&console.log("Fetched data",d);var e=void 0;try{if(0===d.rows.length)return c?f([]):f();if(e=[],b)for(var g=0;g=b.__requests.length)b.__requests=[],b.__active&&a();else try{if(i=b.__requests[j],!i.req)return void i.op(c,i.args,h,e);if("done"===i.req.__readyState)return;i.op(c,i.args,d,e,h)}catch(a){e(a)}}b.__tx=c;var i=null,j=-1;h()},function(a){if(a!==!0){var c=(0,g.webSQLErrback)(a);b.__abortTransaction(c)}},function(){if(b.__transFinishedCb===e.prototype.__transFinishedCb)return b.__transactionEndCallback||b.__requestsFinished?void(b.__transactionEndCallback&&!b.__completed&&b.__transFinishedCb(b.__errored,b.__transactionEndCallback)):void(b.__transactionFinished=!0)},function(a,c,d,e,f){return!(!a.readOnly&&!c)||(b.__transFinishedCb=function(a,b){a?e(a,b):f(b)},b.__transactionEndCallback&&!b.__completed&&b.__transFinishedCb(b.__errored,b.__transactionEndCallback),!1)})},e.prototype.__createRequest=function(a){var b=this,c=h.IDBRequest.__createInstance();return c.__source=void 0!==a?a:b.db,c.__transaction=b,c},e.prototype.__addToTransactionQueue=function(a,b,c){var d=this.__createRequest(c);return this.__pushToQueue(d,a,b),d},e.prototype.__addNonRequestToTransactionQueue=function(a,b,c){this.__pushToQueue(null,a,b)},e.prototype.__pushToQueue=function(a,b,c){this.__assertActive(),this.__requests.push({op:b,args:c,req:a})},e.prototype.__assertActive=function(){if(!this.__active)throw(0,g.createDOMException)("TransactionInactiveError","A request was placed against a transaction which is currently not active, or which is finished")},e.prototype.__assertWritable=function(){if("readonly"===this.mode)throw(0,g.createDOMException)("ReadOnlyError","The transaction is read only")},e.prototype.__assertVersionChange=function(){e.__assertVersionChange(this)},e.prototype.objectStore=function(a){var b=this;if(!(b instanceof e))throw new TypeError("Illegal invocation");if(0===arguments.length)throw new TypeError("No object store name was specified");if(e.__assertNotFinished(b),b.__objectStoreNames.indexOf(a)===-1)throw(0,g.createDOMException)("NotFoundError",a+" is not participating in this transaction");var c=b.db.__objectStores[a];if(!c)throw(0,g.createDOMException)("NotFoundError",a+" does not exist in "+b.db.name);return(!b.__storeHandles[a]||b.__storeHandles[a].__pendingDelete||b.__storeHandles[a].__deleted)&&(b.__storeHandles[a]=l.default.__clone(c,b)),b.__storeHandles[a]},e.prototype.__abortTransaction=function(a){function b(b,d){b?d&&"number"==typeof d.code?n.default.DEBUG&&console.log("Rollback erred; feature is probably not supported as per WebSQL",c):n.default.DEBUG&&console.log("Rollback succeeded",c):n.default.DEBUG&&console.log("Rollback not possible due to missing transaction",c),c.__requests.filter(function(a){return a.req&&"done"!==a.req.__readyState}).reduce(function(a,b){return a.then(function(){b.req.__readyState="done",b.req.__result=void 0,b.req.__error=(0,g.createDOMException)("AbortError","A request was aborted.");var a=(0,f.createEvent)("error",b.req.__error,{bubbles:!0,cancelable:!0});return new q.default(function(c){setTimeout(function(){b.req.dispatchEvent(a),c()})})})},q.default.resolve()).then(function(){var b=(0,f.createEvent)("abort",a,{bubbles:!0,cancelable:!1});setTimeout(function(){c.__abortFinished=!0,c.dispatchEvent(b),c.__storeHandles={},c.dispatchEvent((0,f.createEvent)("__abort"))})})}var c=this;(0,g.logError)("Error","An error occurred in a transaction",a),c.__errored||(c.__errored=!0,"versionchange"===c.mode&&(c.db.__version=c.db.__oldVersion,c.db.__objectStoreNames=c.db.__oldObjectStoreNames,c.__objectStoreNames=c.db.__oldObjectStoreNames,Object.values(c.db.__objectStores).concat(Object.values(c.__storeHandles)).forEach(function(a){"__pendingName"in a&&c.db.__oldObjectStoreNames.indexOf(a.__pendingName)>-1&&(a.__name=a.__originalName),a.__indexNames=a.__oldIndexNames,delete a.__pendingDelete,Object.values(a.__indexes).concat(Object.values(a.__indexHandles)).forEach(function(b){"__pendingName"in b&&a.__oldIndexNames.indexOf(b.__pendingName)>-1&&(b.__name=b.__originalName),delete b.__pendingDelete})})),c.__active=!1,null!==a&&(c.__error=a),c.__requestsFinished&&setTimeout(function(){throw a},0),c.__transFinishedCb(!0,function(a){if(a&&c.__tx){if("readwrite"===c.mode)return c.__transactionFinished?void b():void(c.__transactionEndCallback=b);try{c.__tx.executeSql("ROLLBACK",[],b,b)}catch(a){b()}}else b(null,{code:0})}))},e.prototype.abort=function(){var a=this;if(!(a instanceof e))throw new TypeError("Illegal invocation");n.default.DEBUG&&console.log("The transaction was aborted",a),e.__assertNotFinished(a),a.__abortTransaction(null)},e.prototype[Symbol.toStringTag]="IDBTransactionPrototype",e.__assertVersionChange=function(a){if(!a||"versionchange"!==a.mode)throw(0,g.createDOMException)("InvalidStateError","Not a version transaction")},e.__assertNotVersionChange=function(a){if(a&&"versionchange"===a.mode)throw(0,g.createDOMException)("InvalidStateError","Cannot be called during a version transaction")},e.__assertNotFinished=function(a){if(!a||a.__completed||a.__abortFinished)throw(0,g.createDOMException)("InvalidStateError","Transaction finished by commit or abort")},e.__assertActive=function(a){if(!a||!a.__active)throw(0,g.createDOMException)("TransactionInactiveError","A request was placed against a transaction which is currently not active, or which is finished")},e.prototype.__getParent=function(){return this.db},e.prototype.__userErrorEventHandler=function(a,b){if(this.__internal)throw this.__internal=!1,a;b()},s.forEach(function(a){Object.defineProperty(e.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")},set:function(a){throw new TypeError("Illegal invocation")}})}),t.forEach(function(a){Object.defineProperty(e.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),Object.defineProperty(e.prototype,"constructor",{enumerable:!1,writable:!0,configurable:!0,value:e}),Object.defineProperty(e,"prototype",{writable:!1}),c.default=e,b.exports=c.default},{"./CFG":326,"./DOMException":327,"./Event":329,"./IDBObjectStore":335,"./IDBRequest":336,"./util":344,eventtarget:298,"sync-promise":302}],338:[function(a,b,c){"use strict";function d(a){e.ShimEvent.call(this,a),this[Symbol.toStringTag]="IDBVersionChangeEvent",this.toString=function(){return"[object IDBVersionChangeEvent]"},this.__eventInitDict=arguments[1]||{}}Object.defineProperty(c,"__esModule",{value:!0});var e=a("./Event"),f=a("./util"),g=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(f),h=["oldVersion","newVersion"];d.prototype=Object.create(e.ShimEvent.prototype),d.prototype[Symbol.toStringTag]="IDBVersionChangeEventPrototype",h.forEach(function(a){Object.defineProperty(d.prototype,a,{enumerable:!0,configurable:!0,get:function(){if(!(this instanceof d))throw new TypeError("Illegal invocation");return this.__eventInitDict&&this.__eventInitDict[a]||("oldVersion"===a?0:null)}})}),Object.defineProperty(d,Symbol.hasInstance,{value:function(a){return g.isObj(a)&&"oldVersion"in a&&"boolean"==typeof a.defaultPrevented}}),Object.defineProperty(d.prototype,"constructor",{enumerable:!1,writable:!0,configurable:!0,value:d}),Object.defineProperty(d,"prototype",{writable:!1}),c.default=d,b.exports=c.default},{"./Event":329,"./util":344}],339:[function(a,b,c){"use strict";function d(a,b,c){return new Array(b-String(a).length+1).join(c)+a}function e(a){return a=a.toString(32),1===a.length?"0"+a:a}function f(a){return(a+j(11)).slice(0,11)}function g(a){for(var b="",c=0;cg&&(d=!0),!b.lowerOpen&&f>=g&&(d=!0)),void 0!==b.upper&&(b.upperOpen&&f1:b===a}function A(a,b){var c=[];if(Array.isArray(a))for(var d=0;d0&&c.push(e);continue}e=e[0]}(null==b||y(e,b,!0))&&c.push(e)}else(null==b||y(a,b,!0))&&c.push(a);return c}function B(a){var b=a.type,c=a.value;switch(b){case"number":case"string":return c;case"array":for(var d=[],e=c.length,f=0;fT)return c("failure");G(a,b,e,function(){c(null,e)},d)},d)}function I(a,b,c,d,e){"number"!=typeof c||c<1?d():F(a,b,function(f){var g=Math.floor(Math.min(c,T));g>=f?G(a,b,g,d,e):d()},e)}Object.defineProperty(c,"__esModule",{value:!0}),c.possiblyUpdateKeyGenerator=c.generateKeyForStore=c.findMultiEntryMatches=c.isKeyInRange=c.isMultiEntryMatch=c.checkKeyCouldBeInjectedIntoValue=c.injectKeyIntoValueUsingKeyPath=c.extractKeyValueDecodedFromValueUsingKeyPath=c.evaluateKeyPathOnValue=c.extractKeyFromValueUsingKeyPath=c.convertValueToKeyRethrowingAndIfInvalid=c.convertValueToMultiEntryKey=c.convertValueToKey=c.convertValueToMultiEntryKeyDecoded=c.convertValueToKeyValueDecoded=c.convertKeyToValue=c.roundTrip=c.decode=c.encode=void 0;var J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},K=a("./DOMException"),L=a("./util"),M=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(L),N=a("./IDBFactory"),O=a("./CFG"),P=function(a){return a&&a.__esModule?a:{default:a}}(O),Q=["invalid","number","date","string","binary","array"],R=["negativeInfinity","bigNegative","smallNegative","smallPositive","bigPositive","positiveInfinity"],S={invalid:{encode:function(a){return Q.indexOf("invalid")+"-"},decode:function(a){}},number:{encode:function(a){var b=Math.abs(a).toString(32),c=b.indexOf(".");b=c!==-1?b.replace(".",""):b;var d=b.search(/[^0]/);b=b.slice(d);var h=void 0,i=void 0,k=void 0;return isFinite(a)?a<0?a>-1?(h=R.indexOf("smallNegative"),i=e(d),k=g(f(b))):(h=R.indexOf("bigNegative"),i=g(e(c!==-1?c:b.length)),k=g(f(b))):a<1?(h=R.indexOf("smallPositive"),i=g(e(d)),k=f(b)):(h=R.indexOf("bigPositive"),i=e(c!==-1?c:b.length),k=f(b)):(i=j(2),k=j(11),h=R.indexOf(a>0?"positiveInfinity":"negativeInfinity")),Q.indexOf("number")+"-"+h+i+k},decode:function(a){var b=+a.substr(2,1),c=a.substr(3,2),d=a.substr(5,11);switch(R[b]){case"negativeInfinity":return-1/0;case"positiveInfinity":return 1/0;case"bigPositive":return h(d,c);case"smallPositive":return c=k(g(c)),h(d,c);case"smallNegative":return c=k(c),d=g(d),-h(d,c);case"bigNegative":return c=g(c),d=g(d),-h(d,c);default:throw new Error("Invalid number.")}}},string:{encode:function(a,b){return b&&(a=a.replace(/(.)/g,"-$1")+" "),Q.indexOf("string")+"-"+a},decode:function(a,b){return a=a.slice(2),b&&(a=a.substr(0,a.length-1).replace(/-(.)/g,"$1")),a}},array:{encode:function(a){for(var b=[],c=0;c889)throw(0,o.createDOMException)("DataError","The encoded key is "+a.length+" characters long, but IE only allows 889 characters. Consider replacing numeric keys with strings to reduce the encoded length.")}Object.defineProperty(c,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},o=a("./DOMException"),p=a("./Key"),q=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(p),r="__$$compoundKey",s=/\$\$/g,t="$$$$",u="$_$";c.default=d,b.exports=c.default},{"./DOMException":327,"./Key":339}],343:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{default:a}} -function f(a,b){if(a&&"object"===(void 0===a?"undefined":i(a)))for(var c in a)f(c,a[c]);else{if(!(a in C.default))throw new Error(a+" is not a valid configuration property");C.default[a]=b}}function g(a,b){function c(a,b,c){if(!c||!Object.defineProperty)try{e[a]=b}catch(a){console.log(a)}if(e[a]!==b&&Object.defineProperty)try{var d=c||{};d.get=function(){return b},Object.defineProperty(e,a,d)}catch(a){}e[a]!==b&&"undefined"!=typeof console&&console.warn&&console.warn("Unable to shim "+a)}b&&f(b);var e=a||("undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==d?d:{});c("shimIndexedDB",o.shimIndexedDB,{enumerable:!1,configurable:!0}),e.shimIndexedDB&&(e.shimIndexedDB.__useShim=function(){var a=e.shimIndexedDB.modules.IDBFactory;if(void 0!==C.default.win.openDatabase){if(C.default.fullIDLSupport){var b=e.shimIndexedDB.modules.ShimEvent,d=e.shimIndexedDB.modules.ShimEventTarget;Object.setPrototypeOf(y.default,d),Object.setPrototypeOf(m.IDBRequest,d),Object.setPrototypeOf(w.default,d),Object.setPrototypeOf(k.default,b),Object.setPrototypeOf(n.ShimDOMException,Error),Object.setPrototypeOf(n.ShimDOMException.prototype,Error.prototype)}[["indexedDB",o.shimIndexedDB],["IDBFactory",a],["IDBDatabase",y.default],["IDBObjectStore",s.default],["IDBIndex",u.default],["IDBTransaction",w.default],["IDBCursor",l.IDBCursor],["IDBCursorWithValue",l.IDBCursorWithValue],["IDBKeyRange",q.default],["IDBRequest",m.IDBRequest],["IDBOpenDBRequest",m.IDBOpenDBRequest],["IDBVersionChangeEvent",k.default]].forEach(function(a){var b=h(a,2);c(b[0],b[1],{enumerable:!1,configurable:!0})}),C.default.addNonIDBGlobals&&e.indexedDB&&e.indexedDB.modules&&(c("ShimDOMStringList",e.indexedDB.modules.ShimDOMStringList,{enumerable:!1,configurable:!0}),c("ShimEvent",e.indexedDB.modules.ShimEvent),c("ShimCustomEvent",e.indexedDB.modules.ShimCustomEvent),c("ShimEventTarget",e.indexedDB.modules.ShimEventTarget),c("ShimDOMException",e.indexedDB.modules.ShimDOMException))}else"object"===i(e.indexedDB)&&(0,A.default)(l.IDBCursor,l.IDBCursorWithValue,y.default,a,u.default,q.default,s.default,m.IDBRequest,w.default)},e.shimIndexedDB.__debug=function(a){C.default.DEBUG=a},e.shimIndexedDB.__setConfig=f,e.shimIndexedDB.__getConfig=function(a){if(!(a in C.default))throw new Error(a+" is not a valid configuration property");return C.default[a]},e.shimIndexedDB.__setUnicodeIdentifiers=function(a){f({UnicodeIDStart:a.UnicodeIDStart,UnicodeIDContinue:a.UnicodeIDContinue})}),"indexedDB"in e||"undefined"==typeof window||(e.indexedDB=e.indexedDB||e.webkitIndexedDB||e.mozIndexedDB||e.oIndexedDB||e.msIndexedDB);var g=!1;return"undefined"!=typeof navigator&&(navigator.userAgent.match(/Android (?:2|3|4\.[0-3])/)&&!navigator.userAgent.match(/Chrome/)||(navigator.userAgent.indexOf("Safari")===-1||navigator.userAgent.indexOf("Chrome")>-1)&&/(iPad|iPhone|iPod).* os 9_/i.test(navigator.userAgent)&&!window.MSStream)&&(g=!0),C.default.DEFAULT_DB_SIZE||(C.default.DEFAULT_DB_SIZE=1024*("undefined"!=typeof navigator&&navigator.userAgent.indexOf("Safari")>-1&&navigator.userAgent.indexOf("Chrome")===-1?25:4)*1024),e.indexedDB&&!g||void 0===C.default.win.openDatabase?(e.IDBDatabase=e.IDBDatabase||e.webkitIDBDatabase,e.IDBTransaction=e.IDBTransaction||e.webkitIDBTransaction||{},e.IDBCursor=e.IDBCursor||e.webkitIDBCursor,e.IDBKeyRange=e.IDBKeyRange||e.webkitIDBKeyRange):e.shimIndexedDB.__useShim(),e}Object.defineProperty(c,"__esModule",{value:!0});var h=function(){function a(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!b||c.length!==b);d=!0);}catch(a){e=!0,f=a}finally{try{!d&&h.return&&h.return()}finally{if(e)throw f}}return c}return function(b,c){if(Array.isArray(b))return b;if(Symbol.iterator in Object(b))return a(b,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};a("babel-polyfill");var j=a("./IDBVersionChangeEvent"),k=e(j),l=a("./IDBCursor"),m=a("./IDBRequest"),n=a("./DOMException"),o=a("./IDBFactory"),p=a("./IDBKeyRange"),q=e(p),r=a("./IDBObjectStore"),s=e(r),t=a("./IDBIndex"),u=e(t),v=a("./IDBTransaction"),w=e(v),x=a("./IDBDatabase"),y=e(x),z=a("./polyfill"),A=e(z),B=a("./CFG"),C=e(B);(void 0!==d?d:"undefined"!=typeof window?window:self)._babelPolyfill=!1,c.default=g,b.exports=c.default}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./CFG":326,"./DOMException":327,"./IDBCursor":330,"./IDBDatabase":331,"./IDBFactory":332,"./IDBIndex":333,"./IDBKeyRange":334,"./IDBObjectStore":335,"./IDBRequest":336,"./IDBTransaction":337,"./IDBVersionChangeEvent":338,"./polyfill":342,"babel-polyfill":1}],344:[function(a,b,c){"use strict";function d(a){return"_"+a.replace(/\^/g,"^^").replace(/\0/g,"^0").replace(/([A-Z])/g,"^$1").replace(/([\uD800-\uDBFF])(?![\uDC00-\uDFFF])|(^|[^\uD800-\uDBFF])([\uDC00-\uDFFF])/g,function(a,b,c){return b?"^2"+b+"�":"^3�"+c})}function e(a){return a.replace(/\^/g,"^^").replace(/\0/g,"^0")}function f(a){return a.replace(/\^0/g,"\0").replace(/\^\^/g,"^")}function g(a){return a.replace(/"/g,'""')}function h(a){return'"'+g(a)+'"'}function i(a){if(G.default.escapeDatabaseName)return G.default.escapeDatabaseName(e(a));if(a="D"+d(a),G.default.databaseCharacterEscapeList!==!1&&(a=a.replace(G.default.databaseCharacterEscapeList?new RegExp(G.default.databaseCharacterEscapeList,"g"):/[\u0000-\u001F\u007F"*\/:<>?\\|]/g,function(a){return"^1"+a.charCodeAt().toString(16).padStart(2,"0")})),G.default.databaseNameLengthLimit!==!1&&a.length>=(G.default.databaseNameLengthLimit||254)-(G.default.addSQLiteExtension!==!1?7:0))throw new Error("Unexpectedly long database name supplied; length limit required for Node compatibility; passed length: "+a.length+"; length limit setting: "+(G.default.databaseNameLengthLimit||254)+".");return a+(G.default.addSQLiteExtension!==!1?".sqlite":"")}function j(a){return G.default.unescapeDatabaseName?G.default.unescapeDatabaseName(f(a)):a.slice(2).replace(/(\^+)1([0-9a-f]{2})/g,function(a,b,c){return b%2?String.fromCharCode(parseInt(c,16)):a}).replace(/(\^+)3\uD800([\uDC00-\uDFFF])/g,function(a,b,c){return b%2?c:a}).replace(/(\^+)2([\uD800-\uDBFF])\uDC00/g,function(a,b,c){return b%2?c:a}).replace(/(\^+)([A-Z])/g,function(a,b,c){return b%2?c:a}).replace(/(\^+)0/g,function(a,b){return b%2?"\0":a}).replace(/\^\^/g,"^")}function k(a){return h("S"+d(a))}function l(a){return h("I"+d(a))}function m(a){return"I"+d(a)}function n(a){return g(a).replace(/\^/g,"^^")}function o(a,b){return b[Symbol.hasInstance](a)}function p(a){return a&&"object"===(void 0===a?"undefined":E(a))}function q(a){return p(a)&&"function"==typeof a.getDate}function r(a){return p(a)&&"number"==typeof a.size&&"function"==typeof a.slice&&!("lastModified"in a)}function s(a){return p(a)&&"string"==typeof a.flags&&"function"==typeof a.exec}function t(a){return p(a)&&"string"==typeof a.name&&"function"==typeof a.slice&&"lastModified"in a}function u(a){return p(a)&&"number"==typeof a.byteLength&&("function"==typeof a.slice||"function"==typeof a.getFloat64)}function v(a){return p(a)&&"function"==typeof a[Symbol.iterator]}function w(a,b){b="string"==typeof b?[b]:b,b.forEach(function(b){Object.defineProperty(a,"__"+b,{enumerable:!1,configurable:!1,writable:!0}),Object.defineProperty(a,b,{enumerable:!0,configurable:!0,get:function(){return this["__"+b]}})})}function x(a){var b=G.default.UnicodeIDStart||"[$A-Z_a-z]",c=G.default.UnicodeIDContinue||"[$0-9A-Z_a-z]",d="(?:"+b+"|[$_]|\\\\"+H+")",e="(?:"+c+"|[$_]|\\\\"+H+"|\\u200C|\\u200D)";return new RegExp("^"+d+e+"*$").test(a)}function y(a){return"string"==typeof a&&(""===a||x(a)||a.split(".").every(x))}function z(a){return y(a)||Array.isArray(a)&&a.length&&Array.apply(null,a).every(function(a){return y(a)})}function A(a,b){a=Math.floor(Number(a));var c=void 0,d=void 0;switch(b){case"unsigned long long":c=9007199254740991,d=0;break;case"unsigned long":c=4294967295,d=0;break;default:throw new Error("Unrecognized type supplied to enforceRange")}if(isNaN(a)||!isFinite(a)||a>c||a=0;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c--;c)a.unshift("..");return a}function d(a,b){if(a.filter)return a.filter(b);for(var c=[],d=0;d=-1&&!e;f--){var g=f>=0?arguments[f]:a.cwd();if("string"!=typeof g)throw new TypeError("Arguments to path.resolve must be strings");g&&(c=g+"/"+c,e="/"===g.charAt(0))}return c=b(d(c.split("/"),function(a){return!!a}),!e).join("/"),(e?"/":"")+c||"."},c.normalize=function(a){var e=c.isAbsolute(a),f="/"===g(a,-1);return a=b(d(a.split("/"),function(a){return!!a}),!e).join("/"),a||e||(a="."),a&&f&&(a+="/"),(e?"/":"")+a},c.isAbsolute=function(a){return"/"===a.charAt(0)},c.join=function(){var a=Array.prototype.slice.call(arguments,0);return c.normalize(d(a,function(a,b){if("string"!=typeof a)throw new TypeError("Arguments to path.join must be strings");return a}).join("/"))},c.relative=function(a,b){function d(a){for(var b=0;b=0&&""===a[c];c--);return b>c?[]:a.slice(b,c-b+1)}a=c.resolve(a).substr(1),b=c.resolve(b).substr(1);for(var e=d(a.split("/")),f=d(b.split("/")),g=Math.min(e.length,f.length),h=g,i=0;i1)for(var c=1;c=0;--d){var e=this.tryEntries[d],f=e.completion;if("root"===e.tryLoc)return b("end");if(e.tryLoc<=this.prev){var g=t.call(e,"catchLoc"),h=t.call(e,"finallyLoc");if(g&&h){if(this.prev=0;--c){var d=this.tryEntries[c];if(d.tryLoc<=this.prev&&t.call(d,"finallyLoc")&&this.prev=0;--b){var c=this.tryEntries[b];if(c.finallyLoc===a)return this.complete(c.completion,c.afterLoc),n(c),D}},catch:function(a){for(var b=this.tryEntries.length-1;b>=0;--b){var c=this.tryEntries[b];if(c.tryLoc===a){var d=c.completion;if("throw"===d.type){var e=d.arg;n(c)}return e}}throw new Error("illegal catch attempt")},delegateYield:function(a,b,c){return this.delegate={iterator:p(a),resultName:b,nextLoc:c},"next"===this.method&&(this.arg=r),D}}}("object"==typeof c?c:"object"==typeof window?window:"object"==typeof self?self:this)}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:300}],302:[function(a,b,c){function d(a){return a&&"function"==typeof a.then}function e(a,b){a.then(null,b)}function f(a){function b(a,b){j.v=a,j.s=b,j.c[b].forEach(function(b){b(a)}),j.c[b].length&&(j.c=null)}function c(a){j.c&&(d(a)?e(a.then(c),f):b(a,h))}function f(a){j.c&&(d(a)?e(a.then(f),f):b(a,i))}var j=this;j.v=0,j.s=g,j.c=[[],[]];try{a(c,f)}catch(a){f(a)}}var g=2,h=0,i=1,j=f.prototype;j.then=function(a,b){var c=this;return new f(function(d,e){function f(){try{d(a?a(c.v):c.v)}catch(a){g(a)}}var g="function"==typeof b?b:e;c.s===h?f():c.s===i?g(c.v):(c.c[h].push(f),c.c[i].push(g))})},j.catch=function(a){var b=this;return new f(function(c,d){function e(){try{c(a(b.v))}catch(a){d(a)}}b.s===i?e():b.s===h?c(b.v):(b.c[i].push(e),b.c[h].push(c))})},f.all=function(a){return new f(function(b,c,f){f=a.length;var g=[];if(!f)return void b(g);a.forEach(function(h,i){d(h)?e(h.then(function(a){g[i]=a,--f||b(g)}),c):(g[i]=h,--f||b(a))})})},f.race=function(a){var b=!1;return new f(function(c,f){a.some(function(a,g){if(!d(a))return c(a),b=!0,!0;e(a.then(function(a){b||(c(a),b=!0)}),f)})})},f.resolve=function(a){return new f(function(b,c){b(a)})},f.reject=function(a){return new f(function(b,c){c(a)})},b.exports=f},{}],303:[function(a,b,c){b.exports=[{sparseArrays:{testPlainObjects:!0,test:function(a){return Array.isArray(a)},replace:function(a,b){return b.iterateUnsetNumeric=!0,a}}},{sparseUndefined:{test:function(a,b){return void 0===a&&b.ownKeys===!1},replace:function(a){return null},revive:function(a){}}}]},{}],304:[function(a,b,c){b.exports=a("./structured-cloning").concat({checkDataCloneException:[function(a){var b={}.toString.call(a).slice(8,-1);if(["symbol","function"].includes(typeof a)||["Arguments","Module","Error","Promise","WeakMap","WeakSet"].includes(b)||a===Object.prototype||("Blob"===b||"File"===b)&&a.isClosed||a&&"object"==typeof a&&"number"==typeof a.nodeType&&"function"==typeof a.insertBefore)throw new DOMException("The object cannot be cloned.","DataCloneError");return!1}]})},{"./structured-cloning":305}],305:[function(a,b,c){b.exports=[a("../types/user-object"),a("../presets/undefined"),a("../types/primitive-objects"),a("../types/special-numbers"),a("../types/date"),a("../types/regexp"),"function"==typeof Map&&a("../types/map"),"function"==typeof Set&&a("../types/set"),"function"==typeof ArrayBuffer&&a("../types/arraybuffer"),"function"==typeof Uint8Array&&a("../types/typed-arrays"),"function"==typeof DataView&&a("../types/dataview"),"undefined"!=typeof Intl&&a("../types/intl-types"),a("../types/imagedata"),a("../types/imagebitmap"),a("../types/file"),a("../types/filelist"),a("../types/blob")]},{"../presets/undefined":306,"../types/arraybuffer":307,"../types/blob":308,"../types/dataview":309,"../types/date":310,"../types/file":311,"../types/filelist":312,"../types/imagebitmap":313,"../types/imagedata":314,"../types/intl-types":315,"../types/map":316,"../types/primitive-objects":317,"../types/regexp":318,"../types/set":319,"../types/special-numbers":320,"../types/typed-arrays":321,"../types/user-object":323}],306:[function(a,b,c){b.exports=[a("../presets/sparse-undefined"),a("../types/undefined")]},{"../presets/sparse-undefined":303,"../types/undefined":322}],307:[function(a,b,c){var d=a("typeson"),e=a("base64-arraybuffer");c.ArrayBuffer=[function(a){return"ArrayBuffer"===d.toStringTag(a)},function(a){return e.encode(a)},function(a){return e.decode(a)}]},{"base64-arraybuffer":2,typeson:325}],308:[function(a,b,c){var d=a("typeson");c.Blob={test:function(a){return"Blob"===d.toStringTag(a)},replace:function(a){var b=new XMLHttpRequest;if(b.open("GET",URL.createObjectURL(a),!1),200!==b.status&&0!==b.status)throw new Error("Bad Blob access: "+b.status);return b.send(),{type:a.type,stringContents:b.responseText}},revive:function(a){return new Blob([a.stringContents],{type:a.type})},replaceAsync:function(a){return new d.Promise(function(b,c){if(a.isClosed)return void c(new Error("The Blob is closed"));var d=new FileReader;d.addEventListener("load",function(){b({type:a.type,stringContents:d.result})}),d.addEventListener("error",function(){c(d.error)}),d.readAsText(a)})}}},{typeson:325}],309:[function(a,b,c){var d=a("typeson"),e=a("base64-arraybuffer");c.DataView=[function(a){return"DataView"===d.toStringTag(a)},function(a){return{buffer:e.encode(a.buffer),byteOffset:a.byteOffset,byteLength:a.byteLength}},function(a){return new DataView(e.decode(a.buffer),a.byteOffset,a.byteLength)}]},{"base64-arraybuffer":2,typeson:325}],310:[function(a,b,c){var d=a("typeson");c.Date=[function(a){return"Date"===d.toStringTag(a)},function(a){return a.getTime()},function(a){return new Date(a)}]},{typeson:325}],311:[function(a,b,c){var d=a("typeson");c.File={test:function(a){return"File"===d.toStringTag(a)},replace:function(a){var b=new XMLHttpRequest;if(b.open("GET",URL.createObjectURL(a),!1),200!==b.status&&0!==b.status)throw new Error("Bad Blob access: "+b.status);return b.send(),{type:a.type,stringContents:b.responseText,name:a.name,lastModified:a.lastModified}},revive:function(a){return new File([a.stringContents],a.name,{type:a.type,lastModified:a.lastModified})},replaceAsync:function(a){return new d.Promise(function(b,c){if(a.isClosed)return void c(new Error("The File is closed"));var d=new FileReader;d.addEventListener("load",function(){b({type:a.type,stringContents:d.result,name:a.name,lastModified:a.lastModified})}),d.addEventListener("error",function(){c(d.error)}),d.readAsText(a)})}}},{typeson:325}],312:[function(a,b,c){var d=a("typeson");c.File=a("./file").File,c.FileList={test:function(a){return"FileList"===d.toStringTag(a)},replace:function(a){for(var b=[],c=0;c0?"Infinity":"-Infinity"},function(a){return{NaN:0/0,Infinity:1/0,"-Infinity":-1/0}[a]}]},{}],321:[function(a,b,c){(function(b){var d=a("typeson"),e=a("base64-arraybuffer"),f="undefined"==typeof self?b:self;["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"].forEach(function(a){var b=f[a];b&&(c[a]=[function(b){return d.toStringTag(b)===a},function(a){return e.encode(a.buffer,a.byteOffset,a.byteLength)},function(a){return new b(e.decode(a))}])})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-arraybuffer":2,typeson:325}],322:[function(a,b,c){var d=a("typeson");b.exports={undefined:[function(a,b){return void 0===a&&(b.ownKeys||!("ownKeys"in b))},function(a){return null},function(a){return new d.Undefined}]}},{typeson:325}],323:[function(a,b,c){var d=a("typeson");c.userObjects=[function(a,b){return d.isUserObject(a)},function(a){return Object.assign({},a)},function(a){return a}]},{typeson:325}],324:[function(a,b,c){b.exports=Array.from||function(a){for(var b=[],c=a.next();!c.done;c=a.next())b.push(c.value);return b}},{}],325:[function(a,b,c){function d(a,b){return j.isObject(a)&&"function"==typeof a.then&&(!b||"function"==typeof a.catch)}function e(a){return q.call(a).slice(8,-1)}function f(a,b){if(!a||"object"!=typeof a)return!1;var c=r(a);if(!c)return!1;var d=s.call(c,"constructor")&&c.constructor;return"function"!=typeof d?null===b:"function"==typeof d&&null!==b&&t.call(d)===t.call(b)}function g(a){return!(!a||"Object"!==e(a))&&(!r(a)||f(a,Object))}function h(a){if(!a||"Object"!==e(a))return!1;var b=r(a);return!b||(f(a,Object)||h(b))}function i(a){return a&&"object"==typeof a}function j(a){var b=[],c=[],e={},h=this.types={},j=this.stringify=function(b,c,d,e){e=Object.assign({},a,e,{stringification:!0});var f=r(b,null,e);return p(f)?JSON.stringify(f[0],c,d):f.then(function(a){return JSON.stringify(a,c,d)})};this.stringifySync=function(a,b,c,d){return j(a,b,c,Object.assign({},{throwOnBadSyncType:!0},d,{sync:!0}))},this.stringifyAsync=function(a,b,c,d){return j(a,b,c,Object.assign({},{throwOnBadSyncType:!0},d,{sync:!1}))};var q=this.parse=function(b,c,d){return d=Object.assign({},a,d,{parse:!0}),s(JSON.parse(b,c),d)};this.parseSync=function(a,b,c){return q(a,b,Object.assign({},{throwOnBadSyncType:!0},c,{sync:!0}))},this.parseAsync=function(a,b,c){return q(a,b,Object.assign({},{throwOnBadSyncType:!0},c,{sync:!1}))};var r=this.encapsulate=function(d,h,j){function k(a){return o(s).length?a&&g(a)&&!a.hasOwnProperty("$types")?a.$types=s:a={$:a,$types:{$:s}}:i(a)&&a.hasOwnProperty("$types")&&(a={$:a,$types:!0}),a}function l(a,b){return Promise.all(b.map(function(a){return a[1].p})).then(function(c){return Promise.all(c.map(function(c){var d=[],e=b.splice(0,1)[0],g=e[0],h=e[2],i=e[3],j=e[4],k=e[5],o=m(g,c,h,i,d),p=f(o,n);return g&&p?o.p.then(function(b){return j[k]=b,l(a,d)}):(g?j[k]=o:a=p?o.p:o,l(a,d))}))}).then(function(){return a})}function m(a,c,d,e,h){var i=typeof c;if(i in{string:1,boolean:1,number:1,undefined:1})return void 0===c||"number"===i&&(isNaN(c)||c===-1/0||1/0===c)?q(a,c,e,h):c;if(null===c)return c;if(d&&!e.iterateIn&&!e.iterateUnsetNumeric){var j=t.indexOf(c);if(!(j<0))return s[a]="#","#"+u[j];d===!0&&(t.push(c),u.push(a))}var k=g(c),l=p(c),r=(k||l)&&(!b.length||e.replaced)||e.iterateIn?c:q(a,c,e,h,k||l);if(r!==c)return r;var v;if(l||"array"===e.iterateIn)v=new Array(c.length);else{if(!k&&"object"!==e.iterateIn)return""===a&&f(c,n)?(h.push([a,c,d,e]),c):c;v={}}if(e.iterateIn)for(var w in c){var x={ownKeys:c.hasOwnProperty(w)},y=a+(a?".":"")+w,z=m(y,c[w],!!d,x,h);f(z,n)?h.push([y,z,!!d,x,v,w]):void 0!==z&&(v[w]=z)}else o(c).forEach(function(b){var e=a+(a?".":"")+b,g=m(e,c[b],!!d,{ownKeys:!0},h);f(g,n)?h.push([e,g,!!d,{ownKeys:!0},v,b]):void 0!==g&&(v[b]=g)});if(e.iterateUnsetNumeric)for(var A=0,B=c.length;A=this.length||!Number.isInteger(a)?null:this._items[a]},clone:function(){var a=h.__createInstance();return a._items=this._items.slice(),a._length=this.length,a.addIndexes(),a},addIndexes:function(){for(var a=0;a":"<";void 0!==b&&(k.push("AND",j,n+"= ?"),l.push(v.encode(b))),void 0!==a?(k.push("AND",i,n+"= ?"),l.push(v.encode(a))):g&&void 0!==h.__key&&(k.push("AND",i,n+" ?"),l.push(v.encode(h.__key))),h.__count||(k.push("ORDER BY",i,m),h.__unique||"key"===h.__keyColumnName||k.push(",",j,m),!h.__unique&&h.__indexSource&&k.push(",",r.sqlQuote(h.__valueColumnName),m),k.push("LIMIT",f)),k=k.join(" "),B.default.DEBUG&&console.log(k,l),c.executeSql(k,l,function(a,b){h.__count?d(void 0,b.rows.length,void 0):b.rows.length>1?(h.__prefetchedIndex=0,h.__prefetchedData=b.rows,B.default.DEBUG&&console.log("Preloaded "+h.__prefetchedData.length+" records for cursor"),h.__decode(b.rows.item(0),d)):1===b.rows.length?h.__decode(b.rows.item(0),d):(B.default.DEBUG&&console.log("Reached end of cursors"),d(void 0,void 0,void 0))},function(a,b){B.default.DEBUG&&console.log("Could not execute Cursor.continue",k,l),e(b)})},i.prototype.__findMultiEntry=function(a,b,c,d,e){var f=this;if(f.__prefetchedData&&f.__prefetchedData.length===f.__prefetchedIndex)return B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),void d(void 0,void 0,void 0);var g=r.sqlQuote(f.__keyColumnName),h=["SELECT * FROM",r.escapeStoreNameForSQL(f.__store.__currentName)],i=[];h.push("WHERE",g,"NOT NULL"),f.__range&&void 0!==f.__range.lower&&Array.isArray(f.__range.upper)&&0===f.__range.upper.indexOf(f.__range.lower)&&(h.push("AND",g,"LIKE ? ESCAPE '^'"),i.push("%"+r.sqlLIKEEscape(f.__range.__lowerCached.slice(0,-1))+"%"));var j=f.__sqlDirection,k="ASC"===j?">":"<",l=r.sqlQuote("key");void 0!==b&&(h.push("AND",l,k+"= ?"),i.push(v.encode(b))),void 0!==a?(h.push("AND",g,k+"= ?"),i.push(v.encode(a))):void 0!==f.__key&&(h.push("AND",g,k+" ?"),i.push(v.encode(f.__key))),f.__count||(h.push("ORDER BY",g,j),f.__unique||"key"===f.__keyColumnName||h.push(",",r.sqlQuote("key"),j),!f.__unique&&f.__indexSource&&h.push(",",r.sqlQuote(f.__valueColumnName),j)),h=h.join(" "),B.default.DEBUG&&console.log(h,i),c.executeSql(h,i,function(a,b){if(b.rows.length>0){if(f.__count){for(var c=0,e=0;eb.matchingKey.replace("[","z")?q?-1:1:a.keyb.key?"prev"===f.direction?-1:1:0}),i.length>1?(f.__prefetchedIndex=0,f.__prefetchedData={data:i,length:i.length,item:function(a){return this.data[a]}},B.default.DEBUG&&console.log("Preloaded "+f.__prefetchedData.length+" records for multiEntry cursor"),f.__decode(i[0],d)):1===i.length?(B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),f.__decode(i[0],d)):(B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),d(void 0,void 0,void 0))}else B.default.DEBUG&&console.log("Reached end of multiEntry cursor"),d(void 0,void 0,void 0)},function(a,b){B.default.DEBUG&&console.log("Could not execute Cursor.continue",h,i),e(b)})},i.prototype.__onsuccess=function(a){var b=this;return function(c,d,e){if(b.__count)a(d,b.__req);else{void 0!==c&&(b.__gotValue=!0),b.__key=void 0===c?null:c,b.__primaryKey=void 0===e?null:e,b.__value=void 0===d?null:d;a(void 0===c?null:b,b.__req)}}},i.prototype.__decode=function(a,b){var c=this;if(c.__multiEntryIndex&&c.__unique){if(c.__matchedKeys||(c.__matchedKeys={}),c.__matchedKeys[a.matchingKey])return void b(void 0,void 0,void 0);c.__matchedKeys[a.matchingKey]=!0}var d=r.unescapeSQLiteResponse(c.__multiEntryIndex?a.matchingKey:a[c.__keyColumnName]),e=r.unescapeSQLiteResponse(a[c.__valueColumnName]),f=r.unescapeSQLiteResponse(a.key);b(v.decode(d,c.__multiEntryIndex),c.__valueDecoder.decode(e),v.decode(f),d)},i.prototype.__sourceOrEffectiveObjStoreDeleted=function(){m.default.__invalidStateIfDeleted(this.__store,"The cursor's effective object store has been deleted"),this.__indexSource&&z.default.__invalidStateIfDeleted(this.source,"The cursor's index source has been deleted")},i.prototype.__invalidateCache=function(){this.__prefetchedData=null},i.prototype.__continue=function(a,b){var c=this,d=void 0!==c.__advanceCount;if(t.default.__assertActive(c.__store.transaction),c.__sourceOrEffectiveObjStoreDeleted(),!c.__gotValue&&!b)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");if(void 0!==a){v.convertValueToKeyRethrowingAndIfInvalid(a);var e=(0,p.cmp)(a,c.key);if(0===e||c.direction.includes("next")&&e===-1||c.direction.includes("prev")&&1===e)throw(0,n.createDOMException)("DataError","Cannot "+(d?"advance":"continue")+" the cursor in an unexpected direction")}this.__continueFinish(a,void 0,d)},i.prototype.__continueFinish=function(a,b,c){var d=this,e=d.__advanceCount||B.default.cursorPreloadPackSize||100;d.__gotValue=!1,d.__req.__readyState="pending",d.__store.transaction.__pushToQueue(d.__req,function f(g,h,i,j,k){function l(a,b,e){if(c){if(d.__advanceCount>=2&&void 0!==a)return d.__advanceCount--,d.__key=a,d.__continue(void 0,!0),void k();d.__advanceCount=void 0}d.__onsuccess(i)(a,b,e)}if(d.__prefetchedData&&++d.__prefetchedIndex0||0===m&&(d.__unique||void 0===b||(0,p.cmp)(k,b)>=0))return void l(c,e,k);f(g,h,i,j)}()});d.__find(a,b,g,l,function(){d.__advanceCount=void 0,j.apply(void 0,arguments)},e)})},i.prototype.continue=function(){this.__continue(arguments[0])},i.prototype.continuePrimaryKey=function(a,b){function c(){d.__continueFinish(a,b,!1)}var d=this;if(t.default.__assertActive(d.__store.transaction),d.__sourceOrEffectiveObjStoreDeleted(),!d.__indexSource)throw(0,n.createDOMException)("InvalidAccessError","`continuePrimaryKey` may only be called on an index source.");if(!["next","prev"].includes(d.direction))throw(0,n.createDOMException)("InvalidAccessError","`continuePrimaryKey` may not be called with unique cursors.");if(!d.__gotValue)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");v.convertValueToKeyRethrowingAndIfInvalid(a),v.convertValueToKeyRethrowingAndIfInvalid(b);var e=(0,p.cmp)(a,d.key);if("next"===d.direction&&e===-1||"prev"===d.direction&&1===e)throw(0,n.createDOMException)("DataError","Cannot continue the cursor in an unexpected direction");0===e?x.encode(b,function(a){x.encode(d.primaryKey,function(b){if(a===b||"next"===d.direction&&ab)throw(0,n.createDOMException)("DataError","Cannot continue the cursor in an unexpected direction");c()})}):c()},i.prototype.advance=function(a){var b=this;if(0===(a=r.enforceRange(a,"unsigned long")))throw new TypeError("Calling advance() with count argument 0");b.__gotValue&&(b.__advanceCount=a),b.__continue()},i.prototype.update=function(a){function b(a){m.default.__storingRecordObjectStore(d,c.__store,a,!1,e)}var c=this;if(!arguments.length)throw new TypeError("A value must be passed to update()");if(t.default.__assertActive(c.__store.transaction),c.__store.transaction.__assertWritable(),c.__sourceOrEffectiveObjStoreDeleted(),!c.__gotValue)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");if(c.__keyOnly)throw(0,n.createDOMException)("InvalidStateError","This cursor method cannot be called when the key only flag has been set.");var d=c.__store.transaction.__createRequest(c),e=c.primaryKey;if(null!==c.__store.keyPath){var f=c.__store.__validateKeyAndValueAndCloneValue(a,void 0,!0),g=j(f,2),h=g[0],i=g[1];if(0!==(0,p.cmp)(c.primaryKey,h))throw(0,n.createDOMException)("DataError","The key of the supplied value to `update` is not equal to the cursor's effective key");b(i)}else{b(x.clone(a))}return d},i.prototype.delete=function(){var a=this;if(t.default.__assertActive(a.__store.transaction),a.__store.transaction.__assertWritable(),a.__sourceOrEffectiveObjStoreDeleted(),!a.__gotValue)throw(0,n.createDOMException)("InvalidStateError","The cursor is being iterated or has iterated past its end.");if(a.__keyOnly)throw(0,n.createDOMException)("InvalidStateError","This cursor method cannot be called when the key only flag has been set.");return this.__store.transaction.__addToTransactionQueue(function(b,c,d,e){a.__find(void 0,void 0,b,function(c,f,g){var h="DELETE FROM "+r.escapeStoreNameForSQL(a.__store.__currentName)+' WHERE "key" = ?';B.default.DEBUG&&console.log(h,c,g),b.executeSql(h,[r.escapeSQLiteStatement(v.encode(g))],function(b,f){1===f.rowsAffected?(a.__store.__cursors.forEach(function(a){a.__invalidateCache()}),d(void 0)):e("No rows with key found"+c)},function(a,b){e(b)})},e)},void 0,a)},i.prototype[Symbol.toStringTag]="IDBCursorPrototype",["source","direction","key","primaryKey"].forEach(function(a){Object.defineProperty(i.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),Object.defineProperty(i,"prototype",{writable:!1});var D=function(a){function b(){return f(this,b),g(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return h(b,a),b}(i),E=D;D.__createInstance=function(){function a(){var a;(a=i.__super).call.apply(a,[this].concat(c)),this[Symbol.toStringTag]="IDBCursorWithValue",r.defineReadonlyProperties(this,"value")}for(var b=arguments.length,c=Array(b),d=0;dd?1:c===d?0:-1;if(A.default.DEBUG){var f=u.decode(c),g=u.decode(d);"object"===(void 0===a?"undefined":j(a))&&(a=JSON.stringify(a),f=JSON.stringify(f)),"object"===(void 0===b?"undefined":j(b))&&(b=JSON.stringify(b),g=JSON.stringify(g)),f!==a&&console.warn(a+" was incorrectly encoded as "+f),g!==b&&console.warn(b+" was incorrectly encoded as "+g)}return e}Object.defineProperty(c,"__esModule",{value:!0}),c.shimIndexedDB=c.cmp=c.IDBFactory=void 0;var j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},k=a("./Event"),l=a("./IDBVersionChangeEvent"),m=e(l),n=a("./DOMException"),o=a("./IDBRequest"),p=a("./DOMStringList"),q=e(p),r=a("./util"),s=d(r),t=a("./Key"),u=d(t),v=a("./IDBTransaction"),w=e(v),x=a("./IDBDatabase"),y=e(x),z=a("./CFG"),A=e(z),B=void 0,C=h;h.__createInstance=function(){function a(){this[Symbol.toStringTag]="IDBFactory",this.modules={Event:"undefined"!=typeof Event?Event:k.ShimEvent,Error:Error,ShimEvent:k.ShimEvent,ShimCustomEvent:k.ShimCustomEvent,ShimEventTarget:k.ShimEventTarget,ShimDOMException:n.ShimDOMException,ShimDOMStringList:q.default,IDBFactory:C},this.utils={createDOMException:n.createDOMException},this.__connections=[]}return a.prototype=C.prototype,new a},h.prototype.open=function(a){function b(a,b){if(!j){b=b?(0,n.webSQLErrback)(b):a,j=!0;var c=(0,k.createEvent)("error",b,{bubbles:!0,cancelable:!0});i.__readyState="done",i.__error=b,i.__result=void 0,i.dispatchEvent(c)}}function c(c){var f=A.default.win.openDatabase(p,1,a,A.default.DEFAULT_DB_SIZE);if(i.__readyState="done",void 0===e&&(e=c||1),c>e){return void b((0,n.createDOMException)("VersionError","An attempt was made to open a database using a lower version than the existing version.",e))}f.transaction(function(g){g.executeSql("CREATE TABLE IF NOT EXISTS __sys__ (name VARCHAR(255), keyPath VARCHAR(255), autoInc BOOLEAN, indexList BLOB, currNum INTEGER)",[],function(){g.executeSql('SELECT "name", "keyPath", "autoInc", "indexList" FROM __sys__',[],function(g,h){if(i.__result=y.default.__createInstance(f,a,c,e,h),d.__connections.push(i.result),c=d.length?a.executeSql("DROP TABLE IF EXISTS __sys__",[],function(){f()},c):a.executeSql("DROP TABLE "+s.escapeStoreNameForSQL(s.unescapeSQLiteResponse(d.item(e).name)),[],function(){b(e+1)},function(){b(e+1)})}(0)},function(a){f()})})},c)},c,null,function(a,b,c,d,e){return!(!a.readOnly&&!b)||(p=function(a,b){a?d(a,b):e(b)},!1)})},c)},c)},c),i},h.prototype.cmp=function(a,b){if(!(this instanceof h))throw new TypeError("Illegal invocation");if(arguments.length<2)throw new TypeError("You must provide two keys to be compared");return u.convertValueToKeyRethrowingAndIfInvalid(a),u.convertValueToKeyRethrowingAndIfInvalid(b),i(a,b)},h.prototype.webkitGetDatabaseNames=function(){function a(a,d){if(!b){d=d?(0,n.webSQLErrback)(d):a,b=!0;var e=(0,k.createEvent)("error",d,{bubbles:!0,cancelable:!0});c.__readyState="done",c.__error=d,c.__result=void 0,c.dispatchEvent(e)}}if(!(this instanceof h))throw new TypeError("Illegal invocation");if(f())throw(0,n.createDOMException)("SecurityError","Cannot get IndexedDB database names from an opaque origin.");var b=!1,c=o.IDBRequest.__createInstance();return g(function(){B.readTransaction(function(b){b.executeSql('SELECT "name" FROM dbVersions',[],function(a,b){for(var d=q.default.__createInstance(),e=0;ed.__connections.length-1)throw new TypeError("If providing an argument, __forceClose must be called with a numeric index to indicate a specific connection to lose");c(d.__connections[a])}},h.prototype[Symbol.toStringTag]="IDBFactoryPrototype",Object.defineProperty(h,"prototype",{writable:!1});var D=h.__createInstance();c.IDBFactory=h,c.cmp=i,c.shimIndexedDB=D},{"./CFG":327,"./DOMException":328,"./DOMStringList":329,"./Event":330,"./IDBDatabase":332,"./IDBRequest":337,"./IDBTransaction":338,"./IDBVersionChangeEvent":339,"./Key":340,"./util":345,fs:3,path:299}],334:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function f(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b0&&h.push("OR"),h.push(m.escapeIndexNameForSQL(b.name),"LIKE ? ESCAPE '^' "),i.push("%"+m.sqlLIKEEscape(o.encode(a,b.multiEntry))+"%")}),h.push(")");else if(b.multiEntry)h.push("AND",m.escapeIndexNameForSQL(b.name),"LIKE ? ESCAPE '^'"),i.push("%"+m.sqlLIKEEscape(o.encode(c,b.multiEntry))+"%");else{var j=(0,p.convertValueToKeyRange)(c,a);(0,p.setSQLForKeyRange)(j,m.escapeIndexNameForSQL(b.name),h,i,!0,!1)}return[a,b,f,c,d,e,h,i]}Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.IDBIndex=c.executeFetchIndexData=c.buildFetchIndexDataSQL=void 0;var j=a("./DOMException"),k=a("./IDBCursor"),l=a("./util"),m=e(l),n=a("./Key"),o=e(n),p=a("./IDBKeyRange"),q=a("./IDBTransaction"),r=d(q),s=a("./Sca"),t=e(s),u=a("./CFG"),v=d(u),w=a("./IDBObjectStore"),x=d(w),y=["objectStore","keyPath","multiEntry","unique"],z=g;g.__createInstance=function(a,b){function c(){var c=this;c[Symbol.toStringTag]="IDBIndex",m.defineReadonlyProperties(c,y),c.__objectStore=a,c.__name=c.__originalName=b.columnName,c.__keyPath=Array.isArray(b.keyPath)?b.keyPath.slice():b.keyPath;var d=b.optionalParams;c.__multiEntry=!(!d||!d.multiEntry),c.__unique=!(!d||!d.unique),c.__deleted=!!b.__deleted,c.__objectStore.__cursors=b.cursors||[],Object.defineProperty(c,"__currentName",{get:function(){return"__pendingName"in c?c.__pendingName:c.name}}),Object.defineProperty(c,"name",{enumerable:!1,configurable:!1,get:function(){return this.__name},set:function(b){var c=this;b=m.convertToDOMString(b);var d=c.name;if(r.default.__assertVersionChange(c.objectStore.transaction),r.default.__assertActive(c.objectStore.transaction),z.__invalidStateIfDeleted(c),x.default.__invalidStateIfDeleted(c),b!==d){if(c.objectStore.__indexes[b]&&!c.objectStore.__indexes[b].__deleted&&!c.objectStore.__indexes[b].__pendingDelete)throw(0,j.createDOMException)("ConstraintError",'Index "'+b+'" already exists on '+c.objectStore.__currentName);c.__name=b;var e=c.objectStore;delete e.__indexes[d],e.__indexes[b]=c,e.indexNames.splice(e.indexNames.indexOf(d),1,b);var f=e.transaction.__storeHandles[e.name],g=f.__indexHandles[d];g.__name=b,f.__indexHandles[b]=g,c.__pendingName=d;var h=[["key","BLOB "+(e.autoIncrement?"UNIQUE, inc INTEGER PRIMARY KEY AUTOINCREMENT":"PRIMARY KEY")],["value","BLOB"]].concat(Array.from(e.indexNames).filter(function(a){return a!==b}).map(function(a){return[m.escapeIndexNameForSQL(a),"BLOB"]}));c.__renameIndex(e,d,b,h,function(b,c){z.__updateIndexList(a,b,function(a){delete f.__pendingName,c(a)})})}}})}return c.prototype=z.prototype,new c},g.__invalidStateIfDeleted=function(a,b){if(a.__deleted||a.__pendingDelete||a.__pendingCreate&&a.objectStore.transaction&&a.objectStore.transaction.__errored)throw(0,j.createDOMException)("InvalidStateError",b||"This index has been deleted")},g.__clone=function(a,b){var c=g.__createInstance(b,{columnName:a.name,keyPath:a.keyPath,optionalParams:{multiEntry:a.multiEntry,unique:a.unique}});return["__pendingCreate","__pendingDelete","__deleted","__originalName","__recreated"].forEach(function(b){c[b]=a[b]}),c},g.__createIndex=function(a,b){var c=b.name,d=a.__currentName,e=a.__indexes[c];b.__pendingCreate=!0,a.indexNames.push(c),a.__indexes[c]=b;var f=a.__indexHandles[c];(!f||b.__pendingDelete||b.__deleted||f.__pendingDelete||f.__deleted)&&(f=a.__indexHandles[c]=g.__clone(b,a)),a.transaction.__addNonRequestToTransactionQueue(function(h,i,k,l){function n(a,b){l((0,j.createDOMException)("UnknownError",'Could not create index "'+c+'"'+b.code+"::"+b.message,b))}function p(e){g.__updateIndexList(a,e,function(){e.executeSql('SELECT "key", "value" FROM '+m.escapeStoreNameForSQL(d),[],function(e,g){function h(i){if(i3&&void 0!==arguments[3]?arguments[3]:[],e=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,f=a.__currentName,g=m.escapeStoreNameForSQL(f),h=m.escapeStoreNameForSQL("tmp_"+f),i=d.map(function(a){return a[0]}),j=d.map(function(a){return a.join(" ")}),k=j.length?j.join(", ")+", ":"",l=i.length?i.join(", ")+", ":"";a.transaction.__addNonRequestToTransactionQueue(function(a,d,f,i){var j="ALTER TABLE "+g+" RENAME TO "+h;a.executeSql(j,[],function(a,d){var j="CREATE TABLE "+g+"("+k+m.escapeIndexNameForSQL(c)+" BLOB)";a.executeSql(j,[],function(a,d){var j="INSERT INTO "+g+"("+l+m.escapeIndexNameForSQL(c)+") SELECT "+l+m.escapeIndexNameForSQL(b)+" FROM "+h;a.executeSql(j,[],function(a,b){var c="DROP TABLE "+h;a.executeSql(c,[],function(a,b){if(e)return void e(a,f);f()},function(a,b){i(b)})},function(a,b){i(b)})})},function(a,b){i(b)})})},Object.defineProperty(g,Symbol.hasInstance,{value:function(a){return m.isObj(a)&&"function"==typeof a.openCursor&&"boolean"==typeof a.multiEntry}}),y.forEach(function(a){Object.defineProperty(g.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),Object.defineProperty(g.prototype,"name",{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")},set:function(a){throw new TypeError("Illegal invocation")}}),g.prototype[Symbol.toStringTag]="IDBIndexPrototype",Object.defineProperty(g,"prototype",{writable:!1}),c.buildFetchIndexDataSQL=i,c.executeFetchIndexData=h,c.IDBIndex=g,c.default=g},{"./CFG":327,"./DOMException":328,"./IDBCursor":331,"./IDBKeyRange":335,"./IDBObjectStore":336,"./IDBTransaction":338,"./Key":340,"./Sca":341,"./util":345}],335:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function e(){throw new TypeError("Illegal constructor")}function f(a,b,c,d,e,f){if(a&&(void 0!==a.lower||void 0!==a.upper)){e&&c.push("AND");var g=void 0,h=void 0,i=void 0!==a.lower,k=void 0!==a.upper;if(i&&(g=f?a.__lowerCached:j.encode(a.lower)),k&&(h=f?a.__upperCached:j.encode(a.upper)),i){if(d.push(l.escapeSQLiteStatement(g)),k&&g===h&&!a.lowerOpen&&!a.upperOpen)return void c.push(b,"=","?");c.push(b,a.lowerOpen?">":">=","?")}i&&k&&c.push("AND"),k&&(c.push(b,a.upperOpen?"<":"<=","?"),d.push(l.escapeSQLiteStatement(h)))}}function g(a,b){if(l.instanceOf(a,e))return"[object IDBKeyRange]"!==!a.toString()?e.__createInstance(a.lower,a.upper,a.lowerOpen,a.upperOpen):a;{if(null!=a)return j.convertValueToKeyRethrowingAndIfInvalid(a),e.only(a);if(b)throw(0,h.createDOMException)("DataError","No key or range was specified")}}Object.defineProperty(c,"__esModule",{value:!0}),c.default=c.convertValueToKeyRange=c.IDBKeyRange=c.setSQLForKeyRange=void 0;var h=a("./DOMException"),i=a("./Key"),j=d(i),k=a("./util"),l=d(k),m=["lower","upper","lowerOpen","upperOpen"],n=e;e.__createInstance=function(a,b,c,d){function e(){if(this[Symbol.toStringTag]="IDBKeyRange",void 0===a&&void 0===b)throw(0,h.createDOMException)("DataError","Both arguments to the key range method cannot be undefined");var e=void 0,f=void 0;if(void 0!==a&&(e=j.roundTrip(a),j.convertValueToKeyRethrowingAndIfInvalid(a)),void 0!==b&&(f=j.roundTrip(b),j.convertValueToKeyRethrowingAndIfInvalid(b)),void 0!==a&&void 0!==b&&a!==b&&j.encode(a)>j.encode(b))throw(0,h.createDOMException)("DataError","`lower` must not be greater than `upper` argument in `bound()` call.");this.__lower=e,this.__upper=f,this.__lowerOpen=!!c,this.__upperOpen=!!d}return e.prototype=n.prototype,new e},e.prototype.includes=function(a){if(!l.isObj(this)||"boolean"!=typeof this.__lowerOpen)throw new TypeError("Illegal invocation");if(!arguments.length)throw new TypeError("IDBKeyRange.includes requires a key argument");return j.convertValueToKeyRethrowingAndIfInvalid(a),j.isKeyInRange(a,this)},e.only=function(a){if(!arguments.length)throw new TypeError("IDBKeyRange.only requires a value argument");return e.__createInstance(a,a,!1,!1)},e.lowerBound=function(a){if(!arguments.length)throw new TypeError("IDBKeyRange.lowerBound requires a value argument");return e.__createInstance(a,void 0,arguments[1],!0)},e.upperBound=function(a){if(!arguments.length)throw new TypeError("IDBKeyRange.upperBound requires a value argument");return e.__createInstance(void 0,a,!0,arguments[1])},e.bound=function(a,b){if(arguments.length<=1)throw new TypeError("IDBKeyRange.bound requires lower and upper arguments");return e.__createInstance(a,b,arguments[2],arguments[3])},e.prototype[Symbol.toStringTag]="IDBKeyRangePrototype",m.forEach(function(a){Object.defineProperty(e.prototype,"__"+a,{enumerable:!1,configurable:!1,writable:!0}),Object.defineProperty(e.prototype,a,{enumerable:!0,configurable:!0,get:function(){if(!l.isObj(this)||"boolean"!=typeof this.__lowerOpen)throw new TypeError("Illegal invocation");return this["__"+a]}})}),Object.defineProperty(e,Symbol.hasInstance,{value:function(a){return l.isObj(a)&&"upper"in a&&"boolean"==typeof a.lowerOpen}}),Object.defineProperty(e,"prototype",{writable:!1}),c.setSQLForKeyRange=f,c.IDBKeyRange=e,c.convertValueToKeyRange=g,c.default=e},{"./DOMException":328,"./Key":340,"./util":345}],336:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}function e(a){return a&&a.__esModule?a:{default:a}}function f(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b0&&a.executeSql("DROP TABLE "+o.escapeStoreNameForSQL(b.__currentName),[],function(){a.executeSql('DELETE FROM __sys__ WHERE "name" = ?',[o.escapeSQLiteStatement(b.__currentName)],function(){delete b.__pendingDelete,b.__deleted=!0,c&&(delete c.__pendingDelete,c.__deleted=!0),e()},g)},g)})})},g.prototype.__validateKeyAndValueAndCloneValue=function(a,b,c){var d=this;if(null!==d.keyPath){if(void 0!==b)throw(0,i.createDOMException)("DataError","The object store uses in-line keys and the key parameter was provided",d);var e=v.clone(a);if(b=q.extractKeyValueDecodedFromValueUsingKeyPath(e,d.keyPath),b.invalid)throw(0,i.createDOMException)("DataError","KeyPath was specified, but key was invalid.");if(b.failure){if(!c){if(!d.autoIncrement)throw(0,i.createDOMException)("DataError","Could not evaluate a key from keyPath and there is no key generator");if(!q.checkKeyCouldBeInjectedIntoValue(e,d.keyPath))throw(0,i.createDOMException)("DataError","A key could not be injected into a value");return[void 0,e]}throw(0,i.createDOMException)("DataError","Could not evaluate a key from keyPath")}return[b.value,e]}if(void 0===b){if(!d.autoIncrement)throw(0,i.createDOMException)("DataError","The object store uses out-of-line keys and has no key generator and the key parameter was not provided.",d);b=void 0}else q.convertValueToKeyRethrowingAndIfInvalid(b);return[b,v.clone(a)]},g.prototype.__deriveKey=function(a,b,c,d,e){function f(){v.encode(c,function(a){a=v.decode(a),d(a)})}var g=this;g.autoIncrement?void 0===c?q.generateKeyForStore(a,g,function(a,c){if(a)return void e((0,i.createDOMException)("ConstraintError","The key generator's current number has reached the maximum safe integer limit"));null!==g.keyPath&&q.injectKeyIntoValueUsingKeyPath(b,c,g.keyPath),d(c)},e):q.possiblyUpdateKeyGenerator(a,g,c,f,e):f()},g.prototype.__insertData=function(a,b,c,d,e,g){var h=this,j={},k=Object.keys(h.__indexes).map(function(b){return new z.default(function(d,e){function g(a){void 0!==l&&(j[a.__currentName]=q.encode(l,a.multiEntry))}var k=h.__indexes[b];if(k.__pendingCreate||k.__deleted)return void d();var l=void 0;try{if(l=q.extractKeyValueDecodedFromValueUsingKeyPath(c,k.keyPath,k.multiEntry),l.invalid||l.failure)throw new Error("Go to catch")}catch(a){return void d()}if(l=l.value,k.unique){var m=k.multiEntry&&Array.isArray(l),n=(0,r.buildFetchIndexDataSQL)(!0,k,l,"key",m);r.executeFetchIndexData.apply(void 0,[null].concat(f(n),[a,null,function(a){if(void 0===a)return g(k),void d();e((0,i.createDOMException)("ConstraintError","Index already contains a record equal to "+(m?"one of the subkeys of":"")+"`indexKey`"))},e]))}else g(k),d()})});z.default.all(k).then(function(){var c=["INSERT INTO",o.escapeStoreNameForSQL(h.__currentName),"("],f=[" VALUES ("],k=[];void 0!==d&&(c.push(o.sqlQuote("key"),","),f.push("?,"),k.push(o.escapeSQLiteStatement(q.encode(d))));for(var l in j)c.push(o.escapeIndexNameForSQL(l)+","),f.push("?,"),k.push(o.escapeSQLiteStatement(j[l]));c.push(o.sqlQuote("value")+" )"),f.push("?)"),k.push(o.escapeSQLiteStatement(b));var m=c.join(" ")+f.join(" ");x.default.DEBUG&&console.log("SQL for adding",m,k),a.executeSql(m,k,function(a,b){e(d)},function(a,b){g((0,i.createDOMException)("ConstraintError",b.message,b))})}).catch(function(a){g(a)})},g.prototype.add=function(a){var b=this,c=arguments[1];if(!(b instanceof g))throw new TypeError("Illegal invocation");if(0===arguments.length)throw new TypeError("No value was specified");g.__invalidStateIfDeleted(b),t.default.__assertActive(b.transaction),b.transaction.__assertWritable();var d=b.transaction.__createRequest(b),e=b.__validateKeyAndValueAndCloneValue(a,c,!1),f=h(e,2),i=f[0],j=f[1];return g.__storingRecordObjectStore(d,b,j,!0,i),d},g.prototype.put=function(a){var b=this,c=arguments[1];if(!(b instanceof g))throw new TypeError("Illegal invocation");if(0===arguments.length)throw new TypeError("No value was specified");g.__invalidStateIfDeleted(b),t.default.__assertActive(b.transaction),b.transaction.__assertWritable();var d=b.transaction.__createRequest(b),e=b.__validateKeyAndValueAndCloneValue(a,c,!1),f=h(e,2),i=f[0],j=f[1];return g.__storingRecordObjectStore(d,b,j,!1,i),d},g.prototype.__overwrite=function(a,b,c,d){var e=this,f="DELETE FROM "+o.escapeStoreNameForSQL(e.__currentName)+' WHERE "key" = ?',g=q.encode(b);a.executeSql(f,[o.escapeSQLiteStatement(g)],function(a,d){x.default.DEBUG&&console.log("Did the row with the",b,"exist? ",d.rowsAffected),c(a)},function(a,b){d(b)})},g.__storingRecordObjectStore=function(a,b,c,d){var e=arguments[4];b.transaction.__pushToQueue(a,function(a,f,g,h){b.__deriveKey(a,c,e,function(e){v.encode(c,function(f){function i(a){b.__insertData(a,f,c,e,function(){b.__cursors.forEach(function(a){a.__invalidateCache()}),g.apply(void 0,arguments)},h)}if(!d)return void b.__overwrite(a,e,i,h);i(a)})},h)})},g.prototype.__get=function(a,b,c,d){var e=this;void 0!==d&&(d=o.enforceRange(d,"unsigned long")),g.__invalidStateIfDeleted(e),t.default.__assertActive(e.transaction);var f=(0,k.convertValueToKeyRange)(a,!c),h=b?"key":"value",i=["SELECT",o.sqlQuote(h),"FROM",o.escapeStoreNameForSQL(e.__currentName)],j=[];if(void 0!==f&&(i.push("WHERE"),(0,k.setSQLForKeyRange)(f,o.sqlQuote("key"),i,j)),c||(d=1),d){if("number"!=typeof d||isNaN(d)||!isFinite(d))throw new TypeError("The count parameter must be a finite number");i.push("LIMIT",d)}return i=i.join(" "),e.transaction.__addToTransactionQueue(function(a,d,f,g){x.default.DEBUG&&console.log("Fetching",e.__currentName,j),a.executeSql(i,j,function(a,d){x.default.DEBUG&&console.log("Fetched data",d);var e=void 0;try{if(0===d.rows.length)return c?f([]):f();if(e=[],b)for(var g=0;g=b.__requests.length)b.__requests=[],b.__active&&a();else try{if(i=b.__requests[j],!i.req)return void i.op(c,i.args,h,e);if("done"===i.req.__readyState)return;i.op(c,i.args,d,e,h)}catch(a){e(a)}}b.__tx=c;var i=null,j=-1;h()},function(a){if(a!==!0){var c=(0,g.webSQLErrback)(a);b.__abortTransaction(c)}},function(){if(b.__transFinishedCb===e.prototype.__transFinishedCb)return b.__transactionEndCallback||b.__requestsFinished?void(b.__transactionEndCallback&&!b.__completed&&b.__transFinishedCb(b.__errored,b.__transactionEndCallback)):void(b.__transactionFinished=!0)},function(a,c,d,e,f){return!(!a.readOnly&&!c)||(b.__transFinishedCb=function(a,b){a?e(a,b):f(b)},b.__transactionEndCallback&&!b.__completed&&b.__transFinishedCb(b.__errored,b.__transactionEndCallback),!1)})},e.prototype.__createRequest=function(a){var b=this,c=h.IDBRequest.__createInstance();return c.__source=void 0!==a?a:b.db,c.__transaction=b,c},e.prototype.__addToTransactionQueue=function(a,b,c){var d=this.__createRequest(c);return this.__pushToQueue(d,a,b),d},e.prototype.__addNonRequestToTransactionQueue=function(a,b,c){this.__pushToQueue(null,a,b)},e.prototype.__pushToQueue=function(a,b,c){this.__assertActive(),this.__requests.push({op:b,args:c,req:a})},e.prototype.__assertActive=function(){if(!this.__active)throw(0,g.createDOMException)("TransactionInactiveError","A request was placed against a transaction which is currently not active, or which is finished")},e.prototype.__assertWritable=function(){if("readonly"===this.mode)throw(0,g.createDOMException)("ReadOnlyError","The transaction is read only")},e.prototype.__assertVersionChange=function(){e.__assertVersionChange(this)},e.prototype.objectStore=function(a){var b=this;if(!(b instanceof e))throw new TypeError("Illegal invocation");if(0===arguments.length)throw new TypeError("No object store name was specified");if(e.__assertNotFinished(b),b.__objectStoreNames.indexOf(a)===-1)throw(0,g.createDOMException)("NotFoundError",a+" is not participating in this transaction");var c=b.db.__objectStores[a];if(!c)throw(0,g.createDOMException)("NotFoundError",a+" does not exist in "+b.db.name);return(!b.__storeHandles[a]||b.__storeHandles[a].__pendingDelete||b.__storeHandles[a].__deleted)&&(b.__storeHandles[a]=l.default.__clone(c,b)),b.__storeHandles[a]},e.prototype.__abortTransaction=function(a){function b(b,d){b?d&&"number"==typeof d.code?n.default.DEBUG&&console.log("Rollback erred; feature is probably not supported as per WebSQL",c):n.default.DEBUG&&console.log("Rollback succeeded",c):n.default.DEBUG&&console.log("Rollback not possible due to missing transaction",c),c.__requests.filter(function(a){return a.req&&"done"!==a.req.__readyState}).reduce(function(a,b){return a.then(function(){b.req.__readyState="done",b.req.__result=void 0,b.req.__error=(0,g.createDOMException)("AbortError","A request was aborted.");var a=(0,f.createEvent)("error",b.req.__error,{bubbles:!0,cancelable:!0});return new q.default(function(c){setTimeout(function(){b.req.dispatchEvent(a),c()})})})},q.default.resolve()).then(function(){var b=(0,f.createEvent)("abort",a,{bubbles:!0,cancelable:!1});setTimeout(function(){c.__abortFinished=!0,c.dispatchEvent(b),c.__storeHandles={},c.dispatchEvent((0,f.createEvent)("__abort"))})})}var c=this;(0,g.logError)("Error","An error occurred in a transaction",a),c.__errored||(c.__errored=!0,"versionchange"===c.mode&&(c.db.__version=c.db.__oldVersion,c.db.__objectStoreNames=c.db.__oldObjectStoreNames,c.__objectStoreNames=c.db.__oldObjectStoreNames,Object.values(c.db.__objectStores).concat(Object.values(c.__storeHandles)).forEach(function(a){"__pendingName"in a&&c.db.__oldObjectStoreNames.indexOf(a.__pendingName)>-1&&(a.__name=a.__originalName),a.__indexNames=a.__oldIndexNames,delete a.__pendingDelete,Object.values(a.__indexes).concat(Object.values(a.__indexHandles)).forEach(function(b){"__pendingName"in b&&a.__oldIndexNames.indexOf(b.__pendingName)>-1&&(b.__name=b.__originalName),delete b.__pendingDelete})})),c.__active=!1,null!==a&&(c.__error=a),c.__requestsFinished&&setTimeout(function(){throw a},0),c.__transFinishedCb(!0,function(a){if(a&&c.__tx){if("readwrite"===c.mode)return c.__transactionFinished?void b():void(c.__transactionEndCallback=b);try{c.__tx.executeSql("ROLLBACK",[],b,b)}catch(a){b()}}else b(null,{code:0})}))},e.prototype.abort=function(){var a=this;if(!(a instanceof e))throw new TypeError("Illegal invocation");n.default.DEBUG&&console.log("The transaction was aborted",a),e.__assertNotFinished(a),a.__abortTransaction(null)},e.prototype[Symbol.toStringTag]="IDBTransactionPrototype",e.__assertVersionChange=function(a){if(!a||"versionchange"!==a.mode)throw(0,g.createDOMException)("InvalidStateError","Not a version transaction")},e.__assertNotVersionChange=function(a){if(a&&"versionchange"===a.mode)throw(0,g.createDOMException)("InvalidStateError","Cannot be called during a version transaction")},e.__assertNotFinished=function(a){if(!a||a.__completed||a.__abortFinished)throw(0,g.createDOMException)("InvalidStateError","Transaction finished by commit or abort")},e.__assertActive=function(a){if(!a||!a.__active)throw(0,g.createDOMException)("TransactionInactiveError","A request was placed against a transaction which is currently not active, or which is finished")},e.prototype.__getParent=function(){return this.db},e.prototype.__userErrorEventHandler=function(a,b){if(this.__internal)throw this.__internal=!1,a;b()},s.forEach(function(a){Object.defineProperty(e.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")},set:function(a){throw new TypeError("Illegal invocation")}})}),t.forEach(function(a){Object.defineProperty(e.prototype,a,{enumerable:!0,configurable:!0,get:function(){throw new TypeError("Illegal invocation")}})}),Object.defineProperty(e.prototype,"constructor",{enumerable:!1,writable:!0,configurable:!0,value:e}),Object.defineProperty(e,"prototype",{writable:!1}),c.default=e,b.exports=c.default},{"./CFG":327,"./DOMException":328,"./Event":330,"./IDBObjectStore":336,"./IDBRequest":337,"./util":345,eventtarget:298,"sync-promise":302}],339:[function(a,b,c){"use strict";function d(a){e.ShimEvent.call(this,a),this[Symbol.toStringTag]="IDBVersionChangeEvent",this.toString=function(){return"[object IDBVersionChangeEvent]"},this.__eventInitDict=arguments[1]||{}}Object.defineProperty(c,"__esModule",{value:!0});var e=a("./Event"),f=a("./util"),g=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(f),h=["oldVersion","newVersion"];d.prototype=Object.create(e.ShimEvent.prototype),d.prototype[Symbol.toStringTag]="IDBVersionChangeEventPrototype",h.forEach(function(a){Object.defineProperty(d.prototype,a,{enumerable:!0,configurable:!0,get:function(){if(!(this instanceof d))throw new TypeError("Illegal invocation");return this.__eventInitDict&&this.__eventInitDict[a]||("oldVersion"===a?0:null)}})}),Object.defineProperty(d,Symbol.hasInstance,{value:function(a){return g.isObj(a)&&"oldVersion"in a&&"boolean"==typeof a.defaultPrevented}}),Object.defineProperty(d.prototype,"constructor",{enumerable:!1,writable:!0,configurable:!0,value:d}),Object.defineProperty(d,"prototype",{writable:!1}),c.default=d,b.exports=c.default},{"./Event":330,"./util":345}],340:[function(a,b,c){"use strict";function d(a,b,c){return new Array(b-String(a).length+1).join(c)+a}function e(a){return a=a.toString(32),1===a.length?"0"+a:a}function f(a){return(a+j(11)).slice(0,11)}function g(a){for(var b="",c=0;cg&&(d=!0),!b.lowerOpen&&f>=g&&(d=!0)),void 0!==b.upper&&(b.upperOpen&&f1:b===a}function A(a,b){var c=[];if(Array.isArray(a))for(var d=0;d0&&c.push(e);continue}e=e[0]}(null==b||y(e,b,!0))&&c.push(e)}else(null==b||y(a,b,!0))&&c.push(a);return c}function B(a){var b=a.type,c=a.value;switch(b){case"number":case"string":return c;case"array":for(var d=[],e=c.length,f=0;fT)return c("failure");G(a,b,e,function(){c(null,e)},d)},d)}function I(a,b,c,d,e){"number"!=typeof c||c<1?d():F(a,b,function(f){var g=Math.floor(Math.min(c,T));g>=f?G(a,b,g,d,e):d()},e)}Object.defineProperty(c,"__esModule",{value:!0}),c.possiblyUpdateKeyGenerator=c.generateKeyForStore=c.findMultiEntryMatches=c.isKeyInRange=c.isMultiEntryMatch=c.checkKeyCouldBeInjectedIntoValue=c.injectKeyIntoValueUsingKeyPath=c.extractKeyValueDecodedFromValueUsingKeyPath=c.evaluateKeyPathOnValue=c.extractKeyFromValueUsingKeyPath=c.convertValueToKeyRethrowingAndIfInvalid=c.convertValueToMultiEntryKey=c.convertValueToKey=c.convertValueToMultiEntryKeyDecoded=c.convertValueToKeyValueDecoded=c.convertKeyToValue=c.roundTrip=c.decode=c.encode=void 0;var J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},K=a("./DOMException"),L=a("./util"),M=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(L),N=a("./IDBFactory"),O=a("./CFG"),P=function(a){return a&&a.__esModule?a:{default:a}}(O),Q=["invalid","number","date","string","binary","array"],R=["negativeInfinity","bigNegative","smallNegative","smallPositive","bigPositive","positiveInfinity"],S={invalid:{encode:function(a){return Q.indexOf("invalid")+"-"},decode:function(a){}},number:{encode:function(a){var b=Math.abs(a).toString(32),c=b.indexOf(".");b=c!==-1?b.replace(".",""):b;var d=b.search(/[^0]/);b=b.slice(d);var h=void 0,i=void 0,k=void 0;return isFinite(a)?a<0?a>-1?(h=R.indexOf("smallNegative"),i=e(d),k=g(f(b))):(h=R.indexOf("bigNegative"),i=g(e(c!==-1?c:b.length)),k=g(f(b))):a<1?(h=R.indexOf("smallPositive"),i=g(e(d)),k=f(b)):(h=R.indexOf("bigPositive"),i=e(c!==-1?c:b.length),k=f(b)):(i=j(2),k=j(11),h=R.indexOf(a>0?"positiveInfinity":"negativeInfinity")),Q.indexOf("number")+"-"+h+i+k},decode:function(a){var b=+a.substr(2,1),c=a.substr(3,2),d=a.substr(5,11);switch(R[b]){case"negativeInfinity":return-1/0;case"positiveInfinity":return 1/0;case"bigPositive":return h(d,c);case"smallPositive":return c=k(g(c)),h(d,c);case"smallNegative":return c=k(c),d=g(d),-h(d,c);case"bigNegative":return c=g(c),d=g(d),-h(d,c);default:throw new Error("Invalid number.")}}},string:{encode:function(a,b){return b&&(a=a.replace(/(.)/g,"-$1")+" "),Q.indexOf("string")+"-"+a},decode:function(a,b){return a=a.slice(2),b&&(a=a.substr(0,a.length-1).replace(/-(.)/g,"$1")),a}},array:{encode:function(a){for(var b=[],c=0;c889)throw(0,o.createDOMException)("DataError","The encoded key is "+a.length+" characters long, but IE only allows 889 characters. Consider replacing numeric keys with strings to reduce the encoded length.")}Object.defineProperty(c,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},o=a("./DOMException"),p=a("./Key"),q=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(p),r="__$$compoundKey",s=/\$\$/g,t="$$$$",u="$_$";c.default=d,b.exports=c.default},{"./DOMException":328,"./Key":340}],344:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{default:a}}function f(a,b){if(a&&"object"===(void 0===a?"undefined":i(a)))for(var c in a)f(c,a[c]);else{if(!(a in C.default))throw new Error(a+" is not a valid configuration property");C.default[a]=b}}function g(a,b){function c(a,b,c){if(!c||!Object.defineProperty)try{e[a]=b}catch(a){console.log(a)}if(e[a]!==b&&Object.defineProperty)try{var d=c||{};d.get=function(){return b},Object.defineProperty(e,a,d)}catch(a){}e[a]!==b&&"undefined"!=typeof console&&console.warn&&console.warn("Unable to shim "+a)}b&&f(b);var e=a||("undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==d?d:{});c("shimIndexedDB",o.shimIndexedDB,{enumerable:!1,configurable:!0}),e.shimIndexedDB&&(e.shimIndexedDB.__useShim=function(){var a=e.shimIndexedDB.modules.IDBFactory;if(void 0!==C.default.win.openDatabase){if(C.default.fullIDLSupport){var b=e.shimIndexedDB.modules.ShimEvent,d=e.shimIndexedDB.modules.ShimEventTarget;Object.setPrototypeOf(y.default,d),Object.setPrototypeOf(m.IDBRequest,d),Object.setPrototypeOf(w.default,d),Object.setPrototypeOf(k.default,b),Object.setPrototypeOf(n.ShimDOMException,Error),Object.setPrototypeOf(n.ShimDOMException.prototype,Error.prototype)}[["indexedDB",o.shimIndexedDB],["IDBFactory",a],["IDBDatabase",y.default],["IDBObjectStore",s.default],["IDBIndex",u.default],["IDBTransaction",w.default],["IDBCursor",l.IDBCursor],["IDBCursorWithValue",l.IDBCursorWithValue],["IDBKeyRange",q.default],["IDBRequest",m.IDBRequest],["IDBOpenDBRequest",m.IDBOpenDBRequest],["IDBVersionChangeEvent",k.default]].forEach(function(a){var b=h(a,2);c(b[0],b[1],{enumerable:!1,configurable:!0})}),C.default.addNonIDBGlobals&&e.indexedDB&&e.indexedDB.modules&&(c("ShimDOMStringList",e.indexedDB.modules.ShimDOMStringList,{enumerable:!1,configurable:!0}),c("ShimEvent",e.indexedDB.modules.ShimEvent),c("ShimCustomEvent",e.indexedDB.modules.ShimCustomEvent),c("ShimEventTarget",e.indexedDB.modules.ShimEventTarget),c("ShimDOMException",e.indexedDB.modules.ShimDOMException))}else"object"===i(e.indexedDB)&&(0,A.default)(l.IDBCursor,l.IDBCursorWithValue,y.default,a,u.default,q.default,s.default,m.IDBRequest,w.default)},e.shimIndexedDB.__debug=function(a){C.default.DEBUG=a},e.shimIndexedDB.__setConfig=f,e.shimIndexedDB.__getConfig=function(a){if(!(a in C.default))throw new Error(a+" is not a valid configuration property");return C.default[a]},e.shimIndexedDB.__setUnicodeIdentifiers=function(a){f({UnicodeIDStart:a.UnicodeIDStart,UnicodeIDContinue:a.UnicodeIDContinue})}),"indexedDB"in e||"undefined"==typeof window||(e.indexedDB=e.indexedDB||e.webkitIndexedDB||e.mozIndexedDB||e.oIndexedDB||e.msIndexedDB);var g=!1;return"undefined"!=typeof navigator&&(navigator.userAgent.match(/Android (?:2|3|4\.[0-3])/)&&!navigator.userAgent.match(/Chrome/)||(navigator.userAgent.indexOf("Safari")===-1||navigator.userAgent.indexOf("Chrome")>-1)&&/(iPad|iPhone|iPod).* os 9_/i.test(navigator.userAgent)&&!window.MSStream)&&(g=!0),C.default.DEFAULT_DB_SIZE||(C.default.DEFAULT_DB_SIZE=1024*("undefined"!=typeof navigator&&navigator.userAgent.indexOf("Safari")>-1&&navigator.userAgent.indexOf("Chrome")===-1?25:4)*1024),e.indexedDB&&!g||void 0===C.default.win.openDatabase?(e.IDBDatabase=e.IDBDatabase||e.webkitIDBDatabase,e.IDBTransaction=e.IDBTransaction||e.webkitIDBTransaction||{},e.IDBCursor=e.IDBCursor||e.webkitIDBCursor,e.IDBKeyRange=e.IDBKeyRange||e.webkitIDBKeyRange):e.shimIndexedDB.__useShim(),e}Object.defineProperty(c,"__esModule",{value:!0});var h=function(){function a(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=a[Symbol.iterator]();!(d=(g=h.next()).done)&&(c.push(g.value),!b||c.length!==b);d=!0);}catch(a){e=!0,f=a}finally{try{!d&&h.return&&h.return()}finally{if(e)throw f}}return c}return function(b,c){if(Array.isArray(b))return b;if(Symbol.iterator in Object(b))return a(b,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};a("babel-polyfill");var j=a("./IDBVersionChangeEvent"),k=e(j),l=a("./IDBCursor"),m=a("./IDBRequest"),n=a("./DOMException"),o=a("./IDBFactory"),p=a("./IDBKeyRange"),q=e(p),r=a("./IDBObjectStore"),s=e(r),t=a("./IDBIndex"),u=e(t),v=a("./IDBTransaction"),w=e(v),x=a("./IDBDatabase"),y=e(x),z=a("./polyfill"),A=e(z),B=a("./CFG"),C=e(B);(void 0!==d?d:"undefined"!=typeof window?window:self)._babelPolyfill=!1,c.default=g,b.exports=c.default}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./CFG":327,"./DOMException":328,"./IDBCursor":331,"./IDBDatabase":332,"./IDBFactory":333,"./IDBIndex":334,"./IDBKeyRange":335,"./IDBObjectStore":336,"./IDBRequest":337,"./IDBTransaction":338,"./IDBVersionChangeEvent":339,"./polyfill":343,"babel-polyfill":1}],345:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a){return"_"+a.replace(/\^/g,"^^").replace(/\0/g,"^0").replace(/([A-Z])/g,"^$1").replace(/([\uD800-\uDBFF])(?![\uDC00-\uDFFF])|(^|[^\uD800-\uDBFF])([\uDC00-\uDFFF])/g,function(a,b,c){return b?"^2"+b+"�":"^3�"+c})}function f(a){return a.replace(/\^/g,"^^").replace(/\0/g,"^0")}function g(a){return a.replace(/\^0/g,"\0").replace(/\^\^/g,"^")}function h(a){return a.replace(/"/g,'""')}function i(a){return'"'+h(a)+'"'}function j(a){if(H.default.escapeDatabaseName)return H.default.escapeDatabaseName(f(a));if(a="D"+e(a),H.default.escapeNFDForDatabaseNames!==!1&&(a=a.replace(new RegExp(J.default,"g"),function(a){return"^4"+a.codePointAt().toString(16).padStart(6,"0")})),H.default.databaseCharacterEscapeList!==!1&&(a=a.replace(H.default.databaseCharacterEscapeList?new RegExp(H.default.databaseCharacterEscapeList,"g"):/[\u0000-\u001F\u007F"*\/:<>?\\|]/g,function(a){return"^1"+a.charCodeAt().toString(16).padStart(2,"0")})),H.default.databaseNameLengthLimit!==!1&&a.length>=(H.default.databaseNameLengthLimit||254)-(H.default.addSQLiteExtension!==!1?7:0))throw new Error("Unexpectedly long database name supplied; length limit required for Node compatibility; passed length: "+a.length+"; length limit setting: "+(H.default.databaseNameLengthLimit||254)+".");return a+(H.default.addSQLiteExtension!==!1?".sqlite":"")}function k(a){return H.default.unescapeDatabaseName?H.default.unescapeDatabaseName(g(a)):a.slice(2).replace(/(\^+)1([0-9a-f]{2})/g,function(a,b,c){return b.length%2?String.fromCharCode(parseInt(c,16)):a}).replace(/(\^+)4([0-9a-f]{6})/g,function(a,b,c){return b.length%2?String.fromCodePoint(parseInt(c,16)):a}).replace(/(\^+)3\uD800([\uDC00-\uDFFF])/g,function(a,b,c){return b.length%2?c:a}).replace(/(\^+)2([\uD800-\uDBFF])\uDC00/g,function(a,b,c){return b.length%2?c:a}).replace(/(\^+)([A-Z])/g,function(a,b,c){return b.length%2?c:a}).replace(/(\^+)0/g,function(a,b){return b.length%2?"\0":a}).replace(/\^\^/g,"^")}function l(a){return i("S"+e(a))}function m(a){return i("I"+e(a))}function n(a){return"I"+e(a)}function o(a){return h(a).replace(/\^/g,"^^")}function p(a,b){return b[Symbol.hasInstance](a)}function q(a){return a&&"object"===(void 0===a?"undefined":F(a))}function r(a){return q(a)&&"function"==typeof a.getDate}function s(a){return q(a)&&"number"==typeof a.size&&"function"==typeof a.slice&&!("lastModified"in a)}function t(a){return q(a)&&"string"==typeof a.flags&&"function"==typeof a.exec}function u(a){return q(a)&&"string"==typeof a.name&&"function"==typeof a.slice&&"lastModified"in a}function v(a){return q(a)&&"number"==typeof a.byteLength&&("function"==typeof a.slice||"function"==typeof a.getFloat64)}function w(a){return q(a)&&"function"==typeof a[Symbol.iterator]}function x(a,b){b="string"==typeof b?[b]:b,b.forEach(function(b){Object.defineProperty(a,"__"+b,{enumerable:!1,configurable:!1,writable:!0}),Object.defineProperty(a,b,{enumerable:!0,configurable:!0,get:function(){return this["__"+b]}})})}function y(a){var b=H.default.UnicodeIDStart||"[$A-Z_a-z]",c=H.default.UnicodeIDContinue||"[$0-9A-Z_a-z]",d="(?:"+b+"|[$_]|\\\\"+K+")",e="(?:"+c+"|[$_]|\\\\"+K+"|\\u200C|\\u200D)";return new RegExp("^"+d+e+"*$").test(a)}function z(a){return"string"==typeof a&&(""===a||y(a)||a.split(".").every(y))}function A(a){return z(a)||Array.isArray(a)&&a.length&&Array.apply(null,a).every(function(a){return z(a)})}function B(a,b){a=Math.floor(Number(a));var c=void 0,d=void 0;switch(b){case"unsigned long long":c=9007199254740991,d=0;break;case"unsigned long":c=4294967295,d=0;break;default:throw new Error("Unrecognized type supplied to enforceRange")}if(isNaN(a)||!isFinite(a)||a>c||a=1.0.0 <1.1.0", diff --git a/package.json b/package.json index c725a529..b277994e 100644 --- a/package.json +++ b/package.json @@ -95,6 +95,7 @@ "sync-promise": "https://github.com/brettz9/sync-promise#full-sync-missing-promise-features", "typeson": "https://github.com/dfahlander/typeson", "typeson-registry": "https://github.com/dfahlander/typeson-registry", + "unicode-9.0.0": "0.7.0", "w3c-blob": "0.0.1", "ws": "2.2.2", "xmlhttprequest": "https://github.com/brettz9/node-XMLHttpRequest#local-and-prototype" diff --git a/src/CFG.js b/src/CFG.js index b9ee3be1..d1da7c8c 100644 --- a/src/CFG.js +++ b/src/CFG.js @@ -5,11 +5,6 @@ const CFG = {}; // Boolean for verbose reporting 'DEBUG', // Effectively defaults to false (ignored unless `true`) - // Used when setting global shims to determine whether to try to add - // other globals shimmed by the library (`ShimDOMException`, `ShimDOMStringList`, - // `ShimEvent`, `ShimCustomEvent`, `ShimEventTarget`) - 'addNonIDBGlobals', // Effectively defaults to false (ignored unless `true`) - // Determines whether the slow-performing `Object.setPrototypeOf` calls required // for full WebIDL compliance will be used. Probably only needed for testing // or environments where full introspection on class relationships is required; @@ -29,14 +24,6 @@ const CFG = {}; 'UnicodeIDStart', // In the non-Unicode builds, defaults to /[$A-Z_a-z]/ 'UnicodeIDContinue', // In the non-Unicode builds, defaults to /[$0-9A-Z_a-z]/ - // NODE-SPECIFIC CONFIG - // Boolean on whether to delete the database file itself after `deleteDatabase`; - // defaults to `true` as the database will be empty - 'deleteDatabaseFiles', - // Boolean on whether to add the `.sqlite` extension to file names; - // defaults to `true` - 'addSQLiteExtension', - // -----------SQL CONFIG---------- // Object (`window` in the browser) on which there may be an // `openDatabase` method (if any) for WebSQL. (The browser @@ -56,6 +43,14 @@ const CFG = {}; // quota every five megabytes." 'DEFAULT_DB_SIZE', // Defaults to (4 * 1024 * 1024) or (25 * 1024 * 1024) in Safari + // NODE-IMPINGING SETTINGS (created for sake of limitations in Node or desktop file + // system implementation but applied by default in browser for parity) + + // Used when setting global shims to determine whether to try to add + // other globals shimmed by the library (`ShimDOMException`, `ShimDOMStringList`, + // `ShimEvent`, `ShimCustomEvent`, `ShimEventTarget`) + 'addNonIDBGlobals', // Effectively defaults to false (ignored unless `true`) + // Overcoming limitations with node-sqlite3/storing database name on file systems // https://en.wikipedia.org/wiki/Filename#Reserved_characters_and_words 'escapeDatabaseName', // Defaults to prefixing database with `D_`, escaping @@ -67,8 +62,18 @@ const CFG = {}; // (characters nevertheless commonly reserved in modern, Unicode-supporting // systems): 0x00-0x1F 0x7F " * / : < > ? \ | 'databaseNameLengthLimit', // Defaults to 254 (shortest typical modern file length limit) + 'escapeNFDForDatabaseNames', // Boolean defaulting to true on whether to escape NFD-escaping + // characters to avoid clashes on MacOS which performs NFD on files + // Boolean on whether to add the `.sqlite` extension to file names; + // defaults to `true` + 'addSQLiteExtension', + + // NODE-SPECIFIC CONFIG + // Boolean on whether to delete the database file itself after `deleteDatabase`; + // defaults to `true` as the database will be empty + 'deleteDatabaseFiles', - // Optional Node WebSQL config + // NODE-SPECIFIC WEBSQL CONFIG 'sqlBusyTimeout', // Defaults to 1000 'sqlTrace', // Callback not used by default 'sqlProfile' // Callback not used by default diff --git a/src/util.js b/src/util.js index cf16b38e..4ae26911 100644 --- a/src/util.js +++ b/src/util.js @@ -1,4 +1,5 @@ import CFG from './CFG'; +import expandsOnNFD from 'unicode-9.0.0/Binary_Property/Expands_On_NFD/regex'; function escapeNameForSQLiteIdentifier (arg) { // http://stackoverflow.com/a/6701665/271577 @@ -48,6 +49,12 @@ function escapeDatabaseNameForSQLAndFiles (db) { return CFG.escapeDatabaseName(escapeSQLiteStatement(db)); } db = 'D' + escapeNameForSQLiteIdentifier(db); + if (CFG.escapeNFDForDatabaseNames !== false) { + // ES6 copying of regex with different flags + db = db.replace(new RegExp(expandsOnNFD, 'g'), function (expandable) { + return '^4' + expandable.codePointAt().toString(16).padStart(6, '0'); + }); + } if (CFG.databaseCharacterEscapeList !== false) { db = db.replace( (CFG.databaseCharacterEscapeList @@ -78,11 +85,15 @@ function unescapeDatabaseNameForSQLAndFiles (db) { } return db.slice(2) // D_ - .replace(/(\^+)1([0-9a-f]{2})/g, (_, esc, hex) => esc % 2 ? String.fromCharCode(parseInt(hex, 16)) : _) // databaseCharacterEscapeList - .replace(/(\^+)3\uD800([\uDC00-\uDFFF])/g, (_, esc, lowSurr) => esc % 2 ? lowSurr : _) - .replace(/(\^+)2([\uD800-\uDBFF])\uDC00/g, (_, esc, highSurr) => esc % 2 ? highSurr : _) - .replace(/(\^+)([A-Z])/g, (_, esc, upperCase) => esc % 2 ? upperCase : _) - .replace(/(\^+)0/g, (_, esc) => esc % 2 ? '\0' : _) + // CFG.databaseCharacterEscapeList + .replace(/(\^+)1([0-9a-f]{2})/g, (_, esc, hex) => esc.length % 2 ? String.fromCharCode(parseInt(hex, 16)) : _) + // CFG.escapeNFDForDatabaseNames + .replace(/(\^+)4([0-9a-f]{6})/g, (_, esc, hex) => esc.length % 2 ? String.fromCodePoint(parseInt(hex, 16)) : _) + // escapeNameForSQLiteIdentifier + .replace(/(\^+)3\uD800([\uDC00-\uDFFF])/g, (_, esc, lowSurr) => esc.length % 2 ? lowSurr : _) + .replace(/(\^+)2([\uD800-\uDBFF])\uDC00/g, (_, esc, highSurr) => esc.length % 2 ? highSurr : _) + .replace(/(\^+)([A-Z])/g, (_, esc, upperCase) => esc.length % 2 ? upperCase : _) + .replace(/(\^+)0/g, (_, esc) => esc.length % 2 ? '\0' : _) .replace(/\^\^/g, '^'); }