@mdn/fred 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/README.md +18 -0
- package/build/server-worker.js +6 -4
- package/components/doc/server.js +9 -1
- package/components/outer-layout/server.js +8 -7
- package/components/reference-layout/server.js +14 -0
- package/components/server/async-local-storage.js +12 -1
- package/components/server/index.js +16 -1
- package/components/server/types.d.ts +9 -5
- package/entry.ssr.js +33 -1
- package/out/service-worker.js +1 -1
- package/out/service-worker.js.map +1 -1
- package/out/static/client/{3730.1a4ba03239ff0f16.js → 3730.dcf04b12bbd00d6f.js} +2 -2
- package/out/static/client/{3730.1a4ba03239ff0f16.js.map → 3730.dcf04b12bbd00d6f.js.map} +1 -1
- package/out/static/client/6216.1bfd3cf0b0a6c7df.js +2 -0
- package/out/static/client/6216.1bfd3cf0b0a6c7df.js.map +1 -0
- package/out/static/client/8233.ae0b9ab7bd3e969b.js +2 -0
- package/out/static/client/8233.ae0b9ab7bd3e969b.js.map +1 -0
- package/out/static/client/{index.0e1f202766cdb426.js → index.a66b5a087a738e61.js} +3 -3
- package/out/static/client/{index.0e1f202766cdb426.js.map → index.a66b5a087a738e61.js.map} +1 -1
- package/out/static/client/{runtime.076e84c93222dfd0.js → runtime.149f3caaca6b394a.js} +2 -2
- package/out/static/client/{runtime.076e84c93222dfd0.js.map → runtime.149f3caaca6b394a.js.map} +1 -1
- package/out/static/client/stats.json +436 -436
- package/out/static/client/styles-a11y-menu.b09c6038ee60691b.js +1 -0
- package/out/static/client/styles-advertising.8a72634ac33967b3.js +1 -0
- package/out/static/client/styles-article-footer.2008e05e900132bf.js +1 -0
- package/out/static/client/styles-banner.1588da63ad451f94.js +1 -0
- package/out/static/client/styles-baseline-indicator.045ce266c0388ff2.js +1 -0
- package/out/static/client/styles-blog-index.af7e5efac0463be9.js +1 -0
- package/out/static/client/styles-blog-post.21543a25c5d0c820.js +1 -0
- package/out/static/client/styles-breadcrumbs-bar.4e50455c81d9f236.js +1 -0
- package/out/static/client/styles-breadcrumbs.3272f39f147fdb26.js +1 -0
- package/out/static/client/styles-button.93e42cbce83fe9f8.js +1 -0
- package/out/static/client/styles-content-section.b38423c0dca8e3e4.js +1 -0
- package/out/static/client/styles-contributor-spotlight.efe854e18205bd6c.js +1 -0
- package/out/static/client/styles-curriculum-about.eb719efa09eab2e3.js +1 -0
- package/out/static/client/styles-curriculum-default.648a02845551d4a6.js +1 -0
- package/out/static/client/styles-curriculum-landing.f3af2ff9b3815ed8.js +1 -0
- package/out/static/client/styles-curriculum-module.284687a631bdb6c0.js +1 -0
- package/out/static/client/styles-curriculum-overview.81d25abdbb43b369.js +1 -0
- package/out/static/client/styles-featured-articles.1390540e6554e233.js +1 -0
- package/out/static/client/styles-footer.15153a4030e38f8f.js +1 -0
- package/out/static/client/styles-generic-about.f0afaa2db7066430.js +1 -0
- package/out/static/client/styles-generic-community.ff945b87102835f8.js +1 -0
- package/out/static/client/styles-generic-content.d0e560a0506475b1.js +1 -0
- package/out/static/client/styles-generic-layout.ca2cef837e24e7df.js +1 -0
- package/out/static/client/styles-generic-sidebar.b2b48d0d08f8bae7.js +1 -0
- package/out/static/client/styles-generic-toc.e8887bbe84a31d72.js +1 -0
- package/out/static/client/{styles-global.63980d9c69df1f6a.css → styles-global.2db431c11b66274e.css} +2 -2
- package/out/static/client/{styles-global.63980d9c69df1f6a.css.map → styles-global.2db431c11b66274e.css.map} +1 -1
- package/out/static/client/styles-global.efc5040b727dfca4.js +1 -0
- package/out/static/client/styles-heading-anchor.d7e14184517a1d3e.js +1 -0
- package/out/static/client/styles-homepage-body.1196a061fab22906.js +1 -0
- package/out/static/client/styles-homepage-contributor-spotlight.09a6993f73166d63.js +1 -0
- package/out/static/client/styles-homepage-footer.472132358e452a8b.js +1 -0
- package/out/static/client/styles-homepage-header.e6423ccb0a814f99.js +1 -0
- package/out/static/client/styles-homepage-hero.1c106d7a3adb970a.js +1 -0
- package/out/static/client/styles-homepage.843ab43d3f720fb6.js +1 -0
- package/out/static/client/styles-latest-news.986caae0711fbfe3.js +1 -0
- package/out/static/client/styles-left-sidebar.5a4d56fc21aab182.js +1 -0
- package/out/static/client/styles-logo.9cf3aa133bae8020.js +1 -0
- package/out/static/client/styles-mandala.b9822fc945abee39.js +1 -0
- package/out/static/client/styles-menu.97e048a6ffc666ce.js +1 -0
- package/out/static/client/styles-navigation.58a2a0a1f8d4487b.js +1 -0
- package/out/static/client/styles-not-found.a5c00a725a178969.js +1 -0
- package/out/static/client/styles-observatory-landing.c729a3523c37df23.js +1 -0
- package/out/static/client/styles-observatory-results.d4d142541bf683e1.js +1 -0
- package/out/static/client/styles-page-layout.baa1dac2402744c9.js +1 -0
- package/out/static/client/styles-pagination.04e3a505f4e789a6.js +1 -0
- package/out/static/client/styles-playground.7de5e497e2ebfa83.js +1 -0
- package/out/static/client/styles-recent-contributions.f1ab270b54c7e8de.js +1 -0
- package/out/static/client/styles-reference-layout.5c4b832bc9420f51.js +1 -0
- package/out/static/client/styles-reference-toc.afd507fb6d5ef895.js +1 -0
- package/out/static/client/styles-sandbox.3de7bd2afac30c66.js +1 -0
- package/out/static/client/styles-site-search.05f228cb7ac309b2.js +1 -0
- package/out/static/client/styles-social-image.dbdccf6b8d9258f2.js +1 -0
- package/out/static/client/styles-translation-banner.7698ddb14a70d0e5.js +1 -0
- package/out/static/client/styles-writer-toolbar.f161f8bd86e23a2a.js +1 -0
- package/out/static/client/{styles.cbf2ca4b84823096.js → styles.a182af71488aad03.js} +2 -2
- package/out/static/client/{styles.cbf2ca4b84823096.js.map → styles.a182af71488aad03.js.map} +1 -1
- package/out/static/client/watify_bg.4b1c94ba3861176a.wasm +0 -0
- package/out/static/legacy/{2569.41b52dfae9ff5dbd.js → 2569.9f096bac448374bd.js} +2 -2
- package/out/static/legacy/{2569.41b52dfae9ff5dbd.js.map → 2569.9f096bac448374bd.js.map} +1 -1
- package/out/static/legacy/6753.c44647828e8b4816.js +27 -0
- package/out/static/legacy/6753.c44647828e8b4816.js.map +1 -0
- package/out/static/legacy/7555.7cda2207795611e9.js +2 -0
- package/out/static/legacy/7555.7cda2207795611e9.js.map +1 -0
- package/out/static/legacy/8233.ae0b9ab7bd3e969b.js +2 -0
- package/out/static/legacy/8233.ae0b9ab7bd3e969b.js.map +1 -0
- package/out/static/legacy/asset-manifest.json +11 -11
- package/out/static/legacy/{index.5e65b9f52e86ad40.js → index.6c7371784b8345e6.js} +3 -3
- package/out/static/legacy/{index.5e65b9f52e86ad40.js.map → index.6c7371784b8345e6.js.map} +1 -1
- package/out/static/legacy/{index.6838304b64f32836.html → index.7ddac90f21db9f4e.html} +1 -1
- package/out/static/legacy/stats.json +13 -13
- package/out/static/legacy/watify_bg.4b1c94ba3861176a.wasm +0 -0
- package/out/static/legacy/{yari.c8f274d3a31b194e.js → yari.74e397a2236facc5.js} +4 -4
- package/out/static/legacy/yari.74e397a2236facc5.js.map +1 -0
- package/out/static/ssr/8233.js +1 -1
- package/out/static/ssr/8233.js.map +1 -1
- package/out/static/ssr/index.js +136 -133
- package/out/static/ssr/index.js.map +1 -1
- package/out/static/ssr/stats.json +4 -4
- package/out/static/ssr/watify_bg.4b1c94ba3861176a.wasm +0 -0
- package/package.json +20 -20
- package/out/static/client/6216.e1ccb610706d375f.js +0 -2
- package/out/static/client/6216.e1ccb610706d375f.js.map +0 -1
- package/out/static/client/8233.81b8c2d171f5ea9f.js +0 -2
- package/out/static/client/8233.81b8c2d171f5ea9f.js.map +0 -1
- package/out/static/client/styles-a11y-menu.bf24a870a8a4969f.js +0 -1
- package/out/static/client/styles-advertising.9f2b7bddc08575fc.js +0 -1
- package/out/static/client/styles-article-footer.aa9f8d240980b0f4.js +0 -1
- package/out/static/client/styles-banner.e738836bac789a8b.js +0 -1
- package/out/static/client/styles-baseline-indicator.c062716f3d033dd8.js +0 -1
- package/out/static/client/styles-blog-index.818261c8123bc042.js +0 -1
- package/out/static/client/styles-blog-post.96ce1680245bbc86.js +0 -1
- package/out/static/client/styles-breadcrumbs-bar.ed7d1440bdccf98f.js +0 -1
- package/out/static/client/styles-breadcrumbs.7599a269dc584d75.js +0 -1
- package/out/static/client/styles-button.de6a7b9b7548d84b.js +0 -1
- package/out/static/client/styles-content-section.a8bd7fde04898354.js +0 -1
- package/out/static/client/styles-contributor-spotlight.adad2e813e1667fe.js +0 -1
- package/out/static/client/styles-curriculum-about.eefa128bb415258c.js +0 -1
- package/out/static/client/styles-curriculum-default.a2692218d2b1a1f9.js +0 -1
- package/out/static/client/styles-curriculum-landing.2d51b8fce8f12b8d.js +0 -1
- package/out/static/client/styles-curriculum-module.f4ae8920ee1c92ff.js +0 -1
- package/out/static/client/styles-curriculum-overview.2d7c17b0f0b9bd92.js +0 -1
- package/out/static/client/styles-featured-articles.c54e8f6b90567441.js +0 -1
- package/out/static/client/styles-footer.cff8d2b7669e06a9.js +0 -1
- package/out/static/client/styles-generic-about.b31b672a5d394108.js +0 -1
- package/out/static/client/styles-generic-community.f7e5df670c7aeaf3.js +0 -1
- package/out/static/client/styles-generic-content.1a9e4b87d8a12a85.js +0 -1
- package/out/static/client/styles-generic-layout.76e37948146a2f39.js +0 -1
- package/out/static/client/styles-generic-sidebar.c07d266d1382c357.js +0 -1
- package/out/static/client/styles-generic-toc.342bb77a42e3cc84.js +0 -1
- package/out/static/client/styles-global.c2e6118d3b833b4a.js +0 -1
- package/out/static/client/styles-heading-anchor.79390408a0c88875.js +0 -1
- package/out/static/client/styles-homepage-body.20c015a218d0bc96.js +0 -1
- package/out/static/client/styles-homepage-contributor-spotlight.21f37f11b3bd4bda.js +0 -1
- package/out/static/client/styles-homepage-footer.24e66b627b59d99f.js +0 -1
- package/out/static/client/styles-homepage-header.1a75fa94f8bab5a0.js +0 -1
- package/out/static/client/styles-homepage-hero.f1bf55f1be2d516d.js +0 -1
- package/out/static/client/styles-homepage.cd5bf6213bc06b4e.js +0 -1
- package/out/static/client/styles-latest-news.0f32a584ef1ed171.js +0 -1
- package/out/static/client/styles-left-sidebar.d7d52289da7ba969.js +0 -1
- package/out/static/client/styles-logo.1ff82941fc133017.js +0 -1
- package/out/static/client/styles-mandala.2a99de27a8c19d02.js +0 -1
- package/out/static/client/styles-menu.13c3394ada0512ef.js +0 -1
- package/out/static/client/styles-navigation.f857f577084aa7ef.js +0 -1
- package/out/static/client/styles-not-found.0bdc6a72643ebe34.js +0 -1
- package/out/static/client/styles-observatory-landing.e709efc8103ee08c.js +0 -1
- package/out/static/client/styles-observatory-results.e098740504c0c0f0.js +0 -1
- package/out/static/client/styles-page-layout.2ab75fc5b95edf1b.js +0 -1
- package/out/static/client/styles-pagination.667a2af3eaebe782.js +0 -1
- package/out/static/client/styles-playground.c1339745dabdf1f6.js +0 -1
- package/out/static/client/styles-recent-contributions.706333df420f227c.js +0 -1
- package/out/static/client/styles-reference-layout.6eaaea648e7e4dce.js +0 -1
- package/out/static/client/styles-reference-toc.dcb67aadb5032e3f.js +0 -1
- package/out/static/client/styles-sandbox.c14203f7b76d9e70.js +0 -1
- package/out/static/client/styles-site-search.ba674569591c3348.js +0 -1
- package/out/static/client/styles-social-image.f457942a12584899.js +0 -1
- package/out/static/client/styles-translation-banner.c0bf41a60bc2fe87.js +0 -1
- package/out/static/client/styles-writer-toolbar.e7438b6d8e7c99f4.js +0 -1
- package/out/static/client/watify_bg.dc8862fe10114050.wasm +0 -0
- package/out/static/legacy/6753.553d1b0c7912acfe.js +0 -27
- package/out/static/legacy/6753.553d1b0c7912acfe.js.map +0 -1
- package/out/static/legacy/7555.499540c46b2d1bd3.js +0 -2
- package/out/static/legacy/7555.499540c46b2d1bd3.js.map +0 -1
- package/out/static/legacy/8233.81b8c2d171f5ea9f.js +0 -2
- package/out/static/legacy/8233.81b8c2d171f5ea9f.js.map +0 -1
- package/out/static/legacy/watify_bg.dc8862fe10114050.wasm +0 -0
- package/out/static/legacy/yari.c8f274d3a31b194e.js.map +0 -1
- package/out/static/ssr/watify_bg.dc8862fe10114050.wasm +0 -0
- /package/out/{twitter-card-summary.46ac2375.png → mdn-social-image.46ac2375.png} +0 -0
- /package/out/static/client/{index.0e1f202766cdb426.js.LICENSE.txt → index.a66b5a087a738e61.js.LICENSE.txt} +0 -0
- /package/out/static/legacy/{6753.553d1b0c7912acfe.js.LICENSE.txt → 6753.c44647828e8b4816.js.LICENSE.txt} +0 -0
- /package/out/static/legacy/{index.5e65b9f52e86ad40.js.LICENSE.txt → index.6c7371784b8345e6.js.LICENSE.txt} +0 -0
- /package/out/static/legacy/{yari.c8f274d3a31b194e.js.LICENSE.txt → yari.74e397a2236facc5.js.LICENSE.txt} +0 -0
- /package/public/{twitter-card-summary.46ac2375.png → mdn-social-image.46ac2375.png} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export const __rspack_esm_id="7555";export const __rspack_esm_ids=["7555"];export const __webpack_modules__={23744(e,t,n){e.exports=function(){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<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function r(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var o="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:n.g,i=Object.keys,a=Array.isArray;function u(e,t){return"object"==typeof t&&i(t).forEach(function(n){e[n]=t[n]}),e}"u"<typeof Promise||o.Promise||(o.Promise=Promise);var s=Object.getPrototypeOf,c={}.hasOwnProperty;function l(e,t){return c.call(e,t)}function f(e,t){"function"==typeof t&&(t=t(s(e))),("u"<typeof Reflect?i:Reflect.ownKeys)(t).forEach(function(n){p(e,n,t[n])})}var h=Object.defineProperty;function p(e,t,n,r){h(e,t,u(n&&l(n,"get")&&"function"==typeof n.get?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function d(e){return{from:function(t){return e.prototype=Object.create(t.prototype),p(e.prototype,"constructor",e),{extend:f.bind(null,e.prototype)}}}}var y=Object.getOwnPropertyDescriptor,v=[].slice;function m(e,t,n){return v.call(e,t,n)}function b(e,t){return t(e)}function g(e){if(!e)throw Error("Assertion Failed")}function w(e){o.setImmediate?setImmediate(e):setTimeout(e,0)}function _(e,t){if("string"==typeof t&&l(e,t))return e[t];if(!t)return e;if("string"!=typeof t){for(var n=[],r=0,o=t.length;r<o;++r){var i=_(e,t[r]);n.push(i)}return n}var a,u=t.indexOf(".");return -1===u||null==(a=e[t.substr(0,u)])?void 0:_(a,t.substr(u+1))}function k(e,t,n){if(e&&void 0!==t&&!("isFrozen"in Object&&Object.isFrozen(e)))if("string"!=typeof t&&"length"in t){g("string"!=typeof n&&"length"in n);for(var r=0,o=t.length;r<o;++r)k(e,t[r],n[r])}else{var i,u,s=t.indexOf(".");-1!==s?(i=t.substr(0,s),""===(s=t.substr(s+1))?void 0===n?a(e)&&!isNaN(parseInt(i))?e.splice(i,1):delete e[i]:e[i]=n:k(u=(u=e[i])&&l(e,i)?u:e[i]={},s,n)):void 0===n?a(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=n}}function x(e){var t,n={};for(t in e)l(e,t)&&(n[t]=e[t]);return n}var O=[].concat;function P(e){return O.apply([],e)}var S="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(P([8,16,32,64].map(function(e){return["Int","Uint","Float"].map(function(t){return t+e+"Array"})}))).filter(function(e){return o[e]}),E=new Set(S.map(function(e){return o[e]})),K=null;function j(e){return K=new WeakMap,e=function e(t){if(!t||"object"!=typeof t)return t;var n=K.get(t);if(n)return n;if(a(t)){n=[],K.set(t,n);for(var r=0,o=t.length;r<o;++r)n.push(e(t[r]))}else if(E.has(t.constructor))n=t;else{var i,u=s(t);for(i in n=u===Object.prototype?{}:Object.create(u),K.set(t,n),t)l(t,i)&&(n[i]=e(t[i]))}return n}(e),K=null,e}var A={}.toString;function C(e){return A.call(e).slice(8,-1)}var T="u">typeof Symbol?Symbol.iterator:"@@iterator",I="symbol"==typeof T?function(e){var t;return null!=e&&(t=e[T])&&t.apply(e)}:function(){return null};function D(e,t){0<=(t=e.indexOf(t))&&e.splice(t,1)}var R={};function q(e){var t,n,r,o;if(1==arguments.length){if(a(e))return e.slice();if(this===R&&"string"==typeof e)return[e];if(o=I(e))for(n=[];!(r=o.next()).done;)n.push(r.value);else{if(null==e||"number"!=typeof(t=e.length))return[e];for(n=Array(t);t--;)n[t]=e[t]}}else for(t=arguments.length,n=Array(t);t--;)n[t]=arguments[t];return n}var B="u">typeof Symbol?function(e){return"AsyncFunction"===e[Symbol.toStringTag]}:function(){return!1},S=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],M=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(S),N={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function F(e,t){this.name=e,this.message=t}function U(e,t){return e+". Errors: "+Object.keys(t).map(function(e){return t[e].toString()}).filter(function(e,t,n){return n.indexOf(e)===t}).join("\n")}function W(e,t,n,r){this.failures=t,this.failedKeys=r,this.successCount=n,this.message=U(e,t)}function L(e,t){this.name="BulkError",this.failures=Object.keys(t).map(function(e){return t[e]}),this.failuresByPos=t,this.message=U(e,this.failures)}d(F).from(Error).extend({toString:function(){return this.name+": "+this.message}}),d(W).from(F),d(L).from(F);var V=M.reduce(function(e,t){return e[t]=t+"Error",e},{}),z=M.reduce(function(e,t){var n=t+"Error";function r(e,r){this.name=n,e?"string"==typeof e?(this.message="".concat(e).concat(r?"\n "+r:""),this.inner=r||null):"object"==typeof e&&(this.message="".concat(e.name," ").concat(e.message),this.inner=e):(this.message=N[t]||n,this.inner=null)}return d(r).from(F),e[t]=r,e},{}),Y=(z.Syntax=SyntaxError,z.Type=TypeError,z.Range=RangeError,S.reduce(function(e,t){return e[t+"Error"]=z[t],e},{}));function $(){}function G(e){return e}function H(e,t){return null==e||e===G?t:function(n){return t(e(n))}}function Q(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function X(e,t){return e===$?t:function(){var n=e.apply(this,arguments),r=(void 0!==n&&(arguments[0]=n),this.onsuccess),o=this.onerror,i=(this.onsuccess=null,this.onerror=null,t.apply(this,arguments));return r&&(this.onsuccess=this.onsuccess?Q(r,this.onsuccess):r),o&&(this.onerror=this.onerror?Q(o,this.onerror):o),void 0!==i?i:n}}function J(e,t){return e===$?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?Q(n,this.onsuccess):n),r&&(this.onerror=this.onerror?Q(r,this.onerror):r)}}function Z(e,t){return e===$?t:function(n){var r=e.apply(this,arguments),n=(u(n,r),this.onsuccess),o=this.onerror,i=(this.onsuccess=null,this.onerror=null,t.apply(this,arguments));return n&&(this.onsuccess=this.onsuccess?Q(n,this.onsuccess):n),o&&(this.onerror=this.onerror?Q(o,this.onerror):o),void 0===r?void 0===i?void 0:i:u(r,i)}}function ee(e,t){return e===$?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function et(e,t){return e===$?t:function(){var n=e.apply(this,arguments);if(n&&"function"==typeof n.then){for(var r=this,o=arguments.length,i=Array(o);o--;)i[o]=arguments[o];return n.then(function(){return t.apply(r,i)})}return t.apply(this,arguments)}}(S=M.reduce(function(e,t){return -1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=z[t]),e},{})).ModifyError=W,S.DexieError=F,S.BulkError=L;var en="u">typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href),er={},eo="u"<typeof Promise?[]:(M=Promise.resolve(),"u">typeof crypto&&crypto.subtle?[eo=crypto.subtle.digest("SHA-512",new Uint8Array([0])),s(eo),M]:[M,s(M),M]),M=eo[0],ei=eo[1],ei=ei&&ei.then,ea=M&&M.constructor,eu=!!eo[2],es=function(e,t){ev.push([e,t]),el&&(queueMicrotask(eS),el=!1)},ec=!0,el=!0,ef=[],eh=[],ep=G,ed={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:$,pgp:!1,env:{},finalize:$},ey=ed,ev=[],em=0,eb=[];function eg(e){if("object"!=typeof this)throw TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var t=this._PSD=ey;if("function"!=typeof e){if(e!==er)throw TypeError("Not a function");this._state=arguments[1],this._value=arguments[2],!1===this._state&&ek(this,this._value)}else this._state=null,this._value=null,++t.ref,function e(t,n){try{n(function(n){if(null===t._state){if(n===t)throw TypeError("A promise cannot be resolved with itself.");var r=t._lib&&eE();n&&"function"==typeof n.then?e(t,function(e,t){n instanceof eg?n._then(e,t):n.then(e,t)}):(t._state=!0,t._value=n,ex(t)),r&&eK()}},ek.bind(null,t))}catch(e){ek(t,e)}}(this,e)}var ew={get:function(){var e=ey,t=eq;function n(n,r){var o=this,i=!e.global&&(e!==ey||t!==eq),a=i&&!eF(),u=new eg(function(t,u){eO(o,new e_(eY(n,e,i,a),eY(r,e,i,a),t,u,e))});return this._consoleTask&&(u._consoleTask=this._consoleTask),u}return n.prototype=er,n},set:function(e){p(this,"then",e&&e.prototype===er?ew:{get:function(){return e},set:ew.set})}};function e_(e,t,n,r,o){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r,this.psd=o}function ek(e,t){var n;eh.push(t),null===e._state&&(n=e._lib&&eE(),t=ep(t),e._state=!1,e._value=t,ef.some(function(t){return t._value===e._value})||ef.push(e),ex(e),n)&&eK()}function ex(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n<r;++n)eO(e,t[n]);var o=e._PSD;--o.ref||o.finalize(),0===em&&(++em,es(function(){0==--em&&ej()},[]))}function eO(e,t){if(null===e._state)e._listeners.push(t);else{var n=e._state?t.onFulfilled:t.onRejected;if(null===n)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++em,es(eP,[n,e,t])}}function eP(e,t,n){try{var r,o=t._value;!t._state&&eh.length&&(eh=[]),r=en&&t._consoleTask?t._consoleTask.run(function(){return e(o)}):e(o),t._state||-1!==eh.indexOf(o)||(e=>{for(var t=ef.length;t;)if(ef[--t]._value===e._value)return ef.splice(t,1)})(t),n.resolve(r)}catch(e){n.reject(e)}finally{0==--em&&ej(),--n.psd.ref||n.psd.finalize()}}function eS(){ez(ed,function(){eE()&&eK()})}function eE(){var e=ec;return el=ec=!1,e}function eK(){var e,t,n;do for(;0<ev.length;)for(e=ev,ev=[],n=e.length,t=0;t<n;++t){var r=e[t];r[0].apply(null,r[1])}while(0<ev.length);el=ec=!0}function ej(){for(var e=ef,t=(ef=[],e.forEach(function(e){e._PSD.onunhandled.call(null,e._value,e)}),eb.slice(0)),n=t.length;n;)t[--n]()}function eA(e){return new eg(er,!1,e)}function eC(e,t){var n=ey;return function(){var r=eE(),o=ey;try{return eL(n,!0),e.apply(this,arguments)}catch(e){t&&t(e)}finally{eL(o,!1),r&&eK()}}}f(eg.prototype,{then:ew,_then:function(e,t){eO(this,new e_(null,null,e,t,ey))},catch:function(e){var t;return 1==arguments.length?this.then(null,e):(t=arguments[1],"function"==typeof e?this.then(null,function(n){return(n instanceof e?t:eA)(n)}):this.then(null,function(n){return(n&&n.name===e?t:eA)(n)}))},finally:function(e){return this.then(function(t){return eg.resolve(e()).then(function(){return t})},function(t){return eg.resolve(e()).then(function(){return eA(t)})})},timeout:function(e,t){var n=this;return e<1/0?new eg(function(r,o){var i=setTimeout(function(){return o(new z.Timeout(t))},e);n.then(r,o).finally(clearTimeout.bind(null,i))}):this}}),"u">typeof Symbol&&Symbol.toStringTag&&p(eg.prototype,Symbol.toStringTag,"Dexie.Promise"),ed.env=eV(),f(eg,{all:function(){var e=q.apply(null,arguments).map(eU);return new eg(function(t,n){0===e.length&&t([]);var r=e.length;e.forEach(function(o,i){return eg.resolve(o).then(function(n){e[i]=n,--r||t(e)},n)})})},resolve:function(e){return e instanceof eg?e:e&&"function"==typeof e.then?new eg(function(t,n){e.then(t,n)}):new eg(er,!0,e)},reject:eA,race:function(){var e=q.apply(null,arguments).map(eU);return new eg(function(t,n){e.map(function(e){return eg.resolve(e).then(t,n)})})},PSD:{get:function(){return ey},set:function(e){return ey=e}},totalEchoes:{get:function(){return eq}},newPSD:eM,usePSD:ez,scheduler:{get:function(){return es},set:function(e){es=e}},rejectionMapper:{get:function(){return ep},set:function(e){ep=e}},follow:function(e,t){return new eg(function(n,r){return eM(function(t,n){var r=ey;r.unhandleds=[],r.onunhandled=n,r.finalize=Q(function(){var e,r=this;e=function(){0===r.unhandleds.length?t():n(r.unhandleds[0])},eb.push(function t(){e(),eb.splice(eb.indexOf(t),1)}),++em,es(function(){0==--em&&ej()},[])},r.finalize),e()},t,n,r)})}}),ea&&(ea.allSettled&&p(eg,"allSettled",function(){var e=q.apply(null,arguments).map(eU);return new eg(function(t){0===e.length&&t([]);var n=e.length,r=Array(n);e.forEach(function(e,o){return eg.resolve(e).then(function(e){return r[o]={status:"fulfilled",value:e}},function(e){return r[o]={status:"rejected",reason:e}}).then(function(){return--n||t(r)})})})}),ea.any&&"u">typeof AggregateError&&p(eg,"any",function(){var e=q.apply(null,arguments).map(eU);return new eg(function(t,n){0===e.length&&n(AggregateError([]));var r=e.length,o=Array(r);e.forEach(function(e,i){return eg.resolve(e).then(function(e){return t(e)},function(e){o[i]=e,--r||n(AggregateError(o))})})})}),ea.withResolvers)&&(eg.withResolvers=ea.withResolvers);var eT={awaits:0,echoes:0,id:0},eI=0,eD=[],eR=0,eq=0,eB=0;function eM(e,t,n,r){var o=ey,i=Object.create(o),t=(i.parent=o,i.ref=0,i.global=!1,i.id=++eB,ed.env,i.env=eu?{Promise:eg,PromiseProp:{value:eg,configurable:!0,writable:!0},all:eg.all,race:eg.race,allSettled:eg.allSettled,any:eg.any,resolve:eg.resolve,reject:eg.reject}:{},t&&u(i,t),++o.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()},ez(i,e,n,r));return 0===i.ref&&i.finalize(),t}function eN(){return eT.id||(eT.id=++eI),++eT.awaits,eT.echoes+=100,eT.id}function eF(){return!!eT.awaits&&(0==--eT.awaits&&(eT.id=0),eT.echoes=100*eT.awaits,!0)}function eU(e){return eT.echoes&&e&&e.constructor===ea?(eN(),e.then(function(e){return eF(),e},function(e){return eF(),eG(e)})):e}function eW(){var e=eD[eD.length-1];eD.pop(),eL(e,!1)}function eL(e,t){var n,r,i=ey;(t?!eT.echoes||eR++&&e===ey:!eR||--eR&&e===ey)||queueMicrotask(t?(function(e){++eq,eT.echoes&&0!=--eT.echoes||(eT.echoes=eT.awaits=eT.id=0),eD.push(ey),eL(e,!0)}).bind(null,e):eW),e!==ey&&(ey=e,i===ed&&(ed.env=eV()),eu)&&(n=ed.env.Promise,r=e.env,i.global||e.global)&&(Object.defineProperty(o,"Promise",r.PromiseProp),n.all=r.all,n.race=r.race,n.resolve=r.resolve,n.reject=r.reject,r.allSettled&&(n.allSettled=r.allSettled),r.any)&&(n.any=r.any)}function eV(){var e=o.Promise;return eu?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(o,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject}:{}}function ez(e,t,n,r,o){var i=ey;try{return eL(e,!0),t(n,r,o)}finally{eL(i,!1)}}function eY(e,t,n,r){return"function"!=typeof e?e:function(){var o=ey;n&&eN(),eL(t,!0);try{return e.apply(this,arguments)}finally{eL(o,!1),r&&queueMicrotask(eF)}}}function e$(e){Promise===ea&&0===eT.echoes?0===eR?e():enqueueNativeMicroTask(e):setTimeout(e,0)}-1===(""+ei).indexOf("[native code]")&&(eN=eF=$);var eG=eg.reject,eH=String.fromCharCode(65535),eQ="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",eX="String expected.",eJ=[],eZ="__dbnames",e0="readonly",e1="readwrite";function e2(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}var e3={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function e4(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 e6(){throw z.Type("Entity instances must never be new:ed. Instances are generated by the framework bypassing the constructor.")}function e5(e,t){try{var n=e8(e),r=e8(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 t<e?1:e<t?-1:0;case"binary":for(var o=e7(e),i=e7(t),a=o.length,u=i.length,s=a<u?a:u,c=0;c<s;++c)if(o[c]!==i[c])return o[c]<i[c]?-1:1;return a===u?0:a<u?-1:1;case"Array":for(var l=e.length,f=t.length,h=l<f?l:f,p=0;p<h;++p){var d=e5(e[p],t[p]);if(0!==d)return d}return l===f?0:l<f?-1:1}}catch(e){}return NaN}function e8(e){var t=typeof e;return"object"==t&&(ArrayBuffer.isView(e)||"ArrayBuffer"===(t=C(e)))?"binary":t}function e7(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}function e9(e,t,n){var r=e.schema.yProps;return r?(t&&0<n.numFailures&&(t=t.filter(function(e,t){return!n.failures[t]})),Promise.all(r.map(function(n){return n=n.updatesTable,t?e.db.table(n).where("k").anyOf(t).delete():e.db.table(n).clear()})).then(function(){return n})):n}function te(e){this["@@propmod"]=e}function tt(e,t){for(var n=i(t),r=n.length,o=!1,a=0;a<r;++a){var u=n[a],s=t[u],c=_(e,u);s instanceof te?(k(e,u,s.execute(c)),o=!0):c!==s&&(k(e,u,s),o=!0)}return o}function tn(){}function tr(e){function t(t,r){if(r){for(var o=arguments.length,i=Array(o-1);--o;)i[o-1]=arguments[o];return n[t].subscribe.apply(null,i),e}if("string"==typeof t)return n[t]}var n={};t.addEventType=u;for(var r=1,o=arguments.length;r<o;++r)u(arguments[r]);return t;function u(e,r,o){var s;if("object"!=typeof e)return r=r||ee,s={subscribers:[],fire:o=o||$,subscribe:function(e){-1===s.subscribers.indexOf(e)&&(s.subscribers.push(e),s.fire=r(s.fire,e))},unsubscribe:function(e){s.subscribers=s.subscribers.filter(function(t){return t!==e}),s.fire=s.subscribers.reduce(r,o)}},n[e]=t[e]=s;i(e).forEach(function(t){var n=e[t];if(a(n))u(t,e[t][0],e[t][1]);else{if("asap"!==n)throw new z.InvalidArgument("Invalid event config");var r=u(t,G,function(){for(var e=arguments.length,t=Array(e);e--;)t[e]=arguments[e];r.subscribers.forEach(function(e){w(function(){e.apply(null,t)})})})}})}}function to(e,t){return d(t).from({prototype:e}),t}function ti(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function ta(e,t){e.filter=e2(e.filter,t)}function tu(e,t,n){var r=e.replayFilter;e.replayFilter=r?function(){return e2(r(),t())}:t,e.justLimit=n&&!r}function ts(e,t){if(e.isPrimKey)return t.primaryKey;var n=t.getIndexByKeyPath(e.index);if(n)return n;throw new z.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed")}function tc(e,t,n){var r=ts(e,t.schema);return t.openCursor({trans:n,values:!e.keysOnly,reverse:"prev"===e.dir,unique:!!e.unique,query:{index:r,range:e.range}})}function tl(e,t,n,r){var o,i,a=e.replayFilter?e2(e.filter,e.replayFilter()):e.filter;return e.or?(o={},i=function(e,n,r){var i,u;a&&!a(n,r,function(e){return n.stop(e)},function(e){return n.fail(e)})||("[object ArrayBuffer]"==(u=""+(i=n.primaryKey))&&(u=""+new Uint8Array(i)),l(o,u))||(o[u]=!0,t(e,n,r))},Promise.all([e.or._iterate(i,n),tf(tc(e,r,n),e.algorithm,i,!e.keysOnly&&e.valueMapper)])):tf(tc(e,r,n),e2(e.algorithm,a),t,!e.keysOnly&&e.valueMapper)}function tf(e,t,n,r){var o=eC(r?function(e,t,o){return n(r(e),t,o)}:n);return e.then(function(e){if(e)return e.start(function(){var n=function(){return e.continue()};t&&!t(e,function(e){return n=e},function(t){e.stop(t),n=$},function(t){e.fail(t),n=$})||o(e.value,e,function(e){return n=e}),n()})})}function th(){}te.prototype.execute=function(e){var t=this["@@propmod"];if(void 0!==t.add){var n=t.add;if(a(n))return r(r([],a(e)?e:[],!0),n,!0).sort();if("number"==typeof n)return(Number(e)||0)+n;if("bigint"==typeof n)try{return BigInt(e)+n}catch(e){return BigInt(0)+n}throw TypeError("Invalid term ".concat(n))}if(void 0!==t.remove){var o=t.remove;if(a(o))return a(e)?e.filter(function(e){return!o.includes(e)}).sort():[];if("number"==typeof o)return Number(e)-o;if("bigint"==typeof o)try{return BigInt(e)-o}catch(e){return BigInt(0)-o}throw TypeError("Invalid subtrahend ".concat(o))}return(n=null==(n=t.replacePrefix)?void 0:n[0])&&"string"==typeof e&&e.startsWith(n)?t.replacePrefix[1]+e.substring(n.length):e},tn.prototype._trans=function(e,t,n){var r=this._tx||ey.trans,o=this.name,i=en&&"u">typeof console&&console.createTask&&console.createTask("Dexie: ".concat("readonly"===e?"read":"write"," ").concat(this.name));function a(e,n,r){if(r.schema[o])return t(r.idbtrans,r);throw new z.NotFound("Table "+o+" not part of transaction")}var u=eE();try{var s=r&&r.db._novip===this.db._novip?r===ey.trans?r._promise(e,a,n):eM(function(){return r._promise(e,a,n)},{trans:r,transless:ey.transless||ey}):function e(t,n,r,o){if(t.idbdb&&(t._state.openComplete||ey.letThrough||t._vip)){var i=t._createTransaction(n,r,t._dbSchema);try{i.create(),t._state.PR1398_maxLoop=3}catch(i){return i.name===V.InvalidState&&t.isOpen()&&0<--t._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),t.close({disableAutoOpen:!1}),t.open().then(function(){return e(t,n,r,o)})):eG(i)}return i._promise(n,function(e,t){return eM(function(){return ey.trans=i,o(e,t,i)})}).then(function(e){if("readwrite"===n)try{i.idbtrans.commit()}catch(e){}return"readonly"===n?e:i._completion.then(function(){return e})})}if(t._state.openComplete)return eG(new z.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._state.autoOpen)return eG(new z.DatabaseClosed);t.open().catch($)}return t._state.dbReadyPromise.then(function(){return e(t,n,r,o)})}(this.db,e,[this.name],a);return i&&(s._consoleTask=i,s=s.catch(function(e){return console.trace(e),eG(e)})),s}finally{u&&eK()}},tn.prototype.get=function(e,t){var n=this;return e&&e.constructor===Object?this.where(e).first(t):null==e?eG(new z.Type("Invalid argument to Table.get()")):this._trans("readonly",function(t){return n.core.get({trans:t,key:e}).then(function(e){return n.hook.reading.fire(e)})}).then(t)},tn.prototype.where=function(e){if("string"==typeof e)return new this.db.WhereClause(this,e);if(a(e))return new this.db.WhereClause(this,"[".concat(e.join("+"),"]"));var t=i(e);if(1===t.length)return this.where(t[0]).equals(e[t[0]]);var n=this.schema.indexes.concat(this.schema.primKey).filter(function(e){if(e.compound&&t.every(function(t){return 0<=e.keyPath.indexOf(t)})){for(var n=0;n<t.length;++n)if(-1===t.indexOf(e.keyPath[n]))return!1;return!0}return!1}).sort(function(e,t){return e.keyPath.length-t.keyPath.length})[0];if(n&&this.db._maxKey!==eH)return o=n.keyPath.slice(0,t.length),this.where(o).equals(o.map(function(t){return e[t]}));!n&&en&&console.warn("The query ".concat(JSON.stringify(e)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(t.join("+"),"]"));var r=this.schema.idxByName,o=t.reduce(function(t,n){var o=t[0],t=t[1],i=r[n],u=e[n];return[o||i,o||!i?e2(t,i&&i.multi?function(e){return a(e=_(e,n))&&e.some(function(e){return 0===e5(u,e)})}:function(e){return 0===e5(u,_(e,n))}):t]},[null,null]),u=o[0],o=o[1];return u?this.where(u.name).equals(e[u.keyPath]).filter(o):n?this.filter(o):this.where(t).equals("")},tn.prototype.filter=function(e){return this.toCollection().and(e)},tn.prototype.count=function(e){return this.toCollection().count(e)},tn.prototype.offset=function(e){return this.toCollection().offset(e)},tn.prototype.limit=function(e){return this.toCollection().limit(e)},tn.prototype.each=function(e){return this.toCollection().each(e)},tn.prototype.toArray=function(e){return this.toCollection().toArray(e)},tn.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},tn.prototype.orderBy=function(e){return new this.db.Collection(new this.db.WhereClause(this,a(e)?"[".concat(e.join("+"),"]"):e))},tn.prototype.reverse=function(){return this.toCollection().reverse()},tn.prototype.mapToClass=function(t){for(var n=this.db,r=this.name,o=((this.schema.mappedClass=t).prototype instanceof e6&&(t=(t=>{if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=i}function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o),Object.defineProperty(i.prototype,"db",{get:function(){return n},enumerable:!1,configurable:!0}),i.prototype.table=function(){return r},i})(t)),new Set),i=t.prototype;i;i=s(i))Object.getOwnPropertyNames(i).forEach(function(e){return o.add(e)});function a(e){if(!e)return e;var n,r=Object.create(t.prototype);for(n in e)if(!o.has(n))try{r[n]=e[n]}catch(e){}return r}return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=a,this.hook("reading",a),t},tn.prototype.defineClass=function(){return this.mapToClass(function(e){u(this,e)})},tn.prototype.add=function(e,t){var n=this,r=this.schema.primKey,o=r.auto,i=r.keyPath,a=e;return i&&o&&(a=e4(i)(e)),this._trans("readwrite",function(e){return n.core.mutate({trans:e,type:"add",keys:null!=t?[t]:null,values:[a]})}).then(function(e){return e.numFailures?eg.reject(e.failures[0]):e.lastResult}).then(function(t){if(i)try{k(e,i,t)}catch(e){}return t})},tn.prototype.upsert=function(e,t){var n=this,r=this.schema.primKey.keyPath;return this._trans("readwrite",function(o){return n.core.get({trans:o,key:e}).then(function(i){var a=null!=i?i:{};return tt(a,t),r&&k(a,r,e),n.core.mutate({trans:o,type:"put",values:[a],keys:[e],upsert:!0,updates:{keys:[e],changeSpecs:[t]}}).then(function(e){return e.numFailures?eg.reject(e.failures[0]):!!i})})})},tn.prototype.update=function(e,t){return"object"!=typeof e||a(e)?this.where(":id").equals(e).modify(t):void 0===(e=_(e,this.schema.primKey.keyPath))?eG(new z.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(e).modify(t)},tn.prototype.put=function(e,t){var n=this,r=this.schema.primKey,o=r.auto,i=r.keyPath,a=e;return i&&o&&(a=e4(i)(e)),this._trans("readwrite",function(e){return n.core.mutate({trans:e,type:"put",values:[a],keys:null!=t?[t]:null})}).then(function(e){return e.numFailures?eg.reject(e.failures[0]):e.lastResult}).then(function(t){if(i)try{k(e,i,t)}catch(e){}return t})},tn.prototype.delete=function(e){var t=this;return this._trans("readwrite",function(n){return t.core.mutate({trans:n,type:"delete",keys:[e]}).then(function(n){return e9(t,[e],n)}).then(function(e){return e.numFailures?eg.reject(e.failures[0]):void 0})})},tn.prototype.clear=function(){var e=this;return this._trans("readwrite",function(t){return e.core.mutate({trans:t,type:"deleteRange",range:e3}).then(function(t){return e9(e,null,t)})}).then(function(e){return e.numFailures?eg.reject(e.failures[0]):void 0})},tn.prototype.bulkGet=function(e){var t=this;return this._trans("readonly",function(n){return t.core.getMany({keys:e,trans:n}).then(function(e){return e.map(function(e){return t.hook.reading.fire(e)})})})},tn.prototype.bulkAdd=function(e,t,n){var r=this,o=Array.isArray(t)?t:void 0,i=(n=n||(o?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",function(t){var n=r.schema.primKey,a=n.auto,n=n.keyPath;if(n&&o)throw new z.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(o&&o.length!==e.length)throw new z.InvalidArgument("Arguments objects and keys must have the same length");var u=e.length,a=n&&a?e.map(e4(n)):e;return r.core.mutate({trans:t,type:"add",keys:o,values:a,wantResults:i}).then(function(e){var t=e.numFailures,n=e.failures;if(0===t)return i?e.results:e.lastResult;throw new L("".concat(r.name,".bulkAdd(): ").concat(t," of ").concat(u," operations failed"),n)})})},tn.prototype.bulkPut=function(e,t,n){var r=this,o=Array.isArray(t)?t:void 0,i=(n=n||(o?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",function(t){var n=r.schema.primKey,a=n.auto,n=n.keyPath;if(n&&o)throw new z.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(o&&o.length!==e.length)throw new z.InvalidArgument("Arguments objects and keys must have the same length");var u=e.length,a=n&&a?e.map(e4(n)):e;return r.core.mutate({trans:t,type:"put",keys:o,values:a,wantResults:i}).then(function(e){var t=e.numFailures,n=e.failures;if(0===t)return i?e.results:e.lastResult;throw new L("".concat(r.name,".bulkPut(): ").concat(t," of ").concat(u," operations failed"),n)})})},tn.prototype.bulkUpdate=function(e){var t=this,n=this.core,r=e.map(function(e){return e.key}),o=e.map(function(e){return e.changes}),i=[];return this._trans("readwrite",function(a){return n.getMany({trans:a,keys:r,cache:"clone"}).then(function(u){var s=[],c=[],l=(e.forEach(function(e,n){var r=e.key,o=e.changes,a=u[n];if(a){for(var l=0,f=Object.keys(o);l<f.length;l++){var h=f[l],p=o[h];if(h===t.schema.primKey.keyPath){if(0!==e5(p,r))throw new z.Constraint("Cannot update primary key in bulkUpdate()")}else k(a,h,p)}i.push(n),s.push(r),c.push(a)}}),s.length);return n.mutate({trans:a,type:"put",keys:s,values:c,updates:{keys:r,changeSpecs:o}}).then(function(e){var n=e.numFailures,r=e.failures;if(0===n)return l;for(var o=0,a=Object.keys(r);o<a.length;o++){var u,s=a[o],c=i[Number(s)];null!=c&&(u=r[s],delete r[s],r[c]=u)}throw new L("".concat(t.name,".bulkUpdate(): ").concat(n," of ").concat(l," operations failed"),r)})})})},tn.prototype.bulkDelete=function(e){var t=this,n=e.length;return this._trans("readwrite",function(n){return t.core.mutate({trans:n,type:"delete",keys:e}).then(function(n){return e9(t,e,n)})}).then(function(e){var r=e.numFailures,o=e.failures;if(0===r)return e.lastResult;throw new L("".concat(t.name,".bulkDelete(): ").concat(r," of ").concat(n," operations failed"),o)})},th.prototype._read=function(e,t){var n=this._ctx;return n.error?n.table._trans(null,eG.bind(null,n.error)):n.table._trans("readonly",e).then(t)},th.prototype._write=function(e){var t=this._ctx;return t.error?t.table._trans(null,eG.bind(null,t.error)):t.table._trans("readwrite",e,"locked")},th.prototype._addAlgorithm=function(e){var t=this._ctx;t.algorithm=e2(t.algorithm,e)},th.prototype._iterate=function(e,t){return tl(this._ctx,e,t,this._ctx.table.core)},th.prototype.clone=function(e){var t=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return e&&u(n,e),t._ctx=n,t},th.prototype.raw=function(){return this._ctx.valueMapper=null,this},th.prototype.each=function(e){var t=this._ctx;return this._read(function(n){return tl(t,e,n,t.table.core)})},th.prototype.count=function(e){var t=this;return this._read(function(e){var n,r=t._ctx,o=r.table.core;return ti(r,!0)?o.count({trans:e,query:{index:ts(r,o.schema),range:r.range}}).then(function(e){return Math.min(e,r.limit)}):(n=0,tl(r,function(){return++n,!1},e,o).then(function(){return n}))}).then(e)},th.prototype.sortBy=function(e,t){var n=e.split(".").reverse(),r=n[0],o=n.length-1;function i(e,t){return t?i(e[n[t]],t-1):e[r]}var a="next"===this._ctx.dir?1:-1;function u(e,t){return e5(i(e,o),i(t,o))*a}return this.toArray(function(e){return e.sort(u)}).then(t)},th.prototype.toArray=function(e){var t=this;return this._read(function(e){var n,r,o,i=t._ctx;return"next"===i.dir&&ti(i,!0)&&0<i.limit?(n=i.valueMapper,r=ts(i,i.table.core.schema),i.table.core.query({trans:e,limit:i.limit,values:!0,query:{index:r,range:i.range}}).then(function(e){return e=e.result,n?e.map(n):e})):(o=[],tl(i,function(e){return o.push(e)},e,i.table.core).then(function(){return o}))},e)},th.prototype.offset=function(e){var t=this._ctx;return e<=0||(t.offset+=e,ti(t)?tu(t,function(){var t=e;return function(e,n){return 0===t||(1===t?--t:n(function(){e.advance(t),t=0}),!1)}}):tu(t,function(){var t=e;return function(){return--t<0}})),this},th.prototype.limit=function(e){return this._ctx.limit=Math.min(this._ctx.limit,e),tu(this._ctx,function(){var t=e;return function(e,n,r){return--t<=0&&n(r),0<=t}},!0),this},th.prototype.until=function(e,t){return ta(this._ctx,function(n,r,o){return!e(n.value)||(r(o),t)}),this},th.prototype.first=function(e){return this.limit(1).toArray(function(e){return e[0]}).then(e)},th.prototype.last=function(e){return this.reverse().first(e)},th.prototype.filter=function(e){var t;return ta(this._ctx,function(t){return e(t.value)}),(t=this._ctx).isMatch=e2(t.isMatch,e),this},th.prototype.and=function(e){return this.filter(e)},th.prototype.or=function(e){return new this.db.WhereClause(this._ctx.table,e,this)},th.prototype.reverse=function(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},th.prototype.desc=function(){return this.reverse()},th.prototype.eachKey=function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(t,n){e(n.key,n)})},th.prototype.eachUniqueKey=function(e){return this._ctx.unique="unique",this.eachKey(e)},th.prototype.eachPrimaryKey=function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(t,n){e(n.primaryKey,n)})},th.prototype.keys=function(e){var t=this._ctx,n=(t.keysOnly=!t.isMatch,[]);return this.each(function(e,t){n.push(t.key)}).then(function(){return n}).then(e)},th.prototype.primaryKeys=function(e){var t=this._ctx;if("next"===t.dir&&ti(t,!0)&&0<t.limit)return this._read(function(e){var n=ts(t,t.table.core.schema);return t.table.core.query({trans:e,values:!1,limit:t.limit,query:{index:n,range:t.range}})}).then(function(e){return e.result}).then(e);t.keysOnly=!t.isMatch;var n=[];return this.each(function(e,t){n.push(t.primaryKey)}).then(function(){return n}).then(e)},th.prototype.uniqueKeys=function(e){return this._ctx.unique="unique",this.keys(e)},th.prototype.firstKey=function(e){return this.limit(1).keys(function(e){return e[0]}).then(e)},th.prototype.lastKey=function(e){return this.reverse().firstKey(e)},th.prototype.distinct=function(){var e,t=this._ctx,t=t.index&&t.table.schema.idxByName[t.index];return t&&t.multi&&(e={},ta(this._ctx,function(t){var t=t.primaryKey.toString(),n=l(e,t);return e[t]=!0,!n})),this},th.prototype.modify=function(e){var t=this,n=this._ctx;return this._write(function(r){function o(e,t){var n=t.failures;p+=e-t.numFailures;for(var r=0,o=i(n);r<o.length;r++){var a=o[r];h.push(n[a])}}var a="function"==typeof e?e:function(t){return tt(t,e)},u=n.table.core,s=u.schema.primaryKey,c=s.outbound,l=s.extractKey,f=200,s=t.db._options.modifyChunkSize,h=(s&&(f="object"==typeof s?s[u.name]||s["*"]||200:s),[]),p=0,d=[],y=e===tp;return t.clone().primaryKeys().then(function(t){var i=ti(n)&&n.limit===1/0&&("function"!=typeof e||y)&&{index:n.index,range:n.range};return(function s(h){var p=Math.min(f,t.length-h),d=t.slice(h,h+p);return(y?Promise.resolve([]):u.getMany({trans:r,keys:d,cache:"immutable"})).then(function(v){var m=[],b=[],g=c?[]:null,w=y?d:[];if(!y)for(var _=0;_<p;++_){var k=v[_],x={value:j(k),primKey:t[h+_]};!1!==a.call(x,x.value,x)&&(null==x.value?w.push(t[h+_]):c||0===e5(l(k),l(x.value))?(b.push(x.value),c&&g.push(t[h+_])):(w.push(t[h+_]),m.push(x.value)))}return Promise.resolve(0<m.length&&u.mutate({trans:r,type:"add",values:m}).then(function(e){for(var t in e.failures)w.splice(parseInt(t),1);o(m.length,e)})).then(function(){return(0<b.length||i&&"object"==typeof e)&&u.mutate({trans:r,type:"put",keys:g,values:b,criteria:i,changeSpec:"function"!=typeof e&&e,isAdditionalChunk:0<h}).then(function(e){return o(b.length,e)})}).then(function(){return(0<w.length||i&&y)&&u.mutate({trans:r,type:"delete",keys:w,criteria:i,isAdditionalChunk:0<h}).then(function(e){return e9(n.table,w,e)}).then(function(e){return o(w.length,e)})}).then(function(){return t.length>h+p&&s(h+f)})})})(0).then(function(){if(0<h.length)throw new W("Error modifying one or more objects",h,p,d);return t.length})})})},th.prototype.delete=function(){var e=this._ctx,t=e.range;return ti(e)&&!e.table.schema.yProps&&(e.isPrimKey||3===t.type)?this._write(function(n){var r=e.table.core.schema.primaryKey;return e.table.core.count({trans:n,query:{index:r,range:t}}).then(function(r){return e.table.core.mutate({trans:n,type:"deleteRange",range:t}).then(function(e){var t=e.failures,e=e.numFailures;if(e)throw new W("Could not delete some values",Object.keys(t).map(function(e){return t[e]}),r-e);return r-e})})}):this.modify(tp)};var tp=function(e,t){return t.value=null};function td(e,t){return e<t?-1:+(e!==t)}function ty(e,t){return t<e?-1:+(e!==t)}function tv(e,t,n){return(e=e instanceof t_?new e.Collection(e):e)._ctx.error=new(n||TypeError)(t),e}function tm(e){return new e.Collection(e,function(){return tw("")}).limit(0)}function tb(e,t,n,r){var o,i,a,u,s,c,l,f=n.length;if(!n.every(function(e){return"string"==typeof e}))return tv(e,eX);function h(e){o="next"===e?function(e){return e.toUpperCase()}:function(e){return e.toLowerCase()},i="next"===e?function(e){return e.toLowerCase()}:function(e){return e.toUpperCase()},a="next"===e?td:ty;var t=n.map(function(e){return{lower:i(e),upper:o(e)}}).sort(function(e,t){return a(e.lower,t.lower)});u=t.map(function(e){return e.upper}),s=t.map(function(e){return e.lower}),l="next"===(c=e)?"":r}h("next");var e=new e.Collection(e,function(){return tg(u[0],s[f-1]+r)}),p=(e._ondirectionchange=function(e){h(e)},0);return e._addAlgorithm(function(e,n,r){var o=e.key;if("string"==typeof o){var h=i(o);if(t(h,s,p))return!0;for(var d=null,y=p;y<f;++y){var v=((e,t,n,r,o,i)=>{for(var a=Math.min(e.length,r.length),u=-1,s=0;s<a;++s){var c=t[s];if(c!==r[s])return 0>o(e[s],n[s])?e.substr(0,s)+n[s]+n.substr(s+1):0>o(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>o(e[s],c)&&(u=s)}return a<r.length&&"next"===i?e+n.substr(e.length):a<e.length&&"prev"===i?e.substr(0,n.length):u<0?null:e.substr(0,u)+r[u]+n.substr(u+1)})(o,h,u[y],s[y],a,c);null===v&&null===d?p=y+1:(null===d||0<a(d,v))&&(d=v)}n(null!==d?function(){e.continue(d+l)}:r)}return!1}),e}function tg(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function tw(e){return{type:1,lower:e,upper:e}}Object.defineProperty(tk.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),tk.prototype.between=function(e,t,n,r){n=!1!==n,r=!0===r;try{return 0<this._cmp(e,t)||0===this._cmp(e,t)&&(n||r)&&(!n||!r)?tm(this):new this.Collection(this,function(){return tg(e,t,!n,!r)})}catch(e){return tv(this,eQ)}},tk.prototype.equals=function(e){return null==e?tv(this,eQ):new this.Collection(this,function(){return tw(e)})},tk.prototype.above=function(e){return null==e?tv(this,eQ):new this.Collection(this,function(){return tg(e,void 0,!0)})},tk.prototype.aboveOrEqual=function(e){return null==e?tv(this,eQ):new this.Collection(this,function(){return tg(e,void 0,!1)})},tk.prototype.below=function(e){return null==e?tv(this,eQ):new this.Collection(this,function(){return tg(void 0,e,!1,!0)})},tk.prototype.belowOrEqual=function(e){return null==e?tv(this,eQ):new this.Collection(this,function(){return tg(void 0,e)})},tk.prototype.startsWith=function(e){return"string"!=typeof e?tv(this,eX):this.between(e,e+eH,!0,!0)},tk.prototype.startsWithIgnoreCase=function(e){return""===e?this.startsWith(e):tb(this,function(e,t){return 0===e.indexOf(t[0])},[e],eH)},tk.prototype.equalsIgnoreCase=function(e){return tb(this,function(e,t){return e===t[0]},[e],"")},tk.prototype.anyOfIgnoreCase=function(){var e=q.apply(R,arguments);return 0===e.length?tm(this):tb(this,function(e,t){return -1!==t.indexOf(e)},e,"")},tk.prototype.startsWithAnyOfIgnoreCase=function(){var e=q.apply(R,arguments);return 0===e.length?tm(this):tb(this,function(e,t){return t.some(function(t){return 0===e.indexOf(t)})},e,eH)},tk.prototype.anyOf=function(){var e,t,n=this,r=q.apply(R,arguments),o=this._cmp;try{r.sort(o)}catch(e){return tv(this,eQ)}return 0===r.length?tm(this):((e=new this.Collection(this,function(){return tg(r[0],r[r.length-1])}))._ondirectionchange=function(e){o="next"===e?n._ascending:n._descending,r.sort(o)},t=0,e._addAlgorithm(function(e,n,i){for(var a=e.key;0<o(a,r[t]);)if(++t===r.length)return n(i),!1;return 0===o(a,r[t])||(n(function(){e.continue(r[t])}),!1)}),e)},tk.prototype.notEqual=function(e){return this.inAnyRange([[-1/0,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},tk.prototype.noneOf=function(){var e=q.apply(R,arguments);if(0===e.length)return new this.Collection(this);try{e.sort(this._ascending)}catch(e){return tv(this,eQ)}var t=e.reduce(function(e,t){return e?e.concat([[e[e.length-1][1],t]]):[[-1/0,t]]},null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})},tk.prototype.inAnyRange=function(e,t){var n=this,r=this._cmp,o=this._ascending,i=this._descending,a=this._min,u=this._max;if(0===e.length)return tm(this);if(!e.every(function(e){return void 0!==e[0]&&void 0!==e[1]&&0>=o(e[0],e[1])}))return tv(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",z.InvalidArgument);var s,c=!t||!1!==t.includeLowers,l=t&&!0===t.includeUppers,f=o;function h(e,t){return f(e[0],t[0])}try{(s=e.reduce(function(e,t){for(var n=0,o=e.length;n<o;++n){var i=e[n];if(0>r(t[0],i[1])&&0<r(t[1],i[0])){i[0]=a(i[0],t[0]),i[1]=u(i[1],t[1]);break}}return n===o&&e.push(t),e},[])).sort(h)}catch(e){return tv(this,eQ)}var p=0,d=l?function(e){return 0<o(e,s[p][1])}:function(e){return 0<=o(e,s[p][1])},y=c?function(e){return 0<i(e,s[p][0])}:function(e){return 0<=i(e,s[p][0])},v=d,t=new this.Collection(this,function(){return tg(s[0][0],s[s.length-1][1],!c,!l)});return t._ondirectionchange=function(e){f="next"===e?(v=d,o):(v=y,i),s.sort(h)},t._addAlgorithm(function(e,t,r){for(var i=e.key;v(i);)if(++p===s.length)return t(r),!1;return!d(i)&&!y(i)||(0===n._cmp(i,s[p][1])||0===n._cmp(i,s[p][0])||t(function(){f===o?e.continue(s[p][0]):e.continue(s[p][1])}),!1)}),t},tk.prototype.startsWithAnyOf=function(){var e=q.apply(R,arguments);return e.every(function(e){return"string"==typeof e})?0===e.length?tm(this):this.inAnyRange(e.map(function(e){return[e,e+eH]})):tv(this,"startsWithAnyOf() only works with strings")};var t_=tk;function tk(){}function tx(e){return eC(function(t){return tO(t),e(t.target.error),!1})}function tO(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}var tP="storagemutated",tS="x-storagemutated-1",tE=tr(null,tP),tK=(tj.prototype._lock=function(){return g(!ey.global),++this._reculock,1!==this._reculock||ey.global||(ey.lockOwnerFor=this),this},tj.prototype._unlock=function(){if(g(!ey.global),0==--this._reculock)for(ey.global||(ey.lockOwnerFor=null);0<this._blockedFuncs.length&&!this._locked();){var e=this._blockedFuncs.shift();try{ez(e[1],e[0])}catch(e){}}return this},tj.prototype._locked=function(){return this._reculock&&ey.lockOwnerFor!==this},tj.prototype.create=function(e){var t=this;if(this.mode){var n=this.db.idbdb,r=this.db._state.dbOpenError;if(g(!this.idbtrans),!e&&!n)switch(r&&r.name){case"DatabaseClosedError":throw new z.DatabaseClosed(r);case"MissingAPIError":throw new z.MissingAPI(r.message,r);default:throw new z.OpenFailed(r)}if(!this.active)throw new z.TransactionInactive;g(null===this._completion._state),(e=this.idbtrans=e||(this.db.core||n).transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})).onerror=eC(function(n){tO(n),t._reject(e.error)}),e.onabort=eC(function(n){tO(n),t.active&&t._reject(new z.Abort(e.error)),t.active=!1,t.on("abort").fire(n)}),e.oncomplete=eC(function(){t.active=!1,t._resolve(),"mutatedParts"in e&&tE.storagemutated.fire(e.mutatedParts)})}return this},tj.prototype._promise=function(e,t,n){var r,o=this;return"readwrite"===e&&"readwrite"!==this.mode?eG(new z.ReadOnly("Transaction is readonly")):this.active?this._locked()?new eg(function(r,i){o._blockedFuncs.push([function(){o._promise(e,t,n).then(r,i)},ey])}):n?eM(function(){var e=new eg(function(e,n){o._lock();var r=t(e,n,o);r&&r.then&&r.then(e,n)});return e.finally(function(){return o._unlock()}),e._lib=!0,e}):((r=new eg(function(e,n){var r=t(e,n,o);r&&r.then&&r.then(e,n)}))._lib=!0,r):eG(new z.TransactionInactive)},tj.prototype._root=function(){return this.parent?this.parent._root():this},tj.prototype.waitFor=function(e){var t,n=this._root(),r=eg.resolve(e),o=(n._waitingFor?n._waitingFor=n._waitingFor.then(function(){return r}):(n._waitingFor=r,n._waitingQueue=[],t=n.idbtrans.objectStore(n.storeNames[0]),function e(){for(++n._spinCount;n._waitingQueue.length;)n._waitingQueue.shift()();n._waitingFor&&(t.get(-1/0).onsuccess=e)}()),n._waitingFor);return new eg(function(e,t){r.then(function(t){return n._waitingQueue.push(eC(e.bind(null,t)))},function(e){return n._waitingQueue.push(eC(t.bind(null,e)))}).finally(function(){n._waitingFor===o&&(n._waitingFor=null)})})},tj.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new z.Abort))},tj.prototype.table=function(e){var t=this._memoizedTables||(this._memoizedTables={});if(l(t,e))return t[e];var n=this.schema[e];if(n)return(n=new this.db.Table(e,n,this)).core=this.db.core.table(e),t[e]=n;throw new z.NotFound("Table "+e+" not part of transaction")},tj);function tj(){}function tA(e,t,n,r,o,i,a,u){return{name:e,keyPath:t,unique:n,multi:r,auto:o,compound:i,src:(n&&!a?"&":"")+(r?"*":"")+(o?"++":"")+tC(t),type:u}}function tC(e){return"string"==typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function tT(e,t,n){var r;return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:(r=function(e){return[e.name,e]},n.reduce(function(e,t,n){return(t=r(t,n))&&(e[t[0]]=t[1]),e},{}))}}var tI=function(e){try{return e.only([[]]),tI=function(){return[[]]},[[]]}catch(e){return tI=function(){return eH},eH}};function tD(e){return null==e?function(){}:"string"==typeof e?1===e.split(".").length?function(t){return t[e]}:function(t){return _(t,e)}:function(t){return _(t,e)}}function tR(e){return[].slice.call(e)}var tq=0;function tB(e){return null==e?":id":"string"==typeof e?e:"[".concat(e.join("+"),"]")}function tM(e,n){var r,o,i,u=n.db,u=(r=e._middlewares,o=u,i=e._deps,o=function(e,t,n){function r(e){if(3===e.type)return null;if(4===e.type)throw Error("Cannot convert never type to IDBKeyRange");var n=e.lower,r=e.upper,o=e.lowerOpen,e=e.upperOpen;return void 0===n?void 0===r?null:t.upperBound(r,!!e):void 0===r?t.lowerBound(n,!!o):t.bound(n,r,!!o,!!e)}o=n,i=tR((n=e).objectStoreNames);var o,n={schema:{name:n.name,tables:i.map(function(e){return o.objectStore(e)}).map(function(e){var t=e.keyPath,n=e.autoIncrement,r=a(t),o={},r={name:e.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:null==t,compound:r,keyPath:t,autoIncrement:n,unique:!0,extractKey:tD(t)},indexes:tR(e.indexNames).map(function(t){return e.index(t)}).map(function(e){var t=e.name,n=e.unique,r=e.multiEntry,e=e.keyPath,t={name:t,compound:a(e),keyPath:e,unique:n,multiEntry:r,extractKey:tD(e)};return o[tB(e)]=t}),getIndexByKeyPath:function(e){return o[tB(e)]}};return o[":id"]=r.primaryKey,null!=t&&(o[tB(t)]=r.primaryKey),r})},hasGetAll:0<i.length&&"getAll"in o.objectStore(i[0])&&!("u">typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)},i=n.schema,u=n.hasGetAll,n=i.tables.map(function(e){var t=e.name;return{name:t,schema:e,mutate:function(e){var n=e.trans,o=e.type,i=e.keys,a=e.values,u=e.range;return new Promise(function(e,s){e=eC(e);var c=n.objectStore(t),l=null==c.keyPath,f="put"===o||"add"===o;if(!f&&"delete"!==o&&"deleteRange"!==o)throw Error("Invalid operation type: "+o);var h,p=(i||a||{length:1}).length;if(i&&a&&i.length!==a.length)throw Error("Given keys array must have same length as given values array.");if(0===p)return e({numFailures:0,failures:{},results:[],lastResult:void 0});function d(e){++m,tO(e)}var y=[],v=[],m=0;if("deleteRange"===o){if(4===u.type)return e({numFailures:m,failures:v,results:[],lastResult:void 0});3===u.type?y.push(h=c.clear()):y.push(h=c.delete(r(u)))}else{var l=f?l?[a,i]:[a,null]:[i,null],b=l[0],g=l[1];if(f)for(var w=0;w<p;++w)y.push(h=g&&void 0!==g[w]?c[o](b[w],g[w]):c[o](b[w])),h.onerror=d;else for(w=0;w<p;++w)y.push(h=c[o](b[w])),h.onerror=d}function _(t){t=t.target.result,y.forEach(function(e,t){return null!=e.error&&(v[t]=e.error)}),e({numFailures:m,failures:v,results:"delete"===o?i:y.map(function(e){return e.result}),lastResult:t})}h.onerror=function(e){d(e),_(e)},h.onsuccess=_})},getMany:function(e){var n=e.trans,r=e.keys;return new Promise(function(e,o){e=eC(e);for(var i,a=n.objectStore(t),u=r.length,s=Array(u),c=0,l=0,f=function(t){s[(t=t.target)._pos]=t.result,++l===c&&e(s)},h=tx(o),p=0;p<u;++p)null!=r[p]&&((i=a.get(r[p]))._pos=p,i.onsuccess=f,i.onerror=h,++c);0===c&&e(s)})},get:function(e){var n=e.trans,r=e.key;return new Promise(function(e,o){e=eC(e);var i=n.objectStore(t).get(r);i.onsuccess=function(t){return e(t.target.result)},i.onerror=tx(o)})},query:function(e){return new Promise(function(n,o){n=eC(n);var i,a,s,c=e.trans,l=e.values,f=e.limit,h=e.query,p=f===1/0?void 0:f,d=h.index,h=h.range,c=c.objectStore(t),c=d.isPrimaryKey?c:c.index(d.name),d=r(h);if(0===f)return n({result:[]});u?((h=l?c.getAll(d,p):c.getAllKeys(d,p)).onsuccess=function(e){return n({result:e.target.result})},h.onerror=tx(o)):(i=0,a=!l&&"openKeyCursor"in c?c.openKeyCursor(d):c.openCursor(d),s=[],a.onsuccess=function(e){var t=a.result;return t&&(s.push(l?t.value:t.primaryKey),++i!==f)?void t.continue():n({result:s})},a.onerror=tx(o))})},openCursor:function(e){var n=e.trans,o=e.values,i=e.query,a=e.reverse,u=e.unique;return new Promise(function(e,s){e=eC(e);var c=i.index,l=i.range,f=n.objectStore(t),f=c.isPrimaryKey?f:f.index(c.name),c=a?u?"prevunique":"prev":u?"nextunique":"next",h=!o&&"openKeyCursor"in f?f.openKeyCursor(r(l),c):f.openCursor(r(l),c);h.onerror=tx(s),h.onsuccess=eC(function(t){var r,o,i,a,u=h.result;u?(u.___id=++tq,u.done=!1,r=u.continue.bind(u),o=(o=u.continuePrimaryKey)&&o.bind(u),i=u.advance.bind(u),a=function(){throw Error("Cursor not stopped")},u.trans=n,u.stop=u.continue=u.continuePrimaryKey=u.advance=function(){throw Error("Cursor not started")},u.fail=eC(s),u.next=function(){var e=this,t=1;return this.start(function(){return t--?e.continue():e.stop()}).then(function(){return e})},u.start=function(e){function t(){if(h.result)try{e()}catch(e){u.fail(e)}else u.done=!0,u.start=function(){throw Error("Cursor behind last entry")},u.stop()}var n=new Promise(function(e,t){e=eC(e),h.onerror=tx(t),u.fail=t,u.stop=function(t){u.stop=u.continue=u.continuePrimaryKey=u.advance=a,e(t)}});return h.onsuccess=eC(function(e){h.onsuccess=t,t()}),u.continue=r,u.continuePrimaryKey=o,u.advance=i,t(),n},e(u)):e(null)},s)})},count:function(e){var n=e.query,o=e.trans,i=n.index,a=n.range;return new Promise(function(e,n){var u=o.objectStore(t),u=i.isPrimaryKey?u:u.index(i.name),s=r(a),s=s?u.count(s):u.count();s.onsuccess=eC(function(t){return e(t.target.result)}),s.onerror=tx(n)})}}}),s={};return n.forEach(function(e){return s[e.name]=e}),{stack:"dbcore",transaction:e.transaction.bind(e),table:function(e){if(s[e])return s[e];throw Error("Table '".concat(e,"' not found"))},MIN_KEY:-1/0,MAX_KEY:tI(t),schema:i}}(o,i=i.IDBKeyRange,n),{dbcore:r.dbcore.reduce(function(e,n){return n=n.create,t(t({},e),n(e))},o)});e.core=u.dbcore,e.tables.forEach(function(t){var n=t.name;e.core.schema.tables.some(function(e){return e.name===n})&&(t.core=e.core.table(n),e[n]instanceof e.Table)&&(e[n].core=t.core)})}function tN(e,t,n,r){n.forEach(function(n){var o=r[n];t.forEach(function(t){var r=function e(t,n){return y(t,n)||(t=s(t))&&e(t,n)}(t,n);(!r||"value"in r&&void 0===r.value)&&(t===e.Transaction.prototype||t instanceof e.Transaction?p(t,n,{get:function(){return this.table(n)},set:function(e){h(this,n,{value:e,writable:!0,configurable:!0,enumerable:!0})}}):t[n]=new e.Table(n,o))})})}function tF(e,t){t.forEach(function(t){for(var n in t)t[n]instanceof e.Table&&delete t[n]})}function tU(e,t){return e._cfg.version-t._cfg.version}function tW(e,t){var n,r={del:[],add:[],change:[]};for(n in e)t[n]||r.del.push(n);for(n in t){var o=e[n],i=t[n];if(o){var a={name:n,def:i,recreate:!1,del:[],add:[],change:[]};if(""+(o.primKey.keyPath||"")!=""+(i.primKey.keyPath||"")||o.primKey.auto!==i.primKey.auto)a.recreate=!0,r.change.push(a);else{var u=o.idxByName,s=i.idxByName,c=void 0;for(c in u)s[c]||a.del.push(c);for(c in s){var l=u[c],f=s[c];l?l.src!==f.src&&a.change.push(f):a.add.push(f)}(0<a.del.length||0<a.add.length||0<a.change.length)&&r.change.push(a)}}else r.add.push([n,i])}return r}function tL(e,t,n,r){var o=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});r.forEach(function(e){return tz(o,e)})}function tV(e,t){i(e).forEach(function(n){t.db.objectStoreNames.contains(n)||(en&&console.debug("Dexie: Creating missing table",n),tL(t,n,e[n].primKey,e[n].indexes))})}function tz(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function tY(e,t,n){var r={};return m(t.objectStoreNames,0).forEach(function(e){for(var t=n.objectStore(e),o=tA(tC(s=t.keyPath),s||"",!0,!1,!!t.autoIncrement,s&&"string"!=typeof s,!0),i=[],a=0;a<t.indexNames.length;++a){var u=t.index(t.indexNames[a]),s=u.keyPath,u=tA(u.name,s,!!u.unique,!!u.multiEntry,!1,s&&"string"!=typeof s,!1);i.push(u)}r[e]=tT(e,o,i)}),r}function t$(e,t,n){for(var r=n.db.objectStoreNames,i=0;i<r.length;++i){var a=r[i],u=n.objectStore(a);e._hasGetAll="getAll"in u;for(var s=0;s<u.indexNames.length;++s){var c,l=u.indexNames[s],f=u.index(l).keyPath,f="string"==typeof f?f:"["+m(f).join("+")+"]";t[a]&&(c=t[a].idxByName[f])&&(c.name=l,delete t[a].idxByName[f],t[a].idxByName[l]=c)}}"u">typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&o.WorkerGlobalScope&&o instanceof o.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}function tG(e){return e.split(",").map(function(e,t){var n=e.split(":"),r=null==(r=n[1])?void 0:r.trim(),n=(e=n[0].trim()).replace(/([&*]|\+\+)/g,""),o=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return tA(n,o||null,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),a(o),0===t,r)})}function tH(){}function tQ(e,t){var n=e._dbNamesDB;return n||(n=e._dbNamesDB=new nk(eZ,{addons:[],indexedDB:e,IDBKeyRange:t})).version(1).stores({dbnames:"name"}),n.table("dbnames")}function tX(e){return e&&"function"==typeof e.databases}function tJ(e){return eM(function(){return ey.letThrough=!0,e()})}function tZ(e){return!("from"in e)}tH.prototype._createTableSchema=tT,tH.prototype._parseIndexSyntax=tG,tH.prototype._parseStoresSpec=function(e,t){var n=this;i(e).forEach(function(r){if(null!==e[r]){var o=n._parseIndexSyntax(e[r]),i=o.shift();if(!i)throw new z.Schema("Invalid schema for table "+r+": "+e[r]);if(i.unique=!0,i.multi)throw new z.Schema("Primary key cannot be multiEntry*");o.forEach(function(e){if(e.auto)throw new z.Schema("Only primary key can be marked as autoIncrement (++)");if(!e.keyPath)throw new z.Schema("Index must have a name and cannot be an empty string")}),i=n._createTableSchema(r,i,o),t[r]=i}})},tH.prototype.stores=function(e){var t=this.db,e=(this._cfg.storesSource=this._cfg.storesSource?u(this._cfg.storesSource,e):e,t._versions),n={},r={};return e.forEach(function(e){u(n,e._cfg.storesSource),r=e._cfg.dbschema={},e._parseStoresSpec(n,r)}),t._dbSchema=r,tF(t,[t._allTables,t,t.Transaction.prototype]),tN(t,[t._allTables,t,t.Transaction.prototype,this._cfg.tables],i(r),r),t._storeNames=i(r),this},tH.prototype.upgrade=function(e){return this._cfg.contentUpgrade=et(this._cfg.contentUpgrade||$,e),this};var t0=function(e,t){var n;if(!this)return n=new t0,e&&"d"in e&&u(n,e),n;u(this,arguments.length?{d:1,from:e,to:1<arguments.length?t:e}:{d:0})};function t1(e,t,n){var r=e5(t,n);if(!isNaN(r)){if(0<r)throw RangeError();if(tZ(e))return u(e,{from:t,to:n,d:1});var r=e.l,o=e.r;if(0>e5(n,e.from))return r?t1(r,t,n):e.l={from:t,to:n,d:1,l:null,r:null},t6(e);if(0<e5(t,e.to))return o?t1(o,t,n):e.r={from:t,to:n,d:1,l:null,r:null},t6(e);0>e5(t,e.from)&&(e.from=t,e.l=null,e.d=o?o.d+1:1),0<e5(n,e.to)&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1),t=!e.r,r&&!e.l&&t2(e,r),o&&t&&t2(e,o)}}function t2(e,t){tZ(t)||function e(t,n){var r=n.from,o=n.l,i=n.r;t1(t,r,n.to),o&&e(t,o),i&&e(t,i)}(e,t)}function t3(e,t){var n=t4(t),r=n.next();if(!r.done)for(var o=r.value,i=t4(e),a=i.next(o.from),u=a.value;!r.done&&!a.done;){if(0>=e5(u.from,o.to)&&0<=e5(u.to,o.from))return!0;0>e5(o.from,u.from)?o=(r=n.next(u.from)).value:u=(a=i.next(o.from)).value}return!1}function t4(e){var t=tZ(e)?null:{s:0,n:e};return{next:function(e){for(var n=0<arguments.length;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&0>e5(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,o,i=((null==(i=e.r)?void 0:i.d)||0)-((null==(i=e.l)?void 0:i.d)||0),i=1<i?"r":i<-1?"l":"";i&&(n="r"==i?"l":"r",r=t({},e),o=e[i],e.from=o.from,e.to=o.to,e[i]=o[i],r[i]=o[n],(e[n]=r).d=t5(r)),e.d=t5(e)}function t5(e){var t=e.r,e=e.l;return(t?e?Math.max(t.d,e.d):t.d:e?e.d:0)+1}function t8(e,t){return i(t).forEach(function(n){e[n]?t2(e[n],t[n]):e[n]=function e(t){var n,r,o={};for(n in t)l(t,n)&&(r=t[n],o[n]=!r||"object"!=typeof r||E.has(r.constructor)?r:e(r));return o}(t[n])}),e}function t7(e,t){return e.all||t.all||Object.keys(e).some(function(n){return t[n]&&t3(t[n],e[n])})}f(t0.prototype,((M={add:function(e){return t2(this,e),this},addKey:function(e){return t1(this,e,e),this},addKeys:function(e){var t=this;return e.forEach(function(e){return t1(t,e,e)}),this},hasKey:function(e){var t=t4(this).next(e).value;return t&&0>=e5(t.from,e)&&0<=e5(t.to,e)}})[T]=function(){return t4(this)},M));var t9={},ne={},nt=!1;function nn(e){t8(ne,e),nt||(nt=!0,setTimeout(function(){nt=!1,nr(ne,(ne={},!1))},0))}function nr(e,t){void 0===t&&(t=!1);var n=new Set;if(e.all)for(var r=0,o=Object.values(t9);r<o.length;r++)no(u=o[r],e,n,t);else for(var i in e){var a,u,i=/^idb\:\/\/(.*)\/(.*)\//.exec(i);i&&(a=i[1],i=i[2],u=t9["idb://".concat(a,"/").concat(i)])&&no(u,e,n,t)}n.forEach(function(e){return e()})}function no(e,t,n,r){for(var o=[],i=0,a=Object.entries(e.queries.query);i<a.length;i++){for(var u=a[i],s=u[0],c=[],l=0,f=u[1];l<f.length;l++){var h=f[l];t7(t,h.obsSet)?h.subscribers.forEach(function(e){return n.add(e)}):r&&c.push(h)}r&&o.push([s,c])}if(r)for(var p=0;p<o.length;p++){var d=o[p],s=d[0],c=d[1];e.queries.query[s]=c}}function ni(e){function t(t){return e.next(t)}var n=o(t),r=o(function(t){return e.throw(t)});function o(e){return function(t){var t=e(t),o=t.value;return t.done?o:o&&"function"==typeof o.then?o.then(n,r):a(o)?Promise.all(o).then(n,r):n(o)}}return o(t)()}function na(e,t,n){for(var r=a(e)?e.slice():[e],o=0;o<n;++o)r.push(t);return r}var nu={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(e){return t(t({},e),{table:function(n){var r=e.table(n),n=r.schema,o={},i=[];function a(e,n,r){var u=tB(e),s=o[u]=o[u]||[],c=null==e?0:"string"==typeof e?1:e.length,l=0<n,u=t(t({},r),{name:l?"".concat(u,"(virtual-from:").concat(r.name,")"):r.name,lowLevelIndex:r,isVirtual:l,keyTail:n,keyLength:c,extractKey:tD(e),unique:!l&&r.unique});return s.push(u),u.isPrimaryKey||i.push(u),1<c&&a(2===c?e[0]:e.slice(0,c-1),n+1,r),s.sort(function(e,t){return e.keyTail-t.keyTail}),u}var u=a(n.primaryKey.keyPath,0,n.primaryKey);o[":id"]=[u];for(var s=0,c=n.indexes;s<c.length;s++){var l=c[s];a(l.keyPath,0,l)}function f(n){var r,o=n.query.index;return o.isVirtual?t(t({},n),{query:{index:o.lowLevelIndex,range:(r=n.query.range,o=o.keyTail,{type:1===r.type?2:r.type,lower:na(r.lower,r.lowerOpen?e.MAX_KEY:e.MIN_KEY,o),lowerOpen:!0,upper:na(r.upper,r.upperOpen?e.MIN_KEY:e.MAX_KEY,o),upperOpen:!0})}}):n}return t(t({},r),{schema:t(t({},n),{primaryKey:u,indexes:i,getIndexByKeyPath:function(e){return(e=o[tB(e)])&&e[0]}}),count:function(e){return r.count(f(e))},query:function(e){return r.query(f(e))},openCursor:function(t){var n=t.query.index,o=n.keyTail,i=n.keyLength;return n.isVirtual?r.openCursor(f(t)).then(function(n){var r;return n&&Object.create(r=n,{continue:{value:function(n){null!=n?r.continue(na(n,t.reverse?e.MAX_KEY:e.MIN_KEY,o)):t.unique?r.continue(r.key.slice(0,i).concat(t.reverse?e.MIN_KEY:e.MAX_KEY,o)):r.continue()}},continuePrimaryKey:{value:function(t,n){r.continuePrimaryKey(na(t,e.MAX_KEY,o),n)}},primaryKey:{get:function(){return r.primaryKey}},key:{get:function(){var e=r.key;return 1===i?e[0]:e.slice(0,i)}},value:{get:function(){return r.value}}})}):r.openCursor(t)}})}})}};function ns(e,t,n,r){return n=n||{},r=r||"",i(e).forEach(function(o){var i,a,u;l(t,o)?(i=e[o],a=t[o],"object"==typeof i&&"object"==typeof a&&i&&a?(u=C(i))!==C(a)?n[r+o]=t[o]:"Object"===u?ns(i,a,n,r+o+"."):i!==a&&(n[r+o]=t[o]):i!==a&&(n[r+o]=t[o])):n[r+o]=void 0}),i(t).forEach(function(o){l(e,o)||(n[r+o]=t[o])}),n}function nc(e,t){return"delete"===t.type?t.keys:t.keys||t.values.map(e.extractKey)}var nl={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(e){return t(t({},e),{table:function(n){var o=e.table(n),i=o.schema.primaryKey;return t(t({},o),{mutate:function(e){var a=ey.trans,u=a.table(n).hook,s=u.deleting,c=u.creating,f=u.updating;switch(e.type){case"add":if(c.fire===$)break;return a._promise("readwrite",function(){return h(e)},!0);case"put":if(c.fire===$&&f.fire===$)break;return a._promise("readwrite",function(){return h(e)},!0);case"delete":if(s.fire===$)break;return a._promise("readwrite",function(){return h(e)},!0);case"deleteRange":if(s.fire===$)break;return a._promise("readwrite",function(){return function e(n,r,a){return o.query({trans:n,values:!1,query:{index:i,range:r},limit:a}).then(function(o){var i=o.result;return h({type:"delete",keys:i,trans:n}).then(function(o){return 0<o.numFailures?Promise.reject(o.failures[0]):i.length<a?{failures:[],numFailures:0,lastResult:void 0}:e(n,t(t({},r),{lower:i[i.length-1],lowerOpen:!0}),a)})})}(e.trans,e.range,1e4)},!0)}return o.mutate(e);function h(e){var n,a=ey.trans,u=e.keys||nc(i,e);if(u)return"delete"!==(e="add"===e.type||"put"===e.type?t(t({},e),{keys:u}):t({},e)).type&&(e.values=r([],e.values,!0)),e.keys&&(e.keys=r([],e.keys,!0)),("add"===(n=e).type?Promise.resolve([]):o.getMany({trans:n.trans,keys:u,cache:"immutable"})).then(function(t){var n=u.map(function(n,r){var o,u,h,p=t[r],d={onerror:null,onsuccess:null};return"delete"===e.type?s.fire.call(d,n,p,a):"add"===e.type||void 0===p?(o=c.fire.call(d,n,e.values[r],a),null==n&&null!=o&&(e.keys[r]=n=o,i.outbound||k(e.values[r],i.keyPath,n))):(o=ns(p,e.values[r]),(u=f.fire.call(d,o,n,p,a))&&(h=e.values[r],Object.keys(u).forEach(function(e){l(h,e)?h[e]=u[e]:k(h,e,u[e])}))),d});return o.mutate(e).then(function(r){for(var o=r.failures,i=r.results,a=r.numFailures,r=r.lastResult,s=0;s<u.length;++s){var c=(i||u)[s],l=n[s];null==c?l.onerror&&l.onerror(o[s]):l.onsuccess&&l.onsuccess("put"===e.type&&t[s]?e.values[s]:c)}return{failures:o,results:i,numFailures:a,lastResult:r}}).catch(function(e){return n.forEach(function(t){return t.onerror&&t.onerror(e)}),Promise.reject(e)})});throw Error("Keys missing")}}})}})}};function nf(e,t,n){try{if(!t||t.keys.length<e.length)return null;for(var r=[],o=0,i=0;o<t.keys.length&&i<e.length;++o)0===e5(t.keys[o],e[i])&&(r.push(n?j(t.values[o]):t.values[o]),++i);return r.length===e.length?r:null}catch(e){return null}}var nh={stack:"dbcore",level:-1,create:function(e){return{table:function(n){var r=e.table(n);return t(t({},r),{getMany:function(e){var t;return e.cache?(t=nf(e.keys,e.trans._cache,"clone"===e.cache))?eg.resolve(t):r.getMany(e).then(function(t){return e.trans._cache={keys:e.keys,values:"clone"===e.cache?j(t):t},t}):r.getMany(e)},mutate:function(e){return"add"!==e.type&&(e.trans._cache=null),r.mutate(e)}})}}}};function np(e,t){return"readonly"===e.trans.mode&&!!e.subscr&&!e.trans.explicit&&"disabled"!==e.trans.db._options.cache&&!t.schema.primaryKey.outbound}function nd(e,t){switch(e){case"query":return t.values&&!t.unique;case"get":case"getMany":case"count":case"openCursor":return!1}}var ny={stack:"dbcore",level:0,name:"Observability",create:function(e){var n=e.schema.name,r=new t0(e.MIN_KEY,e.MAX_KEY);return t(t({},e),{transaction:function(t,n,r){if(ey.subscr&&"readonly"!==n)throw new z.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(ey.querier));return e.transaction(t,n,r)},table:function(o){function u(t){var n,t=t.query;return[n=t.index,new t0(null!=(n=(t=t.range).lower)?n:e.MIN_KEY,null!=(n=t.upper)?n:e.MAX_KEY)]}var s=e.table(o),c=s.schema,l=c.primaryKey,f=c.indexes,h=l.extractKey,p=l.outbound,d=l.autoIncrement&&f.filter(function(e){return e.compound&&e.keyPath.includes(l.keyPath)}),y=t(t({},s),{mutate:function(t){function i(e){return p[e="idb://".concat(n,"/").concat(o,"/").concat(e)]||(p[e]=new t0)}var u,f,h=t.trans,p=t.mutatedParts||(t.mutatedParts={}),y=i(""),v=i(":dels"),m=t.type,b="deleteRange"===t.type?[t.range]:"delete"===t.type?[t.keys]:t.values.length<50?[nc(l,t).filter(function(e){return e}),t.values]:[],g=b[0],b=b[1],w=t.trans._cache;return a(g)?(y.addKeys(g),(m="delete"===m||g.length===b.length?nf(g,w):null)||v.addKeys(g),(m||b)&&(u=m,f=b,c.indexes.forEach(function(e){var t=i(e.name||"");function n(t){return null!=t?e.extractKey(t):null}function r(n){e.multiEntry&&a(n)?n.forEach(function(e){return t.addKey(e)}):t.addKey(n)}(u||f).forEach(function(e,t){var o=u&&n(u[t]),t=f&&n(f[t]);0!==e5(o,t)&&(null!=o&&r(o),null!=t)&&r(t)})}))):g?(b={from:null!=(w=g.lower)?w:e.MIN_KEY,to:null!=(m=g.upper)?m:e.MAX_KEY},v.add(b),y.add(b)):(y.add(r),v.add(r),c.indexes.forEach(function(e){return i(e.name).add(r)})),s.mutate(t).then(function(e){return!g||"add"!==t.type&&"put"!==t.type||(y.addKeys(e.results),d&&d.forEach(function(n){for(var r=t.values.map(function(e){return n.extractKey(e)}),o=n.keyPath.findIndex(function(e){return e===l.keyPath}),a=0,u=e.results.length;a<u;++a)r[a][o]=e.results[a];i(n.name).addKeys(r)})),h.mutatedParts=t8(h.mutatedParts||{},p),e})}}),v={get:function(e){return[l,new t0(e.key)]},getMany:function(e){return[l,(new t0).addKeys(e.keys)]},count:u,query:u,openCursor:u};return i(v).forEach(function(e){y[e]=function(i){var a=ey.subscr,u=!!a,c=np(ey,s)&&nd(e,i)?i.obsSet={}:a;if(u){var l,a=function(e){return c[e="idb://".concat(n,"/").concat(o,"/").concat(e)]||(c[e]=new t0)},f=a(""),d=a(":dels"),u=v[e](i),y=u[0],u=u[1];if(("query"===e&&y.isPrimaryKey&&!i.values?d:a(y.name||"")).add(u),!y.isPrimaryKey){if("count"!==e)return l="query"===e&&p&&i.values&&s.query(t(t({},i),{values:!1})),s[e].apply(this,arguments).then(function(t){if("query"===e){if(p&&i.values)return l.then(function(e){return e=e.result,f.addKeys(e),t});var n,r=i.values?t.result.map(h):t.result;(i.values?f:d).addKeys(r)}else if("openCursor"===e)return n=i.values,t&&Object.create(t,{key:{get:function(){return d.addKey(t.primaryKey),t.key}},primaryKey:{get:function(){var e=t.primaryKey;return d.addKey(e),e}},value:{get:function(){return n&&f.addKey(t.primaryKey),t.value}}});return t});d.add(r)}}return s[e].apply(this,arguments)}}),y}})}};function nv(e,n,r){var o;return 0===r.numFailures?n:"deleteRange"===n.type||(o=n.keys?n.keys.length:"values"in n&&n.values?n.values.length:1,r.numFailures===o)?null:(a((o=t({},n)).keys)&&(o.keys=o.keys.filter(function(e,t){return!(t in r.failures)})),"values"in o&&a(o.values)&&(o.values=o.values.filter(function(e,t){return!(t in r.failures)})),o)}function nm(e,t){var n,r;return n=e,(void 0===(r=t).lower||(r.lowerOpen?0<e5(n,r.lower):0<=e5(n,r.lower)))&&(n=e,void 0===(r=t).upper||(r.upperOpen?0>e5(n,r.upper):0>=e5(n,r.upper)))}function nb(e,t,n,r,o,i){var u,s,c,l,f,h;return n&&0!==n.length&&(s=(u=t.query.index).multiEntry,c=t.query.range,l=r.schema.primaryKey.extractKey,f=u.extractKey,h=(u.lowLevelIndex||u).extractKey,(r=n.reduce(function(e,n){var r=e,o=[];if("add"===n.type||"put"===n.type)for(var i=new t0,u=n.values.length-1;0<=u;--u){var h,p=n.values[u],d=l(p);!i.hasKey(d)&&(h=f(p),s&&a(h)?h.some(function(e){return nm(e,c)}):nm(h,c))&&(i.addKey(d),o.push(p))}switch(n.type){case"add":var y=(new t0).addKeys(t.values?e.map(function(e){return l(e)}):e),r=e.concat(t.values?o.filter(function(e){return e=l(e),!y.hasKey(e)&&(y.addKey(e),!0)}):o.map(function(e){return l(e)}).filter(function(e){return!y.hasKey(e)&&(y.addKey(e),!0)}));break;case"put":var v=(new t0).addKeys(n.values.map(function(e){return l(e)}));r=e.filter(function(e){return!v.hasKey(t.values?l(e):e)}).concat(t.values?o:o.map(function(e){return l(e)}));break;case"delete":var m=(new t0).addKeys(n.keys);r=e.filter(function(e){return!m.hasKey(t.values?l(e):e)});break;case"deleteRange":var b=n.range;r=e.filter(function(e){return!nm(l(e),b)})}return r},e))!==e)?(r.sort(function(e,t){return e5(h(e),h(t))||e5(l(e),l(t))}),t.limit&&t.limit<1/0&&(r.length>t.limit?r.length=t.limit:e.length===t.limit&&r.length<t.limit&&(o.dirty=!0)),i?Object.freeze(r):r):e}function ng(e,t){return 0===e5(e.lower,t.lower)&&0===e5(e.upper,t.upper)&&!!e.lowerOpen==!!t.lowerOpen&&!!e.upperOpen==!!t.upperOpen}var nw={stack:"dbcore",level:0,name:"Cache",create:function(e){var n=e.schema.name;return t(t({},e),{transaction:function(t,r,o){var i,a,u=e.transaction(t,r,o);return"readwrite"===r&&(o=(i=new AbortController).signal,u.addEventListener("abort",(a=function(o){return function(){if(i.abort(),"readwrite"===r){for(var a=new Set,s=0;s<t.length;s++){var c=t[s],l=t9["idb://".concat(n,"/").concat(c)];if(l){var f=e.table(c),h=l.optimisticOps.filter(function(e){return e.trans===u});if(u._explicit&&o&&u.mutatedParts)for(var p=0,d=Object.values(l.queries.query);p<d.length;p++)for(var y=0,v=(g=d[p]).slice();y<v.length;y++)t7((w=v[y]).obsSet,u.mutatedParts)&&(D(g,w),w.subscribers.forEach(function(e){return a.add(e)}));else if(0<h.length){l.optimisticOps=l.optimisticOps.filter(function(e){return e.trans!==u});for(var m=0,b=Object.values(l.queries.query);m<b.length;m++)for(var g,w,_,k=0,x=(g=b[m]).slice();k<x.length;k++)null!=(w=x[k]).res&&u.mutatedParts&&(o&&!w.dirty?(_=Object.isFrozen(w.res),_=nb(w.res,w.req,h,f,w,_),w.dirty?(D(g,w),w.subscribers.forEach(function(e){return a.add(e)})):_!==w.res&&(w.res=_,w.promise=eg.resolve({result:_}))):(w.dirty&&D(g,w),w.subscribers.forEach(function(e){return a.add(e)})))}}}a.forEach(function(e){return e()})}}})(!1),{signal:o}),u.addEventListener("error",a(!1),{signal:o}),u.addEventListener("complete",a(!0),{signal:o})),u},table:function(r){var o=e.table(r),i=o.schema.primaryKey;return t(t({},o),{mutate:function(e){var a,u=ey.trans;return!i.outbound&&"disabled"!==u.db._options.cache&&!u.explicit&&"readwrite"===u.idbtrans.mode&&(a=t9["idb://".concat(n,"/").concat(r)])?(u=o.mutate(e),("add"===e.type||"put"===e.type)&&(50<=e.values.length||nc(i,e).some(function(e){return null==e}))?u.then(function(n){var r=nv(0,t(t({},e),{values:e.values.map(function(e,r){var o;return n.failures[r]?e:(k(o=null!=(o=i.keyPath)&&o.includes(".")?j(e):t({},e),i.keyPath,n.results[r]),o)})}),n);a.optimisticOps.push(r),queueMicrotask(function(){return e.mutatedParts&&nn(e.mutatedParts)})}):(a.optimisticOps.push(e),e.mutatedParts&&nn(e.mutatedParts),u.then(function(t){0<t.numFailures&&(D(a.optimisticOps,e),(t=nv(0,e,t))&&a.optimisticOps.push(t),e.mutatedParts)&&nn(e.mutatedParts)}),u.catch(function(){D(a.optimisticOps,e),e.mutatedParts&&nn(e.mutatedParts)})),u):o.mutate(e)},query:function(e){var t,i,a,u,s,c,l,f,h,p;return np(ey,o)&&nd("query",e)?(t="immutable"===(null==(a=ey.trans)?void 0:a.db._options.cache),i=(a=ey).requery,a=a.signal,l=(c=((e,t,n,r)=>{var o=t9["idb://".concat(e,"/").concat(t)];if(!o)return[];if(!(e=o.queries[n]))return[null,!1,o,null];var i=e[(r.query?r.query.index.name:null)||""];if(!i)return[null,!1,o,null];switch(n){case"query":var a=i.find(function(e){return e.req.limit===r.limit&&e.req.values===r.values&&ng(e.req.query.range,r.query.range)});return a?[a,!0,o,i]:[i.find(function(e){var t,n;return("limit"in e.req?e.req.limit:1/0)>=r.limit&&(!r.values||e.req.values)&&(t=e.req.query.range,n=r.query.range,0>=((e,t,n,r)=>{if(void 0===e)return void 0!==t?-1:0;if(void 0===t)return 1;if(0===(e=e5(e,t))){if(n&&r)return 0;if(n)return 1;if(r)return -1}return e})(t.lower,n.lower,t.lowerOpen,n.lowerOpen)&&0<=((e,t,n,r)=>{if(void 0===e)return+(void 0!==t);if(void 0===t)return -1;if(0===(e=e5(e,t))){if(n&&r)return 0;if(n)return -1;if(r)return 1}return e})(t.upper,n.upper,t.upperOpen,n.upperOpen))}),!1,o,i];case"count":return[a=i.find(function(e){return ng(e.req.query.range,r.query.range)}),!!a,o,i]}})(n,r,"query",e))[0],u=c[2],s=c[3],l&&c[1]?l.obsSet=e.obsSet:(c=o.query(e).then(function(e){var n=e.result;if(l&&(l.res=n),t){for(var r=0,o=n.length;r<o;++r)Object.freeze(n[r]);Object.freeze(n)}else e.result=j(n);return e}).catch(function(e){return s&&l&&D(s,l),Promise.reject(e)}),l={obsSet:e.obsSet,promise:c,subscribers:new Set,type:"query",req:e,dirty:!1},s?s.push(l):(s=[l],(u=u||(t9["idb://".concat(n,"/").concat(r)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}})).queries.query[e.query.index.name||""]=s)),f=l,h=s,p=a,f.subscribers.add(i),p.addEventListener("abort",function(){f.subscribers.delete(i),0===f.subscribers.size&&setTimeout(function(){0===f.subscribers.size&&D(h,f)},3e3)}),l.promise.then(function(n){return{result:nb(n.result,e,null==u?void 0:u.optimisticOps,o,l,t)}})):o.query(e)}})}})}};function n_(e,t){return new Proxy(e,{get:function(e,n,r){return"db"===n?t:Reflect.get(e,n,r)}})}nx.prototype.version=function(e){if(isNaN(e)||e<.1)throw new z.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new z.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);var t=this._versions,n=t.filter(function(t){return t._cfg.version===e})[0];return n||(n=new this.Version(e),t.push(n),t.sort(tU),n.stores({}),this._state.autoSchema=!1),n},nx.prototype._whenReady=function(e){var t=this;return this.idbdb&&(this._state.openComplete||ey.letThrough||this._vip)?e():new eg(function(e,n){if(t._state.openComplete)return n(new z.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._state.autoOpen)return void n(new z.DatabaseClosed);t.open().catch($)}t._state.dbReadyPromise.then(e,n)}).then(e)},nx.prototype.use=function(e){var t=e.stack,n=e.create,r=e.level,e=e.name,o=(e&&this.unuse({stack:t,name:e}),this._middlewares[t]||(this._middlewares[t]=[]));return o.push({stack:t,create:n,level:null==r?10:r,name:e}),o.sort(function(e,t){return e.level-t.level}),this},nx.prototype.unuse=function(e){var t=e.stack,n=e.name,r=e.create;return t&&this._middlewares[t]&&(this._middlewares[t]=this._middlewares[t].filter(function(e){return r?e.create!==r:!!n&&e.name!==n})),this},nx.prototype.open=function(){var e=this;return ez(ed,function(){return function(e){var t=e._state,n=e._deps.indexedDB;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then(function(){return t.dbOpenError?eG(t.dbOpenError):e});t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;var r=t.openCanceller,o=Math.round(10*e.verno),a=!1;function u(){if(t.openCanceller!==r)throw new z.DatabaseClosed("db.open() was cancelled")}var s,c=t.dbReadyResolve,l=null,f=!1;return eg.race([r,("u"<typeof navigator?eg.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(e){function t(){return indexedDB.databases().finally(e)}s=setInterval(t,100),t()}).finally(function(){return clearInterval(s)}):Promise.resolve()).then(function r(){return new eg(function(s,c){if(u(),!n)throw new z.MissingAPI;var h=e.name,p=t.autoSchema||!o?n.open(h):n.open(h,o);if(!p)throw new z.MissingAPI;p.onerror=tx(c),p.onblocked=eC(e._fireOnBlocked),p.onupgradeneeded=eC(function(r){var o,u,s,d,y,v,m;l=p.transaction,t.autoSchema&&!e._options.allowEmptyDB?(p.onerror=tO,l.abort(),p.result.close(),(o=n.deleteDatabase(h)).onsuccess=o.onerror=eC(function(){c(new z.NoSuchDatabase("Database ".concat(h," doesnt exist")))})):(l.onerror=tx(c),f=(o=r.oldVersion>0x4000000000000000?0:r.oldVersion)<1,e.idbdb=p.result,a&&function(e,t){tV(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);t$(e,e._dbSchema,t);for(var r=0,o=tW(n,e._dbSchema).change;r<o.length;r++){var i=(e=>{if(e.change.length||e.recreate)return console.warn("Unable to patch indexes of table ".concat(e.name," because it has changes on the type of index or primary key.")),{value:void 0};var n=t.objectStore(e.name);e.add.forEach(function(t){en&&console.debug("Dexie upgrade patch: Creating missing index ".concat(e.name,".").concat(t.src)),tz(n,t)})})(o[r]);if("object"==typeof i)return i.value}}(e,l),u=o/10,s=l,d=e._dbSchema,(s.objectStoreNames.contains("$meta")&&!d.$meta&&(d.$meta=tT("$meta",tG("")[0],[]),e._storeNames.push("$meta")),y=e._createTransaction("readwrite",e._storeNames,d)).create(s),y._completion.catch(c),v=y._reject.bind(y),m=ey.transless||ey,eM(function(){if(ey.trans=y,ey.transless=m,0!==u)return tM(e,s),(y.storeNames.includes("$meta")?y.table("$meta").get("version").then(function(e){return null!=e?e:u}):eg.resolve(u)).then(function(t){var n=t,r=[],t=e._versions,o=e._dbSchema=tY(0,e.idbdb,s);return 0===(t=t.filter(function(e){return e._cfg.version>=n})).length?eg.resolve():(t.forEach(function(t){r.push(function(){var r,a,u,c=o,l=t._cfg.dbschema,f=(t$(e,c,s),t$(e,l,s),o=e._dbSchema=l,tW(c,l)),h=(f.add.forEach(function(e){tL(s,e[0],e[1].primKey,e[1].indexes)}),f.change.forEach(function(e){if(e.recreate)throw new z.Upgrade("Not yet support for changing primary key");var t=s.objectStore(e.name);e.add.forEach(function(e){return tz(t,e)}),e.change.forEach(function(e){t.deleteIndex(e.name),tz(t,e)}),e.del.forEach(function(e){return t.deleteIndex(e)})}),t._cfg.contentUpgrade);if(h&&t._cfg.version>n)return tM(e,s),y._memoizedTables={},r=x(l),f.del.forEach(function(e){r[e]=c[e]}),tF(e,[e.Transaction.prototype]),tN(e,[e.Transaction.prototype],i(r),r),y.schema=r,(a=B(h))&&eN(),l=eg.follow(function(){var e;(u=h(y))&&a&&(e=eF.bind(null,null),u.then(e,e))}),u&&"function"==typeof u.then?eg.resolve(u):l.then(function(){return u})}),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)}),tF(e,[e.Transaction.prototype]),tN(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(){tV(o,s)}))}).catch(v);i(d).forEach(function(e){tL(s,e,d[e].primKey,d[e].indexes)}),tM(e,s),eg.follow(function(){return e.on.populate.fire(y)}).catch(v)}))},c),p.onsuccess=eC(function(){l=null;var n,u,c,d,y=e.idbdb=p.result,v=m(y.objectStoreNames);if(0<v.length)try{var b=y.transaction(1===(c=v).length?c[0]:c,"readonly");if(t.autoSchema)d=y,u=b,e.verno=d.version/10,u=e._dbSchema=tY(0,d,u),e._storeNames=m(d.objectStoreNames,0),tN(e,[e._allTables],i(u),u);else if(t$(e,e._dbSchema,b),n=b,((n=tW(tY(0,e.idbdb,n),e._dbSchema)).add.length||n.change.some(function(e){return e.add.length||e.change.length}))&&!a)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."),y.close(),o=y.version+1,a=!0,s(r());tM(e,b)}catch(e){}eJ.push(e),y.onversionchange=eC(function(n){t.vcFired=!0,e.on("versionchange").fire(n)}),y.onclose=eC(function(){e.close({disableAutoOpen:!1})}),f&&(v=e._deps,c=h,tX(d=v.indexedDB)||c===eZ||tQ(d,v.IDBKeyRange).put({name:c}).catch($)),s()},c)}).catch(function(e){switch(null==e?void 0:e.name){case"UnknownError":if(0<t.PR1398_maxLoop)return t.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),r();break;case"VersionError":if(0<o)return o=0,r()}return eg.reject(e)})})]).then(function(){return u(),t.onReadyBeingFired=[],eg.resolve(tJ(function(){return e.on.ready.fire(e.vip)})).then(function n(){var r;if(0<t.onReadyBeingFired.length)return r=t.onReadyBeingFired.reduce(et,$),t.onReadyBeingFired=[],eg.resolve(tJ(function(){return r(e.vip)})).then(n)})}).finally(function(){t.openCanceller===r&&(t.onReadyBeingFired=null,t.isBeingOpened=!1)}).catch(function(n){t.dbOpenError=n;try{l&&l.abort()}catch(e){}return r===t.openCanceller&&e._close(),eG(n)}).finally(function(){t.openComplete=!0,c()}).then(function(){var t;return f&&(t={},e.tables.forEach(function(n){n.schema.indexes.forEach(function(r){r.name&&(t["idb://".concat(e.name,"/").concat(n.name,"/").concat(r.name)]=new t0(-1/0,[[[]]]))}),t["idb://".concat(e.name,"/").concat(n.name,"/")]=t["idb://".concat(e.name,"/").concat(n.name,"/:dels")]=new t0(-1/0,[[[]]])}),tE(tP).fire(t),nr(t,!0)),e})}(e)})},nx.prototype._close=function(){this.on.close.fire(new CustomEvent("close"));var e=this._state,t=eJ.indexOf(this);if(0<=t&&eJ.splice(t,1),this.idbdb){try{this.idbdb.close()}catch(e){}this.idbdb=null}e.isBeingOpened||(e.dbReadyPromise=new eg(function(t){e.dbReadyResolve=t}),e.openCanceller=new eg(function(t,n){e.cancelOpen=n}))},nx.prototype.close=function(e){var e=(void 0===e?{disableAutoOpen:!0}:e).disableAutoOpen,t=this._state;e?(t.isBeingOpened&&t.cancelOpen(new z.DatabaseClosed),this._close(),t.autoOpen=!1,t.dbOpenError=new z.DatabaseClosed):(this._close(),t.autoOpen=this._options.autoOpen||t.isBeingOpened,t.openComplete=!1,t.dbOpenError=null)},nx.prototype.delete=function(e){var t=this,n=(void 0===e&&(e={disableAutoOpen:!0}),0<arguments.length&&"object"!=typeof arguments[0]),r=this._state;return new eg(function(o,i){function a(){t.close(e);var n=t._deps.indexedDB.deleteDatabase(t.name);n.onsuccess=eC(function(){var e,n,r;e=t._deps,n=t.name,tX(r=e.indexedDB)||n===eZ||tQ(r,e.IDBKeyRange).delete(n).catch($),o()}),n.onerror=tx(i),n.onblocked=t._fireOnBlocked}if(n)throw new z.InvalidArgument("Invalid closeOptions argument to db.delete()");r.isBeingOpened?r.dbReadyPromise.then(a):a()})},nx.prototype.backendDB=function(){return this.idbdb},nx.prototype.isOpen=function(){return null!==this.idbdb},nx.prototype.hasBeenClosed=function(){var e=this._state.dbOpenError;return e&&"DatabaseClosed"===e.name},nx.prototype.hasFailed=function(){return null!==this._state.dbOpenError},nx.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(nx.prototype,"tables",{get:function(){var e=this;return i(this._allTables).map(function(t){return e._allTables[t]})},enumerable:!1,configurable:!0}),nx.prototype.transaction=function(){var e=(function(e,t,n){var r=arguments.length;if(r<2)throw new z.InvalidArgument("Too few arguments");for(var o=Array(r-1);--r;)o[r-1]=arguments[r];return n=o.pop(),[e,P(o),n]}).apply(this,arguments);return this._transaction.apply(this,e)},nx.prototype._transaction=function(e,t,n){var r,o,i=this,a=ey.trans,u=(a&&a.db===this&&-1===e.indexOf("!")||(a=null),-1!==e.indexOf("?"));e=e.replace("!","").replace("?","");try{if(o=t.map(function(e){if(e=e instanceof i.Table?e.name:e,"string"!=typeof e)throw TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return e}),"r"==e||e===e0)r=e0;else{if("rw"!=e&&e!=e1)throw new z.InvalidArgument("Invalid transaction mode: "+e);r=e1}if(a){if(a.mode===e0&&r===e1){if(!u)throw new z.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");a=null}a&&o.forEach(function(e){if(a&&-1===a.storeNames.indexOf(e)){if(!u)throw new z.SubTransaction("Table "+e+" not included in parent transaction.");a=null}}),u&&a&&!a.active&&(a=null)}}catch(e){return a?a._promise(null,function(t,n){n(e)}):eG(e)}var s=(function e(t,n,r,o,i){return eg.resolve().then(function(){var a=ey.transless||ey,u=t._createTransaction(n,r,t._dbSchema,o),a=(u.explicit=!0,{trans:u,transless:a});if(o)u.idbtrans=o.idbtrans;else try{u.create(),u.idbtrans._explicit=!0,t._state.PR1398_maxLoop=3}catch(o){return o.name===V.InvalidState&&t.isOpen()&&0<--t._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),t.close({disableAutoOpen:!1}),t.open().then(function(){return e(t,n,r,null,i)})):eG(o)}var s,c=B(i),a=(c&&eN(),eg.follow(function(){var e;(s=i.call(u,u))&&(c?(e=eF.bind(null,null),s.then(e,e)):"function"==typeof s.next&&"function"==typeof s.throw&&(s=ni(s)))},a));return(s&&"function"==typeof s.then?eg.resolve(s).then(function(e){return u.active?e:eG(new z.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):a.then(function(){return s})).then(function(e){return o&&u._resolve(),u._completion.then(function(){return e})}).catch(function(e){return u._reject(e),eG(e)})})}).bind(null,this,r,o,a,n);return a?a._promise(r,s,"lock"):ey.trans?ez(ey.transless,function(){return i._whenReady(s)}):this._whenReady(s)},nx.prototype.table=function(e){if(l(this._allTables,e))return this._allTables[e];throw new z.InvalidTable("Table ".concat(e," does not exist"))};var nk=nx;function nx(e,n){var r,o,i,a,u,s=this,c=(this._middlewares={},this.verno=0,nx.dependencies),c=(this._options=n=t({addons:nx.addons,autoOpen:!0,indexedDB:c.indexedDB,IDBKeyRange:c.IDBKeyRange,cache:"cloned"},n),this._deps={indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange},n.addons),l=(this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this,{dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:$,dbReadyPromise:null,cancelOpen:$,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:n.autoOpen}),f=(l.dbReadyPromise=new eg(function(e){l.dbReadyResolve=e}),l.openCanceller=new eg(function(e,t){l.cancelOpen=t}),this._state=l,this.name=e,this.on=tr(this,"populate","blocked","versionchange","close",{ready:[et,$]}),this.once=function(e,t){var n=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];s.on(e).unsubscribe(n),t.apply(s,r)};return s.on(e,n)},this.on.ready.subscribe=b(this.on.ready.subscribe,function(e){return function(t,n){nx.vip(function(){var r=s._state;r.openComplete?(r.dbOpenError||eg.resolve().then(t),n&&e(t)):r.onReadyBeingFired?(r.onReadyBeingFired.push(t),n&&e(t)):(e(t),n||e(function e(){s.on.ready.unsubscribe(t),s.on.ready.unsubscribe(e)}))})}}),this.Collection=(r=this,to(th.prototype,function(e,t){this.db=r;var n=e3,o=null;if(t)try{n=t()}catch(e){o=e}var t=e._ctx,e=t.table,i=e.hook.reading.fire;this._ctx={table:e,index:t.index,isPrimKey:!t.index||e.schema.primKey.keyPath&&t.index===e.schema.primKey.name,range:n,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:o,or:t.or,valueMapper:i!==G?i:null}})),this.Table=(o=this,to(tn.prototype,function(e,t,n){this.db=o,this._tx=n,this.name=e,this.schema=t,this.hook=o._allTables[e]?o._allTables[e].hook:tr(null,{creating:[X,$],reading:[H,G],updating:[Z,$],deleting:[J,$]})})),this.Transaction=(i=this,to(tK.prototype,function(e,t,n,r,o){var a=this;"readonly"!==e&&t.forEach(function(e){(e=null==(e=n[e])?void 0:e.yProps)&&(t=t.concat(e.map(function(e){return e.updatesTable})))}),this.db=i,this.mode=e,this.storeNames=t,this.schema=n,this.chromeTransactionDurability=r,this.idbtrans=null,this.on=tr(this,"complete","error","abort"),this.parent=o||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new eg(function(e,t){a._resolve=e,a._reject=t}),this._completion.then(function(){a.active=!1,a.on.complete.fire()},function(e){var t=a.active;return a.active=!1,a.on.error.fire(e),a.parent?a.parent._reject(e):t&&a.idbtrans&&a.idbtrans.abort(),eG(e)})})),this.Version=(a=this,to(tH.prototype,function(e){this.db=a,this._cfg={version:e,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})),this.WhereClause=(u=this,to(t_.prototype,function(e,t,n){if(this.db=u,this._ctx={table:e,index:":id"===t?null:t,or:n},this._cmp=this._ascending=e5,this._descending=function(e,t){return e5(t,e)},this._max=function(e,t){return 0<e5(e,t)?e:t},this._min=function(e,t){return 0>e5(e,t)?e:t},this._IDBKeyRange=u._deps.IDBKeyRange,!this._IDBKeyRange)throw new z.MissingAPI})),this.on("versionchange",function(e){0<e.newVersion?console.warn("Another connection wants to upgrade database '".concat(s.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(s.name,"'. Closing db now to resume the delete request.")),s.close({disableAutoOpen:!1})}),this.on("blocked",function(e){!e.newVersion||e.newVersion<e.oldVersion?console.warn("Dexie.delete('".concat(s.name,"') was blocked")):console.warn("Upgrade '".concat(s.name,"' blocked by other connection holding version ").concat(e.oldVersion/10))}),this._maxKey=tI(n.IDBKeyRange),this._createTransaction=function(e,t,n,r){return new s.Transaction(e,t,n,s._options.chromeTransactionDurability,r)},this._fireOnBlocked=function(e){s.on("blocked").fire(e),eJ.filter(function(e){return e.name===s.name&&e!==s&&!e._state.vcFired}).map(function(t){return t.on("versionchange").fire(e)})},this.use(nh),this.use(nw),this.use(ny),this.use(nu),this.use(nl),new Proxy(this,{get:function(e,t,n){var r;return"_vip"===t||("table"===t?function(e){return n_(s.table(e),f)}:(r=Reflect.get(e,t,n))instanceof tn?n_(r,f):"tables"===t?r.map(function(e){return n_(e,f)}):"_createTransaction"===t?function(){return n_(r.apply(this,arguments),f)}:r)}}));this.vip=f,c.forEach(function(e){return e(s)})}var nO,ei="u">typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable",nP=(nS.prototype.subscribe=function(e,t,n){return this._subscribe(e&&"function"!=typeof e?e:{next:e,error:t,complete:n})},nS.prototype[ei]=function(){return this},nS);function nS(e){this._subscribe=e}try{nO={indexedDB:o.indexedDB||o.mozIndexedDB||o.webkitIndexedDB||o.msIndexedDB,IDBKeyRange:o.IDBKeyRange||o.webkitIDBKeyRange}}catch(e){nO={indexedDB:null,IDBKeyRange:null}}function nE(e){var t,n=!1,r=new nP(function(r){var o,i=B(e),a=!1,u={},s={},c={get closed(){return a},unsubscribe:function(){a||(a=!0,o&&o.abort(),f&&tE.storagemutated.unsubscribe(p))}},f=(r.start&&r.start(c),!1),h=function(){return e$(d)},p=function(e){t8(u,e),t7(s,u)&&h()},d=function(){var c,d;!a&&nO.indexedDB&&(u={},c={},o&&o.abort(),Promise.resolve((t=>{var n=eE();try{i&&eN();var r=eM(e,t);return r=i?r.finally(eF):r}finally{n&&eK()}})(d={subscr:c,signal:(o=new AbortController).signal,requery:h,querier:e,trans:null})).then(function(e){n=!0,t=e,a||d.signal.aborted||(u={},(e=>{for(var t in e)if(l(e,t))return;return 1})(s=c)||f||(tE(tP,p),f=!0),e$(function(){return!a&&r.next&&r.next(e)}))},function(e){n=!1,["DatabaseClosedError","AbortError"].includes(null==e?void 0:e.name)||a||e$(function(){a||r.error&&r.error(e)})}))};return setTimeout(h,0),c});return r.hasValue=function(){return n},r.getValue=function(){return t},r}function nK(e){var t=nA;try{nA=!0,tE.storagemutated.fire(e),nr(e,!0)}finally{nA=t}}f(nk,t(t({},S),{delete:function(e){return new nk(e,{addons:[]}).delete()},exists:function(e){return new nk(e,{addons:[]}).open().then(function(e){return e.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(e){var t,n;try{return n=(t=nk.dependencies).indexedDB,t=t.IDBKeyRange,(tX(n)?Promise.resolve(n.databases()).then(function(e){return e.map(function(e){return e.name}).filter(function(e){return e!==eZ})}):tQ(n,t).toCollection().primaryKeys()).then(e)}catch(e){return eG(new z.MissingAPI)}},defineClass:function(){return function(e){u(this,e)}},ignoreTransaction:function(e){return ey.trans?ez(ey.transless,e):e()},vip:tJ,async:function(e){return function(){try{var t=ni(e.apply(this,arguments));return t&&"function"==typeof t.then?t:eg.resolve(t)}catch(e){return eG(e)}}},spawn:function(e,t,n){try{var r=ni(e.apply(n,t||[]));return r&&"function"==typeof r.then?r:eg.resolve(r)}catch(e){return eG(e)}},currentTransaction:{get:function(){return ey.trans||null}},waitFor:function(e,t){return e=eg.resolve("function"==typeof e?nk.ignoreTransaction(e):e).timeout(t||6e4),ey.trans?ey.trans.waitFor(e):e},Promise:eg,debug:{get:function(){return en},set:function(e){en=e}},derive:d,extend:u,props:f,override:b,Events:tr,on:tE,liveQuery:nE,extendObservabilitySet:t8,getByKeyPath:_,setByKeyPath:k,delByKeyPath:function(e,t){"string"==typeof t?k(e,t,void 0):"length"in t&&[].map.call(t,function(t){k(e,t,void 0)})},shallowClone:x,deepClone:j,getObjectDiff:ns,cmp:e5,asap:w,minKey:-1/0,addons:[],connections:eJ,errnames:V,dependencies:nO,cache:t9,semVer:"4.3.0",version:"4.3.0".split(".").map(function(e){return parseInt(e)}).reduce(function(e,t,n){return e+t/Math.pow(10,2*n)})})),nk.maxKey=tI(nk.dependencies.IDBKeyRange),"u">typeof dispatchEvent&&"u">typeof addEventListener&&(tE(tP,function(e){nA||(e=new CustomEvent(tS,{detail:e}),nA=!0,dispatchEvent(e),nA=!1)}),addEventListener(tS,function(e){e=e.detail,nA||nK(e)}));var nj,nA=!1,nC=function(){};return"u">typeof BroadcastChannel&&((nC=function(){(nj=new BroadcastChannel(tS)).onmessage=function(e){return e.data&&nK(e.data)}})(),"function"==typeof nj.unref&&nj.unref(),tE(tP,function(e){nA||nj.postMessage(e)})),"u">typeof addEventListener&&(addEventListener("pagehide",function(e){if(!nk.disableBfCache&&e.persisted){en&&console.debug("Dexie: handling persisted pagehide"),null!=nj&&nj.close();for(var t=0;t<eJ.length;t++)eJ[t].close({disableAutoOpen:!1})}}),addEventListener("pageshow",function(e){!nk.disableBfCache&&e.persisted&&(en&&console.debug("Dexie: handling persisted pageshow"),nC(),nK({all:new t0(-1/0,[[]])}))})),eg.rejectionMapper=function(e,t){return!e||e instanceof F||e instanceof TypeError||e instanceof SyntaxError||!e.name||!Y[e.name]?e:(t=new Y[e.name](t||e.message,e),"stack"in e&&p(t,"stack",{get:function(){return this.inner.stack}}),t)},t(nk,Object.freeze({__proto__:null,Dexie:nk,Entity:e6,PropModification:te,RangeSet:t0,add:function(e){return new te({add:e})},cmp:e5,default:nk,liveQuery:nE,mergeRanges:t2,rangesOverlap:t3,remove:function(e){return new te({remove:e})},replacePrefix:function(e,t){return new te({replacePrefix:[e,t]})}}),{default:nk}),nk}()},7246(e,t,n){n.d(t,{getMDNWorker:()=>l});var r=n(85743),o=n(65635);function i(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){n(e);return}u.done?t(s):Promise.resolve(s).then(r,o)}function a(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function u(e){i(a,r,o,u,s,"next",e)}function s(e){i(a,r,o,u,s,"throw",e)}u(void 0)})}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(a,"next",{value:s(0)}),u(a,"throw",{value:s(1)}),u(a,"return",{value:s(2)}),"function"==typeof Symbol&&u(a,Symbol.iterator,{value:function(){return this}}),a;function s(u){return function(s){var c=[u,s];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var c=function(){"use strict";var e;function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");u(this,"settings",void 0),u(this,"registered",void 0),u(this,"timeout",void 0),u(this,"keepAlive",void 0),this.settings=this.offlineSettings(),this.registered=!1,this.timeout=null,this.keepAlive=null,this.settings.autoUpdates&&this.autoUpdate(),this.settings.offline?this.enableServiceWorker(this.settings.preferOnline?o.Rh.PreferOnline:o.Rh.PreferOffline):this.disableServiceWorker()}return e=[{key:"autoUpdate",value:function(){var e=this;console.log("running auto update"),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.update(),this.timeout=setTimeout(function(){return e.autoUpdate()},36e5)}},{key:"messageHandler",value:function(e){"pong"===e.data.type?console.log("pong"):console.log("unknown message")}},{key:"controller",value:function(){return navigator.serviceWorker.controller}},{key:"checkForUpdate",value:function(){var e;null==(e=this.controller())||e.postMessage({type:"checkForUpdate"})}},{key:"update",value:function(){var e;null==(e=this.controller())||e.postMessage({type:"update"})}},{key:"swName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return"/service-worker.js?type=".concat(null!=e?e:o.Rh.PreferOnline)}},{key:"registerMessageHandler",value:function(){var e=this;navigator.serviceWorker.addEventListener("message",function(t){return e.messageHandler(t)})}},{key:"enableServiceWorker",value:function(e){return a(function(){return s(this,function(t){switch(t.label){case 0:if(!("serviceWorker"in navigator&&!this.registered))return[3,2];return[4,navigator.serviceWorker.register(this.swName(e),{scope:"/"})];case 1:t.sent(),this.registered=!0,t.label=2;case 2:return this.registerMessageHandler(),[2]}})}).call(this)}},{key:"cleanDb",value:function(){o.Gj.delete()}},{key:"disableServiceWorker",value:function(){return a(function(){var e;return s(this,function(t){switch(t.label){case 0:if(!("serviceWorker"in navigator))return[3,3];return[4,navigator.serviceWorker.getRegistration()];case 1:return[4,null==(e=t.sent())?void 0:e.unregister()];case 2:t.sent(),this.registered=!1,t.label=3;case 3:return[2]}})}).call(this)}},{key:"toggleKeepAlive",value:function(e){var t=this;this.keepAlive&&!e?(console.log("[worker] keepalive -> enabling"),clearInterval(this.keepAlive),this.keepAlive=null):e&&!this.keepAlive&&(console.log("[worker] keepalive -> disabling"),this.keepAlive=setInterval(function(){var e;return null==(e=t.controller())?void 0:e.postMessage({type:"keepalive"})},1e4))}},{key:"status",value:function(){return a(function(){return s(this,function(e){switch(e.label){case 0:return[4,(0,o.A6)()];case 1:return[2,e.sent()]}})})()}},{key:"offlineSettings",value:function(){return r.tc.read()}},{key:"setOfflineSettings",value:function(e){return a(function(){var t;return s(this,function(n){switch(n.label){case 0:if(!(!(t=this.offlineSettings()).offline&&e.offline))return[3,3];return[4,this.disableServiceWorker()];case 1:return n.sent(),[4,this.enableServiceWorker(e.preferOnline||t.preferOnline?o.Rh.PreferOnline:o.Rh.PreferOffline)];case 2:return n.sent(),[3,6];case 3:if(!("preferOnline"in e&&t.preferOnline!==e.preferOnline))return[3,6];return[4,this.disableServiceWorker()];case 4:return n.sent(),[4,this.enableServiceWorker(e.preferOnline?o.Rh.PreferOnline:o.Rh.PreferOffline)];case 5:n.sent(),n.label=6;case 6:if(!(t.offline&&!1===e.offline))return[3,8];return[4,this.disableServiceWorker()];case 7:n.sent(),n.label=8;case 8:return!1===e.autoUpdates&&this.timeout?(clearTimeout(this.timeout),this.timeout=null):!0===e.autoUpdates&&!1===t.autoUpdates&&this.autoUpdate(),this.settings=new r.tc(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){u(e,t,n[t])})}return e}({},t,e)),this.settings.write(),[2,this.settings]}})}).call(this)}},{key:"clearOfflineSettings",value:function(){return a(function(){return s(this,function(e){switch(e.label){case 0:return[4,this.setOfflineSettings(new r.tc)];case 1:return e.sent(),[2]}})}).call(this)}},{key:"clear",value:function(){return a(function(){var e;return s(this,function(t){return null==(e=this.controller())||e.postMessage({type:"clear"}),[2]})}).call(this)}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,e),t}();function l(){return window.mdnWorker||(window.mdnWorker=new c),window.mdnWorker}},65635(e,t,n){n.d(t,{Jz:()=>P,A6:()=>E,Rh:()=>O,Gj:()=>S});var r,o,i=n(23744);let a=Symbol.for("Dexie"),u=globalThis[a]||(globalThis[a]=i);if(i.semVer!==u.semVer)throw Error(`Two different versions of Dexie loaded in the same app: ${i.semVer} and ${u.semVer}`);let{liveQuery:s,mergeRanges:c,rangesOverlap:l,RangeSet:f,cmp:h,Entity:p,PropModification:d,replacePrefix:y,add:v,remove:m,DexieYProvider:b}=u;function g(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){n(e);return}u.done?t(s):Promise.resolve(s).then(r,o)}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(x=function(){return!!e})()}var O=((r={}).PreferOnline="PreferOnline",r.PreferOffline="PreferOffline",r),P=((o={}).INITIAL="initial",o.IDLE="idle",o.DOWNLOAD="download",o.UNPACK="unpack",o.CLEAR="clear",o),S=new(function(e){"use strict";if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function t(){var e,n,r;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");return r=["MDNOfflineDB"],n=_(n=t),w(e=function(e,t){var n;if(t&&("object"==((n=t)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,x()?Reflect.construct(n,r||[],_(this).constructor):n.apply(this,r)),"whoami",void 0),w(e,"contentStatusHistory",void 0),e.version(1).stores({whoami:"++, username, is_authenticated, email, avatar_url, is_subscriber",collections:"url, title, created",watched:"url, title, path",notifications:"id, title, text, url, created, read, starred"}),e.version(2).stores({contentStatusHistory:"++id"}),e.version(3).stores({whoami:"++, username, is_authenticated, email, avatar_url, is_subscriber, settings"}),e}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&k(t,e),t}(u));function E(){var e;return(e=function(){return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(a,"next",{value:s(0)}),u(a,"throw",{value:s(1)}),u(a,"return",{value:s(2)}),"function"==typeof Symbol&&u(a,Symbol.iterator,{value:function(){return this}}),a;function s(u){return function(s){var c=[u,s];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(e){switch(e.label){case 0:return[4,S.contentStatusHistory.toCollection().last()];case 1:return[2,e.sent()||{phase:"initial",local:null,remote:null,progress:null,timestamp:new Date}]}})},function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){g(i,r,o,a,u,"next",e)}function u(e){g(i,r,o,a,u,"throw",e)}a(void 0)})})()}}};
|
|
2
|
+
//# sourceMappingURL=7555.7cda2207795611e9.js.map
|