(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[635],{53185:function(e,t,n){var r;r=function(){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)},t=function(){return(t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n.",eH="String expected.",eJ=[],eZ="__dbnames",e0="readonly",e1="readwrite";function e3(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}var e2={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function e8(e){return"string"!=typeof e||/\./.test(e)?function(e){return e}:function(t){return void 0===t[e]&&e in t&&delete(t=j(t))[e],t}}function e4(){throw $.Type()}function e5(e,t){try{var n=e6(e),r=e6(t);if(n!==r)return"Array"===n?1:"Array"===r?-1:"binary"===n?1:"binary"===r?-1:"string"===n?1:"string"===r?-1:"Date"===n?1:"Date"!==r?NaN:-1;switch(n){case"number":case"Date":case"string":return ta+u&&n(a+d)})})})(0).then(function(){if(0i(e[s],n[s])?e.substr(0,s)+n[s]+n.substr(s+1):0>i(e[s],r[s])?e.substr(0,s)+r[s]+n.substr(s+1):0<=u?e.substr(0,u)+t[u]+n.substr(u+1):null;0>i(e[s],c)&&(u=s)}return a=i(e[0],e[1])}))return tm(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",$.InvalidArgument);var s,c=!t||!1!==t.includeLowers,l=t&&!0===t.includeUppers,f=i;function h(e,t){return f(e[0],t[0])}try{(s=e.reduce(function(e,t){for(var n=0,i=e.length;nr(t[0],o[1])&&0e5(n,e.from))return i?t2(i,t,n):e.l={from:t,to:n,d:1,l:null,r:null},t6(e);if(0e5(t,e.from)&&(e.from=t,e.l=null,e.d=r?r.d+1:1),0=e5(u.from,i.to)&&0<=e5(u.to,i.from))return!0;0>e5(i.from,u.from)?i=(r=n.next(u.from)).value:u=(a=o.next(i.from)).value}return!1}function t5(e){var t=t1(e)?null:{s:0,n:e};return{next:function(e){for(var n=0e5(e,t.n.from);)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||0>=e5(e,t.n.to))return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function t6(e){var n,r,i=((null===(n=e.r)||void 0===n?void 0:n.d)||0)-((null===(r=e.l)||void 0===r?void 0:r.d)||0),o=1e5(e,t.upper):0>=e5(e,t.upper)))}function nw(e,t,n,r,i,o){if(!n||0===n.length)return e;var u=t.query.index,s=u.multiEntry,c=t.query.range,l=r.schema.primaryKey.extractKey,f=u.extractKey,h=(u.lowLevelIndex||u).extractKey,n=n.reduce(function(e,n){var r=e,i="add"===n.type||"put"===n.type?n.values.filter(function(e){return e=f(e),s&&a(e)?e.some(function(e){return ng(e,c)}):ng(e,c)}).map(function(e){return e=j(e),o&&Object.freeze(e),e}):[];switch(n.type){case"add":r=e.concat(t.values?i:i.map(function(e){return l(e)}));break;case"put":var u=(new t3).addKeys(n.values.map(function(e){return l(e)})),r=e.filter(function(e){return!t4(new t3(e=t.values?l(e):e),u)}).concat(t.values?i:i.map(function(e){return l(e)}));break;case"delete":var h=(new t3).addKeys(n.keys);r=e.filter(function(e){return!t4(new t3(e=t.values?l(e):e),h)});break;case"deleteRange":var d=n.range;r=e.filter(function(e){return!ng(l(e),d)})}return r},e);return n===e?e:(n.sort(function(e,t){return e5(h(e),h(t))||e5(l(e),l(t))}),t.limit&&t.limit<1/0&&(n.length>t.limit?n.length=t.limit:e.length===t.limit&&n.length=r.limit&&(!r.values||e.req.values)&&(t=e.req.query.range,n=r.query.range,0>=function(e,t,n,r){if(void 0===e)return void 0!==t?-1:0;if(void 0===t)return 1;if(0===(t=e5(e,t))){if(n&&r)return 0;if(n)return 1;if(r)return -1}return t}(t.lower,n.lower,t.lowerOpen,n.lowerOpen)&&0<=function(e,t,n,r){if(void 0===e)return void 0!==t?1:0;if(void 0===t)return -1;if(0===(t=e5(e,t))){if(n&&r)return 0;if(n)return -1;if(r)return 1}return t}(t.upper,n.upper,t.upperOpen,n.upperOpen))}),!1,i,o];case"count":return[a=o.find(function(e){return n_(e.req.query.range,r.query.range)}),!!a,i,o]}}(n,r,"query",e),f=l[0],u=l[1],h=l[2],d=l[3];return f&&u?f.obsSet=e.obsSet:(u=i.query(e).then(function(e){var t=e.result;if(f&&(f.res=t),a){for(var n=0,r=t.length;n0x4000000000000000?0:r.oldVersion)<1,e.idbdb=d.result,a&&function(e,t){tW(e._dbSchema,t),t.db.version%10!=0||t.objectStoreNames.contains("$meta")||t.db.createObjectStore("$meta").add(Math.ceil(t.db.version/10-1),"version");var n=tY(0,e.idbdb,t);tQ(e,e._dbSchema,t);for(var r=0,i=tV(n,e._dbSchema).change;r=n})).length?(t.forEach(function(t){r.push(function(){var r=i,a=t._cfg.dbschema;tQ(e,r,s),tQ(e,a,s),i=e._dbSchema=a;var u=tV(r,a);u.add.forEach(function(e){tz(s,e[0],e[1].primKey,e[1].indexes)}),u.change.forEach(function(e){if(e.recreate)throw new $.Upgrade("Not yet support for changing primary key");var t=s.objectStore(e.name);e.add.forEach(function(e){return t$(t,e)}),e.change.forEach(function(e){t.deleteIndex(e.name),t$(t,e)}),e.del.forEach(function(e){return t.deleteIndex(e)})});var c=t._cfg.contentUpgrade;if(c&&t._cfg.version>n){tF(e,s),y._memoizedTables={};var l=k(a);u.del.forEach(function(e){l[e]=r[e]}),tL(e,[e.Transaction.prototype]),tM(e,[e.Transaction.prototype],o(l),l),y.schema=l;var f,h=R(c);return h&&eF(),u=eg.follow(function(){var e;(f=c(y))&&h&&(e=eM.bind(null,null),f.then(e,e))}),f&&"function"==typeof f.then?eg.resolve(f):u.then(function(){return f})}}),r.push(function(n){var r=t._cfg.dbschema;[].slice.call(n.db.objectStoreNames).forEach(function(e){return null==r[e]&&n.db.deleteObjectStore(e)}),tL(e,[e.Transaction.prototype]),tM(e,[e.Transaction.prototype],e._storeNames,e._dbSchema),y.schema=e._dbSchema}),r.push(function(n){e.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(e.idbdb.version/10)===t._cfg.version?(e.idbdb.deleteObjectStore("$meta"),delete e._dbSchema.$meta,e._storeNames=e._storeNames.filter(function(e){return"$meta"!==e})):n.objectStore("$meta").put(t._cfg.version,"version"))})}),(function e(){return r.length?eg.resolve(r.shift()(y.idbtrans)).then(e):eg.resolve()})().then(function(){tW(i,s)})):eg.resolve()}).catch(v)):(o(p).forEach(function(e){tz(s,e,p[e].primKey,p[e].indexes)}),tF(e,s),void eg.follow(function(){return e.on.populate.fire(y)}).catch(v))}))},c),d.onsuccess=eA(function(){l=null;var n,u,c,p=e.idbdb=d.result,y=m(p.objectStoreNames);if(0e5(e,t)?e:t},this._IDBKeyRange=c._deps.IDBKeyRange,!this._IDBKeyRange)throw new $.MissingAPI})),this.on("versionchange",function(e){0