vardbToCloud=function(t){"use strict";functione(t,e){varn=Object.keys(t);if(Object.getOwnPropertySymbols){varo=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){returnObject.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}returnn}functionn(t){for(varn=1;n<arguments.length;n++){varo=null!=arguments[n]?arguments[n]:{};n%2?e(Object(o),!0).forEach((function(e){i(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}returnt}functiono(t,e,n,o,r,i,c){try{vara=t[i](c),s=a.value}catch(t){returnvoidn(t)}a.done?e(s):Promise.resolve(s).then(o,r)}functionr(t){returnfunction(){vare=this,n=arguments;returnnewPromise((function(r,i){varc=t.apply(e,n);functiona(t){o(c,r,i,a,s,"next",t)}functions(t){o(c,r,i,a,s,"throw",t)}a(void0)}))}}functioni(t,e,n){returneint?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}functionc(t,e){if(null==t)return{};varn,o,r=function(t,e){if(null==t)return{};varn,o,r={},i=Object.keys(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||(r[n]=t[n]);returnr}(t,e);if(Object.getOwnPropertySymbols){vari=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}returnr}functiona(t,e){returnfunction(t){if(Array.isArray(t))returnt}(t)||function(t,e){varn=null==t?null:"undefined"!=typeofSymbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;varo,r,i=[],c=!0,a=!1;try{for(n=n.call(t);!(c=(o=n.next()).done)&&(i.push(o.value),!e||i.length!==e);c=!0);}catch(t){a=!0,r=t}finally{try{c||null==n.return||n.return()}finally{if(a)throwr}}returni}(t,e)||s(t,e)||function(){thrownewTypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functions(t,e){if(t){if("string"==typeoft)returnl(t,e);varn=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void0}}functionl(t,e){(null==e||e>t.length)&&(e=t.length);for(varn=0,o=newArray(e);n<e;n++)o[n]=t[n];returno}functionu(t,e){varn="undefined"!=typeofSymbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=s(t))||e&&t&&"number"==typeoft.length){n&&(t=n);varo=0,r=function(){};return{s:r,n:function(){returno>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throwt},f:r}}thrownewTypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}vari,c=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){vart=n.next();returnc=t.done,t},e:function(t){a=!0,i=t},f:function(){try{c||null==n.return||n.return()}finally{if(a)throwi}}}}functionp({maxActiveReader:t=1/0}={}){lete,n,o=0;constr={read:t=>i(t,!1),write:t=>i(t,!0),length:0};returnr;functioni(t,o){consti=function({fn:t,block:e=!1,prev:n,next:o,q:r=c(),q2:i=(t.length?c():null)}){return{fn:t,block:e,prev:n,next:o,q:r,q2:i}}({fn:t,block:o});returnn?(n.next=i,i.prev=n,n=i,e||(e=n)):e=n=i,r.length++,a(),i.q.promise}functionc(){constt={};returnt.promise=newPromise(((e,n)=>{t.resolve=e,t.reject=n})),t}functiona(){consti=e;if(!i||i.block&&i.prev||i.prev&&i.prev.block||o>=t)return;letc;i.block||o++,e=i.next;try{c=i.fn(i.q2&&i.q2.resolve)}catch(t){returni.q.reject(t),voids()}if(i.q2&&i.q2.promise.then(l),c&&c.then){constt=c.then(i.q.resolve,i.q.reject);i.q2||t.then(s)}elseif(i.q.resolve(c),!i.q2)returnvoids();functions(){l()}functionl(t){i.prev&&(i.prev.next=i.next),i.next&&(i.next.prev=i.prev),n===i&&(n=i.prev),i.block||o--,r.length--,t&&t(),a()}a()}}classfextendsError{constructor(t){super("The database is locked. Will expire at ".concat(newDate(t).toLocaleString())),this.expire=t,this.name="LockError",Er