@nylas/react 1.1.2 → 1.1.4
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/dist/add-circle-icon_2.entry-6753bd65.js +25 -0
- package/dist/add-circle-icon_2.entry-cd9a7f37.cjs +1 -0
- package/dist/archive-icon.entry-434d1696.js +15 -0
- package/dist/archive-icon.entry-7cb1c265.cjs +1 -0
- package/dist/arrow-icon.entry-20b50784.js +15 -0
- package/dist/{arrow-icon.entry-a924df13.cjs → arrow-icon.entry-83c3105b.cjs} +1 -1
- package/dist/bold-icon.entry-0e3d84e1.cjs +1 -0
- package/dist/bold-icon.entry-34b18d0d.js +15 -0
- package/dist/{button-component_2.entry-b9d3f6a2.cjs → button-component_2.entry-54101987.cjs} +1 -1
- package/dist/{button-component_2.entry-93aa59a2.js → button-component_2.entry-8a5e99da.js} +7 -7
- package/dist/calendar-agenda-fill-icon_51.entry-1920adc2.cjs +7 -0
- package/dist/{calendar-agenda-fill-icon_48.entry-476bc4ef.js → calendar-agenda-fill-icon_51.entry-a351dca5.js} +997 -917
- package/dist/{calendar-cancel-icon.entry-11bb8656.cjs → calendar-cancel-icon.entry-00756264.cjs} +1 -1
- package/dist/{calendar-cancel-icon.entry-ee0acc54.js → calendar-cancel-icon.entry-f83e9b41.js} +2 -2
- package/dist/{calendar-check-icon_2.entry-54a82e1e.js → calendar-check-icon_2.entry-1817540c.js} +7 -7
- package/dist/{calendar-check-icon_2.entry-14548656.cjs → calendar-check-icon_2.entry-6ac948fc.cjs} +1 -1
- package/dist/{calendar-icon.entry-29f7003b.js → calendar-icon.entry-362428bf.js} +4 -4
- package/dist/{calendar-icon.entry-1a17f887.cjs → calendar-icon.entry-68e53f52.cjs} +1 -1
- package/dist/{checkbox-component_2.entry-dfec10cb.js → checkbox-component_2.entry-0d7c1916.js} +3 -3
- package/dist/{checkbox-component_2.entry-84a17232.cjs → checkbox-component_2.entry-5ce9807d.cjs} +1 -1
- package/dist/{chevron-icon_3.entry-826e81d4.js → chevron-icon_3.entry-37c087a7.js} +8 -8
- package/dist/{chevron-icon_3.entry-5da08d02.cjs → chevron-icon_3.entry-89c52603.cjs} +1 -1
- package/dist/{clock-icon_4.entry-36d97f00.js → clock-icon_4.entry-2e78febe.js} +11 -11
- package/dist/{clock-icon_4.entry-dafdd895.cjs → clock-icon_4.entry-496058ef.cjs} +1 -1
- package/dist/{constants-50c3e067-fed7fb48.js → constants-c31dccfe-04b9cd8a.js} +2 -2
- package/dist/{constants-50c3e067-1fe54cf3.cjs → constants-c31dccfe-1a739653.cjs} +2 -2
- package/dist/{copy-icon.entry-6d1a649d.js → copy-icon.entry-6d4e05b0.js} +7 -7
- package/dist/{copy-icon.entry-eec265da.cjs → copy-icon.entry-a1baee33.cjs} +1 -1
- package/dist/delete-icon.entry-e98b336e.cjs +1 -0
- package/dist/delete-icon.entry-ea06b42a.js +15 -0
- package/dist/document-refresh-icon.entry-09750b52.cjs +1 -0
- package/dist/document-refresh-icon.entry-afae6621.js +15 -0
- package/dist/elements/index.d.ts +2 -11
- package/dist/feedbackSync-ab657d65-e650e46d.cjs +448 -0
- package/dist/feedbackSync-ab657d65-e8b7c001.js +6035 -0
- package/dist/folder-icon.entry-5c3f4e8f.cjs +1 -0
- package/dist/folder-icon.entry-6096fbf4.js +15 -0
- package/dist/forward-icon.entry-4089e3bb.cjs +1 -0
- package/dist/forward-icon.entry-da319c05.js +15 -0
- package/dist/{globe-icon.entry-154ccdb5.js → globe-icon.entry-59f4c2f9.js} +4 -4
- package/dist/{globe-icon.entry-95fc0408.cjs → globe-icon.entry-e8ca972e.cjs} +1 -1
- package/dist/{google-logo-icon_4.entry-68cfa3fe.js → google-logo-icon_4.entry-d4b8926f.js} +331 -289
- package/dist/google-logo-icon_4.entry-e2001f83.cjs +1 -0
- package/dist/inbox-icon.entry-70dae5ec.js +15 -0
- package/dist/inbox-icon.entry-80ee9082.cjs +1 -0
- package/dist/index-6b9d4b01.cjs +81 -0
- package/dist/{index-1322d804.js → index-e475e0c0.js} +3126 -3103
- package/dist/index.d.ts +1 -1
- package/dist/{index.es-79f5b771-08cc349d.cjs → index.es-b475d61f-68a74a28.cjs} +5 -5
- package/dist/{index.es-79f5b771-04cd3414.js → index.es-b475d61f-bfa2cba2.js} +125 -131
- package/dist/{info-icon_2.entry-49261a0a.js → info-icon_2.entry-2bb60213.js} +3 -3
- package/dist/{info-icon_2.entry-2af880b8.cjs → info-icon_2.entry-f1b1dfba.cjs} +1 -1
- package/dist/{input-color-picker.entry-aefe0e26.js → input-color-picker.entry-5ae45a9e.js} +3 -3
- package/dist/{input-color-picker.entry-57adff77.cjs → input-color-picker.entry-b669f7fb.cjs} +1 -1
- package/dist/{input-component.entry-d7c2724b.js → input-component.entry-cb958501.js} +2 -2
- package/dist/{input-component.entry-09c3c9b6.cjs → input-component.entry-eeb95361.cjs} +1 -1
- package/dist/{input-dropdown.entry-e7d26273.cjs → input-dropdown.entry-0b458f68.cjs} +1 -1
- package/dist/{input-dropdown.entry-e573ade0.js → input-dropdown.entry-962605f8.js} +4 -4
- package/dist/italic-icon.entry-4a89e289.cjs +1 -0
- package/dist/italic-icon.entry-5be07509.js +15 -0
- package/dist/{multi-select-dropdown.entry-15cacb87.js → multi-select-dropdown.entry-3084e1fc.js} +5 -5
- package/dist/{multi-select-dropdown.entry-46b2b1c9.cjs → multi-select-dropdown.entry-a66408a2.cjs} +1 -1
- package/dist/nylas-booked-event-card_12.entry-227ccf31.cjs +1 -0
- package/dist/{nylas-booked-event-card_12.entry-3921071a.js → nylas-booked-event-card_12.entry-29e2a4b1.js} +84 -81
- package/dist/{nylas-form-card.entry-ca835017.js → nylas-form-card.entry-33b4c295.js} +15 -15
- package/dist/{nylas-form-card.entry-db3f0e3b.cjs → nylas-form-card.entry-8465eccf.cjs} +1 -1
- package/dist/{nylas-if-state.entry-4159d41d.js → nylas-if-state.entry-9d96fc87.js} +2 -2
- package/dist/{nylas-if-state.entry-5410607c.cjs → nylas-if-state.entry-adb6103a.cjs} +1 -1
- package/dist/{nylas-login.entry-590e7fba.js → nylas-login.entry-3f7c195e.js} +7 -7
- package/dist/{nylas-login.entry-f1d7bc7d.cjs → nylas-login.entry-78b968d1.cjs} +1 -1
- package/dist/nylas-provider.entry-19635620.js +264 -0
- package/dist/nylas-provider.entry-b918d0f6.cjs +1 -0
- package/dist/nylas-reminder-emails.entry-ec79b757.js +168 -0
- package/dist/nylas-reminder-emails.entry-ee76db24.cjs +4 -0
- package/dist/{nylas-reminder-time_2.entry-0357f280.js → nylas-reminder-time_2.entry-105de2d0.js} +42 -39
- package/dist/nylas-reminder-time_2.entry-83ecc1d4.cjs +1 -0
- package/dist/{nylas-scheduler-editor.entry-d2c3bddc.cjs → nylas-scheduler-editor.entry-cfed7ae2.cjs} +2 -2
- package/dist/{nylas-scheduler-editor.entry-6bb290ed.js → nylas-scheduler-editor.entry-e848771f.js} +7 -7
- package/dist/nylas-scheduling.entry-da987c02.js +400 -0
- package/dist/nylas-scheduling.entry-e989cf9e.cjs +1 -0
- package/dist/{nylas-time-window-picker.entry-1b449403.cjs → nylas-time-window-picker.entry-1f76b577.cjs} +1 -1
- package/dist/{nylas-time-window-picker.entry-260f52a6.js → nylas-time-window-picker.entry-3c6b29d9.js} +20 -20
- package/dist/{person-icon.entry-ed6786db.js → person-icon.entry-79fcd9fb.js} +4 -4
- package/dist/{person-icon.entry-b4ce06b7.cjs → person-icon.entry-82bbb87c.cjs} +1 -1
- package/dist/play-icon.entry-3f357ea4.cjs +1 -0
- package/dist/play-icon.entry-97b40470.js +15 -0
- package/dist/react.cjs +1 -1
- package/dist/react.js +109 -118
- package/dist/{refresh-icon.entry-87af05b0.js → refresh-icon.entry-1427a5e6.js} +5 -5
- package/dist/{refresh-icon.entry-21ac359d.cjs → refresh-icon.entry-7ce5ec90.cjs} +1 -1
- package/dist/{register-component-ea95564d-a64ee107.cjs → register-component-679c1308-b5a96acf.cjs} +1 -1
- package/dist/{register-component-ea95564d-843da1da.js → register-component-679c1308-de697ecb.js} +1 -1
- package/dist/reply-all-icon.entry-cf8114db.cjs +1 -0
- package/dist/reply-all-icon.entry-f1165660.js +15 -0
- package/dist/reply-icon.entry-3a601cff.js +15 -0
- package/dist/reply-icon.entry-3db337c9.cjs +1 -0
- package/dist/{scheduler-config-store-2a3b403d-8553b685.js → scheduler-config-store-2a3b403d-e5210f72.js} +1 -1
- package/dist/{scheduler-config-store-2a3b403d-88840eb1.cjs → scheduler-config-store-2a3b403d-e6f5bcab.cjs} +1 -1
- package/dist/scheduler-store-908886c8-62d14677.cjs +1 -0
- package/dist/{scheduler-store-9ff4914b-d1a624f8.js → scheduler-store-908886c8-b0f43cb9.js} +2 -2
- package/dist/sent-icon.entry-2c7bd48e.js +15 -0
- package/dist/sent-icon.entry-708b9a2b.cjs +1 -0
- package/dist/spam-icon.entry-3106ed3d.js +15 -0
- package/dist/spam-icon.entry-fa8b80c6.cjs +1 -0
- package/dist/star-icon.entry-88501c8b.cjs +1 -0
- package/dist/star-icon.entry-b15601ca.js +15 -0
- package/dist/stop-icon.entry-3475e257.cjs +1 -0
- package/dist/stop-icon.entry-f926a8db.js +15 -0
- package/dist/{textarea-component.entry-cbffb0b0.cjs → textarea-component.entry-683c2959.cjs} +1 -1
- package/dist/{textarea-component.entry-dad42f20.js → textarea-component.entry-d1f4dd9a.js} +2 -2
- package/dist/{time-period-selector.entry-e54d0989.cjs → time-period-selector.entry-8cfdf750.cjs} +1 -1
- package/dist/{time-period-selector.entry-79c94da3.js → time-period-selector.entry-e97f86fd.js} +2 -2
- package/dist/{translate-icon.entry-ef6266c4.js → translate-icon.entry-09c5574f.js} +2 -2
- package/dist/{translate-icon.entry-8e9eeeba.cjs → translate-icon.entry-5757c37c.cjs} +1 -1
- package/dist/trash-fill-icon.entry-470ec1ff.js +15 -0
- package/dist/trash-fill-icon.entry-4bbfabcc.cjs +1 -0
- package/dist/underline-icon.entry-6d729068.cjs +1 -0
- package/dist/underline-icon.entry-9fe74ba7.js +15 -0
- package/dist/{warning-icon.entry-34c85de2.cjs → warning-icon.entry-c1d48318.cjs} +1 -1
- package/dist/{warning-icon.entry-adf18211.js → warning-icon.entry-d924f8f9.js} +5 -5
- package/package.json +2 -2
- package/dist/add-circle-icon_2.entry-611be49d.js +0 -25
- package/dist/add-circle-icon_2.entry-f1383568.cjs +0 -1
- package/dist/archive-icon_7.entry-59cc6868.cjs +0 -1
- package/dist/archive-icon_7.entry-5e6ba9e7.js +0 -75
- package/dist/arrow-icon.entry-9c19a803.js +0 -15
- package/dist/bold-icon_3.entry-2935a3df.js +0 -35
- package/dist/bold-icon_3.entry-ffe02f93.cjs +0 -1
- package/dist/calendar-agenda-fill-icon_48.entry-c4ea84b3.cjs +0 -7
- package/dist/delete-icon_2.entry-160ba41e.cjs +0 -1
- package/dist/delete-icon_2.entry-528a3879.js +0 -25
- package/dist/document-refresh-icon.entry-276704dc.cjs +0 -1
- package/dist/document-refresh-icon.entry-6565f3b5.js +0 -15
- package/dist/elements-dc5b338e-2d3857dc.js +0 -28031
- package/dist/elements-dc5b338e-b06b2857.cjs +0 -16516
- package/dist/flow-40ff9cea-6f8c30e2.cjs +0 -9
- package/dist/flow-40ff9cea-ee70fdf5.js +0 -505
- package/dist/focus-visible-e8093c16-47e61336.cjs +0 -1
- package/dist/focus-visible-e8093c16-6f68eb89.js +0 -84
- package/dist/forward-icon_6.entry-ed6ab66a.js +0 -953
- package/dist/forward-icon_6.entry-fed8994d.cjs +0 -3
- package/dist/google-logo-icon_4.entry-afffb209.cjs +0 -1
- package/dist/index-c4e817ef.cjs +0 -82
- package/dist/mailbox-store-9c52a3fa-27f8f7e6.js +0 -380
- package/dist/mailbox-store-9c52a3fa-6b39645f.cjs +0 -1
- package/dist/nylas-booked-event-card_12.entry-47c5381d.cjs +0 -1
- package/dist/nylas-list-folders.entry-0f143930.cjs +0 -1
- package/dist/nylas-list-folders.entry-6b4a3d96.js +0 -120
- package/dist/nylas-list-threads.entry-62108562.js +0 -70
- package/dist/nylas-list-threads.entry-68b6f32b.cjs +0 -1
- package/dist/nylas-mailbox-pagination.entry-8377fdee.cjs +0 -1
- package/dist/nylas-mailbox-pagination.entry-ba1af8fb.js +0 -101
- package/dist/nylas-mailbox-toolbar-button.entry-4497acd0.js +0 -82
- package/dist/nylas-mailbox-toolbar-button.entry-6a5d8387.cjs +0 -1
- package/dist/nylas-mailbox.entry-917c22f5.js +0 -134
- package/dist/nylas-mailbox.entry-a07652b4.cjs +0 -1
- package/dist/nylas-provider.entry-0e520ac3.cjs +0 -1
- package/dist/nylas-provider.entry-20c47b14.js +0 -145
- package/dist/nylas-reminder-emails.entry-088ee120.js +0 -129
- package/dist/nylas-reminder-emails.entry-69626e7f.cjs +0 -4
- package/dist/nylas-reminder-time_2.entry-b5c181db.cjs +0 -1
- package/dist/nylas-scheduling.entry-bc9c25c5.js +0 -359
- package/dist/nylas-scheduling.entry-dc92d5e7.cjs +0 -1
- package/dist/nylas-threads-refresh.entry-45d7d171.js +0 -74
- package/dist/nylas-threads-refresh.entry-6636e7b1.cjs +0 -1
- package/dist/nylas-threads-search.entry-4460aa9b.js +0 -69
- package/dist/nylas-threads-search.entry-ae87695a.cjs +0 -1
- package/dist/nylas-view-thread.entry-5821630b.js +0 -203
- package/dist/nylas-view-thread.entry-5a9b353a.cjs +0 -1
- package/dist/play-icon_2.entry-261ea828.js +0 -25
- package/dist/play-icon_2.entry-87fe39a9.cjs +0 -1
- package/dist/scheduler-store-9ff4914b-63dc472a.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { l as nr, d as T, u as rr, m as hn } from "./index-e475e0c0.js";
|
|
2
2
|
class sr {
|
|
3
3
|
constructor(e, n, r = !0, s) {
|
|
4
4
|
this.automaticComponentRegistration = !0, this.registeredComponents = {}, this.propStateRegistrations = /* @__PURE__ */ new Map(), this.eventListenerRegistrations = /* @__PURE__ */ new Map(), this.host = e, this.stores = n, this.automaticComponentRegistration = r, this.eventOverrides = s, T(`[${this.hostTagName}] Initializing (abstract) provider.`, { eventOverrides: s }), this.registerComponent = this.registerComponent.bind(this), this.getStore = this.getStore.bind(this), Object.keys(this.stores).forEach((i) => {
|
|
@@ -165,20 +165,15 @@ class sr {
|
|
|
165
165
|
}
|
|
166
166
|
class ns extends sr {
|
|
167
167
|
}
|
|
168
|
-
var ir = Object.defineProperty, or = (t, e, n) => e in t ? ir(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n,
|
|
168
|
+
var ir = Object.defineProperty, or = (t, e, n) => e in t ? ir(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Et = (t, e, n) => (or(t, typeof e != "symbol" ? e + "" : e, n), n), ar = /* @__PURE__ */ ((t) => (t.Error = "error", t.Warning = "warning", t.Info = "info", t.Success = "success", t))(ar || {});
|
|
169
169
|
const rs = (t) => t !== null && typeof t == "object" && "error" in t;
|
|
170
|
-
class ss extends Error {
|
|
171
|
-
constructor(e) {
|
|
172
|
-
super(e == null ? void 0 : e.message), ut(this, "apiError"), this.name = "NylasAPIError", this.stack = new Error().stack, this.apiError = e;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
170
|
async function dn(t) {
|
|
176
171
|
const e = new TextEncoder().encode(t), n = await crypto.subtle.digest("SHA-256", e), r = Array.from(new Uint8Array(n)).map((s) => s.toString(16).padStart(2, "0")).join("");
|
|
177
172
|
return btoa(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
178
173
|
}
|
|
179
|
-
const K = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : nr,
|
|
174
|
+
const K = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : nr, N = Object.keys, M = Array.isArray;
|
|
180
175
|
function U(t, e) {
|
|
181
|
-
return typeof e != "object" ||
|
|
176
|
+
return typeof e != "object" || N(e).forEach(function(n) {
|
|
182
177
|
t[n] = e[n];
|
|
183
178
|
}), t;
|
|
184
179
|
}
|
|
@@ -188,7 +183,7 @@ function z(t, e) {
|
|
|
188
183
|
return ur.call(t, e);
|
|
189
184
|
}
|
|
190
185
|
function Pe(t, e) {
|
|
191
|
-
typeof e == "function" && (e = e(Be(t))), (typeof Reflect > "u" ?
|
|
186
|
+
typeof e == "function" && (e = e(Be(t))), (typeof Reflect > "u" ? N : Reflect.ownKeys)(e).forEach((n) => {
|
|
192
187
|
ee(t, n, e[n]);
|
|
193
188
|
});
|
|
194
189
|
}
|
|
@@ -207,7 +202,7 @@ function Jt(t, e) {
|
|
|
207
202
|
return lr(t, e) || (n = Be(t)) && Jt(n, e);
|
|
208
203
|
}
|
|
209
204
|
const cr = [].slice;
|
|
210
|
-
function
|
|
205
|
+
function ut(t, e, n) {
|
|
211
206
|
return cr.call(t, e, n);
|
|
212
207
|
}
|
|
213
208
|
function En(t, e) {
|
|
@@ -363,21 +358,21 @@ var Rn = ["Unknown", "Constraint", "Data", "TransactionInactive", "ReadOnly", "V
|
|
|
363
358
|
function xe(t, e) {
|
|
364
359
|
this._e = Ee(), this.name = t, this.message = e;
|
|
365
360
|
}
|
|
366
|
-
function
|
|
361
|
+
function $n(t, e) {
|
|
367
362
|
return t + ". Errors: " + Object.keys(e).map((n) => e[n].toString()).filter((n, r, s) => s.indexOf(n) === r).join(`
|
|
368
363
|
`);
|
|
369
364
|
}
|
|
370
|
-
function
|
|
371
|
-
this._e = Ee(), this.failures = e, this.failedKeys = r, this.successCount = n, this.message =
|
|
365
|
+
function lt(t, e, n, r) {
|
|
366
|
+
this._e = Ee(), this.failures = e, this.failedKeys = r, this.successCount = n, this.message = $n(t, e);
|
|
372
367
|
}
|
|
373
368
|
function je(t, e) {
|
|
374
|
-
this._e = Ee(), this.name = "BulkError", this.failures = Object.keys(e).map((n) => e[n]), this.failuresByPos = e, this.message =
|
|
369
|
+
this._e = Ee(), this.name = "BulkError", this.failures = Object.keys(e).map((n) => e[n]), this.failuresByPos = e, this.message = $n(t, e);
|
|
375
370
|
}
|
|
376
371
|
ke(xe).from(Error).extend({ stack: { get: function() {
|
|
377
372
|
return this._stack || (this._stack = this.name + ": " + this.message + Ot(this._e, 2));
|
|
378
373
|
} }, toString: function() {
|
|
379
374
|
return this.name + ": " + this.message;
|
|
380
|
-
} }), ke(
|
|
375
|
+
} }), ke(lt).from(xe), ke(je).from(xe);
|
|
381
376
|
var tn = en.reduce((t, e) => (t[e] = e + "Error", t), {});
|
|
382
377
|
const yr = xe;
|
|
383
378
|
var C = en.reduce((t, e) => {
|
|
@@ -450,15 +445,15 @@ function nn(t, e) {
|
|
|
450
445
|
return e.apply(this, arguments);
|
|
451
446
|
};
|
|
452
447
|
}
|
|
453
|
-
tt.ModifyError =
|
|
448
|
+
tt.ModifyError = lt, tt.DexieError = xe, tt.BulkError = je;
|
|
454
449
|
var Me = {};
|
|
455
|
-
const
|
|
450
|
+
const Nn = 100, [It, ct, Kt] = typeof Promise > "u" ? [] : (() => {
|
|
456
451
|
let t = Promise.resolve();
|
|
457
452
|
if (typeof crypto > "u" || !crypto.subtle)
|
|
458
453
|
return [t, Be(t), t];
|
|
459
454
|
const e = crypto.subtle.digest("SHA-512", new Uint8Array([0]));
|
|
460
455
|
return [e, Be(e), t];
|
|
461
|
-
})(), Dn =
|
|
456
|
+
})(), Dn = ct && ct.then, nt = It && It.constructor, rn = !!Kt;
|
|
462
457
|
var jt = !1, xr = Kt ? () => {
|
|
463
458
|
Kt.then(Ye);
|
|
464
459
|
} : K.setImmediate ? setImmediate.bind(null, Ye) : K.MutationObserver ? () => {
|
|
@@ -469,8 +464,8 @@ var jt = !1, xr = Kt ? () => {
|
|
|
469
464
|
} : () => {
|
|
470
465
|
setTimeout(Ye, 0);
|
|
471
466
|
}, Re = function(t, e) {
|
|
472
|
-
Ke.push([t, e]),
|
|
473
|
-
}, Rt = !0,
|
|
467
|
+
Ke.push([t, e]), ht && (xr(), ht = !1);
|
|
468
|
+
}, Rt = !0, ht = !0, de = [], rt = [], $t = null, Nt = Fe, Se = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: gn, pgp: !1, env: {}, finalize: function() {
|
|
474
469
|
this.unhandleds.forEach((t) => {
|
|
475
470
|
try {
|
|
476
471
|
gn(t[0], t[1]);
|
|
@@ -491,12 +486,12 @@ function S(t) {
|
|
|
491
486
|
this._state = null, this._value = null, ++e.ref, Fn(this, t);
|
|
492
487
|
}
|
|
493
488
|
const Dt = { get: function() {
|
|
494
|
-
var t = E, e =
|
|
489
|
+
var t = E, e = dt;
|
|
495
490
|
function n(r, s) {
|
|
496
|
-
var i = !t.global && (t !== E || e !==
|
|
491
|
+
var i = !t.global && (t !== E || e !== dt);
|
|
497
492
|
const o = i && !ne();
|
|
498
493
|
var u = new S((a, c) => {
|
|
499
|
-
sn(this, new Bn(
|
|
494
|
+
sn(this, new Bn(ft(r, t, i, o), ft(s, t, i, o), a, c, t));
|
|
500
495
|
});
|
|
501
496
|
return G && Ln(u, this), u;
|
|
502
497
|
}
|
|
@@ -528,7 +523,7 @@ function Fn(t, e) {
|
|
|
528
523
|
function Bt(t, e) {
|
|
529
524
|
if (rt.push(e), t._state === null) {
|
|
530
525
|
var n = t._lib && ze();
|
|
531
|
-
e =
|
|
526
|
+
e = Nt(e), t._state = !1, t._value = e, G && e !== null && typeof e == "object" && !e._promise && function(r, s, i) {
|
|
532
527
|
try {
|
|
533
528
|
r.apply(null, i);
|
|
534
529
|
} catch (o) {
|
|
@@ -563,7 +558,7 @@ function sn(t, e) {
|
|
|
563
558
|
}
|
|
564
559
|
function Sr(t, e, n) {
|
|
565
560
|
try {
|
|
566
|
-
|
|
561
|
+
$t = e;
|
|
567
562
|
var r, s = e._value;
|
|
568
563
|
e._state ? r = t(s) : (rt.length && (rt = []), r = t(s), rt.indexOf(s) === -1 && function(i) {
|
|
569
564
|
for (var o = de.length; o; )
|
|
@@ -573,7 +568,7 @@ function Sr(t, e, n) {
|
|
|
573
568
|
} catch (i) {
|
|
574
569
|
n.reject(i);
|
|
575
570
|
} finally {
|
|
576
|
-
|
|
571
|
+
$t = null, --fe == 0 && on(), --n.psd.ref || n.psd.finalize();
|
|
577
572
|
}
|
|
578
573
|
}
|
|
579
574
|
function qn(t, e, n) {
|
|
@@ -595,7 +590,7 @@ function Ye() {
|
|
|
595
590
|
}
|
|
596
591
|
function ze() {
|
|
597
592
|
var t = Rt;
|
|
598
|
-
return Rt = !1,
|
|
593
|
+
return Rt = !1, ht = !1, t;
|
|
599
594
|
}
|
|
600
595
|
function He() {
|
|
601
596
|
var t, e, n;
|
|
@@ -606,7 +601,7 @@ function He() {
|
|
|
606
601
|
r[0].apply(null, r[1]);
|
|
607
602
|
}
|
|
608
603
|
while (Ke.length > 0);
|
|
609
|
-
Rt = !0,
|
|
604
|
+
Rt = !0, ht = !0;
|
|
610
605
|
}
|
|
611
606
|
function on() {
|
|
612
607
|
var t = de;
|
|
@@ -674,16 +669,16 @@ From previous: `);
|
|
|
674
669
|
t.then(n, r);
|
|
675
670
|
});
|
|
676
671
|
var e = new S(Me, !0, t);
|
|
677
|
-
return Ln(e,
|
|
672
|
+
return Ln(e, $t), e;
|
|
678
673
|
}, reject: Ge, race: function() {
|
|
679
674
|
var t = J.apply(null, arguments).map(Xe);
|
|
680
675
|
return new S((e, n) => {
|
|
681
676
|
t.map((r) => S.resolve(r).then(e, n));
|
|
682
677
|
});
|
|
683
|
-
}, PSD: { get: () => E, set: (t) => E = t }, totalEchoes: { get: () =>
|
|
678
|
+
}, PSD: { get: () => E, set: (t) => E = t }, totalEchoes: { get: () => dt }, newPSD: oe, usePSD: Te, scheduler: { get: () => Re, set: (t) => {
|
|
684
679
|
Re = t;
|
|
685
|
-
} }, rejectionMapper: { get: () =>
|
|
686
|
-
|
|
680
|
+
} }, rejectionMapper: { get: () => Nt, set: (t) => {
|
|
681
|
+
Nt = t;
|
|
687
682
|
} }, follow: (t, e) => new S((n, r) => oe((s, i) => {
|
|
688
683
|
var o = E;
|
|
689
684
|
o.unhandleds = [], o.onunhandled = i, o.finalize = me(function() {
|
|
@@ -718,7 +713,7 @@ From previous: `);
|
|
|
718
713
|
});
|
|
719
714
|
}));
|
|
720
715
|
const F = { awaits: 0, echoes: 0, id: 0 };
|
|
721
|
-
var Pr = 0, it = [],
|
|
716
|
+
var Pr = 0, it = [], bt = 0, dt = 0, Er = 0;
|
|
722
717
|
function oe(t, e, n, r) {
|
|
723
718
|
var s = E, i = Object.create(s);
|
|
724
719
|
i.parent = s, i.ref = 0, i.global = !1, i.id = ++Er;
|
|
@@ -730,16 +725,16 @@ function oe(t, e, n, r) {
|
|
|
730
725
|
return i.ref === 0 && i.finalize(), u;
|
|
731
726
|
}
|
|
732
727
|
function Ce() {
|
|
733
|
-
return F.id || (F.id = ++Pr), ++F.awaits, F.echoes +=
|
|
728
|
+
return F.id || (F.id = ++Pr), ++F.awaits, F.echoes += Nn, F.id;
|
|
734
729
|
}
|
|
735
730
|
function ne() {
|
|
736
|
-
return !!F.awaits && (--F.awaits == 0 && (F.id = 0), F.echoes = F.awaits *
|
|
731
|
+
return !!F.awaits && (--F.awaits == 0 && (F.id = 0), F.echoes = F.awaits * Nn, !0);
|
|
737
732
|
}
|
|
738
733
|
function Xe(t) {
|
|
739
734
|
return F.echoes && t && t.constructor === nt ? (Ce(), t.then((e) => (ne(), e), (e) => (ne(), D(e)))) : t;
|
|
740
735
|
}
|
|
741
736
|
function Cr(t) {
|
|
742
|
-
++
|
|
737
|
+
++dt, F.echoes && --F.echoes != 0 || (F.echoes = F.id = 0), it.push(E), ae(t, !0);
|
|
743
738
|
}
|
|
744
739
|
function Tr() {
|
|
745
740
|
var t = it[it.length - 1];
|
|
@@ -747,14 +742,14 @@ function Tr() {
|
|
|
747
742
|
}
|
|
748
743
|
function ae(t, e) {
|
|
749
744
|
var n = E;
|
|
750
|
-
if ((e ? !F.echoes ||
|
|
745
|
+
if ((e ? !F.echoes || bt++ && t === E : !bt || --bt && t === E) || Vn(e ? Cr.bind(null, t) : Tr), t !== E && (E = t, n === Se && (Se.env = Un()), rn)) {
|
|
751
746
|
var r = Se.env.Promise, s = t.env;
|
|
752
|
-
|
|
747
|
+
ct.then = s.nthen, r.prototype.then = s.gthen, (n.global || t.global) && (Object.defineProperty(K, "Promise", s.PromiseProp), r.all = s.all, r.race = s.race, r.resolve = s.resolve, r.reject = s.reject, s.allSettled && (r.allSettled = s.allSettled), s.any && (r.any = s.any));
|
|
753
748
|
}
|
|
754
749
|
}
|
|
755
750
|
function Un() {
|
|
756
751
|
var t = K.Promise;
|
|
757
|
-
return rn ? { Promise: t, PromiseProp: Object.getOwnPropertyDescriptor(K, "Promise"), all: t.all, race: t.race, allSettled: t.allSettled, any: t.any, resolve: t.resolve, reject: t.reject, nthen:
|
|
752
|
+
return rn ? { Promise: t, PromiseProp: Object.getOwnPropertyDescriptor(K, "Promise"), all: t.all, race: t.race, allSettled: t.allSettled, any: t.any, resolve: t.resolve, reject: t.reject, nthen: ct.then, gthen: t.prototype.then } : {};
|
|
758
753
|
}
|
|
759
754
|
function Te(t, e, n, r, s) {
|
|
760
755
|
var i = E;
|
|
@@ -767,7 +762,7 @@ function Te(t, e, n, r, s) {
|
|
|
767
762
|
function Vn(t) {
|
|
768
763
|
Dn.call(It, t);
|
|
769
764
|
}
|
|
770
|
-
function
|
|
765
|
+
function ft(t, e, n, r) {
|
|
771
766
|
return typeof t != "function" ? t : function() {
|
|
772
767
|
var s = E;
|
|
773
768
|
n && Ce(), ae(e, !0);
|
|
@@ -780,7 +775,7 @@ function pt(t, e, n, r) {
|
|
|
780
775
|
}
|
|
781
776
|
function pn(t, e) {
|
|
782
777
|
return function(n, r) {
|
|
783
|
-
return t.call(this,
|
|
778
|
+
return t.call(this, ft(n, e), ft(r, e));
|
|
784
779
|
};
|
|
785
780
|
}
|
|
786
781
|
("" + Dn).indexOf("[native code]") === -1 && (Ce = ne = I);
|
|
@@ -823,7 +818,7 @@ function Ft(t, e, n, r) {
|
|
|
823
818
|
}
|
|
824
819
|
return t._state.dbReadyPromise.then(() => Ft(t, e, n, r));
|
|
825
820
|
}
|
|
826
|
-
const yn = "3.2.4", he = String.fromCharCode(65535), Mt = -1 / 0, X = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", Wn = "String expected.",
|
|
821
|
+
const yn = "3.2.4", he = String.fromCharCode(65535), Mt = -1 / 0, X = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", Wn = "String expected.", $e = [], gt = typeof navigator < "u" && /(MSIE|Trident|Edge)/.test(navigator.userAgent), Ar = gt, Or = gt, zn = (t) => !/(dexie\.js|dexie\.min\.js)/.test(t), yt = "__dbnames", wt = "readonly", _t = "readwrite";
|
|
827
822
|
function ge(t, e) {
|
|
828
823
|
return t ? e ? function() {
|
|
829
824
|
return t.apply(this, arguments) && e.apply(this, arguments);
|
|
@@ -856,7 +851,7 @@ class Ir {
|
|
|
856
851
|
return new this.db.WhereClause(this, e);
|
|
857
852
|
if (M(e))
|
|
858
853
|
return new this.db.WhereClause(this, `[${e.join("+")}]`);
|
|
859
|
-
const n =
|
|
854
|
+
const n = N(e);
|
|
860
855
|
if (n.length === 1)
|
|
861
856
|
return this.where(n[0]).equals(e[n[0]]);
|
|
862
857
|
const r = this.schema.indexes.concat(this.schema.primKey).filter((c) => c.compound && n.every((d) => c.keyPath.indexOf(d) >= 0) && c.keyPath.every((d) => n.indexOf(d) >= 0))[0];
|
|
@@ -948,7 +943,7 @@ class Ir {
|
|
|
948
943
|
if (r === void 0)
|
|
949
944
|
return D(new C.InvalidArgument("Given object does not contain its primary key"));
|
|
950
945
|
try {
|
|
951
|
-
typeof n != "function" ?
|
|
946
|
+
typeof n != "function" ? N(n).forEach((s) => {
|
|
952
947
|
H(e, s, n[s]);
|
|
953
948
|
}) : n(e, { value: e, primKey: r });
|
|
954
949
|
} catch {
|
|
@@ -1020,7 +1015,7 @@ class Ir {
|
|
|
1020
1015
|
});
|
|
1021
1016
|
}
|
|
1022
1017
|
}
|
|
1023
|
-
function
|
|
1018
|
+
function Ne(t) {
|
|
1024
1019
|
var e = {}, n = function(o, u) {
|
|
1025
1020
|
if (u) {
|
|
1026
1021
|
for (var a = arguments.length, c = new Array(a - 1); --a; )
|
|
@@ -1047,7 +1042,7 @@ function $e(t) {
|
|
|
1047
1042
|
} };
|
|
1048
1043
|
return e[o] = n[o] = d, d;
|
|
1049
1044
|
}
|
|
1050
|
-
|
|
1045
|
+
N(c = o).forEach(function(l) {
|
|
1051
1046
|
var h = c[l];
|
|
1052
1047
|
if (M(h))
|
|
1053
1048
|
i(l, c[l][0], c[l][1]);
|
|
@@ -1073,10 +1068,10 @@ function Oe(t, e) {
|
|
|
1073
1068
|
function be(t, e) {
|
|
1074
1069
|
return !(t.filter || t.algorithm || t.or) && (e ? t.justLimit : !t.replayFilter);
|
|
1075
1070
|
}
|
|
1076
|
-
function
|
|
1071
|
+
function kt(t, e) {
|
|
1077
1072
|
t.filter = ge(t.filter, e);
|
|
1078
1073
|
}
|
|
1079
|
-
function
|
|
1074
|
+
function xt(t, e, n) {
|
|
1080
1075
|
var r = t.replayFilter;
|
|
1081
1076
|
t.replayFilter = r ? () => ge(r(), e()) : e, t.justLimit = n && !r;
|
|
1082
1077
|
}
|
|
@@ -1229,18 +1224,18 @@ class Kr {
|
|
|
1229
1224
|
}
|
|
1230
1225
|
offset(e) {
|
|
1231
1226
|
var n = this._ctx;
|
|
1232
|
-
return e <= 0 || (n.offset += e, be(n) ?
|
|
1227
|
+
return e <= 0 || (n.offset += e, be(n) ? xt(n, () => {
|
|
1233
1228
|
var r = e;
|
|
1234
1229
|
return (s, i) => r === 0 || (r === 1 ? (--r, !1) : (i(() => {
|
|
1235
1230
|
s.advance(r), r = 0;
|
|
1236
1231
|
}), !1));
|
|
1237
|
-
}) :
|
|
1232
|
+
}) : xt(n, () => {
|
|
1238
1233
|
var r = e;
|
|
1239
1234
|
return () => --r < 0;
|
|
1240
1235
|
})), this;
|
|
1241
1236
|
}
|
|
1242
1237
|
limit(e) {
|
|
1243
|
-
return this._ctx.limit = Math.min(this._ctx.limit, e),
|
|
1238
|
+
return this._ctx.limit = Math.min(this._ctx.limit, e), xt(this._ctx, () => {
|
|
1244
1239
|
var n = e;
|
|
1245
1240
|
return function(r, s, i) {
|
|
1246
1241
|
return --n <= 0 && s(i), n >= 0;
|
|
@@ -1248,7 +1243,7 @@ class Kr {
|
|
|
1248
1243
|
}, !0), this;
|
|
1249
1244
|
}
|
|
1250
1245
|
until(e, n) {
|
|
1251
|
-
return
|
|
1246
|
+
return kt(this._ctx, function(r, s, i) {
|
|
1252
1247
|
return !e(r.value) || (s(i), n);
|
|
1253
1248
|
}), this;
|
|
1254
1249
|
}
|
|
@@ -1262,7 +1257,7 @@ class Kr {
|
|
|
1262
1257
|
}
|
|
1263
1258
|
filter(e) {
|
|
1264
1259
|
var n, r;
|
|
1265
|
-
return
|
|
1260
|
+
return kt(this._ctx, function(s) {
|
|
1266
1261
|
return e(s.value);
|
|
1267
1262
|
}), n = this._ctx, r = e, n.isMatch = ge(n.isMatch, r), this;
|
|
1268
1263
|
}
|
|
@@ -1334,7 +1329,7 @@ class Kr {
|
|
|
1334
1329
|
if (!n || !n.multi)
|
|
1335
1330
|
return this;
|
|
1336
1331
|
var r = {};
|
|
1337
|
-
return
|
|
1332
|
+
return kt(this._ctx, function(s) {
|
|
1338
1333
|
var i = s.primaryKey.toString(), o = z(r, i);
|
|
1339
1334
|
return r[i] = !0, !o;
|
|
1340
1335
|
}), this;
|
|
@@ -1346,7 +1341,7 @@ class Kr {
|
|
|
1346
1341
|
if (typeof e == "function")
|
|
1347
1342
|
s = e;
|
|
1348
1343
|
else {
|
|
1349
|
-
var i =
|
|
1344
|
+
var i = N(e), o = i.length;
|
|
1350
1345
|
s = function(p) {
|
|
1351
1346
|
for (var v = !1, y = 0; y < o; ++y) {
|
|
1352
1347
|
var g = i[y], b = e[g];
|
|
@@ -1360,7 +1355,7 @@ class Kr {
|
|
|
1360
1355
|
const f = [], m = (p, v) => {
|
|
1361
1356
|
const { failures: y, numFailures: g } = v;
|
|
1362
1357
|
h += p - g;
|
|
1363
|
-
for (let b of
|
|
1358
|
+
for (let b of N(y))
|
|
1364
1359
|
l.push(y[b]);
|
|
1365
1360
|
};
|
|
1366
1361
|
return this.clone().primaryKeys().then((p) => {
|
|
@@ -1372,17 +1367,17 @@ class Kr {
|
|
|
1372
1367
|
const R = b[_], O = { value: We(R), primKey: p[y + _] };
|
|
1373
1368
|
s.call(O, O.value, O) !== !1 && (O.value == null ? w.push(p[y + _]) : a || L(c(R), c(O.value)) === 0 ? (P.push(O.value), a && x.push(p[y + _])) : (w.push(p[y + _]), k.push(O.value)));
|
|
1374
1369
|
}
|
|
1375
|
-
const A = be(n) && n.limit === 1 / 0 && (typeof e != "function" || e ===
|
|
1370
|
+
const A = be(n) && n.limit === 1 / 0 && (typeof e != "function" || e === St) && { index: n.index, range: n.range };
|
|
1376
1371
|
return Promise.resolve(k.length > 0 && u.mutate({ trans: r, type: "add", values: k }).then((_) => {
|
|
1377
1372
|
for (let R in _.failures)
|
|
1378
1373
|
w.splice(parseInt(R), 1);
|
|
1379
1374
|
m(k.length, _);
|
|
1380
|
-
})).then(() => (P.length > 0 || A && typeof e == "object") && u.mutate({ trans: r, type: "put", keys: x, values: P, criteria: A, changeSpec: typeof e != "function" && e }).then((_) => m(P.length, _))).then(() => (w.length > 0 || A && e ===
|
|
1375
|
+
})).then(() => (P.length > 0 || A && typeof e == "object") && u.mutate({ trans: r, type: "put", keys: x, values: P, criteria: A, changeSpec: typeof e != "function" && e }).then((_) => m(P.length, _))).then(() => (w.length > 0 || A && e === St) && u.mutate({ trans: r, type: "delete", keys: w, criteria: A }).then((_) => m(w.length, _))).then(() => p.length > y + g && v(y + d));
|
|
1381
1376
|
});
|
|
1382
1377
|
};
|
|
1383
1378
|
return v(0).then(() => {
|
|
1384
1379
|
if (l.length > 0)
|
|
1385
|
-
throw new
|
|
1380
|
+
throw new lt("Error modifying one or more objects", l, h, f);
|
|
1386
1381
|
return p.length;
|
|
1387
1382
|
});
|
|
1388
1383
|
});
|
|
@@ -1394,13 +1389,13 @@ class Kr {
|
|
|
1394
1389
|
const { primaryKey: s } = e.table.core.schema, i = n;
|
|
1395
1390
|
return e.table.core.count({ trans: r, query: { index: s, range: i } }).then((o) => e.table.core.mutate({ trans: r, type: "deleteRange", range: i }).then(({ failures: u, lastResult: a, results: c, numFailures: d }) => {
|
|
1396
1391
|
if (d)
|
|
1397
|
-
throw new
|
|
1392
|
+
throw new lt("Could not delete some values", Object.keys(u).map((l) => u[l]), o - d);
|
|
1398
1393
|
return o - d;
|
|
1399
1394
|
}));
|
|
1400
|
-
}) : this.modify(
|
|
1395
|
+
}) : this.modify(St);
|
|
1401
1396
|
}
|
|
1402
1397
|
}
|
|
1403
|
-
const
|
|
1398
|
+
const St = (t, e) => e.value = null;
|
|
1404
1399
|
function jr(t, e) {
|
|
1405
1400
|
return t < e ? -1 : t === e ? 0 : 1;
|
|
1406
1401
|
}
|
|
@@ -1414,7 +1409,7 @@ function W(t, e, n) {
|
|
|
1414
1409
|
function we(t) {
|
|
1415
1410
|
return new t.Collection(t, () => Yn("")).limit(0);
|
|
1416
1411
|
}
|
|
1417
|
-
function
|
|
1412
|
+
function $r(t, e, n, r, s, i) {
|
|
1418
1413
|
for (var o = Math.min(t.length, r.length), u = -1, a = 0; a < o; ++a) {
|
|
1419
1414
|
var c = e[a];
|
|
1420
1415
|
if (c !== r[a])
|
|
@@ -1458,7 +1453,7 @@ function Ze(t, e, n, r) {
|
|
|
1458
1453
|
if (e(b, a, m))
|
|
1459
1454
|
return !0;
|
|
1460
1455
|
for (var k = null, P = m; P < l; ++P) {
|
|
1461
|
-
var x =
|
|
1456
|
+
var x = $r(g, b, u[P], a[P], o, c);
|
|
1462
1457
|
x === null && k === null ? m = P + 1 : (k === null || o(k, x) > 0) && (k = x);
|
|
1463
1458
|
}
|
|
1464
1459
|
return v(k !== null ? function() {
|
|
@@ -1612,8 +1607,8 @@ function Y(t) {
|
|
|
1612
1607
|
function qe(t) {
|
|
1613
1608
|
t.stopPropagation && t.stopPropagation(), t.preventDefault && t.preventDefault();
|
|
1614
1609
|
}
|
|
1615
|
-
const Le = "storagemutated", ie = "x-storagemutated-1", ue =
|
|
1616
|
-
class
|
|
1610
|
+
const Le = "storagemutated", ie = "x-storagemutated-1", ue = Ne(null, Le);
|
|
1611
|
+
class Nr {
|
|
1617
1612
|
_lock() {
|
|
1618
1613
|
return Ie(!E.global), ++this._reculock, this._reculock !== 1 || E.global || (E.lockOwnerFor = this), this;
|
|
1619
1614
|
}
|
|
@@ -1791,15 +1786,15 @@ function Br(t, e, n) {
|
|
|
1791
1786
|
} else {
|
|
1792
1787
|
const [q, B] = k ? b ? [m, f] : [m, null] : [f, null];
|
|
1793
1788
|
if (k)
|
|
1794
|
-
for (let
|
|
1795
|
-
w.push(x = B && B[
|
|
1789
|
+
for (let $ = 0; $ < P; ++$)
|
|
1790
|
+
w.push(x = B && B[$] !== void 0 ? g[h](q[$], B[$]) : g[h](q[$])), x.onerror = R;
|
|
1796
1791
|
else
|
|
1797
|
-
for (let
|
|
1798
|
-
w.push(x = g[h](q[
|
|
1792
|
+
for (let $ = 0; $ < P; ++$)
|
|
1793
|
+
w.push(x = g[h](q[$])), x.onerror = R;
|
|
1799
1794
|
}
|
|
1800
1795
|
const O = (q) => {
|
|
1801
1796
|
const B = q.target.result;
|
|
1802
|
-
w.forEach((
|
|
1797
|
+
w.forEach(($, ye) => $.error != null && (A[ye] = $.error)), v({ numFailures: _, failures: A, results: h === "delete" ? f : w.map(($) => $.result), lastResult: B });
|
|
1803
1798
|
};
|
|
1804
1799
|
x.onerror = (q) => {
|
|
1805
1800
|
R(q), O(q);
|
|
@@ -1856,9 +1851,9 @@ function Br(t, e, n) {
|
|
|
1856
1851
|
_.trans = l, _.stop = _.continue = _.continuePrimaryKey = _.advance = () => {
|
|
1857
1852
|
throw new Error("Cursor not started");
|
|
1858
1853
|
}, _.fail = j(y), _.next = function() {
|
|
1859
|
-
let
|
|
1860
|
-
return this.start(() =>
|
|
1861
|
-
}, _.start = (
|
|
1854
|
+
let $ = 1;
|
|
1855
|
+
return this.start(() => $-- ? this.continue() : this.stop()).then(() => this);
|
|
1856
|
+
}, _.start = ($) => {
|
|
1862
1857
|
const ye = new Promise((V, le) => {
|
|
1863
1858
|
V = j(V), w.onerror = Y(le), _.fail = le, _.stop = (Ae) => {
|
|
1864
1859
|
_.stop = _.continue = _.continuePrimaryKey = _.advance = B, V(Ae);
|
|
@@ -1866,7 +1861,7 @@ function Br(t, e, n) {
|
|
|
1866
1861
|
}), ve = () => {
|
|
1867
1862
|
if (w.result)
|
|
1868
1863
|
try {
|
|
1869
|
-
|
|
1864
|
+
$();
|
|
1870
1865
|
} catch (V) {
|
|
1871
1866
|
_.fail(V);
|
|
1872
1867
|
}
|
|
@@ -1906,7 +1901,7 @@ function Ut({ _novip: t }, e) {
|
|
|
1906
1901
|
t.core.schema.tables.some((o) => o.name === i) && (s.core = t.core.table(i), t[i] instanceof t.Table && (t[i].core = s.core));
|
|
1907
1902
|
});
|
|
1908
1903
|
}
|
|
1909
|
-
function
|
|
1904
|
+
function pt({ _novip: t }, e, n, r) {
|
|
1910
1905
|
n.forEach((s) => {
|
|
1911
1906
|
const i = r[s];
|
|
1912
1907
|
e.forEach((o) => {
|
|
@@ -1933,8 +1928,8 @@ function Mr(t, e, n, r) {
|
|
|
1933
1928
|
i.create(n), i._completion.catch(r);
|
|
1934
1929
|
const o = i._reject.bind(i), u = E.transless || E;
|
|
1935
1930
|
oe(() => {
|
|
1936
|
-
E.trans = i, E.transless = u, e === 0 ? (
|
|
1937
|
-
|
|
1931
|
+
E.trans = i, E.transless = u, e === 0 ? (N(s).forEach((a) => {
|
|
1932
|
+
Pt(n, a, s[a].primKey, s[a].indexes);
|
|
1938
1933
|
}), Ut(t, n), S.follow(() => t.on.populate.fire(i)).catch(o)) : function({ _novip: a }, c, d, l) {
|
|
1939
1934
|
const h = [], f = a._versions;
|
|
1940
1935
|
let m = a._dbSchema = zt(a, a.idbdb, l), p = !1;
|
|
@@ -1948,7 +1943,7 @@ function Mr(t, e, n, r) {
|
|
|
1948
1943
|
Ht(a, b, l), Ht(a, k, l), m = a._dbSchema = k;
|
|
1949
1944
|
const P = Jn(b, k);
|
|
1950
1945
|
P.add.forEach((w) => {
|
|
1951
|
-
|
|
1946
|
+
Pt(l, w[0], w[1].primKey, w[1].indexes);
|
|
1952
1947
|
}), P.change.forEach((w) => {
|
|
1953
1948
|
if (w.recreate)
|
|
1954
1949
|
throw new C.Upgrade("Not yet support for changing primary key");
|
|
@@ -1965,7 +1960,7 @@ function Mr(t, e, n, r) {
|
|
|
1965
1960
|
let w = An(k);
|
|
1966
1961
|
P.del.forEach((O) => {
|
|
1967
1962
|
w[O] = b[O];
|
|
1968
|
-
}), Vt(a, [a.Transaction.prototype]),
|
|
1963
|
+
}), Vt(a, [a.Transaction.prototype]), pt(a, [a.Transaction.prototype], N(w), w), d.schema = w;
|
|
1969
1964
|
const A = Zt(x);
|
|
1970
1965
|
let _;
|
|
1971
1966
|
A && Ce();
|
|
@@ -1980,12 +1975,12 @@ function Mr(t, e, n, r) {
|
|
|
1980
1975
|
}), h.push((b) => {
|
|
1981
1976
|
(!p || !Ar) && function(k, P) {
|
|
1982
1977
|
[].slice.call(P.db.objectStoreNames).forEach((x) => k[x] == null && P.db.deleteObjectStore(x));
|
|
1983
|
-
}(g._cfg.dbschema, b), Vt(a, [a.Transaction.prototype]),
|
|
1978
|
+
}(g._cfg.dbschema, b), Vt(a, [a.Transaction.prototype]), pt(a, [a.Transaction.prototype], a._storeNames, a._dbSchema), d.schema = a._dbSchema;
|
|
1984
1979
|
});
|
|
1985
1980
|
}), y().then(() => {
|
|
1986
1981
|
var g, b;
|
|
1987
|
-
b = l,
|
|
1988
|
-
b.db.objectStoreNames.contains(k) ||
|
|
1982
|
+
b = l, N(g = m).forEach((k) => {
|
|
1983
|
+
b.db.objectStoreNames.contains(k) || Pt(b, k, g[k].primKey, g[k].indexes);
|
|
1989
1984
|
});
|
|
1990
1985
|
});
|
|
1991
1986
|
}(t, e, i, n).catch(o);
|
|
@@ -2000,7 +1995,7 @@ function Jn(t, e) {
|
|
|
2000
1995
|
const s = t[r], i = e[r];
|
|
2001
1996
|
if (s) {
|
|
2002
1997
|
const o = { name: r, def: i, recreate: !1, del: [], add: [], change: [] };
|
|
2003
|
-
if ("" + (s.primKey.keyPath || "") != "" + (i.primKey.keyPath || "") || s.primKey.auto !== i.primKey.auto && !
|
|
1998
|
+
if ("" + (s.primKey.keyPath || "") != "" + (i.primKey.keyPath || "") || s.primKey.auto !== i.primKey.auto && !gt)
|
|
2004
1999
|
o.recreate = !0, n.change.push(o);
|
|
2005
2000
|
else {
|
|
2006
2001
|
const u = s.idxByName, a = i.idxByName;
|
|
@@ -2018,7 +2013,7 @@ function Jn(t, e) {
|
|
|
2018
2013
|
}
|
|
2019
2014
|
return n;
|
|
2020
2015
|
}
|
|
2021
|
-
function
|
|
2016
|
+
function Pt(t, e, n, r) {
|
|
2022
2017
|
const s = t.db.createObjectStore(e, n.keyPath ? { keyPath: n.keyPath, autoIncrement: n.auto } : { autoIncrement: n.auto });
|
|
2023
2018
|
return r.forEach((i) => Wt(s, i)), s;
|
|
2024
2019
|
}
|
|
@@ -2027,7 +2022,7 @@ function Wt(t, e) {
|
|
|
2027
2022
|
}
|
|
2028
2023
|
function zt(t, e, n) {
|
|
2029
2024
|
const r = {};
|
|
2030
|
-
return
|
|
2025
|
+
return ut(e.objectStoreNames, 0).forEach((s) => {
|
|
2031
2026
|
const i = n.objectStore(s);
|
|
2032
2027
|
let o = i.keyPath;
|
|
2033
2028
|
const u = qt(Xn(o), o || "", !1, !1, !!i.autoIncrement, o && typeof o != "string", !0), a = [];
|
|
@@ -2046,7 +2041,7 @@ function Ht({ _novip: t }, e, n) {
|
|
|
2046
2041
|
const i = r[s], o = n.objectStore(i);
|
|
2047
2042
|
t._hasGetAll = "getAll" in o;
|
|
2048
2043
|
for (let u = 0; u < o.indexNames.length; ++u) {
|
|
2049
|
-
const a = o.indexNames[u], c = o.index(a).keyPath, d = typeof c == "string" ? c : "[" +
|
|
2044
|
+
const a = o.indexNames[u], c = o.index(a).keyPath, d = typeof c == "string" ? c : "[" + ut(c).join("+") + "]";
|
|
2050
2045
|
if (e[i]) {
|
|
2051
2046
|
const l = e[i].idxByName[d];
|
|
2052
2047
|
l && (l.name = a, delete e[i].idxByName[d], e[i].idxByName[a] = l);
|
|
@@ -2057,7 +2052,7 @@ function Ht({ _novip: t }, e, n) {
|
|
|
2057
2052
|
}
|
|
2058
2053
|
class qr {
|
|
2059
2054
|
_parseStoresSpec(e, n) {
|
|
2060
|
-
|
|
2055
|
+
N(e).forEach((r) => {
|
|
2061
2056
|
if (e[r] !== null) {
|
|
2062
2057
|
var s = e[r].split(",").map((o, u) => {
|
|
2063
2058
|
const a = (o = o.trim()).replace(/([&*]|\+\+)/g, ""), c = /^\[/.test(a) ? a.match(/^\[(.*)\]$/)[1].split("+") : a;
|
|
@@ -2081,7 +2076,7 @@ class qr {
|
|
|
2081
2076
|
let i = {};
|
|
2082
2077
|
return r.forEach((o) => {
|
|
2083
2078
|
U(s, o._cfg.storesSource), i = o._cfg.dbschema = {}, o._parseStoresSpec(s, i);
|
|
2084
|
-
}), n._dbSchema = i, Vt(n, [n._allTables, n, n.Transaction.prototype]),
|
|
2079
|
+
}), n._dbSchema = i, Vt(n, [n._allTables, n, n.Transaction.prototype]), pt(n, [n._allTables, n, n.Transaction.prototype, this._cfg.tables], N(i), i), n._storeNames = N(i), this;
|
|
2085
2080
|
}
|
|
2086
2081
|
upgrade(e) {
|
|
2087
2082
|
return this._cfg.contentUpgrade = nn(this._cfg.contentUpgrade || I, e), this;
|
|
@@ -2089,7 +2084,7 @@ class qr {
|
|
|
2089
2084
|
}
|
|
2090
2085
|
function an(t, e) {
|
|
2091
2086
|
let n = t._dbNamesDB;
|
|
2092
|
-
return n || (n = t._dbNamesDB = new pe(
|
|
2087
|
+
return n || (n = t._dbNamesDB = new pe(yt, { addons: [], indexedDB: t, IDBKeyRange: e }), n.version(1).stores({ dbnames: "name" })), n.table("dbnames");
|
|
2093
2088
|
}
|
|
2094
2089
|
function un(t) {
|
|
2095
2090
|
return t && typeof t.databases == "function";
|
|
@@ -2141,14 +2136,14 @@ function Ur(t) {
|
|
|
2141
2136
|
}
|
|
2142
2137
|
}, c), l.onsuccess = j(() => {
|
|
2143
2138
|
o = null;
|
|
2144
|
-
const h = t._novip.idbdb = l.result, f =
|
|
2139
|
+
const h = t._novip.idbdb = l.result, f = ut(h.objectStoreNames);
|
|
2145
2140
|
if (f.length > 0)
|
|
2146
2141
|
try {
|
|
2147
2142
|
const p = h.transaction((m = f).length === 1 ? m[0] : m, "readonly");
|
|
2148
2143
|
e.autoSchema ? function({ _novip: v }, y, g) {
|
|
2149
2144
|
v.verno = y.version / 10;
|
|
2150
2145
|
const b = v._dbSchema = zt(0, y, g);
|
|
2151
|
-
v._storeNames =
|
|
2146
|
+
v._storeNames = ut(y.objectStoreNames, 0), pt(v, [v._allTables], N(b), b);
|
|
2152
2147
|
}(t, h, p) : (Ht(t, t._dbSchema, p), function(v, y) {
|
|
2153
2148
|
const g = Jn(zt(0, v.idbdb, y), v._dbSchema);
|
|
2154
2149
|
return !(g.add.length || g.change.some((b) => b.add.length || b.change.length));
|
|
@@ -2156,12 +2151,12 @@ function Ur(t) {
|
|
|
2156
2151
|
} catch {
|
|
2157
2152
|
}
|
|
2158
2153
|
var m;
|
|
2159
|
-
|
|
2154
|
+
$e.push(t), h.onversionchange = j((p) => {
|
|
2160
2155
|
e.vcFired = !0, t.on("versionchange").fire(p);
|
|
2161
2156
|
}), h.onclose = j((p) => {
|
|
2162
2157
|
t.on("close").fire(p);
|
|
2163
2158
|
}), u && function({ indexedDB: p, IDBKeyRange: v }, y) {
|
|
2164
|
-
!un(p) && y !==
|
|
2159
|
+
!un(p) && y !== yt && an(p, v).put({ name: y }).catch(I);
|
|
2165
2160
|
}(t._deps, d), a();
|
|
2166
2161
|
}, c);
|
|
2167
2162
|
}))]).then(() => (s(), e.onReadyBeingFired = [], S.resolve(Yt(() => t.on.ready.fire(t.vip))).then(function a() {
|
|
@@ -2266,7 +2261,7 @@ const Wr = { stack: "dbcore", name: "VirtualIndexMiddleware", level: 1, create:
|
|
|
2266
2261
|
} };
|
|
2267
2262
|
} };
|
|
2268
2263
|
function ln(t, e, n, r) {
|
|
2269
|
-
return n = n || {}, r = r || "",
|
|
2264
|
+
return n = n || {}, r = r || "", N(t).forEach((s) => {
|
|
2270
2265
|
if (z(e, s)) {
|
|
2271
2266
|
var i = t[s], o = e[s];
|
|
2272
2267
|
if (typeof i == "object" && typeof o == "object" && i && o) {
|
|
@@ -2276,7 +2271,7 @@ function ln(t, e, n, r) {
|
|
|
2276
2271
|
i !== o && (n[r + s] = e[s]);
|
|
2277
2272
|
} else
|
|
2278
2273
|
n[r + s] = void 0;
|
|
2279
|
-
}),
|
|
2274
|
+
}), N(e).forEach((s) => {
|
|
2280
2275
|
z(t, s) || (n[r + s] = e[s]);
|
|
2281
2276
|
}), n;
|
|
2282
2277
|
}
|
|
@@ -2392,9 +2387,9 @@ function Ve(t, e, n) {
|
|
|
2392
2387
|
return i ? Ve(i, e, n) : t.r = { from: e, to: n, d: 1, l: null, r: null }, xn(t);
|
|
2393
2388
|
L(e, t.from) < 0 && (t.from = e, t.l = null, t.d = i ? i.d + 1 : 1), L(n, t.to) > 0 && (t.to = n, t.r = null, t.d = t.l ? t.l.d + 1 : 1);
|
|
2394
2389
|
const o = !t.r;
|
|
2395
|
-
s && !t.l &&
|
|
2390
|
+
s && !t.l && mt(t, s), i && o && mt(t, i);
|
|
2396
2391
|
}
|
|
2397
|
-
function
|
|
2392
|
+
function mt(t, e) {
|
|
2398
2393
|
cn(e) || function n(r, { from: s, to: i, l: o, r: u }) {
|
|
2399
2394
|
Ve(r, s, i), o && n(r, o), u && n(r, u);
|
|
2400
2395
|
}(t, e);
|
|
@@ -2454,7 +2449,7 @@ function Sn({ r: t, l: e }) {
|
|
|
2454
2449
|
return (t ? e ? Math.max(t.d, e.d) : t.d : e ? e.d : 0) + 1;
|
|
2455
2450
|
}
|
|
2456
2451
|
Pe(Q.prototype, { add(t) {
|
|
2457
|
-
return
|
|
2452
|
+
return mt(this, t), this;
|
|
2458
2453
|
}, addKey(t) {
|
|
2459
2454
|
return Ve(this, t, t), this;
|
|
2460
2455
|
}, addKeys(t) {
|
|
@@ -2478,14 +2473,14 @@ const Gr = { stack: "dbcore", level: 0, create: (t) => {
|
|
|
2478
2473
|
const w = er(b, P);
|
|
2479
2474
|
w || g === "add" || y.addKeys(b), (w || k) && function(A, _, R, O) {
|
|
2480
2475
|
function q(B) {
|
|
2481
|
-
const
|
|
2476
|
+
const $ = A(B.name || "");
|
|
2482
2477
|
function ye(V) {
|
|
2483
2478
|
return V != null ? B.extractKey(V) : null;
|
|
2484
2479
|
}
|
|
2485
|
-
const ve = (V) => B.multiEntry && M(V) ? V.forEach((le) =>
|
|
2480
|
+
const ve = (V) => B.multiEntry && M(V) ? V.forEach((le) => $.addKey(le)) : $.addKey(V);
|
|
2486
2481
|
(R || O).forEach((V, le) => {
|
|
2487
|
-
const Ae = R && ye(R[le]),
|
|
2488
|
-
L(Ae,
|
|
2482
|
+
const Ae = R && ye(R[le]), vt = O && ye(O[le]);
|
|
2483
|
+
L(Ae, vt) !== 0 && (Ae != null && ve(Ae), vt != null && ve(vt));
|
|
2489
2484
|
});
|
|
2490
2485
|
}
|
|
2491
2486
|
_.indexes.forEach(q);
|
|
@@ -2501,7 +2496,7 @@ const Gr = { stack: "dbcore", level: 0, create: (t) => {
|
|
|
2501
2496
|
var m, p;
|
|
2502
2497
|
return [h, new Q((m = f.lower) !== null && m !== void 0 ? m : t.MIN_KEY, (p = f.upper) !== null && p !== void 0 ? p : t.MAX_KEY)];
|
|
2503
2498
|
}, l = { get: (h) => [o, new Q(h.key)], getMany: (h) => [o, new Q().addKeys(h.keys)], count: d, query: d, openCursor: d };
|
|
2504
|
-
return
|
|
2499
|
+
return N(l).forEach((h) => {
|
|
2505
2500
|
c[h] = function(f) {
|
|
2506
2501
|
const { subscr: m } = E;
|
|
2507
2502
|
if (m) {
|
|
@@ -2549,7 +2544,7 @@ class pe {
|
|
|
2549
2544
|
i.dbReadyResolve = u;
|
|
2550
2545
|
}), i.openCanceller = new S((u, a) => {
|
|
2551
2546
|
i.cancelOpen = a;
|
|
2552
|
-
}), this._state = i, this.name = e, this.on =
|
|
2547
|
+
}), this._state = i, this.name = e, this.on = Ne(this, "populate", "blocked", "versionchange", "close", { ready: [nn, I] }), this.on.ready.subscribe = En(this.on.ready.subscribe, (u) => (a, c) => {
|
|
2553
2548
|
pe.vip(() => {
|
|
2554
2549
|
const d = this._state;
|
|
2555
2550
|
if (d.openComplete)
|
|
@@ -2577,11 +2572,11 @@ class pe {
|
|
|
2577
2572
|
this._ctx = { table: h, index: l.index, isPrimKey: !l.index || h.schema.primKey.keyPath && l.index === h.schema.primKey.name, range: c, keysOnly: !1, dir: "next", unique: "", algorithm: null, filter: null, replayFilter: null, justLimit: !0, isMatch: null, offset: 0, limit: 1 / 0, error: d, or: l.or, valueMapper: f !== Fe ? f : null };
|
|
2578
2573
|
})), this.Table = function(u) {
|
|
2579
2574
|
return Oe(Ir.prototype, function(a, c, d) {
|
|
2580
|
-
this.db = u, this._tx = d, this.name = a, this.schema = c, this.hook = u._allTables[a] ? u._allTables[a].hook :
|
|
2575
|
+
this.db = u, this._tx = d, this.name = a, this.schema = c, this.hook = u._allTables[a] ? u._allTables[a].hook : Ne(null, { creating: [br, I], reading: [vr, Fe], updating: [_r, I], deleting: [wr, I] });
|
|
2581
2576
|
});
|
|
2582
2577
|
}(this), this.Transaction = function(u) {
|
|
2583
|
-
return Oe(
|
|
2584
|
-
this.db = u, this.mode = a, this.storeNames = c, this.schema = d, this.chromeTransactionDurability = l, this.idbtrans = null, this.on =
|
|
2578
|
+
return Oe(Nr.prototype, function(a, c, d, l, h) {
|
|
2579
|
+
this.db = u, this.mode = a, this.storeNames = c, this.schema = d, this.chromeTransactionDurability = l, this.idbtrans = null, this.on = Ne(this, "complete", "error", "abort"), this.parent = h || 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 S((f, m) => {
|
|
2585
2580
|
this._resolve = f, this._reject = m;
|
|
2586
2581
|
}), this._completion.then(() => {
|
|
2587
2582
|
this.active = !1, this.on.complete.fire();
|
|
@@ -2607,7 +2602,7 @@ class pe {
|
|
|
2607
2602
|
}), this.on("blocked", (u) => {
|
|
2608
2603
|
!u.newVersion || u.newVersion < u.oldVersion ? console.warn(`Dexie.delete('${this.name}') was blocked`) : console.warn(`Upgrade '${this.name}' blocked by other connection holding version ${u.oldVersion / 10}`);
|
|
2609
2604
|
}), this._maxKey = Ue(n.IDBKeyRange), this._createTransaction = (u, a, c, d) => new this.Transaction(u, a, c, this._options.chromeTransactionDurability, d), this._fireOnBlocked = (u) => {
|
|
2610
|
-
this.on("blocked").fire(u),
|
|
2605
|
+
this.on("blocked").fire(u), $e.filter((a) => a.name === this.name && a !== this && !a._state.vcFired).map((a) => a.on("versionchange").fire(u));
|
|
2611
2606
|
}, this.use(Wr), this.use(zr), this.use(Gr), this.use(Hr), this.vip = Object.create(this, { _vip: { value: !0 } }), s.forEach((u) => u(this));
|
|
2612
2607
|
}
|
|
2613
2608
|
version(e) {
|
|
@@ -2644,8 +2639,8 @@ class pe {
|
|
|
2644
2639
|
return Ur(this);
|
|
2645
2640
|
}
|
|
2646
2641
|
_close() {
|
|
2647
|
-
const e = this._state, n =
|
|
2648
|
-
if (n >= 0 &&
|
|
2642
|
+
const e = this._state, n = $e.indexOf(this);
|
|
2643
|
+
if (n >= 0 && $e.splice(n, 1), this.idbdb) {
|
|
2649
2644
|
try {
|
|
2650
2645
|
this.idbdb.close();
|
|
2651
2646
|
} catch {
|
|
@@ -2671,7 +2666,7 @@ class pe {
|
|
|
2671
2666
|
var o = this._deps.indexedDB.deleteDatabase(this.name);
|
|
2672
2667
|
o.onsuccess = j(() => {
|
|
2673
2668
|
(function({ indexedDB: u, IDBKeyRange: a }, c) {
|
|
2674
|
-
!un(u) && c !==
|
|
2669
|
+
!un(u) && c !== yt && an(u, a).delete(c).catch(I);
|
|
2675
2670
|
})(this._deps, this.name), r();
|
|
2676
2671
|
}), o.onerror = Y(s), o.onblocked = this._fireOnBlocked;
|
|
2677
2672
|
};
|
|
@@ -2697,7 +2692,7 @@ class pe {
|
|
|
2697
2692
|
return this._state.autoSchema;
|
|
2698
2693
|
}
|
|
2699
2694
|
get tables() {
|
|
2700
|
-
return
|
|
2695
|
+
return N(this._allTables).map((e) => this._allTables[e]);
|
|
2701
2696
|
}
|
|
2702
2697
|
transaction() {
|
|
2703
2698
|
const e = Vr.apply(this, arguments);
|
|
@@ -2715,15 +2710,15 @@ class pe {
|
|
|
2715
2710
|
if (typeof d != "string")
|
|
2716
2711
|
throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");
|
|
2717
2712
|
return d;
|
|
2718
|
-
}), e == "r" || e ===
|
|
2719
|
-
o =
|
|
2713
|
+
}), e == "r" || e === wt)
|
|
2714
|
+
o = wt;
|
|
2720
2715
|
else {
|
|
2721
|
-
if (e != "rw" && e !=
|
|
2716
|
+
if (e != "rw" && e != _t)
|
|
2722
2717
|
throw new C.InvalidArgument("Invalid transaction mode: " + e);
|
|
2723
|
-
o =
|
|
2718
|
+
o = _t;
|
|
2724
2719
|
}
|
|
2725
2720
|
if (s) {
|
|
2726
|
-
if (s.mode ===
|
|
2721
|
+
if (s.mode === wt && o === _t) {
|
|
2727
2722
|
if (!i)
|
|
2728
2723
|
throw new C.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");
|
|
2729
2724
|
s = null;
|
|
@@ -2763,8 +2758,8 @@ class Qr {
|
|
|
2763
2758
|
}
|
|
2764
2759
|
}
|
|
2765
2760
|
function tr(t, e) {
|
|
2766
|
-
return
|
|
2767
|
-
|
|
2761
|
+
return N(e).forEach((n) => {
|
|
2762
|
+
mt(t[n] || (t[n] = new Q()), e[n]);
|
|
2768
2763
|
}), t;
|
|
2769
2764
|
}
|
|
2770
2765
|
function Jr(t) {
|
|
@@ -2780,7 +2775,7 @@ function Jr(t) {
|
|
|
2780
2775
|
s.start && s.start(c);
|
|
2781
2776
|
let d = !1, l = !1;
|
|
2782
2777
|
function h() {
|
|
2783
|
-
return
|
|
2778
|
+
return N(a).some((p) => u[p] && Yr(u[p], a[p]));
|
|
2784
2779
|
}
|
|
2785
2780
|
const f = (p) => {
|
|
2786
2781
|
tr(u, p), h() && m();
|
|
@@ -2821,7 +2816,7 @@ function at(t) {
|
|
|
2821
2816
|
Pe(ce, { ...tt, delete: (t) => new ce(t, { addons: [] }).delete(), exists: (t) => new ce(t, { addons: [] }).open().then((e) => (e.close(), !0)).catch("NoSuchDatabaseError", () => !1), getDatabaseNames(t) {
|
|
2822
2817
|
try {
|
|
2823
2818
|
return function({ indexedDB: e, IDBKeyRange: n }) {
|
|
2824
|
-
return un(e) ? Promise.resolve(e.databases()).then((r) => r.map((s) => s.name).filter((s) => s !==
|
|
2819
|
+
return un(e) ? Promise.resolve(e.databases()).then((r) => r.map((s) => s.name).filter((s) => s !== yt)) : an(e, n).toCollection().primaryKeys();
|
|
2825
2820
|
}(ce.dependencies).then(t);
|
|
2826
2821
|
} catch {
|
|
2827
2822
|
return D(new C.MissingAPI());
|
|
@@ -2849,14 +2844,14 @@ Pe(ce, { ...tt, delete: (t) => new ce(t, { addons: [] }).delete(), exists: (t) =
|
|
|
2849
2844
|
return E.trans ? E.trans.waitFor(n) : n;
|
|
2850
2845
|
}, Promise: S, debug: { get: () => G, set: (t) => {
|
|
2851
2846
|
Kn(t, t === "dexie" ? () => !0 : zn);
|
|
2852
|
-
} }, derive: ke, extend: U, props: Pe, override: En, Events:
|
|
2847
|
+
} }, derive: ke, extend: U, props: Pe, override: En, Events: Ne, on: ue, liveQuery: Jr, extendObservabilitySet: tr, getByKeyPath: te, setByKeyPath: H, delByKeyPath: function(t, e) {
|
|
2853
2848
|
typeof e == "string" ? H(t, e, void 0) : "length" in e && [].map.call(e, function(n) {
|
|
2854
2849
|
H(t, n, void 0);
|
|
2855
2850
|
});
|
|
2856
|
-
}, shallowClone: An, deepClone: We, getObjectDiff: ln, cmp: L, asap: Cn, minKey: Mt, addons: [], connections:
|
|
2851
|
+
}, shallowClone: An, deepClone: We, getObjectDiff: ln, cmp: L, asap: Cn, minKey: Mt, addons: [], connections: $e, errnames: tn, dependencies: Qt, semVer: yn, version: yn.split(".").map((t) => parseInt(t)).reduce((t, e, n) => t + e / Math.pow(10, 2 * n)) }), ce.maxKey = Ue(ce.dependencies.IDBKeyRange), typeof dispatchEvent < "u" && typeof addEventListener < "u" && (ue(Le, (t) => {
|
|
2857
2852
|
if (!Z) {
|
|
2858
2853
|
let e;
|
|
2859
|
-
|
|
2854
|
+
gt ? (e = document.createEvent("CustomEvent"), e.initCustomEvent(ie, !0, !0, t)) : e = new CustomEvent(ie, { detail: t }), Z = !0, dispatchEvent(e), Z = !1;
|
|
2860
2855
|
}
|
|
2861
2856
|
}), addEventListener(ie, ({ detail: t }) => {
|
|
2862
2857
|
Z || at(t);
|
|
@@ -2896,7 +2891,7 @@ S.rejectionMapper = function(t, e) {
|
|
|
2896
2891
|
}, Kn(G, zn);
|
|
2897
2892
|
class Zr extends pe {
|
|
2898
2893
|
constructor() {
|
|
2899
|
-
super("NylasAuthDatabase"),
|
|
2894
|
+
super("NylasAuthDatabase"), Et(this, "grant"), Et(this, "pkce"), this.version(1).stores({
|
|
2900
2895
|
grant: "++id,token",
|
|
2901
2896
|
pkce: "++id,codeVerifier"
|
|
2902
2897
|
}), this.grant = this.table("grant"), this.pkce = this.table("pkce");
|
|
@@ -2904,7 +2899,7 @@ class Zr extends pe {
|
|
|
2904
2899
|
}
|
|
2905
2900
|
class es {
|
|
2906
2901
|
constructor() {
|
|
2907
|
-
|
|
2902
|
+
Et(this, "theDB"), this.theDB = new Zr();
|
|
2908
2903
|
}
|
|
2909
2904
|
async setCodeVerifier(e) {
|
|
2910
2905
|
await this.theDB.pkce.put({ id: 1, codeVerifier: e }, 1);
|
|
@@ -2924,7 +2919,7 @@ class es {
|
|
|
2924
2919
|
await this.theDB.grant.clear();
|
|
2925
2920
|
}
|
|
2926
2921
|
}
|
|
2927
|
-
function
|
|
2922
|
+
function ss(t) {
|
|
2928
2923
|
const e = "NylasAuth";
|
|
2929
2924
|
if (!t)
|
|
2930
2925
|
throw new Error("NylasAuth requires a config object");
|
|
@@ -3129,7 +3124,6 @@ function is(t) {
|
|
|
3129
3124
|
export {
|
|
3130
3125
|
ns as N,
|
|
3131
3126
|
rs as X,
|
|
3132
|
-
ss as
|
|
3133
|
-
is as e,
|
|
3127
|
+
ss as e,
|
|
3134
3128
|
ar as n
|
|
3135
3129
|
};
|