diff --git a/CHANGES.md b/CHANGES.md index aed4afcb..07d6bd27 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -110,6 +110,22 @@ they were actually changes since a more recent version on `master`. - Enhancement: Add `deleteDatabaseFiles` config to allow file itself to be deleted in Node; will throw `UnknownError` if there are any errors removing file (besides a missing file) +- Enhancement: Make addition of `.sqlite` extension to `__sysdb__` conditional + on `CFG.addSQLiteExtension` setting +- Enhancement: Support `autoName` config to interpret empty string name as a + cue for creating a database name automatically (introspect on + `IDBDatabase.name` to get the actual name used) (untested) +- Enhancement: Support `memoryDatabase` config to cause all opening, deleting, + and listing to be of SQLite in-memory databases (for Node); name supplied + by user is still used (including to automatically build a cache since + SQLite does not allow naming of in-memory databases); the name is also + accessible to `IDBFactory.webkitGetDatabaseNames()`; causes database + name/version tracking to also be within an in-memory database; part of + #278 (untested); builds on work by @ThomasGreiner) +- Enhancement: Support `cacheDatabaseInstances` config to ensure that any + repeat `IDBFactory.open` call to the same name and version (assuming + no deletes or aborts causing rollbacks) will reuse the same SQLite + `openDatabase` instance - Add missing API: Add `IDBCursor.continuePrimaryKey` - Add missing API: Implement `IDBObjectStore.getKey` - Add missing APIs: Implement `IDBIndex.getAll/getAllKeys` diff --git a/dist/indexeddbshim-UnicodeIdentifiers-node.js b/dist/indexeddbshim-UnicodeIdentifiers-node.js index 3e51fd5b..9f6bfe1e 100644 --- a/dist/indexeddbshim-UnicodeIdentifiers-node.js +++ b/dist/indexeddbshim-UnicodeIdentifiers-node.js @@ -8581,6 +8581,11 @@ var CFG = {}; // Boolean for verbose reporting 'DEBUG', // Effectively defaults to false (ignored unless `true`) +'cacheDatabaseInstances', // Boolean (effectively defaults to true) on whether to cache WebSQL `openDatabase` instances +'autoName', // Boolean on whether to auto-name databases (based on an auto-increment) when +// the empty string is supplied; useful with `memoryDatabase`; defaults to `false` +// which means the empty string will be used as the (valid) database name + // 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; @@ -8642,7 +8647,12 @@ var CFG = {}; // 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', +'addSQLiteExtension', ['memoryDatabase', function (val) { + // Various types of in-memory databases that can auto-delete + if (/^(?::memory:|file::memory:(\?[^#]*)?(#.*)?)?$/.test(val)) { + throw new TypeError('`memoryDatabase` must be the empty string, ":memory:", or a "file::memory:[?queryString][#hash] URL".'); + } +}], // NODE-SPECIFIC CONFIG // Boolean on whether to delete the database file itself after `deleteDatabase`; @@ -8654,11 +8664,19 @@ var CFG = {}; 'sqlTrace', // Callback not used by default 'sqlProfile' // Callback not used by default ].forEach(function (prop) { + var validator = void 0; + if (Array.isArray(prop)) { + validator = prop[1]; + prop = prop[0]; + } Object.defineProperty(CFG, prop, { get: function get() { return map[prop]; }, set: function set(val) { + if (validator) { + validator(val); + } map[prop] = val; } }); @@ -10197,7 +10215,9 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +var sqliteDBCache = {}; var sysdb = void 0; +var nameCounter = 0; function hasNullOrigin() { return _CFG2.default.checkOrigin !== false && ((typeof location === 'undefined' ? 'undefined' : _typeof(location)) !== 'object' || !location || location.origin === 'null'); @@ -10216,7 +10236,7 @@ function createSysDB(success, failure) { if (sysdb) { success(); } else { - sysdb = _CFG2.default.win.openDatabase('__sysdb__.sqlite', 1, 'System Database', _CFG2.default.DEFAULT_DB_SIZE); + sysdb = _CFG2.default.win.openDatabase(typeof _CFG2.default.memoryDatabase === 'string' ? _CFG2.default.memoryDatabase : '__sysdb__' + (_CFG2.default.addSQLiteExtension !== false ? '.sqlite' : ''), 1, 'System Database', _CFG2.default.DEFAULT_DB_SIZE); sysdb.transaction(function (systx) { systx.executeSql('CREATE TABLE IF NOT EXISTS dbVersions (name VARCHAR(255), version INT);', [], success, sysDbCreateError); }, sysDbCreateError); @@ -10278,8 +10298,24 @@ IDBFactory.prototype.open = function (name /* , version */) { if (hasNullOrigin()) { throw (0, _DOMException.createDOMException)('SecurityError', 'Cannot open an IndexedDB database from an opaque origin.'); } + + if (_CFG2.default.autoName && name === '') { + name = 'autoNamedDatabase_' + nameCounter++; + } name = String(name); // cast to a string var sqlSafeName = util.escapeSQLiteStatement(name); + + var useMemoryDatabase = typeof _CFG2.default.memoryDatabase === 'string'; + var useDatabaseCache = _CFG2.default.cacheDatabaseInstances !== false || useMemoryDatabase; + if (useDatabaseCache) { + if (!(name in sqliteDBCache)) { + sqliteDBCache[name] = {}; + } + if (sqliteDBCache[name][version]) { + return sqliteDBCache[name][version]; + } + } + var escapedDatabaseName = void 0; try { escapedDatabaseName = util.escapeDatabaseNameForSQLAndFiles(name); @@ -10302,7 +10338,15 @@ IDBFactory.prototype.open = function (name /* , version */) { } function openDB(oldVersion) { - var db = _CFG2.default.win.openDatabase(escapedDatabaseName, 1, name, _CFG2.default.DEFAULT_DB_SIZE); + var db = void 0; + if (useMemoryDatabase && name in sqliteDBCache && sqliteDBCache[name][version]) { + db = sqliteDBCache[name][version]; + } else { + db = _CFG2.default.win.openDatabase(useMemoryDatabase ? _CFG2.default.memoryDatabase : escapedDatabaseName, 1, name, _CFG2.default.DEFAULT_DB_SIZE); + if (useDatabaseCache) { + sqliteDBCache[name][version] = db; + } + } req.__readyState = 'done'; if (version === undefined) { version = oldVersion || 1; @@ -10332,6 +10376,7 @@ IDBFactory.prototype.open = function (name /* , version */) { function reportError() { throw new Error('Unable to roll back upgrade transaction!'); } + // Attempt to revert if (oldVersion === 0) { systx.executeSql('DELETE FROM dbVersions WHERE "name" = ?', [sqlSafeName], cb, reportError); @@ -10356,6 +10401,11 @@ IDBFactory.prototype.open = function (name /* , version */) { req.result.__versionTransaction = null; sysdbFinishedCb(systx, false, function () { req.transaction.__transFinishedCb(false, function () { + if (useDatabaseCache) { + if (name in sqliteDBCache) { + delete sqliteDBCache[name][version]; + } + } ev.complete(); req.__transaction = null; }); @@ -10366,6 +10416,11 @@ IDBFactory.prototype.open = function (name /* , version */) { setTimeout(function () { var err = (0, _DOMException.createDOMException)('AbortError', 'The upgrade transaction was aborted.'); sysdbFinishedCb(systx, err, function () { + if (useDatabaseCache) { + if (name in sqliteDBCache) { + delete sqliteDBCache[name][version]; + } + } dbCreateError(err); }); }); @@ -10463,6 +10518,8 @@ IDBFactory.prototype.deleteDatabase = function (name) { throw err; // throw new TypeError('You have supplied a database name which does not match the currently supported configuration, possibly due to a length limit enforced for Node compatibility.'); } + var useMemoryDatabase = typeof _CFG2.default.memoryDatabase === 'string'; + var req = _IDBRequest.IDBOpenDBRequest.__createInstance(); var calledDBError = false; var version = 0; @@ -10517,6 +10574,37 @@ IDBFactory.prototype.deleteDatabase = function (name) { // `dbVersions` change if they fail sysdb.transaction(function (systx) { systx.executeSql('DELETE FROM dbVersions WHERE "name" = ? ', [sqlSafeName], function () { + // Todo: We should also check whether `dbVersions` is empty and if so, delete upon + // `deleteDatabaseFiles` config. We also ought to do this when aborting (see + // above code with `DELETE FROM dbVersions`) + if (useMemoryDatabase) { + var memoryDB = sqliteDBCache[name] && + // Use latest version + sqliteDBCache[name][// eslint-disable-line standard/computed-property-even-spacing + Object.keys(sqliteDBCache[name]).map(Number).reduce(function (prev, curr) { + return curr > prev ? curr : prev; + }, 0)]; + if (!memoryDB) { + console.log('Could not find a memory database instance to delete.'); + return; + } + var _sqliteDB = memoryDB._db && memoryDB._db._db; + if (!_sqliteDB || !_sqliteDB.close) { + console.log('The `openDatabase` implementation does not have the expected `._db._db.close` method for closing the database'); + return; + } + _sqliteDB.close(function (err) { + if (err) { + console.log('Error closing (destroying) memory database'); + return; + } + delete sqliteDBCache[name]; // New calls will treat as though never existed + }); + return; + } + if (_CFG2.default.cacheDatabaseInstances !== false && name in sqliteDBCache) { + delete sqliteDBCache[name]; + } if (_CFG2.default.deleteDatabaseFiles !== false) { require('fs').unlink(require('path').resolve(escapedDatabaseName), function (err) { if (err && err.code !== 'ENOENT') { @@ -10529,8 +10617,8 @@ IDBFactory.prototype.deleteDatabase = function (name) { return; } - var db = _CFG2.default.win.openDatabase(escapedDatabaseName, 1, name, _CFG2.default.DEFAULT_DB_SIZE); - db.transaction(function (tx) { + var sqliteDB = _CFG2.default.win.openDatabase(escapedDatabaseName, 1, name, _CFG2.default.DEFAULT_DB_SIZE); + sqliteDB.transaction(function (tx) { tx.executeSql('SELECT "name" FROM __sys__', [], function (tx, data) { var tables = data.rows; (function deleteTables(i) { diff --git a/dist/indexeddbshim-UnicodeIdentifiers-node.min.js b/dist/indexeddbshim-UnicodeIdentifiers-node.min.js index 9474b6ce..345cbeb9 100644 --- a/dist/indexeddbshim-UnicodeIdentifiers-node.min.js +++ b/dist/indexeddbshim-UnicodeIdentifiers-node.min.js @@ -2,9 +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":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;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={},C=void 0,D=0,E=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:E},this.utils={createDOMException:n.createDOMException},this.__connections=[]}return a.prototype=E.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=void 0;if(p&&a in B&&B[a][e]?f=B[a][e]:(f=A.default.win.openDatabase(p?A.default.memoryDatabase:r,1,a,A.default.DEFAULT_DB_SIZE),q&&(B[a][e]=f)),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),ca?b:a},0)];if(!d)return void console.log("Could not find a memory database instance to delete.");var g=d._db&&d._db._db;return g&&g.close?void g.close(function(a){if(a)return void console.log("Error closing (destroying) memory database");delete B[b]}):void console.log("The `openDatabase` implementation does not have the expected `._db._db.close` method for closing the database")}if(A.default.cacheDatabaseInstances!==!1&&b in B&&delete B[b],A.default.deleteDatabaseFiles!==!1)return void a("fs").unlink(a("path").resolve(e),function(a){if(a&&"ENOENT"!==a.code)return void c({code:0,message:"Error removing database file: "+e+" "+a});f()});A.default.win.openDatabase(e,1,b,A.default.DEFAULT_DB_SIZE).transaction(function(a){a.executeSql('SELECT "name" FROM __sys__',[],function(a,b){var d=b.rows;!function b(e){e>=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)||(q=function(a,b){a?d(a,b):e(b)},!1)})},c)},c)},c),j},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(){C.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 F=h.__createInstance();c.IDBFactory=h,c.cmp=i,c.shimIndexedDB=F},{"./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 prev ? curr : prev; + }, 0)]; + if (!memoryDB) { + console.log('Could not find a memory database instance to delete.'); + return; + } + var _sqliteDB = memoryDB._db && memoryDB._db._db; + if (!_sqliteDB || !_sqliteDB.close) { + console.log('The `openDatabase` implementation does not have the expected `._db._db.close` method for closing the database'); + return; + } + _sqliteDB.close(function (err) { + if (err) { + console.log('Error closing (destroying) memory database'); + return; + } + delete sqliteDBCache[name]; // New calls will treat as though never existed + }); + return; + } + if (_CFG2.default.cacheDatabaseInstances !== false && name in sqliteDBCache) { + delete sqliteDBCache[name]; + } if (_CFG2.default.deleteDatabaseFiles !== false) { require('fs').unlink(require('path').resolve(escapedDatabaseName), function (err) { if (err && err.code !== 'ENOENT') { @@ -10941,8 +11029,8 @@ IDBFactory.prototype.deleteDatabase = function (name) { return; } - var db = _CFG2.default.win.openDatabase(escapedDatabaseName, 1, name, _CFG2.default.DEFAULT_DB_SIZE); - db.transaction(function (tx) { + var sqliteDB = _CFG2.default.win.openDatabase(escapedDatabaseName, 1, name, _CFG2.default.DEFAULT_DB_SIZE); + sqliteDB.transaction(function (tx) { tx.executeSql('SELECT "name" FROM __sys__', [], function (tx, data) { var tables = data.rows; (function deleteTables(i) { diff --git a/dist/indexeddbshim-UnicodeIdentifiers.min.js b/dist/indexeddbshim-UnicodeIdentifiers.min.js index 528f218e..41c27ab8 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":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;c=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={},C=void 0,D=0,E=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:E},this.utils={createDOMException:n.createDOMException},this.__connections=[]}return a.prototype=E.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=void 0;if(p&&a in B&&B[a][e]?f=B[a][e]:(f=A.default.win.openDatabase(p?A.default.memoryDatabase:r,1,a,A.default.DEFAULT_DB_SIZE),q&&(B[a][e]=f)),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),ca?b:a},0)];if(!d)return void console.log("Could not find a memory database instance to delete.");var g=d._db&&d._db._db;return g&&g.close?void g.close(function(a){if(a)return void console.log("Error closing (destroying) memory database");delete B[b]}):void console.log("The `openDatabase` implementation does not have the expected `._db._db.close` method for closing the database")}if(A.default.cacheDatabaseInstances!==!1&&b in B&&delete B[b],A.default.deleteDatabaseFiles!==!1)return void a("fs").unlink(a("path").resolve(e),function(a){if(a&&"ENOENT"!==a.code)return void c({code:0,message:"Error removing database file: "+e+" "+a});f()});A.default.win.openDatabase(e,1,b,A.default.DEFAULT_DB_SIZE).transaction(function(a){a.executeSql('SELECT "name" FROM __sys__',[],function(a,b){var d=b.rows;!function b(e){e>=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)||(q=function(a,b){a?d(a,b):e(b)},!1)})},c)},c)},c),j},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(){C.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 F=h.__createInstance();c.IDBFactory=h,c.cmp=i,c.shimIndexedDB=F},{"./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 prev ? curr : prev; + }, 0)]; + if (!memoryDB) { + console.log('Could not find a memory database instance to delete.'); + return; + } + var _sqliteDB = memoryDB._db && memoryDB._db._db; + if (!_sqliteDB || !_sqliteDB.close) { + console.log('The `openDatabase` implementation does not have the expected `._db._db.close` method for closing the database'); + return; + } + _sqliteDB.close(function (err) { + if (err) { + console.log('Error closing (destroying) memory database'); + return; + } + delete sqliteDBCache[name]; // New calls will treat as though never existed + }); + return; + } + if (_CFG2.default.cacheDatabaseInstances !== false && name in sqliteDBCache) { + delete sqliteDBCache[name]; + } if (_CFG2.default.deleteDatabaseFiles !== false) { require('fs').unlink(require('path').resolve(escapedDatabaseName), function (err) { if (err && err.code !== 'ENOENT') { @@ -10529,8 +10617,8 @@ IDBFactory.prototype.deleteDatabase = function (name) { return; } - var db = _CFG2.default.win.openDatabase(escapedDatabaseName, 1, name, _CFG2.default.DEFAULT_DB_SIZE); - db.transaction(function (tx) { + var sqliteDB = _CFG2.default.win.openDatabase(escapedDatabaseName, 1, name, _CFG2.default.DEFAULT_DB_SIZE); + sqliteDB.transaction(function (tx) { tx.executeSql('SELECT "name" FROM __sys__', [], function (tx, data) { var tables = data.rows; (function deleteTables(i) { diff --git a/dist/indexeddbshim-node.min.js b/dist/indexeddbshim-node.min.js index a1f91a59..93738d0e 100644 --- a/dist/indexeddbshim-node.min.js +++ b/dist/indexeddbshim-node.min.js @@ -1,12 +1,12 @@ -/*! indexeddbshim - v2.2.2 - 2017-04-08 */ +/*! indexeddbshim - v2.2.2 - 2017-04-09 */ !function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.dummyPlaceholder=a()}}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c||a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g>2],h+=a[(3&f[e])<<4|f[e+1]>>4],h+=a[(15&f[e+1])<<2|f[e+2]>>6],h+=a[63&f[e+2]];return g%3==2?h=h.substring(0,h.length-1)+"=":g%3==1&&(h=h.substring(0,h.length-2)+"=="),h},c.decode=function(a){var c,d,e,f,g,h=.75*a.length,i=a.length,j=0;"="===a[a.length-1]&&(h--,"="===a[a.length-2]&&h--);var k=new ArrayBuffer(h),l=new Uint8Array(k);for(c=0;c>4,l[j++]=(15&e)<<4|f>>2,l[j++]=(3&f)<<6|63&g;return k}}()},{}],3:[function(a,b,c){a("../../modules/core.regexp.escape"),b.exports=a("../../modules/_core").RegExp.escape},{"../../modules/_core":24,"../../modules/core.regexp.escape":120}],4:[function(a,b,c){b.exports=function(a){if("function"!=typeof a)throw TypeError(a+" is not a function!");return a}},{}],5:[function(a,b,c){var d=a("./_cof");b.exports=function(a,b){if("number"!=typeof a&&"Number"!=d(a))throw TypeError(b);return+a}},{"./_cof":19}],6:[function(a,b,c){var d=a("./_wks")("unscopables"),e=Array.prototype;void 0==e[d]&&a("./_hide")(e,d,{}),b.exports=function(a){e[d][a]=!0}},{"./_hide":41,"./_wks":118}],7:[function(a,b,c){b.exports=function(a,b,c,d){if(!(a instanceof b)||void 0!==d&&d in a)throw TypeError(c+": incorrect invocation!");return a}},{}],8:[function(a,b,c){var d=a("./_is-object");b.exports=function(a){if(!d(a))throw TypeError(a+" is not an object!");return a}},{"./_is-object":50}],9:[function(a,b,c){"use strict";var d=a("./_to-object"),e=a("./_to-index"),f=a("./_to-length");b.exports=[].copyWithin||function(a,b){var c=d(this),g=f(c.length),h=e(a,g),i=e(b,g),j=arguments.length>2?arguments[2]:void 0,k=Math.min((void 0===j?g:e(j,g))-i,g-h),l=1;for(i0;)i in c?c[h]=c[i]:delete c[h],h+=l,i+=l;return c}},{"./_to-index":106,"./_to-length":109,"./_to-object":110}],10:[function(a,b,c){"use strict";var d=a("./_to-object"),e=a("./_to-index"),f=a("./_to-length");b.exports=function(a){for(var b=d(this),c=f(b.length),g=arguments.length,h=e(g>1?arguments[1]:void 0,c),i=g>2?arguments[2]:void 0,j=void 0===i?c:e(i,c);j>h;)b[h++]=a;return b}},{"./_to-index":106,"./_to-length":109,"./_to-object":110}],11:[function(a,b,c){var d=a("./_for-of");b.exports=function(a,b){var c=[];return d(a,!1,c.push,c,b),c}},{"./_for-of":38}],12:[function(a,b,c){var d=a("./_to-iobject"),e=a("./_to-length"),f=a("./_to-index");b.exports=function(a){return function(b,c,g){var h,i=d(b),j=e(i.length),k=f(g,j);if(a&&c!=c){for(;j>k;)if((h=i[k++])!=h)return!0}else for(;j>k;k++)if((a||k in i)&&i[k]===c)return a||k||0;return!a&&-1}}},{"./_to-index":106,"./_to-iobject":108,"./_to-length":109}],13:[function(a,b,c){var d=a("./_ctx"),e=a("./_iobject"),f=a("./_to-object"),g=a("./_to-length"),h=a("./_array-species-create");b.exports=function(a,b){var c=1==a,i=2==a,j=3==a,k=4==a,l=6==a,m=5==a||l,n=b||h;return function(b,h,o){for(var p,q,r=f(b),s=e(r),t=d(h,o,3),u=g(s.length),v=0,w=c?n(b,u):i?n(b,0):void 0;u>v;v++)if((m||v in s)&&(p=s[v],q=t(p,v,r),a))if(c)w[v]=q;else if(q)switch(a){case 3:return!0;case 5:return p;case 6:return v;case 2:w.push(p)}else if(k)return!1;return l?-1:j||k?k:w}}},{"./_array-species-create":16,"./_ctx":26,"./_iobject":46,"./_to-length":109,"./_to-object":110}],14:[function(a,b,c){var d=a("./_a-function"),e=a("./_to-object"),f=a("./_iobject"),g=a("./_to-length");b.exports=function(a,b,c,h,i){d(b);var j=e(a),k=f(j),l=g(j.length),m=i?l-1:0,n=i?-1:1;if(c<2)for(;;){if(m in k){h=k[m],m+=n;break}if(m+=n,i?m<0:l<=m)throw TypeError("Reduce of empty array with no initial value")}for(;i?m>=0:l>m;m+=n)m in k&&(h=b(h,k[m],m,j));return h}},{"./_a-function":4,"./_iobject":46,"./_to-length":109,"./_to-object":110}],15:[function(a,b,c){var d=a("./_is-object"),e=a("./_is-array"),f=a("./_wks")("species");b.exports=function(a){var b;return e(a)&&(b=a.constructor,"function"!=typeof b||b!==Array&&!e(b.prototype)||(b=void 0),d(b)&&null===(b=b[f])&&(b=void 0)),void 0===b?Array:b}},{"./_is-array":48,"./_is-object":50,"./_wks":118}],16:[function(a,b,c){var d=a("./_array-species-constructor");b.exports=function(a,b){return new(d(a))(b)}},{"./_array-species-constructor":15}],17:[function(a,b,c){"use strict";var d=a("./_a-function"),e=a("./_is-object"),f=a("./_invoke"),g=[].slice,h={},i=function(a,b,c){if(!(b in h)){for(var d=[],e=0;e1?arguments[1]:void 0,3);b=b?b.n:this._f;)for(c(b.v,b.k,this);b&&b.r;)b=b.p},has:function(a){return!!q(this,a)}}),n&&d(l.prototype,"size",{get:function(){return i(this[p])}}),l},def:function(a,b,c){var d,e,f=q(a,b);return f?f.v=c:(a._l=f={i:e=o(b,!0),k:b,v:c,p:d=a._l,n:void 0,r:!1},a._f||(a._f=f),d&&(d.n=f),a[p]++,"F"!==e&&(a._i[e]=f)),a},getEntry:q,setStrong:function(a,b,c){k(a,b,function(a,b){this._t=a,this._k=b,this._l=void 0},function(){for(var a=this,b=a._k,c=a._l;c&&c.r;)c=c.p;return a._t&&(a._l=c=c?c.n:a._t._f)?"keys"==b?l(0,c.k):"values"==b?l(0,c.v):l(0,[c.k,c.v]):(a._t=void 0,l(1))},c?"entries":"values",!c,!0),m(b)}}},{"./_an-instance":7,"./_ctx":26,"./_defined":28,"./_descriptors":29,"./_for-of":38,"./_iter-define":54,"./_iter-step":56,"./_meta":63,"./_object-create":67,"./_object-dp":68,"./_redefine-all":87,"./_set-species":92}],21:[function(a,b,c){var d=a("./_classof"),e=a("./_array-from-iterable");b.exports=function(a){return function(){if(d(this)!=a)throw TypeError(a+"#toJSON isn't generic");return e(this)}}},{"./_array-from-iterable":11,"./_classof":18}],22:[function(a,b,c){"use strict";var d=a("./_redefine-all"),e=a("./_meta").getWeak,f=a("./_an-object"),g=a("./_is-object"),h=a("./_an-instance"),i=a("./_for-of"),j=a("./_array-methods"),k=a("./_has"),l=j(5),m=j(6),n=0,o=function(a){return a._l||(a._l=new p)},p=function(){this.a=[]},q=function(a,b){return l(a.a,function(a){return a[0]===b})};p.prototype={get:function(a){var b=q(this,a);if(b)return b[1]},has:function(a){return!!q(this,a)},set:function(a,b){var c=q(this,a);c?c[1]=b:this.a.push([a,b])},delete:function(a){var b=m(this.a,function(b){return b[0]===a});return~b&&this.a.splice(b,1),!!~b}},b.exports={getConstructor:function(a,b,c,f){var j=a(function(a,d){h(a,j,b,"_i"),a._i=n++,a._l=void 0,void 0!=d&&i(d,c,a[f],a)});return d(j.prototype,{delete:function(a){if(!g(a))return!1;var b=e(a);return b===!0?o(this).delete(a):b&&k(b,this._i)&&delete b[this._i]},has:function(a){if(!g(a))return!1;var b=e(a);return b===!0?o(this).has(a):b&&k(b,this._i)}}),j},def:function(a,b,c){var d=e(f(b),!0);return d===!0?o(a).set(b,c):d[a._i]=c,a},ufstore:o}},{"./_an-instance":7,"./_an-object":8,"./_array-methods":13,"./_for-of":38,"./_has":40,"./_is-object":50,"./_meta":63,"./_redefine-all":87}],23:[function(a,b,c){"use strict";var d=a("./_global"),e=a("./_export"),f=a("./_redefine"),g=a("./_redefine-all"),h=a("./_meta"),i=a("./_for-of"),j=a("./_an-instance"),k=a("./_is-object"),l=a("./_fails"),m=a("./_iter-detect"),n=a("./_set-to-string-tag"),o=a("./_inherit-if-required");b.exports=function(a,b,c,p,q,r){var s=d[a],t=s,u=q?"set":"add",v=t&&t.prototype,w={},x=function(a){var b=v[a];f(v,a,"delete"==a?function(a){return!(r&&!k(a))&&b.call(this,0===a?0:a)}:"has"==a?function(a){return!(r&&!k(a))&&b.call(this,0===a?0:a)}:"get"==a?function(a){return r&&!k(a)?void 0:b.call(this,0===a?0:a)}:"add"==a?function(a){return b.call(this,0===a?0:a),this}:function(a,c){return b.call(this,0===a?0:a,c),this})};if("function"==typeof t&&(r||v.forEach&&!l(function(){(new t).entries().next()}))){var y=new t,z=y[u](r?{}:-0,1)!=y,A=l(function(){y.has(1)}),B=m(function(a){new t(a)}),C=!r&&l(function(){for(var a=new t,b=5;b--;)a[u](b,b);return!a.has(-0)});B||(t=b(function(b,c){j(b,t,a);var d=o(new s,b,t);return void 0!=c&&i(c,q,d[u],d),d}),t.prototype=v,v.constructor=t),(A||C)&&(x("delete"),x("has"),q&&x("get")),(C||z)&&x(u),r&&v.clear&&delete v.clear}else t=p.getConstructor(b,a,q,u),g(t.prototype,c),h.NEED=!0;return n(t,a),w[a]=t,e(e.G+e.W+e.F*(t!=s),w),r||p.setStrong(t,a,q),t}},{"./_an-instance":7,"./_export":33,"./_fails":35,"./_for-of":38,"./_global":39,"./_inherit-if-required":44,"./_is-object":50,"./_iter-detect":55,"./_meta":63,"./_redefine":88,"./_redefine-all":87,"./_set-to-string-tag":93}],24:[function(a,b,c){var d=b.exports={version:"2.4.0"};"number"==typeof __e&&(__e=d)},{}],25:[function(a,b,c){"use strict";var d=a("./_object-dp"),e=a("./_property-desc");b.exports=function(a,b,c){b in a?d.f(a,b,e(0,c)):a[b]=c}},{"./_object-dp":68,"./_property-desc":86}],26:[function(a,b,c){var d=a("./_a-function");b.exports=function(a,b,c){if(d(a),void 0===b)return a;switch(c){case 1:return function(c){return a.call(b,c)};case 2:return function(c,d){return a.call(b,c,d)};case 3:return function(c,d,e){return a.call(b,c,d,e)}}return function(){return a.apply(b,arguments)}}},{"./_a-function":4}],27:[function(a,b,c){"use strict";var d=a("./_an-object"),e=a("./_to-primitive");b.exports=function(a){if("string"!==a&&"number"!==a&&"default"!==a)throw TypeError("Incorrect hint");return e(d(this),"number"!=a)}},{"./_an-object":8,"./_to-primitive":111}],28:[function(a,b,c){b.exports=function(a){if(void 0==a)throw TypeError("Can't call method on "+a);return a}},{}],29:[function(a,b,c){b.exports=!a("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":35}],30:[function(a,b,c){var d=a("./_is-object"),e=a("./_global").document,f=d(e)&&d(e.createElement);b.exports=function(a){return f?e.createElement(a):{}}},{"./_global":39,"./_is-object":50}],31:[function(a,b,c){b.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],32:[function(a,b,c){var d=a("./_object-keys"),e=a("./_object-gops"),f=a("./_object-pie");b.exports=function(a){var b=d(a),c=e.f;if(c)for(var g,h=c(a),i=f.f,j=0;h.length>j;)i.call(a,g=h[j++])&&b.push(g);return b}},{"./_object-gops":74,"./_object-keys":77,"./_object-pie":78}],33:[function(a,b,c){var d=a("./_global"),e=a("./_core"),f=a("./_hide"),g=a("./_redefine"),h=a("./_ctx"),i=function(a,b,c){var j,k,l,m,n=a&i.F,o=a&i.G,p=a&i.S,q=a&i.P,r=a&i.B,s=o?d:p?d[b]||(d[b]={}):(d[b]||{}).prototype,t=o?e:e[b]||(e[b]={}),u=t.prototype||(t.prototype={});o&&(c=b);for(j in c)k=!n&&s&&void 0!==s[j],l=(k?s:c)[j],m=r&&k?h(l,d):q&&"function"==typeof l?h(Function.call,l):l,s&&g(s,j,l,a&i.U),t[j]!=l&&f(t,j,m),q&&u[j]!=l&&(u[j]=l)};d.core=e,i.F=1,i.G=2,i.S=4,i.P=8,i.B=16,i.W=32,i.U=64,i.R=128,b.exports=i},{"./_core":24,"./_ctx":26,"./_global":39,"./_hide":41,"./_redefine":88}],34:[function(a,b,c){var d=a("./_wks")("match");b.exports=function(a){var b=/./;try{"/./"[a](b)}catch(c){try{return b[d]=!1,!"/./"[a](b)}catch(a){}}return!0}},{"./_wks":118}],35:[function(a,b,c){b.exports=function(a){try{return!!a()}catch(a){return!0}}},{}],36:[function(a,b,c){"use strict";var d=a("./_hide"),e=a("./_redefine"),f=a("./_fails"),g=a("./_defined"),h=a("./_wks");b.exports=function(a,b,c){var i=h(a),j=c(g,i,""[a]),k=j[0],l=j[1];f(function(){var b={};return b[i]=function(){return 7},7!=""[a](b)})&&(e(String.prototype,a,k),d(RegExp.prototype,i,2==b?function(a,b){return l.call(a,this,b)}:function(a){return l.call(a,this)}))}},{"./_defined":28,"./_fails":35,"./_hide":41,"./_redefine":88,"./_wks":118}],37:[function(a,b,c){"use strict";var d=a("./_an-object");b.exports=function(){var a=d(this),b="";return a.global&&(b+="g"),a.ignoreCase&&(b+="i"),a.multiline&&(b+="m"),a.unicode&&(b+="u"),a.sticky&&(b+="y"),b}},{"./_an-object":8}],38:[function(a,b,c){var d=a("./_ctx"),e=a("./_iter-call"),f=a("./_is-array-iter"),g=a("./_an-object"),h=a("./_to-length"),i=a("./core.get-iterator-method"),j={},k={},c=b.exports=function(a,b,c,l,m){var n,o,p,q,r=m?function(){return a}:i(a),s=d(c,l,b?2:1),t=0;if("function"!=typeof r)throw TypeError(a+" is not iterable!");if(f(r)){for(n=h(a.length);n>t;t++)if((q=b?s(g(o=a[t])[0],o[1]):s(a[t]))===j||q===k)return q}else for(p=r.call(a);!(o=p.next()).done;)if((q=e(p,s,o.value,b))===j||q===k)return q};c.BREAK=j,c.RETURN=k},{"./_an-object":8,"./_ctx":26,"./_is-array-iter":47,"./_iter-call":52,"./_to-length":109,"./core.get-iterator-method":119}],39:[function(a,b,c){var d=b.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=d)},{}],40:[function(a,b,c){var d={}.hasOwnProperty;b.exports=function(a,b){return d.call(a,b)}},{}],41:[function(a,b,c){var d=a("./_object-dp"),e=a("./_property-desc");b.exports=a("./_descriptors")?function(a,b,c){return d.f(a,b,e(1,c))}:function(a,b,c){return a[b]=c,a}},{"./_descriptors":29,"./_object-dp":68,"./_property-desc":86}],42:[function(a,b,c){b.exports=a("./_global").document&&document.documentElement},{"./_global":39}],43:[function(a,b,c){b.exports=!a("./_descriptors")&&!a("./_fails")(function(){return 7!=Object.defineProperty(a("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":29,"./_dom-create":30,"./_fails":35}],44:[function(a,b,c){var d=a("./_is-object"),e=a("./_set-proto").set;b.exports=function(a,b,c){var f,g=b.constructor;return g!==c&&"function"==typeof g&&(f=g.prototype)!==c.prototype&&d(f)&&e&&e(a,f),a}},{"./_is-object":50,"./_set-proto":91}],45:[function(a,b,c){b.exports=function(a,b,c){var d=void 0===c;switch(b.length){case 0:return d?a():a.call(c);case 1:return d?a(b[0]):a.call(c,b[0]);case 2:return d?a(b[0],b[1]):a.call(c,b[0],b[1]);case 3:return d?a(b[0],b[1],b[2]):a.call(c,b[0],b[1],b[2]);case 4:return d?a(b[0],b[1],b[2],b[3]):a.call(c,b[0],b[1],b[2],b[3])}return a.apply(c,b)}},{}],46:[function(a,b,c){var d=a("./_cof");b.exports=Object("z").propertyIsEnumerable(0)?Object:function(a){return"String"==d(a)?a.split(""):Object(a)}},{"./_cof":19}],47:[function(a,b,c){var d=a("./_iterators"),e=a("./_wks")("iterator"),f=Array.prototype;b.exports=function(a){return void 0!==a&&(d.Array===a||f[e]===a)}},{"./_iterators":57,"./_wks":118}],48:[function(a,b,c){var d=a("./_cof");b.exports=Array.isArray||function(a){return"Array"==d(a)}},{"./_cof":19}],49:[function(a,b,c){var d=a("./_is-object"),e=Math.floor;b.exports=function(a){return!d(a)&&isFinite(a)&&e(a)===a}},{"./_is-object":50}],50:[function(a,b,c){b.exports=function(a){return"object"==typeof a?null!==a:"function"==typeof a}},{}],51:[function(a,b,c){var d=a("./_is-object"),e=a("./_cof"),f=a("./_wks")("match");b.exports=function(a){var b;return d(a)&&(void 0!==(b=a[f])?!!b:"RegExp"==e(a))}},{"./_cof":19,"./_is-object":50,"./_wks":118}],52:[function(a,b,c){var d=a("./_an-object");b.exports=function(a,b,c,e){try{return e?b(d(c)[0],c[1]):b(c)}catch(b){var f=a.return;throw void 0!==f&&d(f.call(a)),b}}},{"./_an-object":8}],53:[function(a,b,c){"use strict";var d=a("./_object-create"),e=a("./_property-desc"),f=a("./_set-to-string-tag"),g={};a("./_hide")(g,a("./_wks")("iterator"),function(){return this}),b.exports=function(a,b,c){a.prototype=d(g,{next:e(1,c)}),f(a,b+" Iterator")}},{"./_hide":41,"./_object-create":67,"./_property-desc":86,"./_set-to-string-tag":93,"./_wks":118}],54:[function(a,b,c){"use strict";var d=a("./_library"),e=a("./_export"),f=a("./_redefine"),g=a("./_hide"),h=a("./_has"),i=a("./_iterators"),j=a("./_iter-create"),k=a("./_set-to-string-tag"),l=a("./_object-gpo"),m=a("./_wks")("iterator"),n=!([].keys&&"next"in[].keys()),o=function(){return this};b.exports=function(a,b,c,p,q,r,s){j(c,b,p);var t,u,v,w=function(a){if(!n&&a in A)return A[a];switch(a){case"keys":case"values":return function(){return new c(this,a)}}return function(){return new c(this,a)}},x=b+" Iterator",y="values"==q,z=!1,A=a.prototype,B=A[m]||A["@@iterator"]||q&&A[q],C=B||w(q),D=q?y?w("entries"):C:void 0,E="Array"==b?A.entries||B:B;if(E&&(v=l(E.call(new a)))!==Object.prototype&&(k(v,x,!0),d||h(v,m)||g(v,m,o)),y&&B&&"values"!==B.name&&(z=!0,C=function(){return B.call(this)}),d&&!s||!n&&!z&&A[m]||g(A,m,C),i[b]=C,i[x]=o,q)if(t={values:y?C:w("values"),keys:r?C:w("keys"),entries:D},s)for(u in t)u in A||f(A,u,t[u]);else e(e.P+e.F*(n||z),b,t);return t}},{"./_export":33,"./_has":40,"./_hide":41,"./_iter-create":53,"./_iterators":57,"./_library":59,"./_object-gpo":75,"./_redefine":88,"./_set-to-string-tag":93,"./_wks":118}],55:[function(a,b,c){var d=a("./_wks")("iterator"),e=!1;try{var f=[7][d]();f.return=function(){e=!0},Array.from(f,function(){throw 2})}catch(a){}b.exports=function(a,b){if(!b&&!e)return!1;var c=!1;try{var f=[7],g=f[d]();g.next=function(){return{done:c=!0}},f[d]=function(){return g},a(f)}catch(a){}return c}},{"./_wks":118}],56:[function(a,b,c){b.exports=function(a,b){return{value:b,done:!!a}}},{}],57:[function(a,b,c){b.exports={}},{}],58:[function(a,b,c){var d=a("./_object-keys"),e=a("./_to-iobject");b.exports=function(a,b){for(var c,f=e(a),g=d(f),h=g.length,i=0;h>i;)if(f[c=g[i++]]===b)return c}},{"./_object-keys":77,"./_to-iobject":108}],59:[function(a,b,c){b.exports=!1},{}],60:[function(a,b,c){var d=Math.expm1;b.exports=!d||d(10)>22025.465794806718||d(10)<22025.465794806718||d(-2e-17)!=-2e-17?function(a){return 0==(a=+a)?a:a>-1e-6&&a<1e-6?a+a*a/2:Math.exp(a)-1}:d},{}],61:[function(a,b,c){b.exports=Math.log1p||function(a){return(a=+a)>-1e-8&&a<1e-8?a-a*a/2:Math.log(1+a)}},{}],62:[function(a,b,c){b.exports=Math.sign||function(a){return 0==(a=+a)||a!=a?a:a<0?-1:1}},{}],63:[function(a,b,c){var d=a("./_uid")("meta"),e=a("./_is-object"),f=a("./_has"),g=a("./_object-dp").f,h=0,i=Object.isExtensible||function(){return!0},j=!a("./_fails")(function(){return i(Object.preventExtensions({}))}),k=function(a){g(a,d,{value:{i:"O"+ ++h,w:{}}})},l=function(a,b){if(!e(a))return"symbol"==typeof a?a:("string"==typeof a?"S":"P")+a;if(!f(a,d)){if(!i(a))return"F";if(!b)return"E";k(a)}return a[d].i},m=function(a,b){if(!f(a,d)){if(!i(a))return!0;if(!b)return!1;k(a)}return a[d].w},n=function(a){return j&&o.NEED&&i(a)&&!f(a,d)&&k(a),a},o=b.exports={KEY:d,NEED:!1,fastKey:l,getWeak:m,onFreeze:n}},{"./_fails":35,"./_has":40,"./_is-object":50,"./_object-dp":68,"./_uid":115}],64:[function(a,b,c){var d=a("./es6.map"),e=a("./_export"),f=a("./_shared")("metadata"),g=f.store||(f.store=new(a("./es6.weak-map"))),h=function(a,b,c){var e=g.get(a);if(!e){if(!c)return;g.set(a,e=new d)}var f=e.get(b);if(!f){if(!c)return;e.set(b,f=new d)}return f},i=function(a,b,c){var d=h(b,c,!1);return void 0!==d&&d.has(a)},j=function(a,b,c){var d=h(b,c,!1);return void 0===d?void 0:d.get(a)},k=function(a,b,c,d){h(c,d,!0).set(a,b)},l=function(a,b){var c=h(a,b,!1),d=[];return c&&c.forEach(function(a,b){d.push(b)}),d},m=function(a){return void 0===a||"symbol"==typeof a?a:String(a)},n=function(a){e(e.S,"Reflect",a)};b.exports={store:g,map:h,has:i,get:j,set:k,keys:l,key:m,exp:n}},{"./_export":33,"./_shared":95,"./es6.map":150,"./es6.weak-map":256}],65:[function(a,b,c){var d=a("./_global"),e=a("./_task").set,f=d.MutationObserver||d.WebKitMutationObserver,g=d.process,h=d.Promise,i="process"==a("./_cof")(g);b.exports=function(){var a,b,c,j=function(){var d,e;for(i&&(d=g.domain)&&d.exit();a;){e=a.fn,a=a.next;try{e()}catch(d){throw a?c():b=void 0,d}}b=void 0,d&&d.enter()};if(i)c=function(){g.nextTick(j)};else if(f){var k=!0,l=document.createTextNode("");new f(j).observe(l,{characterData:!0}),c=function(){l.data=k=!k}}else if(h&&h.resolve){var m=h.resolve();c=function(){m.then(j)}}else c=function(){e.call(d,j)};return function(d){var e={fn:d,next:void 0};b&&(b.next=e),a||(a=e,c()),b=e}}},{"./_cof":19,"./_global":39,"./_task":105}],66:[function(a,b,c){"use strict";var d=a("./_object-keys"),e=a("./_object-gops"),f=a("./_object-pie"),g=a("./_to-object"),h=a("./_iobject"),i=Object.assign;b.exports=!i||a("./_fails")(function(){var a={},b={},c=Symbol(),d="abcdefghijklmnopqrst";return a[c]=7,d.split("").forEach(function(a){b[a]=a}),7!=i({},a)[c]||Object.keys(i({},b)).join("")!=d})?function(a,b){for(var c=g(a),i=arguments.length,j=1,k=e.f,l=f.f;i>j;)for(var m,n=h(arguments[j++]),o=k?d(n).concat(k(n)):d(n),p=o.length,q=0;p>q;)l.call(n,m=o[q++])&&(c[m]=n[m]);return c}:i},{"./_fails":35,"./_iobject":46,"./_object-gops":74,"./_object-keys":77,"./_object-pie":78,"./_to-object":110}],67:[function(a,b,c){var d=a("./_an-object"),e=a("./_object-dps"),f=a("./_enum-bug-keys"),g=a("./_shared-key")("IE_PROTO"),h=function(){},i=function(){var b,c=a("./_dom-create")("iframe"),d=f.length;for(c.style.display="none",a("./_html").appendChild(c),c.src="javascript:",b=c.contentWindow.document,b.open(),b.write(""),b.close(),i=b.F;d--;)delete i.prototype[f[d]];return i()};b.exports=Object.create||function(a,b){var c;return null!==a?(h.prototype=d(a),c=new h,h.prototype=null,c[g]=a):c=i(),void 0===b?c:e(c,b)}},{"./_an-object":8,"./_dom-create":30,"./_enum-bug-keys":31,"./_html":42,"./_object-dps":69,"./_shared-key":94}],68:[function(a,b,c){var d=a("./_an-object"),e=a("./_ie8-dom-define"),f=a("./_to-primitive"),g=Object.defineProperty;c.f=a("./_descriptors")?Object.defineProperty:function(a,b,c){if(d(a),b=f(b,!0),d(c),e)try{return g(a,b,c)}catch(a){}if("get"in c||"set"in c)throw TypeError("Accessors not supported!");return"value"in c&&(a[b]=c.value),a}},{"./_an-object":8,"./_descriptors":29,"./_ie8-dom-define":43,"./_to-primitive":111}],69:[function(a,b,c){var d=a("./_object-dp"),e=a("./_an-object"),f=a("./_object-keys");b.exports=a("./_descriptors")?Object.defineProperties:function(a,b){e(a);for(var c,g=f(b),h=g.length,i=0;h>i;)d.f(a,c=g[i++],b[c]);return a}},{"./_an-object":8,"./_descriptors":29,"./_object-dp":68,"./_object-keys":77}],70:[function(a,b,c){b.exports=a("./_library")||!a("./_fails")(function(){var b=Math.random();__defineSetter__.call(null,b,function(){}),delete a("./_global")[b]})},{"./_fails":35,"./_global":39,"./_library":59}],71:[function(a,b,c){var d=a("./_object-pie"),e=a("./_property-desc"),f=a("./_to-iobject"),g=a("./_to-primitive"),h=a("./_has"),i=a("./_ie8-dom-define"),j=Object.getOwnPropertyDescriptor;c.f=a("./_descriptors")?j:function(a,b){if(a=f(a),b=g(b,!0),i)try{return j(a,b)}catch(a){}if(h(a,b))return e(!d.f.call(a,b),a[b])}},{"./_descriptors":29,"./_has":40,"./_ie8-dom-define":43,"./_object-pie":78,"./_property-desc":86,"./_to-iobject":108,"./_to-primitive":111}],72:[function(a,b,c){var d=a("./_to-iobject"),e=a("./_object-gopn").f,f={}.toString,g="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],h=function(a){try{return e(a)}catch(a){return g.slice()}};b.exports.f=function(a){return g&&"[object Window]"==f.call(a)?h(a):e(d(a))}},{"./_object-gopn":73,"./_to-iobject":108}],73:[function(a,b,c){var d=a("./_object-keys-internal"),e=a("./_enum-bug-keys").concat("length","prototype");c.f=Object.getOwnPropertyNames||function(a){return d(a,e)}},{"./_enum-bug-keys":31,"./_object-keys-internal":76}],74:[function(a,b,c){c.f=Object.getOwnPropertySymbols},{}],75:[function(a,b,c){var d=a("./_has"),e=a("./_to-object"),f=a("./_shared-key")("IE_PROTO"),g=Object.prototype;b.exports=Object.getPrototypeOf||function(a){return a=e(a),d(a,f)?a[f]:"function"==typeof a.constructor&&a instanceof a.constructor?a.constructor.prototype:a instanceof Object?g:null}},{"./_has":40,"./_shared-key":94,"./_to-object":110}],76:[function(a,b,c){var d=a("./_has"),e=a("./_to-iobject"),f=a("./_array-includes")(!1),g=a("./_shared-key")("IE_PROTO");b.exports=function(a,b){var c,h=e(a),i=0,j=[];for(c in h)c!=g&&d(h,c)&&j.push(c);for(;b.length>i;)d(h,c=b[i++])&&(~f(j,c)||j.push(c));return j}},{"./_array-includes":12,"./_has":40,"./_shared-key":94,"./_to-iobject":108}],77:[function(a,b,c){var d=a("./_object-keys-internal"),e=a("./_enum-bug-keys");b.exports=Object.keys||function(a){return d(a,e)}},{"./_enum-bug-keys":31,"./_object-keys-internal":76}],78:[function(a,b,c){c.f={}.propertyIsEnumerable},{}],79:[function(a,b,c){var d=a("./_export"),e=a("./_core"),f=a("./_fails");b.exports=function(a,b){var c=(e.Object||{})[a]||Object[a],g={};g[a]=b(c),d(d.S+d.F*f(function(){c(1)}),"Object",g)}},{"./_core":24,"./_export":33,"./_fails":35}],80:[function(a,b,c){var d=a("./_object-keys"),e=a("./_to-iobject"),f=a("./_object-pie").f;b.exports=function(a){return function(b){for(var c,g=e(b),h=d(g),i=h.length,j=0,k=[];i>j;)f.call(g,c=h[j++])&&k.push(a?[c,g[c]]:g[c]);return k}}},{"./_object-keys":77,"./_object-pie":78,"./_to-iobject":108}],81:[function(a,b,c){var d=a("./_object-gopn"),e=a("./_object-gops"),f=a("./_an-object"),g=a("./_global").Reflect;b.exports=g&&g.ownKeys||function(a){var b=d.f(f(a)),c=e.f;return c?b.concat(c(a)):b}},{"./_an-object":8,"./_global":39,"./_object-gopn":73,"./_object-gops":74}],82:[function(a,b,c){var d=a("./_global").parseFloat,e=a("./_string-trim").trim;b.exports=1/d(a("./_string-ws")+"-0")!=-1/0?function(a){var b=e(String(a),3),c=d(b);return 0===c&&"-"==b.charAt(0)?-0:c}:d},{"./_global":39,"./_string-trim":103,"./_string-ws":104}],83:[function(a,b,c){var d=a("./_global").parseInt,e=a("./_string-trim").trim,f=a("./_string-ws"),g=/^[\-+]?0[xX]/;b.exports=8!==d(f+"08")||22!==d(f+"0x16")?function(a,b){var c=e(String(a),3);return d(c,b>>>0||(g.test(c)?16:10))}:d},{"./_global":39,"./_string-trim":103,"./_string-ws":104}],84:[function(a,b,c){"use strict";var d=a("./_path"),e=a("./_invoke"),f=a("./_a-function");b.exports=function(){for(var a=f(this),b=arguments.length,c=Array(b),g=0,h=d._,i=!1;b>g;)(c[g]=arguments[g++])===h&&(i=!0);return function(){var d,f=this,g=arguments.length,j=0,k=0;if(!i&&!g)return e(a,c,f);if(d=c.slice(),i)for(;b>j;j++)d[j]===h&&(d[j]=arguments[k++]);for(;g>k;)d.push(arguments[k++]);return e(a,d,f)}}},{"./_a-function":4,"./_invoke":45,"./_path":85}],85:[function(a,b,c){b.exports=a("./_global")},{"./_global":39}],86:[function(a,b,c){b.exports=function(a,b){return{enumerable:!(1&a),configurable:!(2&a),writable:!(4&a),value:b}}},{}],87:[function(a,b,c){var d=a("./_redefine");b.exports=function(a,b,c){for(var e in b)d(a,e,b[e],c);return a}},{"./_redefine":88}],88:[function(a,b,c){var d=a("./_global"),e=a("./_hide"),f=a("./_has"),g=a("./_uid")("src"),h=Function.toString,i=(""+h).split("toString");a("./_core").inspectSource=function(a){return h.call(a)},(b.exports=function(a,b,c,h){var j="function"==typeof c;j&&(f(c,"name")||e(c,"name",b)),a[b]!==c&&(j&&(f(c,g)||e(c,g,a[b]?""+a[b]:i.join(String(b)))),a===d?a[b]=c:h?a[b]?a[b]=c:e(a,b,c):(delete a[b],e(a,b,c)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[g]||h.call(this)})},{"./_core":24,"./_global":39,"./_has":40,"./_hide":41,"./_uid":115}],89:[function(a,b,c){b.exports=function(a,b){var c=b===Object(b)?function(a){return b[a]}:b;return function(b){return String(b).replace(a,c)}}},{}],90:[function(a,b,c){b.exports=Object.is||function(a,b){return a===b?0!==a||1/a==1/b:a!=a&&b!=b}},{}],91:[function(a,b,c){var d=a("./_is-object"),e=a("./_an-object"),f=function(a,b){if(e(a),!d(b)&&null!==b)throw TypeError(b+": can't set as prototype!")};b.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(b,c,d){try{d=a("./_ctx")(Function.call,a("./_object-gopd").f(Object.prototype,"__proto__").set,2),d(b,[]),c=!(b instanceof Array)}catch(a){c=!0}return function(a,b){return f(a,b),c?a.__proto__=b:d(a,b),a}}({},!1):void 0),check:f}},{"./_an-object":8,"./_ctx":26,"./_is-object":50,"./_object-gopd":71}],92:[function(a,b,c){"use strict";var d=a("./_global"),e=a("./_object-dp"),f=a("./_descriptors"),g=a("./_wks")("species");b.exports=function(a){var b=d[a];f&&b&&!b[g]&&e.f(b,g,{configurable:!0,get:function(){return this}})}},{"./_descriptors":29,"./_global":39,"./_object-dp":68,"./_wks":118}],93:[function(a,b,c){var d=a("./_object-dp").f,e=a("./_has"),f=a("./_wks")("toStringTag");b.exports=function(a,b,c){a&&!e(a=c?a:a.prototype,f)&&d(a,f,{configurable:!0,value:b})}},{"./_has":40,"./_object-dp":68,"./_wks":118}],94:[function(a,b,c){var d=a("./_shared")("keys"),e=a("./_uid");b.exports=function(a){return d[a]||(d[a]=e(a))}},{"./_shared":95,"./_uid":115}],95:[function(a,b,c){var d=a("./_global"),e=d["__core-js_shared__"]||(d["__core-js_shared__"]={});b.exports=function(a){return e[a]||(e[a]={})}},{"./_global":39}],96:[function(a,b,c){var d=a("./_an-object"),e=a("./_a-function"),f=a("./_wks")("species");b.exports=function(a,b){var c,g=d(a).constructor;return void 0===g||void 0==(c=d(g)[f])?b:e(c)}},{"./_a-function":4,"./_an-object":8,"./_wks":118}],97:[function(a,b,c){var d=a("./_fails");b.exports=function(a,b){return!!a&&d(function(){b?a.call(null,function(){},1):a.call(null)})}},{"./_fails":35}],98:[function(a,b,c){ 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":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=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={},C=void 0,D=0,E=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:E},this.utils={createDOMException:n.createDOMException},this.__connections=[]}return a.prototype=E.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=void 0;if(p&&a in B&&B[a][e]?f=B[a][e]:(f=A.default.win.openDatabase(p?A.default.memoryDatabase:r,1,a,A.default.DEFAULT_DB_SIZE),q&&(B[a][e]=f)),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),ca?b:a},0)];if(!d)return void console.log("Could not find a memory database instance to delete.");var g=d._db&&d._db._db;return g&&g.close?void g.close(function(a){if(a)return void console.log("Error closing (destroying) memory database");delete B[b]}):void console.log("The `openDatabase` implementation does not have the expected `._db._db.close` method for closing the database")}if(A.default.cacheDatabaseInstances!==!1&&b in B&&delete B[b],A.default.deleteDatabaseFiles!==!1)return void a("fs").unlink(a("path").resolve(e),function(a){if(a&&"ENOENT"!==a.code)return void c({code:0,message:"Error removing database file: "+e+" "+a});f()});A.default.win.openDatabase(e,1,b,A.default.DEFAULT_DB_SIZE).transaction(function(a){a.executeSql('SELECT "name" FROM __sys__',[],function(a,b){var d=b.rows;!function b(e){e>=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)||(q=function(a,b){a?d(a,b):e(b)},!1)})},c)},c)},c),j},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(){C.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 F=h.__createInstance();c.IDBFactory=h,c.cmp=i,c.shimIndexedDB=F},{"./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 prev ? curr : prev; + }, 0)]; + if (!memoryDB) { + console.log('Could not find a memory database instance to delete.'); + return; + } + var _sqliteDB = memoryDB._db && memoryDB._db._db; + if (!_sqliteDB || !_sqliteDB.close) { + console.log('The `openDatabase` implementation does not have the expected `._db._db.close` method for closing the database'); + return; + } + _sqliteDB.close(function (err) { + if (err) { + console.log('Error closing (destroying) memory database'); + return; + } + delete sqliteDBCache[name]; // New calls will treat as though never existed + }); + return; + } + if (_CFG2.default.cacheDatabaseInstances !== false && name in sqliteDBCache) { + delete sqliteDBCache[name]; + } if (_CFG2.default.deleteDatabaseFiles !== false) { require('fs').unlink(require('path').resolve(escapedDatabaseName), function (err) { if (err && err.code !== 'ENOENT') { @@ -10941,8 +11029,8 @@ IDBFactory.prototype.deleteDatabase = function (name) { return; } - var db = _CFG2.default.win.openDatabase(escapedDatabaseName, 1, name, _CFG2.default.DEFAULT_DB_SIZE); - db.transaction(function (tx) { + var sqliteDB = _CFG2.default.win.openDatabase(escapedDatabaseName, 1, name, _CFG2.default.DEFAULT_DB_SIZE); + sqliteDB.transaction(function (tx) { tx.executeSql('SELECT "name" FROM __sys__', [], function (tx, data) { var tables = data.rows; (function deleteTables(i) { diff --git a/dist/indexeddbshim-noninvasive.min.js b/dist/indexeddbshim-noninvasive.min.js index b9372fb4..3b87779b 100644 --- a/dist/indexeddbshim-noninvasive.min.js +++ b/dist/indexeddbshim-noninvasive.min.js @@ -1,12 +1,12 @@ -/*! indexeddbshim - v2.2.2 - 2017-04-08 */ +/*! indexeddbshim - v2.2.2 - 2017-04-09 */ !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c||a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g>2],h+=a[(3&f[e])<<4|f[e+1]>>4],h+=a[(15&f[e+1])<<2|f[e+2]>>6],h+=a[63&f[e+2]];return g%3==2?h=h.substring(0,h.length-1)+"=":g%3==1&&(h=h.substring(0,h.length-2)+"=="),h},c.decode=function(a){var c,d,e,f,g,h=.75*a.length,i=a.length,j=0;"="===a[a.length-1]&&(h--,"="===a[a.length-2]&&h--);var k=new ArrayBuffer(h),l=new Uint8Array(k);for(c=0;c>4,l[j++]=(15&e)<<4|f>>2,l[j++]=(3&f)<<6|63&g;return k}}()},{}],3:[function(a,b,c){},{}],4:[function(a,b,c){a("../../modules/core.regexp.escape"),b.exports=a("../../modules/_core").RegExp.escape},{"../../modules/_core":25,"../../modules/core.regexp.escape":121}],5:[function(a,b,c){b.exports=function(a){if("function"!=typeof a)throw TypeError(a+" is not a function!");return a}},{}],6:[function(a,b,c){var d=a("./_cof");b.exports=function(a,b){if("number"!=typeof a&&"Number"!=d(a))throw TypeError(b);return+a}},{"./_cof":20}],7:[function(a,b,c){var d=a("./_wks")("unscopables"),e=Array.prototype;void 0==e[d]&&a("./_hide")(e,d,{}),b.exports=function(a){e[d][a]=!0}},{"./_hide":42,"./_wks":119}],8:[function(a,b,c){b.exports=function(a,b,c,d){if(!(a instanceof b)||void 0!==d&&d in a)throw TypeError(c+": incorrect invocation!");return a}},{}],9:[function(a,b,c){var d=a("./_is-object");b.exports=function(a){if(!d(a))throw TypeError(a+" is not an object!");return a}},{"./_is-object":51}],10:[function(a,b,c){"use strict";var d=a("./_to-object"),e=a("./_to-index"),f=a("./_to-length");b.exports=[].copyWithin||function(a,b){var c=d(this),g=f(c.length),h=e(a,g),i=e(b,g),j=arguments.length>2?arguments[2]:void 0,k=Math.min((void 0===j?g:e(j,g))-i,g-h),l=1;for(i0;)i in c?c[h]=c[i]:delete c[h],h+=l,i+=l;return c}},{"./_to-index":107,"./_to-length":110,"./_to-object":111}],11:[function(a,b,c){"use strict";var d=a("./_to-object"),e=a("./_to-index"),f=a("./_to-length");b.exports=function(a){for(var b=d(this),c=f(b.length),g=arguments.length,h=e(g>1?arguments[1]:void 0,c),i=g>2?arguments[2]:void 0,j=void 0===i?c:e(i,c);j>h;)b[h++]=a;return b}},{"./_to-index":107,"./_to-length":110,"./_to-object":111}],12:[function(a,b,c){var d=a("./_for-of");b.exports=function(a,b){var c=[];return d(a,!1,c.push,c,b),c}},{"./_for-of":39}],13:[function(a,b,c){var d=a("./_to-iobject"),e=a("./_to-length"),f=a("./_to-index");b.exports=function(a){return function(b,c,g){var h,i=d(b),j=e(i.length),k=f(g,j);if(a&&c!=c){for(;j>k;)if((h=i[k++])!=h)return!0}else for(;j>k;k++)if((a||k in i)&&i[k]===c)return a||k||0;return!a&&-1}}},{"./_to-index":107,"./_to-iobject":109,"./_to-length":110}],14:[function(a,b,c){var d=a("./_ctx"),e=a("./_iobject"),f=a("./_to-object"),g=a("./_to-length"),h=a("./_array-species-create");b.exports=function(a,b){var c=1==a,i=2==a,j=3==a,k=4==a,l=6==a,m=5==a||l,n=b||h;return function(b,h,o){for(var p,q,r=f(b),s=e(r),t=d(h,o,3),u=g(s.length),v=0,w=c?n(b,u):i?n(b,0):void 0;u>v;v++)if((m||v in s)&&(p=s[v],q=t(p,v,r),a))if(c)w[v]=q;else if(q)switch(a){case 3:return!0;case 5:return p;case 6:return v;case 2:w.push(p)}else if(k)return!1;return l?-1:j||k?k:w}}},{"./_array-species-create":17,"./_ctx":27,"./_iobject":47,"./_to-length":110,"./_to-object":111}],15:[function(a,b,c){var d=a("./_a-function"),e=a("./_to-object"),f=a("./_iobject"),g=a("./_to-length");b.exports=function(a,b,c,h,i){d(b);var j=e(a),k=f(j),l=g(j.length),m=i?l-1:0,n=i?-1:1;if(c<2)for(;;){if(m in k){h=k[m],m+=n;break}if(m+=n,i?m<0:l<=m)throw TypeError("Reduce of empty array with no initial value")}for(;i?m>=0:l>m;m+=n)m in k&&(h=b(h,k[m],m,j));return h}},{"./_a-function":5,"./_iobject":47,"./_to-length":110,"./_to-object":111}],16:[function(a,b,c){var d=a("./_is-object"),e=a("./_is-array"),f=a("./_wks")("species");b.exports=function(a){var b;return e(a)&&(b=a.constructor,"function"!=typeof b||b!==Array&&!e(b.prototype)||(b=void 0),d(b)&&null===(b=b[f])&&(b=void 0)),void 0===b?Array:b}},{"./_is-array":49,"./_is-object":51,"./_wks":119}],17:[function(a,b,c){var d=a("./_array-species-constructor");b.exports=function(a,b){return new(d(a))(b)}},{"./_array-species-constructor":16}],18:[function(a,b,c){"use strict";var d=a("./_a-function"),e=a("./_is-object"),f=a("./_invoke"),g=[].slice,h={},i=function(a,b,c){if(!(b in h)){for(var d=[],e=0;e1?arguments[1]:void 0,3);b=b?b.n:this._f;)for(c(b.v,b.k,this);b&&b.r;)b=b.p},has:function(a){return!!q(this,a)}}),n&&d(l.prototype,"size",{get:function(){return i(this[p])}}),l},def:function(a,b,c){var d,e,f=q(a,b);return f?f.v=c:(a._l=f={i:e=o(b,!0),k:b,v:c,p:d=a._l,n:void 0,r:!1},a._f||(a._f=f),d&&(d.n=f),a[p]++,"F"!==e&&(a._i[e]=f)),a},getEntry:q,setStrong:function(a,b,c){k(a,b,function(a,b){this._t=a,this._k=b,this._l=void 0},function(){for(var a=this,b=a._k,c=a._l;c&&c.r;)c=c.p;return a._t&&(a._l=c=c?c.n:a._t._f)?"keys"==b?l(0,c.k):"values"==b?l(0,c.v):l(0,[c.k,c.v]):(a._t=void 0,l(1))},c?"entries":"values",!c,!0),m(b)}}},{"./_an-instance":8,"./_ctx":27,"./_defined":29,"./_descriptors":30,"./_for-of":39,"./_iter-define":55,"./_iter-step":57,"./_meta":64,"./_object-create":68,"./_object-dp":69,"./_redefine-all":88,"./_set-species":93}],22:[function(a,b,c){var d=a("./_classof"),e=a("./_array-from-iterable");b.exports=function(a){return function(){if(d(this)!=a)throw TypeError(a+"#toJSON isn't generic");return e(this)}}},{"./_array-from-iterable":12,"./_classof":19}],23:[function(a,b,c){"use strict";var d=a("./_redefine-all"),e=a("./_meta").getWeak,f=a("./_an-object"),g=a("./_is-object"),h=a("./_an-instance"),i=a("./_for-of"),j=a("./_array-methods"),k=a("./_has"),l=j(5),m=j(6),n=0,o=function(a){return a._l||(a._l=new p)},p=function(){this.a=[]},q=function(a,b){return l(a.a,function(a){return a[0]===b})};p.prototype={get:function(a){var b=q(this,a);if(b)return b[1]},has:function(a){return!!q(this,a)},set:function(a,b){var c=q(this,a);c?c[1]=b:this.a.push([a,b])},delete:function(a){var b=m(this.a,function(b){return b[0]===a});return~b&&this.a.splice(b,1),!!~b}},b.exports={getConstructor:function(a,b,c,f){var j=a(function(a,d){h(a,j,b,"_i"),a._i=n++,a._l=void 0,void 0!=d&&i(d,c,a[f],a)});return d(j.prototype,{delete:function(a){if(!g(a))return!1;var b=e(a);return b===!0?o(this).delete(a):b&&k(b,this._i)&&delete b[this._i]},has:function(a){if(!g(a))return!1;var b=e(a);return b===!0?o(this).has(a):b&&k(b,this._i)}}),j},def:function(a,b,c){var d=e(f(b),!0);return d===!0?o(a).set(b,c):d[a._i]=c,a},ufstore:o}},{"./_an-instance":8,"./_an-object":9,"./_array-methods":14,"./_for-of":39,"./_has":41,"./_is-object":51,"./_meta":64,"./_redefine-all":88}],24:[function(a,b,c){"use strict";var d=a("./_global"),e=a("./_export"),f=a("./_redefine"),g=a("./_redefine-all"),h=a("./_meta"),i=a("./_for-of"),j=a("./_an-instance"),k=a("./_is-object"),l=a("./_fails"),m=a("./_iter-detect"),n=a("./_set-to-string-tag"),o=a("./_inherit-if-required");b.exports=function(a,b,c,p,q,r){var s=d[a],t=s,u=q?"set":"add",v=t&&t.prototype,w={},x=function(a){var b=v[a];f(v,a,"delete"==a?function(a){return!(r&&!k(a))&&b.call(this,0===a?0:a)}:"has"==a?function(a){return!(r&&!k(a))&&b.call(this,0===a?0:a)}:"get"==a?function(a){return r&&!k(a)?void 0:b.call(this,0===a?0:a)}:"add"==a?function(a){return b.call(this,0===a?0:a),this}:function(a,c){return b.call(this,0===a?0:a,c),this})};if("function"==typeof t&&(r||v.forEach&&!l(function(){(new t).entries().next()}))){var y=new t,z=y[u](r?{}:-0,1)!=y,A=l(function(){y.has(1)}),B=m(function(a){new t(a)}),C=!r&&l(function(){for(var a=new t,b=5;b--;)a[u](b,b);return!a.has(-0)});B||(t=b(function(b,c){j(b,t,a);var d=o(new s,b,t);return void 0!=c&&i(c,q,d[u],d),d}),t.prototype=v,v.constructor=t),(A||C)&&(x("delete"),x("has"),q&&x("get")),(C||z)&&x(u),r&&v.clear&&delete v.clear}else t=p.getConstructor(b,a,q,u),g(t.prototype,c),h.NEED=!0;return n(t,a),w[a]=t,e(e.G+e.W+e.F*(t!=s),w),r||p.setStrong(t,a,q),t}},{"./_an-instance":8,"./_export":34,"./_fails":36,"./_for-of":39,"./_global":40,"./_inherit-if-required":45,"./_is-object":51,"./_iter-detect":56,"./_meta":64,"./_redefine":89,"./_redefine-all":88,"./_set-to-string-tag":94}],25:[function(a,b,c){var d=b.exports={version:"2.4.0"};"number"==typeof __e&&(__e=d)},{}],26:[function(a,b,c){"use strict";var d=a("./_object-dp"),e=a("./_property-desc");b.exports=function(a,b,c){b in a?d.f(a,b,e(0,c)):a[b]=c}},{"./_object-dp":69,"./_property-desc":87}],27:[function(a,b,c){var d=a("./_a-function");b.exports=function(a,b,c){if(d(a),void 0===b)return a;switch(c){case 1:return function(c){return a.call(b,c)};case 2:return function(c,d){return a.call(b,c,d)};case 3:return function(c,d,e){return a.call(b,c,d,e)}}return function(){return a.apply(b,arguments)}}},{"./_a-function":5}],28:[function(a,b,c){"use strict";var d=a("./_an-object"),e=a("./_to-primitive");b.exports=function(a){if("string"!==a&&"number"!==a&&"default"!==a)throw TypeError("Incorrect hint");return e(d(this),"number"!=a)}},{"./_an-object":9,"./_to-primitive":112}],29:[function(a,b,c){b.exports=function(a){if(void 0==a)throw TypeError("Can't call method on "+a);return a}},{}],30:[function(a,b,c){b.exports=!a("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":36}],31:[function(a,b,c){var d=a("./_is-object"),e=a("./_global").document,f=d(e)&&d(e.createElement);b.exports=function(a){return f?e.createElement(a):{}}},{"./_global":40,"./_is-object":51}],32:[function(a,b,c){b.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],33:[function(a,b,c){var d=a("./_object-keys"),e=a("./_object-gops"),f=a("./_object-pie");b.exports=function(a){var b=d(a),c=e.f;if(c)for(var g,h=c(a),i=f.f,j=0;h.length>j;)i.call(a,g=h[j++])&&b.push(g);return b}},{"./_object-gops":75,"./_object-keys":78,"./_object-pie":79}],34:[function(a,b,c){var d=a("./_global"),e=a("./_core"),f=a("./_hide"),g=a("./_redefine"),h=a("./_ctx"),i=function(a,b,c){var j,k,l,m,n=a&i.F,o=a&i.G,p=a&i.S,q=a&i.P,r=a&i.B,s=o?d:p?d[b]||(d[b]={}):(d[b]||{}).prototype,t=o?e:e[b]||(e[b]={}),u=t.prototype||(t.prototype={});o&&(c=b);for(j in c)k=!n&&s&&void 0!==s[j],l=(k?s:c)[j],m=r&&k?h(l,d):q&&"function"==typeof l?h(Function.call,l):l,s&&g(s,j,l,a&i.U),t[j]!=l&&f(t,j,m),q&&u[j]!=l&&(u[j]=l)};d.core=e,i.F=1,i.G=2,i.S=4,i.P=8,i.B=16,i.W=32,i.U=64,i.R=128,b.exports=i},{"./_core":25,"./_ctx":27,"./_global":40,"./_hide":42,"./_redefine":89}],35:[function(a,b,c){var d=a("./_wks")("match");b.exports=function(a){var b=/./;try{"/./"[a](b)}catch(c){try{return b[d]=!1,!"/./"[a](b)}catch(a){}}return!0}},{"./_wks":119}],36:[function(a,b,c){b.exports=function(a){try{return!!a()}catch(a){return!0}}},{}],37:[function(a,b,c){"use strict";var d=a("./_hide"),e=a("./_redefine"),f=a("./_fails"),g=a("./_defined"),h=a("./_wks");b.exports=function(a,b,c){var i=h(a),j=c(g,i,""[a]),k=j[0],l=j[1];f(function(){var b={};return b[i]=function(){return 7},7!=""[a](b)})&&(e(String.prototype,a,k),d(RegExp.prototype,i,2==b?function(a,b){return l.call(a,this,b)}:function(a){return l.call(a,this)}))}},{"./_defined":29,"./_fails":36,"./_hide":42,"./_redefine":89,"./_wks":119}],38:[function(a,b,c){"use strict";var d=a("./_an-object");b.exports=function(){var a=d(this),b="";return a.global&&(b+="g"),a.ignoreCase&&(b+="i"),a.multiline&&(b+="m"),a.unicode&&(b+="u"),a.sticky&&(b+="y"),b}},{"./_an-object":9}],39:[function(a,b,c){var d=a("./_ctx"),e=a("./_iter-call"),f=a("./_is-array-iter"),g=a("./_an-object"),h=a("./_to-length"),i=a("./core.get-iterator-method"),j={},k={},c=b.exports=function(a,b,c,l,m){var n,o,p,q,r=m?function(){return a}:i(a),s=d(c,l,b?2:1),t=0;if("function"!=typeof r)throw TypeError(a+" is not iterable!");if(f(r)){for(n=h(a.length);n>t;t++)if((q=b?s(g(o=a[t])[0],o[1]):s(a[t]))===j||q===k)return q}else for(p=r.call(a);!(o=p.next()).done;)if((q=e(p,s,o.value,b))===j||q===k)return q};c.BREAK=j,c.RETURN=k},{"./_an-object":9,"./_ctx":27,"./_is-array-iter":48,"./_iter-call":53,"./_to-length":110,"./core.get-iterator-method":120}],40:[function(a,b,c){var d=b.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=d)},{}],41:[function(a,b,c){var d={}.hasOwnProperty;b.exports=function(a,b){return d.call(a,b)}},{}],42:[function(a,b,c){var d=a("./_object-dp"),e=a("./_property-desc");b.exports=a("./_descriptors")?function(a,b,c){return d.f(a,b,e(1,c))}:function(a,b,c){return a[b]=c,a}},{"./_descriptors":30,"./_object-dp":69,"./_property-desc":87}],43:[function(a,b,c){b.exports=a("./_global").document&&document.documentElement},{"./_global":40}],44:[function(a,b,c){b.exports=!a("./_descriptors")&&!a("./_fails")(function(){return 7!=Object.defineProperty(a("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":30,"./_dom-create":31,"./_fails":36}],45:[function(a,b,c){var d=a("./_is-object"),e=a("./_set-proto").set;b.exports=function(a,b,c){var f,g=b.constructor;return g!==c&&"function"==typeof g&&(f=g.prototype)!==c.prototype&&d(f)&&e&&e(a,f),a}},{"./_is-object":51,"./_set-proto":92}],46:[function(a,b,c){b.exports=function(a,b,c){var d=void 0===c;switch(b.length){case 0:return d?a():a.call(c);case 1:return d?a(b[0]):a.call(c,b[0]);case 2:return d?a(b[0],b[1]):a.call(c,b[0],b[1]);case 3:return d?a(b[0],b[1],b[2]):a.call(c,b[0],b[1],b[2]);case 4:return d?a(b[0],b[1],b[2],b[3]):a.call(c,b[0],b[1],b[2],b[3])}return a.apply(c,b)}},{}],47:[function(a,b,c){var d=a("./_cof");b.exports=Object("z").propertyIsEnumerable(0)?Object:function(a){return"String"==d(a)?a.split(""):Object(a)}},{"./_cof":20}],48:[function(a,b,c){var d=a("./_iterators"),e=a("./_wks")("iterator"),f=Array.prototype;b.exports=function(a){return void 0!==a&&(d.Array===a||f[e]===a)}},{"./_iterators":58,"./_wks":119}],49:[function(a,b,c){var d=a("./_cof");b.exports=Array.isArray||function(a){return"Array"==d(a)}},{"./_cof":20}],50:[function(a,b,c){var d=a("./_is-object"),e=Math.floor;b.exports=function(a){return!d(a)&&isFinite(a)&&e(a)===a}},{"./_is-object":51}],51:[function(a,b,c){b.exports=function(a){return"object"==typeof a?null!==a:"function"==typeof a}},{}],52:[function(a,b,c){var d=a("./_is-object"),e=a("./_cof"),f=a("./_wks")("match");b.exports=function(a){var b;return d(a)&&(void 0!==(b=a[f])?!!b:"RegExp"==e(a))}},{"./_cof":20,"./_is-object":51,"./_wks":119}],53:[function(a,b,c){var d=a("./_an-object");b.exports=function(a,b,c,e){try{return e?b(d(c)[0],c[1]):b(c)}catch(b){var f=a.return;throw void 0!==f&&d(f.call(a)),b}}},{"./_an-object":9}],54:[function(a,b,c){"use strict";var d=a("./_object-create"),e=a("./_property-desc"),f=a("./_set-to-string-tag"),g={};a("./_hide")(g,a("./_wks")("iterator"),function(){return this}),b.exports=function(a,b,c){a.prototype=d(g,{next:e(1,c)}),f(a,b+" Iterator")}},{"./_hide":42,"./_object-create":68,"./_property-desc":87,"./_set-to-string-tag":94,"./_wks":119}],55:[function(a,b,c){"use strict";var d=a("./_library"),e=a("./_export"),f=a("./_redefine"),g=a("./_hide"),h=a("./_has"),i=a("./_iterators"),j=a("./_iter-create"),k=a("./_set-to-string-tag"),l=a("./_object-gpo"),m=a("./_wks")("iterator"),n=!([].keys&&"next"in[].keys()),o=function(){return this};b.exports=function(a,b,c,p,q,r,s){j(c,b,p);var t,u,v,w=function(a){if(!n&&a in A)return A[a];switch(a){case"keys":case"values":return function(){return new c(this,a)}}return function(){return new c(this,a)}},x=b+" Iterator",y="values"==q,z=!1,A=a.prototype,B=A[m]||A["@@iterator"]||q&&A[q],C=B||w(q),D=q?y?w("entries"):C:void 0,E="Array"==b?A.entries||B:B;if(E&&(v=l(E.call(new a)))!==Object.prototype&&(k(v,x,!0),d||h(v,m)||g(v,m,o)),y&&B&&"values"!==B.name&&(z=!0,C=function(){return B.call(this)}),d&&!s||!n&&!z&&A[m]||g(A,m,C),i[b]=C,i[x]=o,q)if(t={values:y?C:w("values"),keys:r?C:w("keys"),entries:D},s)for(u in t)u in A||f(A,u,t[u]);else e(e.P+e.F*(n||z),b,t);return t}},{"./_export":34,"./_has":41,"./_hide":42,"./_iter-create":54,"./_iterators":58,"./_library":60,"./_object-gpo":76,"./_redefine":89,"./_set-to-string-tag":94,"./_wks":119}],56:[function(a,b,c){var d=a("./_wks")("iterator"),e=!1;try{var f=[7][d]();f.return=function(){e=!0},Array.from(f,function(){throw 2})}catch(a){}b.exports=function(a,b){if(!b&&!e)return!1;var c=!1;try{var f=[7],g=f[d]();g.next=function(){return{done:c=!0}},f[d]=function(){return g},a(f)}catch(a){}return c}},{"./_wks":119}],57:[function(a,b,c){b.exports=function(a,b){return{value:b,done:!!a}}},{}],58:[function(a,b,c){b.exports={}},{}],59:[function(a,b,c){var d=a("./_object-keys"),e=a("./_to-iobject");b.exports=function(a,b){for(var c,f=e(a),g=d(f),h=g.length,i=0;h>i;)if(f[c=g[i++]]===b)return c}},{"./_object-keys":78,"./_to-iobject":109}],60:[function(a,b,c){b.exports=!1},{}],61:[function(a,b,c){var d=Math.expm1;b.exports=!d||d(10)>22025.465794806718||d(10)<22025.465794806718||d(-2e-17)!=-2e-17?function(a){return 0==(a=+a)?a:a>-1e-6&&a<1e-6?a+a*a/2:Math.exp(a)-1}:d},{}],62:[function(a,b,c){b.exports=Math.log1p||function(a){return(a=+a)>-1e-8&&a<1e-8?a-a*a/2:Math.log(1+a)}},{}],63:[function(a,b,c){b.exports=Math.sign||function(a){return 0==(a=+a)||a!=a?a:a<0?-1:1}},{}],64:[function(a,b,c){var d=a("./_uid")("meta"),e=a("./_is-object"),f=a("./_has"),g=a("./_object-dp").f,h=0,i=Object.isExtensible||function(){return!0},j=!a("./_fails")(function(){return i(Object.preventExtensions({}))}),k=function(a){g(a,d,{value:{i:"O"+ ++h,w:{}}})},l=function(a,b){if(!e(a))return"symbol"==typeof a?a:("string"==typeof a?"S":"P")+a;if(!f(a,d)){if(!i(a))return"F";if(!b)return"E";k(a)}return a[d].i},m=function(a,b){if(!f(a,d)){if(!i(a))return!0;if(!b)return!1;k(a)}return a[d].w},n=function(a){return j&&o.NEED&&i(a)&&!f(a,d)&&k(a),a},o=b.exports={KEY:d,NEED:!1,fastKey:l,getWeak:m,onFreeze:n}},{"./_fails":36,"./_has":41,"./_is-object":51,"./_object-dp":69,"./_uid":116}],65:[function(a,b,c){var d=a("./es6.map"),e=a("./_export"),f=a("./_shared")("metadata"),g=f.store||(f.store=new(a("./es6.weak-map"))),h=function(a,b,c){var e=g.get(a);if(!e){if(!c)return;g.set(a,e=new d)}var f=e.get(b);if(!f){if(!c)return;e.set(b,f=new d)}return f},i=function(a,b,c){var d=h(b,c,!1);return void 0!==d&&d.has(a)},j=function(a,b,c){var d=h(b,c,!1);return void 0===d?void 0:d.get(a)},k=function(a,b,c,d){h(c,d,!0).set(a,b)},l=function(a,b){var c=h(a,b,!1),d=[];return c&&c.forEach(function(a,b){d.push(b)}),d},m=function(a){return void 0===a||"symbol"==typeof a?a:String(a)},n=function(a){e(e.S,"Reflect",a)};b.exports={store:g,map:h,has:i,get:j,set:k,keys:l,key:m,exp:n}},{"./_export":34,"./_shared":96,"./es6.map":151,"./es6.weak-map":257}],66:[function(a,b,c){var d=a("./_global"),e=a("./_task").set,f=d.MutationObserver||d.WebKitMutationObserver,g=d.process,h=d.Promise,i="process"==a("./_cof")(g);b.exports=function(){var a,b,c,j=function(){var d,e;for(i&&(d=g.domain)&&d.exit();a;){e=a.fn,a=a.next;try{e()}catch(d){throw a?c():b=void 0,d}}b=void 0,d&&d.enter()};if(i)c=function(){g.nextTick(j)};else if(f){var k=!0,l=document.createTextNode("");new f(j).observe(l,{characterData:!0}),c=function(){l.data=k=!k}}else if(h&&h.resolve){var m=h.resolve();c=function(){m.then(j)}}else c=function(){e.call(d,j)};return function(d){var e={fn:d,next:void 0};b&&(b.next=e),a||(a=e,c()),b=e}}},{"./_cof":20,"./_global":40,"./_task":106}],67:[function(a,b,c){"use strict";var d=a("./_object-keys"),e=a("./_object-gops"),f=a("./_object-pie"),g=a("./_to-object"),h=a("./_iobject"),i=Object.assign;b.exports=!i||a("./_fails")(function(){var a={},b={},c=Symbol(),d="abcdefghijklmnopqrst";return a[c]=7,d.split("").forEach(function(a){b[a]=a}),7!=i({},a)[c]||Object.keys(i({},b)).join("")!=d})?function(a,b){for(var c=g(a),i=arguments.length,j=1,k=e.f,l=f.f;i>j;)for(var m,n=h(arguments[j++]),o=k?d(n).concat(k(n)):d(n),p=o.length,q=0;p>q;)l.call(n,m=o[q++])&&(c[m]=n[m]);return c}:i},{"./_fails":36,"./_iobject":47,"./_object-gops":75,"./_object-keys":78,"./_object-pie":79,"./_to-object":111}],68:[function(a,b,c){var d=a("./_an-object"),e=a("./_object-dps"),f=a("./_enum-bug-keys"),g=a("./_shared-key")("IE_PROTO"),h=function(){},i=function(){var b,c=a("./_dom-create")("iframe"),d=f.length;for(c.style.display="none",a("./_html").appendChild(c),c.src="javascript:",b=c.contentWindow.document,b.open(),b.write(""),b.close(),i=b.F;d--;)delete i.prototype[f[d]];return i()};b.exports=Object.create||function(a,b){var c;return null!==a?(h.prototype=d(a),c=new h,h.prototype=null,c[g]=a):c=i(),void 0===b?c:e(c,b)}},{"./_an-object":9,"./_dom-create":31,"./_enum-bug-keys":32,"./_html":43,"./_object-dps":70,"./_shared-key":95}],69:[function(a,b,c){var d=a("./_an-object"),e=a("./_ie8-dom-define"),f=a("./_to-primitive"),g=Object.defineProperty;c.f=a("./_descriptors")?Object.defineProperty:function(a,b,c){if(d(a),b=f(b,!0),d(c),e)try{return g(a,b,c)}catch(a){}if("get"in c||"set"in c)throw TypeError("Accessors not supported!");return"value"in c&&(a[b]=c.value),a}},{"./_an-object":9,"./_descriptors":30,"./_ie8-dom-define":44,"./_to-primitive":112}],70:[function(a,b,c){var d=a("./_object-dp"),e=a("./_an-object"),f=a("./_object-keys");b.exports=a("./_descriptors")?Object.defineProperties:function(a,b){e(a);for(var c,g=f(b),h=g.length,i=0;h>i;)d.f(a,c=g[i++],b[c]);return a}},{"./_an-object":9,"./_descriptors":30,"./_object-dp":69,"./_object-keys":78}],71:[function(a,b,c){b.exports=a("./_library")||!a("./_fails")(function(){var b=Math.random();__defineSetter__.call(null,b,function(){}),delete a("./_global")[b]})},{"./_fails":36,"./_global":40,"./_library":60}],72:[function(a,b,c){var d=a("./_object-pie"),e=a("./_property-desc"),f=a("./_to-iobject"),g=a("./_to-primitive"),h=a("./_has"),i=a("./_ie8-dom-define"),j=Object.getOwnPropertyDescriptor;c.f=a("./_descriptors")?j:function(a,b){if(a=f(a),b=g(b,!0),i)try{return j(a,b)}catch(a){}if(h(a,b))return e(!d.f.call(a,b),a[b])}},{"./_descriptors":30,"./_has":41,"./_ie8-dom-define":44,"./_object-pie":79,"./_property-desc":87,"./_to-iobject":109,"./_to-primitive":112}],73:[function(a,b,c){var d=a("./_to-iobject"),e=a("./_object-gopn").f,f={}.toString,g="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],h=function(a){try{return e(a)}catch(a){return g.slice()}};b.exports.f=function(a){return g&&"[object Window]"==f.call(a)?h(a):e(d(a))}},{"./_object-gopn":74,"./_to-iobject":109}],74:[function(a,b,c){var d=a("./_object-keys-internal"),e=a("./_enum-bug-keys").concat("length","prototype");c.f=Object.getOwnPropertyNames||function(a){return d(a,e)}},{"./_enum-bug-keys":32,"./_object-keys-internal":77}],75:[function(a,b,c){c.f=Object.getOwnPropertySymbols},{}],76:[function(a,b,c){var d=a("./_has"),e=a("./_to-object"),f=a("./_shared-key")("IE_PROTO"),g=Object.prototype;b.exports=Object.getPrototypeOf||function(a){return a=e(a),d(a,f)?a[f]:"function"==typeof a.constructor&&a instanceof a.constructor?a.constructor.prototype:a instanceof Object?g:null}},{"./_has":41,"./_shared-key":95,"./_to-object":111}],77:[function(a,b,c){var d=a("./_has"),e=a("./_to-iobject"),f=a("./_array-includes")(!1),g=a("./_shared-key")("IE_PROTO");b.exports=function(a,b){var c,h=e(a),i=0,j=[];for(c in h)c!=g&&d(h,c)&&j.push(c);for(;b.length>i;)d(h,c=b[i++])&&(~f(j,c)||j.push(c));return j}},{"./_array-includes":13,"./_has":41,"./_shared-key":95,"./_to-iobject":109}],78:[function(a,b,c){var d=a("./_object-keys-internal"),e=a("./_enum-bug-keys");b.exports=Object.keys||function(a){return d(a,e)}},{"./_enum-bug-keys":32,"./_object-keys-internal":77}],79:[function(a,b,c){c.f={}.propertyIsEnumerable},{}],80:[function(a,b,c){var d=a("./_export"),e=a("./_core"),f=a("./_fails");b.exports=function(a,b){var c=(e.Object||{})[a]||Object[a],g={};g[a]=b(c),d(d.S+d.F*f(function(){c(1)}),"Object",g)}},{"./_core":25,"./_export":34,"./_fails":36}],81:[function(a,b,c){var d=a("./_object-keys"),e=a("./_to-iobject"),f=a("./_object-pie").f;b.exports=function(a){return function(b){for(var c,g=e(b),h=d(g),i=h.length,j=0,k=[];i>j;)f.call(g,c=h[j++])&&k.push(a?[c,g[c]]:g[c]);return k}}},{"./_object-keys":78,"./_object-pie":79,"./_to-iobject":109}],82:[function(a,b,c){var d=a("./_object-gopn"),e=a("./_object-gops"),f=a("./_an-object"),g=a("./_global").Reflect;b.exports=g&&g.ownKeys||function(a){var b=d.f(f(a)),c=e.f;return c?b.concat(c(a)):b}},{"./_an-object":9,"./_global":40,"./_object-gopn":74,"./_object-gops":75}],83:[function(a,b,c){var d=a("./_global").parseFloat,e=a("./_string-trim").trim;b.exports=1/d(a("./_string-ws")+"-0")!=-1/0?function(a){var b=e(String(a),3),c=d(b);return 0===c&&"-"==b.charAt(0)?-0:c}:d},{"./_global":40,"./_string-trim":104,"./_string-ws":105}],84:[function(a,b,c){var d=a("./_global").parseInt,e=a("./_string-trim").trim,f=a("./_string-ws"),g=/^[\-+]?0[xX]/;b.exports=8!==d(f+"08")||22!==d(f+"0x16")?function(a,b){var c=e(String(a),3);return d(c,b>>>0||(g.test(c)?16:10))}:d},{"./_global":40,"./_string-trim":104,"./_string-ws":105}],85:[function(a,b,c){"use strict";var d=a("./_path"),e=a("./_invoke"),f=a("./_a-function");b.exports=function(){for(var a=f(this),b=arguments.length,c=Array(b),g=0,h=d._,i=!1;b>g;)(c[g]=arguments[g++])===h&&(i=!0);return function(){var d,f=this,g=arguments.length,j=0,k=0;if(!i&&!g)return e(a,c,f);if(d=c.slice(),i)for(;b>j;j++)d[j]===h&&(d[j]=arguments[k++]);for(;g>k;)d.push(arguments[k++]);return e(a,d,f)}}},{"./_a-function":5,"./_invoke":46,"./_path":86}],86:[function(a,b,c){b.exports=a("./_global")},{"./_global":40}],87:[function(a,b,c){b.exports=function(a,b){return{enumerable:!(1&a),configurable:!(2&a),writable:!(4&a),value:b}}},{}],88:[function(a,b,c){var d=a("./_redefine");b.exports=function(a,b,c){for(var e in b)d(a,e,b[e],c);return a}},{"./_redefine":89}],89:[function(a,b,c){var d=a("./_global"),e=a("./_hide"),f=a("./_has"),g=a("./_uid")("src"),h=Function.toString,i=(""+h).split("toString");a("./_core").inspectSource=function(a){return h.call(a)},(b.exports=function(a,b,c,h){var j="function"==typeof c;j&&(f(c,"name")||e(c,"name",b)),a[b]!==c&&(j&&(f(c,g)||e(c,g,a[b]?""+a[b]:i.join(String(b)))),a===d?a[b]=c:h?a[b]?a[b]=c:e(a,b,c):(delete a[b],e(a,b,c)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[g]||h.call(this)})},{"./_core":25,"./_global":40,"./_has":41,"./_hide":42,"./_uid":116}],90:[function(a,b,c){b.exports=function(a,b){var c=b===Object(b)?function(a){return b[a]}:b;return function(b){return String(b).replace(a,c)}}},{}],91:[function(a,b,c){b.exports=Object.is||function(a,b){return a===b?0!==a||1/a==1/b:a!=a&&b!=b}},{}],92:[function(a,b,c){var d=a("./_is-object"),e=a("./_an-object"),f=function(a,b){if(e(a),!d(b)&&null!==b)throw TypeError(b+": can't set as prototype!")};b.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(b,c,d){try{d=a("./_ctx")(Function.call,a("./_object-gopd").f(Object.prototype,"__proto__").set,2),d(b,[]),c=!(b instanceof Array)}catch(a){c=!0}return function(a,b){return f(a,b),c?a.__proto__=b:d(a,b),a}}({},!1):void 0),check:f}},{"./_an-object":9,"./_ctx":27,"./_is-object":51,"./_object-gopd":72}],93:[function(a,b,c){"use strict";var d=a("./_global"),e=a("./_object-dp"),f=a("./_descriptors"),g=a("./_wks")("species");b.exports=function(a){var b=d[a];f&&b&&!b[g]&&e.f(b,g,{configurable:!0,get:function(){return this}})}},{"./_descriptors":30,"./_global":40,"./_object-dp":69,"./_wks":119}],94:[function(a,b,c){var d=a("./_object-dp").f,e=a("./_has"),f=a("./_wks")("toStringTag");b.exports=function(a,b,c){a&&!e(a=c?a:a.prototype,f)&&d(a,f,{configurable:!0,value:b})}},{"./_has":41,"./_object-dp":69,"./_wks":119}],95:[function(a,b,c){var d=a("./_shared")("keys"),e=a("./_uid");b.exports=function(a){return d[a]||(d[a]=e(a))}},{"./_shared":96,"./_uid":116}],96:[function(a,b,c){var d=a("./_global"),e=d["__core-js_shared__"]||(d["__core-js_shared__"]={});b.exports=function(a){return e[a]||(e[a]={})}},{"./_global":40}],97:[function(a,b,c){var d=a("./_an-object"),e=a("./_a-function"),f=a("./_wks")("species");b.exports=function(a,b){var c,g=d(a).constructor;return void 0===g||void 0==(c=d(g)[f])?b:e(c)}},{"./_a-function":5,"./_an-object":9,"./_wks":119}],98:[function(a,b,c){var d=a("./_fails");b.exports=function(a,b){return!!a&&d(function(){b?a.call(null,function(){},1):a.call(null)})}},{"./_fails":36}],99:[function(a,b,c){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":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":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=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={},C=void 0,D=0,E=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:E},this.utils={createDOMException:n.createDOMException},this.__connections=[]}return a.prototype=E.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=void 0;if(p&&a in B&&B[a][e]?f=B[a][e]:(f=A.default.win.openDatabase(p?A.default.memoryDatabase:r,1,a,A.default.DEFAULT_DB_SIZE),q&&(B[a][e]=f)),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),ca?b:a},0)];if(!d)return void console.log("Could not find a memory database instance to delete.");var g=d._db&&d._db._db;return g&&g.close?void g.close(function(a){if(a)return void console.log("Error closing (destroying) memory database");delete B[b]}):void console.log("The `openDatabase` implementation does not have the expected `._db._db.close` method for closing the database")}if(A.default.cacheDatabaseInstances!==!1&&b in B&&delete B[b],A.default.deleteDatabaseFiles!==!1)return void a("fs").unlink(a("path").resolve(e),function(a){if(a&&"ENOENT"!==a.code)return void c({code:0,message:"Error removing database file: "+e+" "+a});f()});A.default.win.openDatabase(e,1,b,A.default.DEFAULT_DB_SIZE).transaction(function(a){a.executeSql('SELECT "name" FROM __sys__',[],function(a,b){var d=b.rows;!function b(e){e>=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)||(q=function(a,b){a?d(a,b):e(b)},!1)})},c)},c)},c),j},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(){C.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 F=h.__createInstance();c.IDBFactory=h,c.cmp=i,c.shimIndexedDB=F},{"./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 prev ? curr : prev; + }, 0)]; + if (!memoryDB) { + console.log('Could not find a memory database instance to delete.'); + return; + } + var _sqliteDB = memoryDB._db && memoryDB._db._db; + if (!_sqliteDB || !_sqliteDB.close) { + console.log('The `openDatabase` implementation does not have the expected `._db._db.close` method for closing the database'); + return; + } + _sqliteDB.close(function (err) { + if (err) { + console.log('Error closing (destroying) memory database'); + return; + } + delete sqliteDBCache[name]; // New calls will treat as though never existed + }); + return; + } + if (_CFG2.default.cacheDatabaseInstances !== false && name in sqliteDBCache) { + delete sqliteDBCache[name]; + } if (_CFG2.default.deleteDatabaseFiles !== false) { require('fs').unlink(require('path').resolve(escapedDatabaseName), function (err) { if (err && err.code !== 'ENOENT') { @@ -10941,8 +11029,8 @@ IDBFactory.prototype.deleteDatabase = function (name) { return; } - var db = _CFG2.default.win.openDatabase(escapedDatabaseName, 1, name, _CFG2.default.DEFAULT_DB_SIZE); - db.transaction(function (tx) { + var sqliteDB = _CFG2.default.win.openDatabase(escapedDatabaseName, 1, name, _CFG2.default.DEFAULT_DB_SIZE); + sqliteDB.transaction(function (tx) { tx.executeSql('SELECT "name" FROM __sys__', [], function (tx, data) { var tables = data.rows; (function deleteTables(i) { diff --git a/dist/indexeddbshim.min.js b/dist/indexeddbshim.min.js index 2ef9f13f..2b37ba30 100644 --- a/dist/indexeddbshim.min.js +++ b/dist/indexeddbshim.min.js @@ -1,12 +1,12 @@ -/*! indexeddbshim - v2.2.2 - 2017-04-08 */ +/*! indexeddbshim - v2.2.2 - 2017-04-09 */ !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c||a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g>2],h+=a[(3&f[e])<<4|f[e+1]>>4],h+=a[(15&f[e+1])<<2|f[e+2]>>6],h+=a[63&f[e+2]];return g%3==2?h=h.substring(0,h.length-1)+"=":g%3==1&&(h=h.substring(0,h.length-2)+"=="),h},c.decode=function(a){var c,d,e,f,g,h=.75*a.length,i=a.length,j=0;"="===a[a.length-1]&&(h--,"="===a[a.length-2]&&h--);var k=new ArrayBuffer(h),l=new Uint8Array(k);for(c=0;c>4,l[j++]=(15&e)<<4|f>>2,l[j++]=(3&f)<<6|63&g;return k}}()},{}],3:[function(a,b,c){},{}],4:[function(a,b,c){a("../../modules/core.regexp.escape"),b.exports=a("../../modules/_core").RegExp.escape},{"../../modules/_core":25,"../../modules/core.regexp.escape":121}],5:[function(a,b,c){b.exports=function(a){if("function"!=typeof a)throw TypeError(a+" is not a function!");return a}},{}],6:[function(a,b,c){var d=a("./_cof");b.exports=function(a,b){if("number"!=typeof a&&"Number"!=d(a))throw TypeError(b);return+a}},{"./_cof":20}],7:[function(a,b,c){var d=a("./_wks")("unscopables"),e=Array.prototype;void 0==e[d]&&a("./_hide")(e,d,{}),b.exports=function(a){e[d][a]=!0}},{"./_hide":42,"./_wks":119}],8:[function(a,b,c){b.exports=function(a,b,c,d){if(!(a instanceof b)||void 0!==d&&d in a)throw TypeError(c+": incorrect invocation!");return a}},{}],9:[function(a,b,c){var d=a("./_is-object");b.exports=function(a){if(!d(a))throw TypeError(a+" is not an object!");return a}},{"./_is-object":51}],10:[function(a,b,c){"use strict";var d=a("./_to-object"),e=a("./_to-index"),f=a("./_to-length");b.exports=[].copyWithin||function(a,b){var c=d(this),g=f(c.length),h=e(a,g),i=e(b,g),j=arguments.length>2?arguments[2]:void 0,k=Math.min((void 0===j?g:e(j,g))-i,g-h),l=1;for(i0;)i in c?c[h]=c[i]:delete c[h],h+=l,i+=l;return c}},{"./_to-index":107,"./_to-length":110,"./_to-object":111}],11:[function(a,b,c){"use strict";var d=a("./_to-object"),e=a("./_to-index"),f=a("./_to-length");b.exports=function(a){for(var b=d(this),c=f(b.length),g=arguments.length,h=e(g>1?arguments[1]:void 0,c),i=g>2?arguments[2]:void 0,j=void 0===i?c:e(i,c);j>h;)b[h++]=a;return b}},{"./_to-index":107,"./_to-length":110,"./_to-object":111}],12:[function(a,b,c){var d=a("./_for-of");b.exports=function(a,b){var c=[];return d(a,!1,c.push,c,b),c}},{"./_for-of":39}],13:[function(a,b,c){var d=a("./_to-iobject"),e=a("./_to-length"),f=a("./_to-index");b.exports=function(a){return function(b,c,g){var h,i=d(b),j=e(i.length),k=f(g,j);if(a&&c!=c){for(;j>k;)if((h=i[k++])!=h)return!0}else for(;j>k;k++)if((a||k in i)&&i[k]===c)return a||k||0;return!a&&-1}}},{"./_to-index":107,"./_to-iobject":109,"./_to-length":110}],14:[function(a,b,c){var d=a("./_ctx"),e=a("./_iobject"),f=a("./_to-object"),g=a("./_to-length"),h=a("./_array-species-create");b.exports=function(a,b){var c=1==a,i=2==a,j=3==a,k=4==a,l=6==a,m=5==a||l,n=b||h;return function(b,h,o){for(var p,q,r=f(b),s=e(r),t=d(h,o,3),u=g(s.length),v=0,w=c?n(b,u):i?n(b,0):void 0;u>v;v++)if((m||v in s)&&(p=s[v],q=t(p,v,r),a))if(c)w[v]=q;else if(q)switch(a){case 3:return!0;case 5:return p;case 6:return v;case 2:w.push(p)}else if(k)return!1;return l?-1:j||k?k:w}}},{"./_array-species-create":17,"./_ctx":27,"./_iobject":47,"./_to-length":110,"./_to-object":111}],15:[function(a,b,c){var d=a("./_a-function"),e=a("./_to-object"),f=a("./_iobject"),g=a("./_to-length");b.exports=function(a,b,c,h,i){d(b);var j=e(a),k=f(j),l=g(j.length),m=i?l-1:0,n=i?-1:1;if(c<2)for(;;){if(m in k){h=k[m],m+=n;break}if(m+=n,i?m<0:l<=m)throw TypeError("Reduce of empty array with no initial value")}for(;i?m>=0:l>m;m+=n)m in k&&(h=b(h,k[m],m,j));return h}},{"./_a-function":5,"./_iobject":47,"./_to-length":110,"./_to-object":111}],16:[function(a,b,c){var d=a("./_is-object"),e=a("./_is-array"),f=a("./_wks")("species");b.exports=function(a){var b;return e(a)&&(b=a.constructor,"function"!=typeof b||b!==Array&&!e(b.prototype)||(b=void 0),d(b)&&null===(b=b[f])&&(b=void 0)),void 0===b?Array:b}},{"./_is-array":49,"./_is-object":51,"./_wks":119}],17:[function(a,b,c){var d=a("./_array-species-constructor");b.exports=function(a,b){return new(d(a))(b)}},{"./_array-species-constructor":16}],18:[function(a,b,c){"use strict";var d=a("./_a-function"),e=a("./_is-object"),f=a("./_invoke"),g=[].slice,h={},i=function(a,b,c){if(!(b in h)){for(var d=[],e=0;e1?arguments[1]:void 0,3);b=b?b.n:this._f;)for(c(b.v,b.k,this);b&&b.r;)b=b.p},has:function(a){return!!q(this,a)}}),n&&d(l.prototype,"size",{get:function(){return i(this[p])}}),l},def:function(a,b,c){var d,e,f=q(a,b);return f?f.v=c:(a._l=f={i:e=o(b,!0),k:b,v:c,p:d=a._l,n:void 0,r:!1},a._f||(a._f=f),d&&(d.n=f),a[p]++,"F"!==e&&(a._i[e]=f)),a},getEntry:q,setStrong:function(a,b,c){k(a,b,function(a,b){this._t=a,this._k=b,this._l=void 0},function(){for(var a=this,b=a._k,c=a._l;c&&c.r;)c=c.p;return a._t&&(a._l=c=c?c.n:a._t._f)?"keys"==b?l(0,c.k):"values"==b?l(0,c.v):l(0,[c.k,c.v]):(a._t=void 0,l(1))},c?"entries":"values",!c,!0),m(b)}}},{"./_an-instance":8,"./_ctx":27,"./_defined":29,"./_descriptors":30,"./_for-of":39,"./_iter-define":55,"./_iter-step":57,"./_meta":64,"./_object-create":68,"./_object-dp":69,"./_redefine-all":88,"./_set-species":93}],22:[function(a,b,c){var d=a("./_classof"),e=a("./_array-from-iterable");b.exports=function(a){return function(){if(d(this)!=a)throw TypeError(a+"#toJSON isn't generic");return e(this)}}},{"./_array-from-iterable":12,"./_classof":19}],23:[function(a,b,c){"use strict";var d=a("./_redefine-all"),e=a("./_meta").getWeak,f=a("./_an-object"),g=a("./_is-object"),h=a("./_an-instance"),i=a("./_for-of"),j=a("./_array-methods"),k=a("./_has"),l=j(5),m=j(6),n=0,o=function(a){return a._l||(a._l=new p)},p=function(){this.a=[]},q=function(a,b){return l(a.a,function(a){return a[0]===b})};p.prototype={get:function(a){var b=q(this,a);if(b)return b[1]},has:function(a){return!!q(this,a)},set:function(a,b){var c=q(this,a);c?c[1]=b:this.a.push([a,b])},delete:function(a){var b=m(this.a,function(b){return b[0]===a});return~b&&this.a.splice(b,1),!!~b}},b.exports={getConstructor:function(a,b,c,f){var j=a(function(a,d){h(a,j,b,"_i"),a._i=n++,a._l=void 0,void 0!=d&&i(d,c,a[f],a)});return d(j.prototype,{delete:function(a){if(!g(a))return!1;var b=e(a);return b===!0?o(this).delete(a):b&&k(b,this._i)&&delete b[this._i]},has:function(a){if(!g(a))return!1;var b=e(a);return b===!0?o(this).has(a):b&&k(b,this._i)}}),j},def:function(a,b,c){var d=e(f(b),!0);return d===!0?o(a).set(b,c):d[a._i]=c,a},ufstore:o}},{"./_an-instance":8,"./_an-object":9,"./_array-methods":14,"./_for-of":39,"./_has":41,"./_is-object":51,"./_meta":64,"./_redefine-all":88}],24:[function(a,b,c){"use strict";var d=a("./_global"),e=a("./_export"),f=a("./_redefine"),g=a("./_redefine-all"),h=a("./_meta"),i=a("./_for-of"),j=a("./_an-instance"),k=a("./_is-object"),l=a("./_fails"),m=a("./_iter-detect"),n=a("./_set-to-string-tag"),o=a("./_inherit-if-required");b.exports=function(a,b,c,p,q,r){var s=d[a],t=s,u=q?"set":"add",v=t&&t.prototype,w={},x=function(a){var b=v[a];f(v,a,"delete"==a?function(a){return!(r&&!k(a))&&b.call(this,0===a?0:a)}:"has"==a?function(a){return!(r&&!k(a))&&b.call(this,0===a?0:a)}:"get"==a?function(a){return r&&!k(a)?void 0:b.call(this,0===a?0:a)}:"add"==a?function(a){return b.call(this,0===a?0:a),this}:function(a,c){return b.call(this,0===a?0:a,c),this})};if("function"==typeof t&&(r||v.forEach&&!l(function(){(new t).entries().next()}))){var y=new t,z=y[u](r?{}:-0,1)!=y,A=l(function(){y.has(1)}),B=m(function(a){new t(a)}),C=!r&&l(function(){for(var a=new t,b=5;b--;)a[u](b,b);return!a.has(-0)});B||(t=b(function(b,c){j(b,t,a);var d=o(new s,b,t);return void 0!=c&&i(c,q,d[u],d),d}),t.prototype=v,v.constructor=t),(A||C)&&(x("delete"),x("has"),q&&x("get")),(C||z)&&x(u),r&&v.clear&&delete v.clear}else t=p.getConstructor(b,a,q,u),g(t.prototype,c),h.NEED=!0;return n(t,a),w[a]=t,e(e.G+e.W+e.F*(t!=s),w),r||p.setStrong(t,a,q),t}},{"./_an-instance":8,"./_export":34,"./_fails":36,"./_for-of":39,"./_global":40,"./_inherit-if-required":45,"./_is-object":51,"./_iter-detect":56,"./_meta":64,"./_redefine":89,"./_redefine-all":88,"./_set-to-string-tag":94}],25:[function(a,b,c){var d=b.exports={version:"2.4.0"};"number"==typeof __e&&(__e=d)},{}],26:[function(a,b,c){"use strict";var d=a("./_object-dp"),e=a("./_property-desc");b.exports=function(a,b,c){b in a?d.f(a,b,e(0,c)):a[b]=c}},{"./_object-dp":69,"./_property-desc":87}],27:[function(a,b,c){var d=a("./_a-function");b.exports=function(a,b,c){if(d(a),void 0===b)return a;switch(c){case 1:return function(c){return a.call(b,c)};case 2:return function(c,d){return a.call(b,c,d)};case 3:return function(c,d,e){return a.call(b,c,d,e)}}return function(){return a.apply(b,arguments)}}},{"./_a-function":5}],28:[function(a,b,c){"use strict";var d=a("./_an-object"),e=a("./_to-primitive");b.exports=function(a){if("string"!==a&&"number"!==a&&"default"!==a)throw TypeError("Incorrect hint");return e(d(this),"number"!=a)}},{"./_an-object":9,"./_to-primitive":112}],29:[function(a,b,c){b.exports=function(a){if(void 0==a)throw TypeError("Can't call method on "+a);return a}},{}],30:[function(a,b,c){b.exports=!a("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":36}],31:[function(a,b,c){var d=a("./_is-object"),e=a("./_global").document,f=d(e)&&d(e.createElement);b.exports=function(a){return f?e.createElement(a):{}}},{"./_global":40,"./_is-object":51}],32:[function(a,b,c){b.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],33:[function(a,b,c){var d=a("./_object-keys"),e=a("./_object-gops"),f=a("./_object-pie");b.exports=function(a){var b=d(a),c=e.f;if(c)for(var g,h=c(a),i=f.f,j=0;h.length>j;)i.call(a,g=h[j++])&&b.push(g);return b}},{"./_object-gops":75,"./_object-keys":78,"./_object-pie":79}],34:[function(a,b,c){var d=a("./_global"),e=a("./_core"),f=a("./_hide"),g=a("./_redefine"),h=a("./_ctx"),i=function(a,b,c){var j,k,l,m,n=a&i.F,o=a&i.G,p=a&i.S,q=a&i.P,r=a&i.B,s=o?d:p?d[b]||(d[b]={}):(d[b]||{}).prototype,t=o?e:e[b]||(e[b]={}),u=t.prototype||(t.prototype={});o&&(c=b);for(j in c)k=!n&&s&&void 0!==s[j],l=(k?s:c)[j],m=r&&k?h(l,d):q&&"function"==typeof l?h(Function.call,l):l,s&&g(s,j,l,a&i.U),t[j]!=l&&f(t,j,m),q&&u[j]!=l&&(u[j]=l)};d.core=e,i.F=1,i.G=2,i.S=4,i.P=8,i.B=16,i.W=32,i.U=64,i.R=128,b.exports=i},{"./_core":25,"./_ctx":27,"./_global":40,"./_hide":42,"./_redefine":89}],35:[function(a,b,c){var d=a("./_wks")("match");b.exports=function(a){var b=/./;try{"/./"[a](b)}catch(c){try{return b[d]=!1,!"/./"[a](b)}catch(a){}}return!0}},{"./_wks":119}],36:[function(a,b,c){b.exports=function(a){try{return!!a()}catch(a){return!0}}},{}],37:[function(a,b,c){"use strict";var d=a("./_hide"),e=a("./_redefine"),f=a("./_fails"),g=a("./_defined"),h=a("./_wks");b.exports=function(a,b,c){var i=h(a),j=c(g,i,""[a]),k=j[0],l=j[1];f(function(){var b={};return b[i]=function(){return 7},7!=""[a](b)})&&(e(String.prototype,a,k),d(RegExp.prototype,i,2==b?function(a,b){return l.call(a,this,b)}:function(a){return l.call(a,this)}))}},{"./_defined":29,"./_fails":36,"./_hide":42,"./_redefine":89,"./_wks":119}],38:[function(a,b,c){"use strict";var d=a("./_an-object");b.exports=function(){var a=d(this),b="";return a.global&&(b+="g"),a.ignoreCase&&(b+="i"),a.multiline&&(b+="m"),a.unicode&&(b+="u"),a.sticky&&(b+="y"),b}},{"./_an-object":9}],39:[function(a,b,c){var d=a("./_ctx"),e=a("./_iter-call"),f=a("./_is-array-iter"),g=a("./_an-object"),h=a("./_to-length"),i=a("./core.get-iterator-method"),j={},k={},c=b.exports=function(a,b,c,l,m){var n,o,p,q,r=m?function(){return a}:i(a),s=d(c,l,b?2:1),t=0;if("function"!=typeof r)throw TypeError(a+" is not iterable!");if(f(r)){for(n=h(a.length);n>t;t++)if((q=b?s(g(o=a[t])[0],o[1]):s(a[t]))===j||q===k)return q}else for(p=r.call(a);!(o=p.next()).done;)if((q=e(p,s,o.value,b))===j||q===k)return q};c.BREAK=j,c.RETURN=k},{"./_an-object":9,"./_ctx":27,"./_is-array-iter":48,"./_iter-call":53,"./_to-length":110,"./core.get-iterator-method":120}],40:[function(a,b,c){var d=b.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=d)},{}],41:[function(a,b,c){var d={}.hasOwnProperty;b.exports=function(a,b){return d.call(a,b)}},{}],42:[function(a,b,c){var d=a("./_object-dp"),e=a("./_property-desc");b.exports=a("./_descriptors")?function(a,b,c){return d.f(a,b,e(1,c))}:function(a,b,c){return a[b]=c,a}},{"./_descriptors":30,"./_object-dp":69,"./_property-desc":87}],43:[function(a,b,c){b.exports=a("./_global").document&&document.documentElement},{"./_global":40}],44:[function(a,b,c){b.exports=!a("./_descriptors")&&!a("./_fails")(function(){return 7!=Object.defineProperty(a("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":30,"./_dom-create":31,"./_fails":36}],45:[function(a,b,c){var d=a("./_is-object"),e=a("./_set-proto").set;b.exports=function(a,b,c){var f,g=b.constructor;return g!==c&&"function"==typeof g&&(f=g.prototype)!==c.prototype&&d(f)&&e&&e(a,f),a}},{"./_is-object":51,"./_set-proto":92}],46:[function(a,b,c){b.exports=function(a,b,c){var d=void 0===c;switch(b.length){case 0:return d?a():a.call(c);case 1:return d?a(b[0]):a.call(c,b[0]);case 2:return d?a(b[0],b[1]):a.call(c,b[0],b[1]);case 3:return d?a(b[0],b[1],b[2]):a.call(c,b[0],b[1],b[2]);case 4:return d?a(b[0],b[1],b[2],b[3]):a.call(c,b[0],b[1],b[2],b[3])}return a.apply(c,b)}},{}],47:[function(a,b,c){var d=a("./_cof");b.exports=Object("z").propertyIsEnumerable(0)?Object:function(a){return"String"==d(a)?a.split(""):Object(a)}},{"./_cof":20}],48:[function(a,b,c){var d=a("./_iterators"),e=a("./_wks")("iterator"),f=Array.prototype;b.exports=function(a){return void 0!==a&&(d.Array===a||f[e]===a)}},{"./_iterators":58,"./_wks":119}],49:[function(a,b,c){var d=a("./_cof");b.exports=Array.isArray||function(a){return"Array"==d(a)}},{"./_cof":20}],50:[function(a,b,c){var d=a("./_is-object"),e=Math.floor;b.exports=function(a){return!d(a)&&isFinite(a)&&e(a)===a}},{"./_is-object":51}],51:[function(a,b,c){b.exports=function(a){return"object"==typeof a?null!==a:"function"==typeof a}},{}],52:[function(a,b,c){var d=a("./_is-object"),e=a("./_cof"),f=a("./_wks")("match");b.exports=function(a){var b;return d(a)&&(void 0!==(b=a[f])?!!b:"RegExp"==e(a))}},{"./_cof":20,"./_is-object":51,"./_wks":119}],53:[function(a,b,c){var d=a("./_an-object");b.exports=function(a,b,c,e){try{return e?b(d(c)[0],c[1]):b(c)}catch(b){var f=a.return;throw void 0!==f&&d(f.call(a)),b}}},{"./_an-object":9}],54:[function(a,b,c){"use strict";var d=a("./_object-create"),e=a("./_property-desc"),f=a("./_set-to-string-tag"),g={};a("./_hide")(g,a("./_wks")("iterator"),function(){return this}),b.exports=function(a,b,c){a.prototype=d(g,{next:e(1,c)}),f(a,b+" Iterator")}},{"./_hide":42,"./_object-create":68,"./_property-desc":87,"./_set-to-string-tag":94,"./_wks":119}],55:[function(a,b,c){"use strict";var d=a("./_library"),e=a("./_export"),f=a("./_redefine"),g=a("./_hide"),h=a("./_has"),i=a("./_iterators"),j=a("./_iter-create"),k=a("./_set-to-string-tag"),l=a("./_object-gpo"),m=a("./_wks")("iterator"),n=!([].keys&&"next"in[].keys()),o=function(){return this};b.exports=function(a,b,c,p,q,r,s){j(c,b,p);var t,u,v,w=function(a){if(!n&&a in A)return A[a];switch(a){case"keys":case"values":return function(){return new c(this,a)}}return function(){return new c(this,a)}},x=b+" Iterator",y="values"==q,z=!1,A=a.prototype,B=A[m]||A["@@iterator"]||q&&A[q],C=B||w(q),D=q?y?w("entries"):C:void 0,E="Array"==b?A.entries||B:B;if(E&&(v=l(E.call(new a)))!==Object.prototype&&(k(v,x,!0),d||h(v,m)||g(v,m,o)),y&&B&&"values"!==B.name&&(z=!0,C=function(){return B.call(this)}),d&&!s||!n&&!z&&A[m]||g(A,m,C),i[b]=C,i[x]=o,q)if(t={values:y?C:w("values"),keys:r?C:w("keys"),entries:D},s)for(u in t)u in A||f(A,u,t[u]);else e(e.P+e.F*(n||z),b,t);return t}},{"./_export":34,"./_has":41,"./_hide":42,"./_iter-create":54,"./_iterators":58,"./_library":60,"./_object-gpo":76,"./_redefine":89,"./_set-to-string-tag":94,"./_wks":119}],56:[function(a,b,c){var d=a("./_wks")("iterator"),e=!1;try{var f=[7][d]();f.return=function(){e=!0},Array.from(f,function(){throw 2})}catch(a){}b.exports=function(a,b){if(!b&&!e)return!1;var c=!1;try{var f=[7],g=f[d]();g.next=function(){return{done:c=!0}},f[d]=function(){return g},a(f)}catch(a){}return c}},{"./_wks":119}],57:[function(a,b,c){b.exports=function(a,b){return{value:b,done:!!a}}},{}],58:[function(a,b,c){b.exports={}},{}],59:[function(a,b,c){var d=a("./_object-keys"),e=a("./_to-iobject");b.exports=function(a,b){for(var c,f=e(a),g=d(f),h=g.length,i=0;h>i;)if(f[c=g[i++]]===b)return c}},{"./_object-keys":78,"./_to-iobject":109}],60:[function(a,b,c){b.exports=!1},{}],61:[function(a,b,c){var d=Math.expm1;b.exports=!d||d(10)>22025.465794806718||d(10)<22025.465794806718||d(-2e-17)!=-2e-17?function(a){return 0==(a=+a)?a:a>-1e-6&&a<1e-6?a+a*a/2:Math.exp(a)-1}:d},{}],62:[function(a,b,c){b.exports=Math.log1p||function(a){return(a=+a)>-1e-8&&a<1e-8?a-a*a/2:Math.log(1+a)}},{}],63:[function(a,b,c){b.exports=Math.sign||function(a){return 0==(a=+a)||a!=a?a:a<0?-1:1}},{}],64:[function(a,b,c){var d=a("./_uid")("meta"),e=a("./_is-object"),f=a("./_has"),g=a("./_object-dp").f,h=0,i=Object.isExtensible||function(){return!0},j=!a("./_fails")(function(){return i(Object.preventExtensions({}))}),k=function(a){g(a,d,{value:{i:"O"+ ++h,w:{}}})},l=function(a,b){if(!e(a))return"symbol"==typeof a?a:("string"==typeof a?"S":"P")+a;if(!f(a,d)){if(!i(a))return"F";if(!b)return"E";k(a)}return a[d].i},m=function(a,b){if(!f(a,d)){if(!i(a))return!0;if(!b)return!1;k(a)}return a[d].w},n=function(a){return j&&o.NEED&&i(a)&&!f(a,d)&&k(a),a},o=b.exports={KEY:d,NEED:!1,fastKey:l,getWeak:m,onFreeze:n}},{"./_fails":36,"./_has":41,"./_is-object":51,"./_object-dp":69,"./_uid":116}],65:[function(a,b,c){var d=a("./es6.map"),e=a("./_export"),f=a("./_shared")("metadata"),g=f.store||(f.store=new(a("./es6.weak-map"))),h=function(a,b,c){var e=g.get(a);if(!e){if(!c)return;g.set(a,e=new d)}var f=e.get(b);if(!f){if(!c)return;e.set(b,f=new d)}return f},i=function(a,b,c){var d=h(b,c,!1);return void 0!==d&&d.has(a)},j=function(a,b,c){var d=h(b,c,!1);return void 0===d?void 0:d.get(a)},k=function(a,b,c,d){h(c,d,!0).set(a,b)},l=function(a,b){var c=h(a,b,!1),d=[];return c&&c.forEach(function(a,b){d.push(b)}),d},m=function(a){return void 0===a||"symbol"==typeof a?a:String(a)},n=function(a){e(e.S,"Reflect",a)};b.exports={store:g,map:h,has:i,get:j,set:k,keys:l,key:m,exp:n}},{"./_export":34,"./_shared":96,"./es6.map":151,"./es6.weak-map":257}],66:[function(a,b,c){var d=a("./_global"),e=a("./_task").set,f=d.MutationObserver||d.WebKitMutationObserver,g=d.process,h=d.Promise,i="process"==a("./_cof")(g);b.exports=function(){var a,b,c,j=function(){var d,e;for(i&&(d=g.domain)&&d.exit();a;){e=a.fn,a=a.next;try{e()}catch(d){throw a?c():b=void 0,d}}b=void 0,d&&d.enter()};if(i)c=function(){g.nextTick(j)};else if(f){var k=!0,l=document.createTextNode("");new f(j).observe(l,{characterData:!0}),c=function(){l.data=k=!k}}else if(h&&h.resolve){var m=h.resolve();c=function(){m.then(j)}}else c=function(){e.call(d,j)};return function(d){var e={fn:d,next:void 0};b&&(b.next=e),a||(a=e,c()),b=e}}},{"./_cof":20,"./_global":40,"./_task":106}],67:[function(a,b,c){"use strict";var d=a("./_object-keys"),e=a("./_object-gops"),f=a("./_object-pie"),g=a("./_to-object"),h=a("./_iobject"),i=Object.assign;b.exports=!i||a("./_fails")(function(){var a={},b={},c=Symbol(),d="abcdefghijklmnopqrst";return a[c]=7,d.split("").forEach(function(a){b[a]=a}),7!=i({},a)[c]||Object.keys(i({},b)).join("")!=d})?function(a,b){for(var c=g(a),i=arguments.length,j=1,k=e.f,l=f.f;i>j;)for(var m,n=h(arguments[j++]),o=k?d(n).concat(k(n)):d(n),p=o.length,q=0;p>q;)l.call(n,m=o[q++])&&(c[m]=n[m]);return c}:i},{"./_fails":36,"./_iobject":47,"./_object-gops":75,"./_object-keys":78,"./_object-pie":79,"./_to-object":111}],68:[function(a,b,c){var d=a("./_an-object"),e=a("./_object-dps"),f=a("./_enum-bug-keys"),g=a("./_shared-key")("IE_PROTO"),h=function(){},i=function(){var b,c=a("./_dom-create")("iframe"),d=f.length;for(c.style.display="none",a("./_html").appendChild(c),c.src="javascript:",b=c.contentWindow.document,b.open(),b.write(""),b.close(),i=b.F;d--;)delete i.prototype[f[d]];return i()};b.exports=Object.create||function(a,b){var c;return null!==a?(h.prototype=d(a),c=new h,h.prototype=null,c[g]=a):c=i(),void 0===b?c:e(c,b)}},{"./_an-object":9,"./_dom-create":31,"./_enum-bug-keys":32,"./_html":43,"./_object-dps":70,"./_shared-key":95}],69:[function(a,b,c){var d=a("./_an-object"),e=a("./_ie8-dom-define"),f=a("./_to-primitive"),g=Object.defineProperty;c.f=a("./_descriptors")?Object.defineProperty:function(a,b,c){if(d(a),b=f(b,!0),d(c),e)try{return g(a,b,c)}catch(a){}if("get"in c||"set"in c)throw TypeError("Accessors not supported!");return"value"in c&&(a[b]=c.value),a}},{"./_an-object":9,"./_descriptors":30,"./_ie8-dom-define":44,"./_to-primitive":112}],70:[function(a,b,c){var d=a("./_object-dp"),e=a("./_an-object"),f=a("./_object-keys");b.exports=a("./_descriptors")?Object.defineProperties:function(a,b){e(a);for(var c,g=f(b),h=g.length,i=0;h>i;)d.f(a,c=g[i++],b[c]);return a}},{"./_an-object":9,"./_descriptors":30,"./_object-dp":69,"./_object-keys":78}],71:[function(a,b,c){b.exports=a("./_library")||!a("./_fails")(function(){var b=Math.random();__defineSetter__.call(null,b,function(){}),delete a("./_global")[b]})},{"./_fails":36,"./_global":40,"./_library":60}],72:[function(a,b,c){var d=a("./_object-pie"),e=a("./_property-desc"),f=a("./_to-iobject"),g=a("./_to-primitive"),h=a("./_has"),i=a("./_ie8-dom-define"),j=Object.getOwnPropertyDescriptor;c.f=a("./_descriptors")?j:function(a,b){if(a=f(a),b=g(b,!0),i)try{return j(a,b)}catch(a){}if(h(a,b))return e(!d.f.call(a,b),a[b])}},{"./_descriptors":30,"./_has":41,"./_ie8-dom-define":44,"./_object-pie":79,"./_property-desc":87,"./_to-iobject":109,"./_to-primitive":112}],73:[function(a,b,c){var d=a("./_to-iobject"),e=a("./_object-gopn").f,f={}.toString,g="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],h=function(a){try{return e(a)}catch(a){return g.slice()}};b.exports.f=function(a){return g&&"[object Window]"==f.call(a)?h(a):e(d(a))}},{"./_object-gopn":74,"./_to-iobject":109}],74:[function(a,b,c){var d=a("./_object-keys-internal"),e=a("./_enum-bug-keys").concat("length","prototype");c.f=Object.getOwnPropertyNames||function(a){return d(a,e)}},{"./_enum-bug-keys":32,"./_object-keys-internal":77}],75:[function(a,b,c){c.f=Object.getOwnPropertySymbols},{}],76:[function(a,b,c){var d=a("./_has"),e=a("./_to-object"),f=a("./_shared-key")("IE_PROTO"),g=Object.prototype;b.exports=Object.getPrototypeOf||function(a){return a=e(a),d(a,f)?a[f]:"function"==typeof a.constructor&&a instanceof a.constructor?a.constructor.prototype:a instanceof Object?g:null}},{"./_has":41,"./_shared-key":95,"./_to-object":111}],77:[function(a,b,c){var d=a("./_has"),e=a("./_to-iobject"),f=a("./_array-includes")(!1),g=a("./_shared-key")("IE_PROTO");b.exports=function(a,b){var c,h=e(a),i=0,j=[];for(c in h)c!=g&&d(h,c)&&j.push(c);for(;b.length>i;)d(h,c=b[i++])&&(~f(j,c)||j.push(c));return j}},{"./_array-includes":13,"./_has":41,"./_shared-key":95,"./_to-iobject":109}],78:[function(a,b,c){var d=a("./_object-keys-internal"),e=a("./_enum-bug-keys");b.exports=Object.keys||function(a){return d(a,e)}},{"./_enum-bug-keys":32,"./_object-keys-internal":77}],79:[function(a,b,c){c.f={}.propertyIsEnumerable},{}],80:[function(a,b,c){var d=a("./_export"),e=a("./_core"),f=a("./_fails");b.exports=function(a,b){var c=(e.Object||{})[a]||Object[a],g={};g[a]=b(c),d(d.S+d.F*f(function(){c(1)}),"Object",g)}},{"./_core":25,"./_export":34,"./_fails":36}],81:[function(a,b,c){var d=a("./_object-keys"),e=a("./_to-iobject"),f=a("./_object-pie").f;b.exports=function(a){return function(b){for(var c,g=e(b),h=d(g),i=h.length,j=0,k=[];i>j;)f.call(g,c=h[j++])&&k.push(a?[c,g[c]]:g[c]);return k}}},{"./_object-keys":78,"./_object-pie":79,"./_to-iobject":109}],82:[function(a,b,c){var d=a("./_object-gopn"),e=a("./_object-gops"),f=a("./_an-object"),g=a("./_global").Reflect;b.exports=g&&g.ownKeys||function(a){var b=d.f(f(a)),c=e.f;return c?b.concat(c(a)):b}},{"./_an-object":9,"./_global":40,"./_object-gopn":74,"./_object-gops":75}],83:[function(a,b,c){var d=a("./_global").parseFloat,e=a("./_string-trim").trim;b.exports=1/d(a("./_string-ws")+"-0")!=-1/0?function(a){var b=e(String(a),3),c=d(b);return 0===c&&"-"==b.charAt(0)?-0:c}:d},{"./_global":40,"./_string-trim":104,"./_string-ws":105}],84:[function(a,b,c){var d=a("./_global").parseInt,e=a("./_string-trim").trim,f=a("./_string-ws"),g=/^[\-+]?0[xX]/;b.exports=8!==d(f+"08")||22!==d(f+"0x16")?function(a,b){var c=e(String(a),3);return d(c,b>>>0||(g.test(c)?16:10))}:d},{"./_global":40,"./_string-trim":104,"./_string-ws":105}],85:[function(a,b,c){"use strict";var d=a("./_path"),e=a("./_invoke"),f=a("./_a-function");b.exports=function(){for(var a=f(this),b=arguments.length,c=Array(b),g=0,h=d._,i=!1;b>g;)(c[g]=arguments[g++])===h&&(i=!0);return function(){var d,f=this,g=arguments.length,j=0,k=0;if(!i&&!g)return e(a,c,f);if(d=c.slice(),i)for(;b>j;j++)d[j]===h&&(d[j]=arguments[k++]);for(;g>k;)d.push(arguments[k++]);return e(a,d,f)}}},{"./_a-function":5,"./_invoke":46,"./_path":86}],86:[function(a,b,c){b.exports=a("./_global")},{"./_global":40}],87:[function(a,b,c){b.exports=function(a,b){return{enumerable:!(1&a),configurable:!(2&a),writable:!(4&a),value:b}}},{}],88:[function(a,b,c){var d=a("./_redefine");b.exports=function(a,b,c){for(var e in b)d(a,e,b[e],c);return a}},{"./_redefine":89}],89:[function(a,b,c){var d=a("./_global"),e=a("./_hide"),f=a("./_has"),g=a("./_uid")("src"),h=Function.toString,i=(""+h).split("toString");a("./_core").inspectSource=function(a){return h.call(a)},(b.exports=function(a,b,c,h){var j="function"==typeof c;j&&(f(c,"name")||e(c,"name",b)),a[b]!==c&&(j&&(f(c,g)||e(c,g,a[b]?""+a[b]:i.join(String(b)))),a===d?a[b]=c:h?a[b]?a[b]=c:e(a,b,c):(delete a[b],e(a,b,c)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[g]||h.call(this)})},{"./_core":25,"./_global":40,"./_has":41,"./_hide":42,"./_uid":116}],90:[function(a,b,c){b.exports=function(a,b){var c=b===Object(b)?function(a){return b[a]}:b;return function(b){return String(b).replace(a,c)}}},{}],91:[function(a,b,c){b.exports=Object.is||function(a,b){return a===b?0!==a||1/a==1/b:a!=a&&b!=b}},{}],92:[function(a,b,c){var d=a("./_is-object"),e=a("./_an-object"),f=function(a,b){if(e(a),!d(b)&&null!==b)throw TypeError(b+": can't set as prototype!")};b.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(b,c,d){try{d=a("./_ctx")(Function.call,a("./_object-gopd").f(Object.prototype,"__proto__").set,2),d(b,[]),c=!(b instanceof Array)}catch(a){c=!0}return function(a,b){return f(a,b),c?a.__proto__=b:d(a,b),a}}({},!1):void 0),check:f}},{"./_an-object":9,"./_ctx":27,"./_is-object":51,"./_object-gopd":72}],93:[function(a,b,c){"use strict";var d=a("./_global"),e=a("./_object-dp"),f=a("./_descriptors"),g=a("./_wks")("species");b.exports=function(a){var b=d[a];f&&b&&!b[g]&&e.f(b,g,{configurable:!0,get:function(){return this}})}},{"./_descriptors":30,"./_global":40,"./_object-dp":69,"./_wks":119}],94:[function(a,b,c){var d=a("./_object-dp").f,e=a("./_has"),f=a("./_wks")("toStringTag");b.exports=function(a,b,c){a&&!e(a=c?a:a.prototype,f)&&d(a,f,{configurable:!0,value:b})}},{"./_has":41,"./_object-dp":69,"./_wks":119}],95:[function(a,b,c){var d=a("./_shared")("keys"),e=a("./_uid");b.exports=function(a){return d[a]||(d[a]=e(a))}},{"./_shared":96,"./_uid":116}],96:[function(a,b,c){var d=a("./_global"),e=d["__core-js_shared__"]||(d["__core-js_shared__"]={});b.exports=function(a){return e[a]||(e[a]={})}},{"./_global":40}],97:[function(a,b,c){var d=a("./_an-object"),e=a("./_a-function"),f=a("./_wks")("species");b.exports=function(a,b){var c,g=d(a).constructor;return void 0===g||void 0==(c=d(g)[f])?b:e(c)}},{"./_a-function":5,"./_an-object":9,"./_wks":119}],98:[function(a,b,c){var d=a("./_fails");b.exports=function(a,b){return!!a&&d(function(){b?a.call(null,function(){},1):a.call(null)})}},{"./_fails":36}],99:[function(a,b,c){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":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":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=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={},C=void 0,D=0,E=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:E},this.utils={createDOMException:n.createDOMException},this.__connections=[]}return a.prototype=E.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=void 0;if(p&&a in B&&B[a][e]?f=B[a][e]:(f=A.default.win.openDatabase(p?A.default.memoryDatabase:r,1,a,A.default.DEFAULT_DB_SIZE),q&&(B[a][e]=f)),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),ca?b:a},0)];if(!d)return void console.log("Could not find a memory database instance to delete.");var g=d._db&&d._db._db;return g&&g.close?void g.close(function(a){if(a)return void console.log("Error closing (destroying) memory database");delete B[b]}):void console.log("The `openDatabase` implementation does not have the expected `._db._db.close` method for closing the database")}if(A.default.cacheDatabaseInstances!==!1&&b in B&&delete B[b],A.default.deleteDatabaseFiles!==!1)return void a("fs").unlink(a("path").resolve(e),function(a){if(a&&"ENOENT"!==a.code)return void c({code:0,message:"Error removing database file: "+e+" "+a});f()});A.default.win.openDatabase(e,1,b,A.default.DEFAULT_DB_SIZE).transaction(function(a){a.executeSql('SELECT "name" FROM __sys__',[],function(a,b){var d=b.rows;!function b(e){e>=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)||(q=function(a,b){a?d(a,b):e(b)},!1)})},c)},c)},c),j},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(){C.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 F=h.__createInstance();c.IDBFactory=h,c.cmp=i,c.shimIndexedDB=F},{"./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 { // Various types of in-memory databases that can auto-delete + if ((/^(?::memory:|file::memory:(\?[^#]*)?(#.*)?)?$/).test(val)) { + throw new TypeError('`memoryDatabase` must be the empty string, ":memory:", or a "file::memory:[?queryString][#hash] URL".'); + } + }], // NODE-SPECIFIC CONFIG // Boolean on whether to delete the database file itself after `deleteDatabase`; @@ -78,11 +88,19 @@ const CFG = {}; 'sqlTrace', // Callback not used by default 'sqlProfile' // Callback not used by default ].forEach((prop) => { + let validator; + if (Array.isArray(prop)) { + validator = prop[1]; + prop = prop[0]; + } Object.defineProperty(CFG, prop, { get: function () { return map[prop]; }, set: function (val) { + if (validator) { + validator(val); + } map[prop] = val; } }); diff --git a/src/IDBFactory.js b/src/IDBFactory.js index eba732bf..b0f77792 100644 --- a/src/IDBFactory.js +++ b/src/IDBFactory.js @@ -10,7 +10,9 @@ import IDBTransaction from './IDBTransaction'; import IDBDatabase from './IDBDatabase'; import CFG from './CFG'; +const sqliteDBCache = {}; let sysdb; +let nameCounter = 0; function hasNullOrigin () { return CFG.checkOrigin !== false && @@ -30,7 +32,14 @@ function createSysDB (success, failure) { if (sysdb) { success(); } else { - sysdb = CFG.win.openDatabase('__sysdb__.sqlite', 1, 'System Database', CFG.DEFAULT_DB_SIZE); + sysdb = CFG.win.openDatabase( + typeof CFG.memoryDatabase === 'string' + ? CFG.memoryDatabase + : '__sysdb__' + (CFG.addSQLiteExtension !== false ? '.sqlite' : ''), + 1, + 'System Database', + CFG.DEFAULT_DB_SIZE + ); sysdb.transaction(function (systx) { systx.executeSql('CREATE TABLE IF NOT EXISTS dbVersions (name VARCHAR(255), version INT);', [], success, sysDbCreateError); }, sysDbCreateError); @@ -92,8 +101,24 @@ IDBFactory.prototype.open = function (name /* , version */) { if (hasNullOrigin()) { throw createDOMException('SecurityError', 'Cannot open an IndexedDB database from an opaque origin.'); } + + if (CFG.autoName && name === '') { + name = 'autoNamedDatabase_' + nameCounter++; + } name = String(name); // cast to a string const sqlSafeName = util.escapeSQLiteStatement(name); + + const useMemoryDatabase = typeof CFG.memoryDatabase === 'string'; + const useDatabaseCache = CFG.cacheDatabaseInstances !== false || useMemoryDatabase; + if (useDatabaseCache) { + if (!(name in sqliteDBCache)) { + sqliteDBCache[name] = {}; + } + if (sqliteDBCache[name][version]) { + return sqliteDBCache[name][version]; + } + } + let escapedDatabaseName; try { escapedDatabaseName = util.escapeDatabaseNameForSQLAndFiles(name); @@ -116,7 +141,20 @@ IDBFactory.prototype.open = function (name /* , version */) { } function openDB (oldVersion) { - const db = CFG.win.openDatabase(escapedDatabaseName, 1, name, CFG.DEFAULT_DB_SIZE); + let db; + if (useMemoryDatabase && name in sqliteDBCache && sqliteDBCache[name][version]) { + db = sqliteDBCache[name][version]; + } else { + db = CFG.win.openDatabase( + useMemoryDatabase ? CFG.memoryDatabase : escapedDatabaseName, + 1, + name, + CFG.DEFAULT_DB_SIZE + ); + if (useDatabaseCache) { + sqliteDBCache[name][version] = db; + } + } req.__readyState = 'done'; if (version === undefined) { version = oldVersion || 1; @@ -145,6 +183,7 @@ IDBFactory.prototype.open = function (name /* , version */) { function reportError () { throw new Error('Unable to roll back upgrade transaction!'); } + // Attempt to revert if (oldVersion === 0) { systx.executeSql('DELETE FROM dbVersions WHERE "name" = ?', [sqlSafeName], cb, reportError); @@ -169,6 +208,11 @@ IDBFactory.prototype.open = function (name /* , version */) { req.result.__versionTransaction = null; sysdbFinishedCb(systx, false, function () { req.transaction.__transFinishedCb(false, function () { + if (useDatabaseCache) { + if (name in sqliteDBCache) { + delete sqliteDBCache[name][version]; + } + } ev.complete(); req.__transaction = null; }); @@ -179,6 +223,11 @@ IDBFactory.prototype.open = function (name /* , version */) { setTimeout(() => { const err = createDOMException('AbortError', 'The upgrade transaction was aborted.'); sysdbFinishedCb(systx, err, function () { + if (useDatabaseCache) { + if (name in sqliteDBCache) { + delete sqliteDBCache[name][version]; + } + } dbCreateError(err); }); }); @@ -276,6 +325,8 @@ IDBFactory.prototype.deleteDatabase = function (name) { throw err; // throw new TypeError('You have supplied a database name which does not match the currently supported configuration, possibly due to a length limit enforced for Node compatibility.'); } + const useMemoryDatabase = typeof CFG.memoryDatabase === 'string'; + const req = IDBOpenDBRequest.__createInstance(); let calledDBError = false; let version = 0; @@ -330,6 +381,38 @@ IDBFactory.prototype.deleteDatabase = function (name) { // `dbVersions` change if they fail sysdb.transaction(function (systx) { systx.executeSql('DELETE FROM dbVersions WHERE "name" = ? ', [sqlSafeName], function () { + // Todo: We should also check whether `dbVersions` is empty and if so, delete upon + // `deleteDatabaseFiles` config. We also ought to do this when aborting (see + // above code with `DELETE FROM dbVersions`) + if (useMemoryDatabase) { + const memoryDB = sqliteDBCache[name] && + // Use latest version + sqliteDBCache[name][ // eslint-disable-line standard/computed-property-even-spacing + Object.keys(sqliteDBCache[name]).map(Number).reduce( + (prev, curr) => curr > prev ? curr : prev, 0 + ) + ]; + if (!memoryDB) { + console.log('Could not find a memory database instance to delete.'); + return; + } + const sqliteDB = memoryDB._db && memoryDB._db._db; + if (!sqliteDB || !sqliteDB.close) { + console.log('The `openDatabase` implementation does not have the expected `._db._db.close` method for closing the database'); + return; + } + sqliteDB.close(function (err) { + if (err) { + console.log('Error closing (destroying) memory database'); + return; + } + delete sqliteDBCache[name]; // New calls will treat as though never existed + }); + return; + } + if (CFG.cacheDatabaseInstances !== false && name in sqliteDBCache) { + delete sqliteDBCache[name]; + } if (CFG.deleteDatabaseFiles !== false) { require('fs').unlink(require('path').resolve(escapedDatabaseName), (err) => { if (err && err.code !== 'ENOENT') { // Ignore if file is already deleted @@ -341,8 +424,8 @@ IDBFactory.prototype.deleteDatabase = function (name) { return; } - const db = CFG.win.openDatabase(escapedDatabaseName, 1, name, CFG.DEFAULT_DB_SIZE); - db.transaction(function (tx) { + const sqliteDB = CFG.win.openDatabase(escapedDatabaseName, 1, name, CFG.DEFAULT_DB_SIZE); + sqliteDB.transaction(function (tx) { tx.executeSql('SELECT "name" FROM __sys__', [], function (tx, data) { const tables = data.rows; (function deleteTables (i) {