xframelib 1.1.5 → 1.1.7
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/assets/{worker-iconv-CmAR4oTq.js → worker-iconv-BhEK22Ps.js} +9 -2
- package/dist/assets/{worker-webcache-BS31iRI5.js → worker-webcache-B3DZa32n.js} +118 -117
- package/dist/assets/{worker-xmath-BSf3Zz2e.js → worker-xmath-Cm_voCMd.js} +2 -2
- package/dist/controls/FVMenu.vue.d.ts +36 -0
- package/dist/controls/index.d.ts +2 -1
- package/dist/controls/layoutcontainer/LayoutManager.d.ts +10 -10
- package/dist/controls/xwindow/XWindow.vue.d.ts +3 -3
- package/dist/directives/index.d.ts +3 -2
- package/dist/directives/tooltipDirective.d.ts +4 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +1 -1
- package/dist/utils/RouterURLTool.d.ts +1 -1
- package/package.json +16 -14
|
@@ -3,7 +3,7 @@ var t = Object.defineProperty;
|
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2019 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
-
*/ const e = Symbol("Comlink.proxy"), i = Symbol("Comlink.endpoint"), s = Symbol("Comlink.releaseProxy"), h = Symbol("Comlink.finalizer"), n = Symbol("Comlink.thrown"), r = (t) => "object" == typeof t && null !== t || "function" == typeof t, o = new Map([["proxy", {
|
|
6
|
+
*/ const e = Symbol("Comlink.proxy"), i = Symbol("Comlink.endpoint"), s = Symbol("Comlink.releaseProxy"), h = Symbol("Comlink.finalizer"), n = Symbol("Comlink.thrown"), r = (t) => "object" == typeof t && null !== t || "function" == typeof t, o = /* @__PURE__ */ new Map([["proxy", {
|
|
7
7
|
canHandle: (t) => r(t) && t[e],
|
|
8
8
|
serialize(t) {
|
|
9
9
|
const { port1: e, port2: i } = new MessageChannel();
|
|
@@ -115,7 +115,7 @@ function c(t) {
|
|
|
115
115
|
if (t) throw new Error("Proxy has been released and is not useable");
|
|
116
116
|
}
|
|
117
117
|
function u(t) {
|
|
118
|
-
return
|
|
118
|
+
return S(t, /* @__PURE__ */ new Map(), { type: "RELEASE" }).then(() => {
|
|
119
119
|
l(t);
|
|
120
120
|
});
|
|
121
121
|
}
|
|
@@ -134,7 +134,7 @@ function p(t, e, h = [], n = function() {}) {
|
|
|
134
134
|
};
|
|
135
135
|
if ("then" === n) {
|
|
136
136
|
if (0 === h.length) return { then: () => o };
|
|
137
|
-
const i =
|
|
137
|
+
const i = S(t, e, {
|
|
138
138
|
type: "GET",
|
|
139
139
|
path: h.map((t) => t.toString())
|
|
140
140
|
}).then(w);
|
|
@@ -145,7 +145,7 @@ function p(t, e, h = [], n = function() {}) {
|
|
|
145
145
|
set(i, s, n) {
|
|
146
146
|
c(r);
|
|
147
147
|
const [o, a] = m(n);
|
|
148
|
-
return
|
|
148
|
+
return S(t, e, {
|
|
149
149
|
type: "SET",
|
|
150
150
|
path: [...h, s].map((t) => t.toString()),
|
|
151
151
|
value: o
|
|
@@ -154,10 +154,10 @@ function p(t, e, h = [], n = function() {}) {
|
|
|
154
154
|
apply(s, n, o) {
|
|
155
155
|
c(r);
|
|
156
156
|
const a = h[h.length - 1];
|
|
157
|
-
if (a === i) return
|
|
157
|
+
if (a === i) return S(t, e, { type: "ENDPOINT" }).then(w);
|
|
158
158
|
if ("bind" === a) return p(t, e, h.slice(0, -1));
|
|
159
159
|
const [l, u] = g(o);
|
|
160
|
-
return
|
|
160
|
+
return S(t, e, {
|
|
161
161
|
type: "APPLY",
|
|
162
162
|
path: h.map((t) => t.toString()),
|
|
163
163
|
argumentList: l
|
|
@@ -166,7 +166,7 @@ function p(t, e, h = [], n = function() {}) {
|
|
|
166
166
|
construct(i, s) {
|
|
167
167
|
c(r);
|
|
168
168
|
const [n, o] = g(s);
|
|
169
|
-
return
|
|
169
|
+
return S(t, e, {
|
|
170
170
|
type: "CONSTRUCT",
|
|
171
171
|
path: h.map((t) => t.toString()),
|
|
172
172
|
argumentList: n
|
|
@@ -204,13 +204,13 @@ function w(t) {
|
|
|
204
204
|
case "RAW": return t.value;
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function S(t, e, i, s) {
|
|
208
208
|
return new Promise((h) => {
|
|
209
209
|
const n = new Array(4).fill(0).map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16)).join("-");
|
|
210
210
|
e.set(n, h), t.start && t.start(), t.postMessage(Object.assign({ id: n }, i), s);
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
|
-
var
|
|
213
|
+
var b = { hasSubscribers: !1 }, y = b, z = b, _ = "object" == typeof performance && performance && "function" == typeof performance.now ? performance : Date, E = () => y.hasSubscribers || z.hasSubscribers, O = /* @__PURE__ */ new Set(), A = "object" == typeof process && process ? process : {}, F = (t) => !!t && t === Math.floor(t) && t > 0 && isFinite(t), T = (t) => F(t) ? t <= Math.pow(2, 8) ? Uint8Array : t <= Math.pow(2, 16) ? Uint16Array : t <= Math.pow(2, 32) ? Uint32Array : t <= Number.MAX_SAFE_INTEGER ? x : null : null, x = class extends Array {
|
|
214
214
|
constructor(t) {
|
|
215
215
|
super(t), this.fill(0);
|
|
216
216
|
}
|
|
@@ -219,7 +219,7 @@ var S = { hasSubscribers: !1 }, b = S, _ = S, T = "object" == typeof performance
|
|
|
219
219
|
length;
|
|
220
220
|
static #t = !1;
|
|
221
221
|
static create(e) {
|
|
222
|
-
let i =
|
|
222
|
+
let i = T(e);
|
|
223
223
|
if (!i) return [];
|
|
224
224
|
t.#t = !0;
|
|
225
225
|
let s = new t(e, i);
|
|
@@ -235,7 +235,7 @@ var S = { hasSubscribers: !1 }, b = S, _ = S, T = "object" == typeof performance
|
|
|
235
235
|
pop() {
|
|
236
236
|
return this.heap[--this.length];
|
|
237
237
|
}
|
|
238
|
-
},
|
|
238
|
+
}, R = class t {
|
|
239
239
|
#t;
|
|
240
240
|
#e;
|
|
241
241
|
#i;
|
|
@@ -262,6 +262,7 @@ var S = { hasSubscribers: !1 }, b = S, _ = S, T = "object" == typeof performance
|
|
|
262
262
|
allowStaleOnFetchAbort;
|
|
263
263
|
allowStaleOnFetchRejection;
|
|
264
264
|
ignoreFetchAbort;
|
|
265
|
+
backgroundFetchSize;
|
|
265
266
|
#a;
|
|
266
267
|
#l;
|
|
267
268
|
#c;
|
|
@@ -273,20 +274,20 @@ var S = { hasSubscribers: !1 }, b = S, _ = S, T = "object" == typeof performance
|
|
|
273
274
|
#v;
|
|
274
275
|
#m;
|
|
275
276
|
#w;
|
|
276
|
-
#y;
|
|
277
277
|
#S;
|
|
278
278
|
#b;
|
|
279
|
+
#y;
|
|
280
|
+
#z;
|
|
279
281
|
#_;
|
|
280
|
-
#T;
|
|
281
282
|
#E;
|
|
282
|
-
#A;
|
|
283
283
|
#O;
|
|
284
|
+
#A;
|
|
284
285
|
static unsafeExposeInternals(t) {
|
|
285
286
|
return {
|
|
286
|
-
starts: t.#
|
|
287
|
-
ttls: t.#
|
|
288
|
-
autopurgeTimers: t.#
|
|
289
|
-
sizes: t.#
|
|
287
|
+
starts: t.#b,
|
|
288
|
+
ttls: t.#y,
|
|
289
|
+
autopurgeTimers: t.#z,
|
|
290
|
+
sizes: t.#S,
|
|
290
291
|
keyMap: t.#c,
|
|
291
292
|
keyList: t.#u,
|
|
292
293
|
valList: t.#f,
|
|
@@ -300,11 +301,11 @@ var S = { hasSubscribers: !1 }, b = S, _ = S, T = "object" == typeof performance
|
|
|
300
301
|
},
|
|
301
302
|
free: t.#m,
|
|
302
303
|
isBackgroundFetch: (e) => t.#F(e),
|
|
303
|
-
backgroundFetch: (e, i, s, h) => t.#
|
|
304
|
-
moveToTail: (e) => t.#
|
|
304
|
+
backgroundFetch: (e, i, s, h) => t.#T(e, i, s, h),
|
|
305
|
+
moveToTail: (e) => t.#x(e),
|
|
305
306
|
indexes: (e) => t.#k(e),
|
|
306
|
-
rindexes: (e) => t.#
|
|
307
|
-
isStale: (e) => t.#
|
|
307
|
+
rindexes: (e) => t.#R(e),
|
|
308
|
+
isStale: (e) => t.#C(e)
|
|
308
309
|
};
|
|
309
310
|
}
|
|
310
311
|
get max() {
|
|
@@ -335,10 +336,10 @@ var S = { hasSubscribers: !1 }, b = S, _ = S, T = "object" == typeof performance
|
|
|
335
336
|
return this.#h;
|
|
336
337
|
}
|
|
337
338
|
constructor(e) {
|
|
338
|
-
let { max: i = 0, ttl: s, ttlResolution: h = 1, ttlAutopurge: n, updateAgeOnGet: r, updateAgeOnHas: o, allowStale: a, dispose: l, onInsert: c, disposeAfter: u, noDisposeOnSet: f, noUpdateTTL: d, maxSize: p = 0, maxEntrySize: g = 0, sizeCalculation: v, fetchMethod: m, memoMethod: w, noDeleteOnFetchRejection:
|
|
339
|
-
if (void 0 !==
|
|
340
|
-
if (this.#o =
|
|
341
|
-
let C = i ?
|
|
339
|
+
let { max: i = 0, ttl: s, ttlResolution: h = 1, ttlAutopurge: n, updateAgeOnGet: r, updateAgeOnHas: o, allowStale: a, dispose: l, onInsert: c, disposeAfter: u, noDisposeOnSet: f, noUpdateTTL: d, maxSize: p = 0, maxEntrySize: g = 0, sizeCalculation: v, fetchMethod: m, memoMethod: w, noDeleteOnFetchRejection: S, noDeleteOnStaleGet: b, allowStaleOnFetchRejection: y, allowStaleOnFetchAbort: z, ignoreFetchAbort: E, backgroundFetchSize: x = 1, perf: R } = e;
|
|
340
|
+
if (this.backgroundFetchSize = x, void 0 !== R && "function" != typeof R?.now) throw new TypeError("perf option must have a now() method if specified");
|
|
341
|
+
if (this.#o = R ?? _, 0 !== i && !F(i)) throw new TypeError("max option must be a nonnegative integer");
|
|
342
|
+
let C = i ? T(i) : Array;
|
|
342
343
|
if (!C) throw new Error("invalid max value: " + i);
|
|
343
344
|
if (this.#t = i, this.#e = p, this.maxEntrySize = g || this.#e, this.sizeCalculation = v, this.sizeCalculation) {
|
|
344
345
|
if (!this.#e && !this.maxEntrySize) throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
|
|
@@ -346,20 +347,20 @@ var S = { hasSubscribers: !1 }, b = S, _ = S, T = "object" == typeof performance
|
|
|
346
347
|
}
|
|
347
348
|
if (void 0 !== w && "function" != typeof w) throw new TypeError("memoMethod must be a function if defined");
|
|
348
349
|
if (this.#r = w, void 0 !== m && "function" != typeof m) throw new TypeError("fetchMethod must be a function if specified");
|
|
349
|
-
if (this.#n = m, this.#E = !!m, this.#c = /* @__PURE__ */ new Map(), this.#u = Array.from({ length: i }).fill(void 0), this.#f = Array.from({ length: i }).fill(void 0), this.#d = new C(i), this.#p = new C(i), this.#g = 0, this.#v = 0, this.#m = k.create(i), this.#a = 0, this.#l = 0, "function" == typeof l && (this.#i = l), "function" == typeof c && (this.#s = c), "function" == typeof u ? (this.#h = u, this.#w = []) : (this.#h = void 0, this.#w = void 0), this.#
|
|
350
|
+
if (this.#n = m, this.#E = !!m, this.#c = /* @__PURE__ */ new Map(), this.#u = Array.from({ length: i }).fill(void 0), this.#f = Array.from({ length: i }).fill(void 0), this.#d = new C(i), this.#p = new C(i), this.#g = 0, this.#v = 0, this.#m = k.create(i), this.#a = 0, this.#l = 0, "function" == typeof l && (this.#i = l), "function" == typeof c && (this.#s = c), "function" == typeof u ? (this.#h = u, this.#w = []) : (this.#h = void 0, this.#w = void 0), this.#_ = !!this.#i, this.#A = !!this.#s, this.#O = !!this.#h, this.noDisposeOnSet = !!f, this.noUpdateTTL = !!d, this.noDeleteOnFetchRejection = !!S, this.allowStaleOnFetchRejection = !!y, this.allowStaleOnFetchAbort = !!z, this.ignoreFetchAbort = !!E, 0 !== this.maxEntrySize) {
|
|
350
351
|
if (0 !== this.#e && !F(this.#e)) throw new TypeError("maxSize must be a positive integer if specified");
|
|
351
352
|
if (!F(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
|
|
352
353
|
this.#j();
|
|
353
354
|
}
|
|
354
|
-
if (this.allowStale = !!a, this.noDeleteOnStaleGet = !!
|
|
355
|
+
if (this.allowStale = !!a, this.noDeleteOnStaleGet = !!b, this.updateAgeOnGet = !!r, this.updateAgeOnHas = !!o, this.ttlResolution = F(h) || 0 === h ? h : 1, this.ttlAutopurge = !!n, this.ttl = s || 0, this.ttl) {
|
|
355
356
|
if (!F(this.ttl)) throw new TypeError("ttl must be a positive integer if specified");
|
|
356
357
|
this.#D();
|
|
357
358
|
}
|
|
358
359
|
if (0 === this.#t && 0 === this.ttl && 0 === this.#e) throw new TypeError("At least one of max, maxSize, or ttl is required");
|
|
359
360
|
if (!this.ttlAutopurge && !this.#t && !this.#e) {
|
|
360
361
|
let e = "LRU_CACHE_UNBOUNDED";
|
|
361
|
-
((t) => !
|
|
362
|
-
"function" == typeof
|
|
362
|
+
((t) => !O.has(t))(e) && (O.add(e), ((t, e, i, s) => {
|
|
363
|
+
"function" == typeof A.emitWarning ? A.emitWarning(t, e, i, s) : console.error(`[${i}] ${e}: ${t}`);
|
|
363
364
|
})("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", e, t));
|
|
364
365
|
}
|
|
365
366
|
}
|
|
@@ -367,10 +368,10 @@ var S = { hasSubscribers: !1 }, b = S, _ = S, T = "object" == typeof performance
|
|
|
367
368
|
return this.#c.has(t) ? Infinity : 0;
|
|
368
369
|
}
|
|
369
370
|
#D() {
|
|
370
|
-
let t = new
|
|
371
|
-
this.#
|
|
371
|
+
let t = new x(this.#t), e = new x(this.#t);
|
|
372
|
+
this.#y = t, this.#b = e;
|
|
372
373
|
let i = this.ttlAutopurge ? Array.from({ length: this.#t }) : void 0;
|
|
373
|
-
this.#
|
|
374
|
+
this.#z = i, this.#W = (i, h, n = this.#o.now()) => {
|
|
374
375
|
e[i] = 0 !== h ? n : 0, t[i] = h, s(i, h);
|
|
375
376
|
}, this.#M = (i) => {
|
|
376
377
|
e[i] = 0 !== t[i] ? this.#o.now() : 0, s(i, t[i]);
|
|
@@ -378,7 +379,7 @@ var S = { hasSubscribers: !1 }, b = S, _ = S, T = "object" == typeof performance
|
|
|
378
379
|
let s = this.ttlAutopurge ? (t, e) => {
|
|
379
380
|
if (i?.[t] && (clearTimeout(i[t]), i[t] = void 0), e && 0 !== e && i) {
|
|
380
381
|
let s = setTimeout(() => {
|
|
381
|
-
this.#
|
|
382
|
+
this.#C(t) && this.#L(this.#u[t], "expire");
|
|
382
383
|
}, e + 1);
|
|
383
384
|
s.unref && s.unref(), i[t] = s;
|
|
384
385
|
}
|
|
@@ -404,7 +405,7 @@ var S = { hasSubscribers: !1 }, b = S, _ = S, T = "object" == typeof performance
|
|
|
404
405
|
if (void 0 === s) return 0;
|
|
405
406
|
let r = t[s], o = e[s];
|
|
406
407
|
return r && o ? r - ((h || n()) - o) : Infinity;
|
|
407
|
-
}, this.#
|
|
408
|
+
}, this.#C = (i) => {
|
|
408
409
|
let s = e[i], r = t[i];
|
|
409
410
|
return !!r && !!s && (h || n()) - s > r;
|
|
410
411
|
};
|
|
@@ -412,14 +413,14 @@ var S = { hasSubscribers: !1 }, b = S, _ = S, T = "object" == typeof performance
|
|
|
412
413
|
#M = () => {};
|
|
413
414
|
#G = () => {};
|
|
414
415
|
#W = () => {};
|
|
415
|
-
#
|
|
416
|
+
#C = () => !1;
|
|
416
417
|
#j() {
|
|
417
|
-
let t = new
|
|
418
|
-
this.#l = 0, this.#
|
|
418
|
+
let t = new x(this.#t);
|
|
419
|
+
this.#l = 0, this.#S = t, this.#U = (e) => {
|
|
419
420
|
this.#l -= t[e], t[e] = 0;
|
|
420
421
|
}, this.#P = (t, e, i, s) => {
|
|
421
|
-
if (this.#F(e)) return 0;
|
|
422
422
|
if (!F(i)) {
|
|
423
|
+
if (this.#F(e)) return this.backgroundFetchSize;
|
|
423
424
|
if (!s) throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
|
|
424
425
|
if ("function" != typeof s) throw new TypeError("sizeCalculation must be a function");
|
|
425
426
|
if (i = s(e, t), !F(i)) throw new TypeError("sizeCalculation return invalid (expect positive integer)");
|
|
@@ -440,10 +441,10 @@ var S = { hasSubscribers: !1 }, b = S, _ = S, T = "object" == typeof performance
|
|
|
440
441
|
return 0;
|
|
441
442
|
};
|
|
442
443
|
*#k({ allowStale: t = this.allowStale } = {}) {
|
|
443
|
-
if (this.#a) for (let e = this.#v; this.#H(e) && ((t || !this.#
|
|
444
|
+
if (this.#a) for (let e = this.#v; this.#H(e) && ((t || !this.#C(e)) && (yield e), e !== this.#g);) e = this.#p[e];
|
|
444
445
|
}
|
|
445
|
-
*#
|
|
446
|
-
if (this.#a) for (let e = this.#g; this.#H(e) && ((t || !this.#
|
|
446
|
+
*#R({ allowStale: t = this.allowStale } = {}) {
|
|
447
|
+
if (this.#a) for (let e = this.#g; this.#H(e) && ((t || !this.#C(e)) && (yield e), e !== this.#v);) e = this.#d[e];
|
|
447
448
|
}
|
|
448
449
|
#H(t) {
|
|
449
450
|
return void 0 !== t && this.#c.get(this.#u[t]) === t;
|
|
@@ -452,7 +453,7 @@ var S = { hasSubscribers: !1 }, b = S, _ = S, T = "object" == typeof performance
|
|
|
452
453
|
for (let t of this.#k()) void 0 !== this.#f[t] && void 0 !== this.#u[t] && !this.#F(this.#f[t]) && (yield [this.#u[t], this.#f[t]]);
|
|
453
454
|
}
|
|
454
455
|
*rentries() {
|
|
455
|
-
for (let t of this.#
|
|
456
|
+
for (let t of this.#R()) void 0 !== this.#f[t] && void 0 !== this.#u[t] && !this.#F(this.#f[t]) && (yield [this.#u[t], this.#f[t]]);
|
|
456
457
|
}
|
|
457
458
|
*keys() {
|
|
458
459
|
for (let t of this.#k()) {
|
|
@@ -461,7 +462,7 @@ var S = { hasSubscribers: !1 }, b = S, _ = S, T = "object" == typeof performance
|
|
|
461
462
|
}
|
|
462
463
|
}
|
|
463
464
|
*rkeys() {
|
|
464
|
-
for (let t of this.#
|
|
465
|
+
for (let t of this.#R()) {
|
|
465
466
|
let e = this.#u[t];
|
|
466
467
|
void 0 !== e && !this.#F(this.#f[t]) && (yield e);
|
|
467
468
|
}
|
|
@@ -470,7 +471,7 @@ var S = { hasSubscribers: !1 }, b = S, _ = S, T = "object" == typeof performance
|
|
|
470
471
|
for (let t of this.#k()) void 0 !== this.#f[t] && !this.#F(this.#f[t]) && (yield this.#f[t]);
|
|
471
472
|
}
|
|
472
473
|
*rvalues() {
|
|
473
|
-
for (let t of this.#
|
|
474
|
+
for (let t of this.#R()) void 0 !== this.#f[t] && !this.#F(this.#f[t]) && (yield this.#f[t]);
|
|
474
475
|
}
|
|
475
476
|
[Symbol.iterator]() {
|
|
476
477
|
return this.entries();
|
|
@@ -489,14 +490,14 @@ var S = { hasSubscribers: !1 }, b = S, _ = S, T = "object" == typeof performance
|
|
|
489
490
|
}
|
|
490
491
|
}
|
|
491
492
|
rforEach(t, e = this) {
|
|
492
|
-
for (let i of this.#
|
|
493
|
+
for (let i of this.#R()) {
|
|
493
494
|
let s = this.#f[i], h = this.#F(s) ? s.__staleWhileFetching : s;
|
|
494
495
|
void 0 !== h && t.call(e, h, this.#u[i], this);
|
|
495
496
|
}
|
|
496
497
|
}
|
|
497
498
|
purgeStale() {
|
|
498
499
|
let t = !1;
|
|
499
|
-
for (let e of this.#
|
|
500
|
+
for (let e of this.#R({ allowStale: !0 })) this.#C(e) && (this.#L(this.#u[e], "expire"), t = !0);
|
|
500
501
|
return t;
|
|
501
502
|
}
|
|
502
503
|
info(t) {
|
|
@@ -505,11 +506,11 @@ var S = { hasSubscribers: !1 }, b = S, _ = S, T = "object" == typeof performance
|
|
|
505
506
|
let i = this.#f[e], s = this.#F(i) ? i.__staleWhileFetching : i;
|
|
506
507
|
if (void 0 === s) return;
|
|
507
508
|
let h = { value: s };
|
|
508
|
-
if (this.#
|
|
509
|
-
let t = this.#
|
|
509
|
+
if (this.#y && this.#b) {
|
|
510
|
+
let t = this.#y[e], i = this.#b[e];
|
|
510
511
|
t && i && (h.ttl = t - (this.#o.now() - i), h.start = Date.now());
|
|
511
512
|
}
|
|
512
|
-
return this.#
|
|
513
|
+
return this.#S && (h.size = this.#S[e]), h;
|
|
513
514
|
}
|
|
514
515
|
dump() {
|
|
515
516
|
let t = [];
|
|
@@ -517,12 +518,12 @@ var S = { hasSubscribers: !1 }, b = S, _ = S, T = "object" == typeof performance
|
|
|
517
518
|
let i = this.#u[e], s = this.#f[e], h = this.#F(s) ? s.__staleWhileFetching : s;
|
|
518
519
|
if (void 0 === h || void 0 === i) continue;
|
|
519
520
|
let n = { value: h };
|
|
520
|
-
if (this.#
|
|
521
|
-
n.ttl = this.#
|
|
522
|
-
let t = this.#o.now() - this.#
|
|
521
|
+
if (this.#y && this.#b) {
|
|
522
|
+
n.ttl = this.#y[e];
|
|
523
|
+
let t = this.#o.now() - this.#b[e];
|
|
523
524
|
n.start = Math.floor(Date.now() - t);
|
|
524
525
|
}
|
|
525
|
-
this.#
|
|
526
|
+
this.#S && (n.size = this.#S[e]), t.unshift([i, n]);
|
|
526
527
|
}
|
|
527
528
|
return t;
|
|
528
529
|
}
|
|
@@ -537,44 +538,44 @@ var S = { hasSubscribers: !1 }, b = S, _ = S, T = "object" == typeof performance
|
|
|
537
538
|
}
|
|
538
539
|
}
|
|
539
540
|
set(t, e, i = {}) {
|
|
540
|
-
let { status: s =
|
|
541
|
+
let { status: s = y.hasSubscribers ? {} : void 0 } = i;
|
|
541
542
|
i.status = s, s && (s.op = "set", s.key = t, void 0 !== e && (s.value = e), s.cache = this);
|
|
542
543
|
let h = this.#B(t, e, i);
|
|
543
|
-
return s &&
|
|
544
|
+
return s && y.hasSubscribers && y.publish(s), h;
|
|
544
545
|
}
|
|
545
546
|
#B(t, e, i, s) {
|
|
546
|
-
let { ttl: h = this.ttl, start: n, noDisposeOnSet: r = this.noDisposeOnSet, sizeCalculation: o = this.sizeCalculation, status: a } = i;
|
|
547
|
+
let { ttl: h = this.ttl, start: n, noDisposeOnSet: r = this.noDisposeOnSet, sizeCalculation: o = this.sizeCalculation, status: a } = i, l = this.#F(e);
|
|
547
548
|
if (void 0 === e) return a && (a.set = "deleted"), this.delete(t), this;
|
|
548
|
-
let { noUpdateTTL:
|
|
549
|
-
a && !
|
|
549
|
+
let { noUpdateTTL: c = this.noUpdateTTL } = i;
|
|
550
|
+
a && !l && (a.value = e);
|
|
550
551
|
let u = this.#P(t, e, i.size || 0, o, a);
|
|
551
552
|
if (this.maxEntrySize && u > this.maxEntrySize) return this.#L(t, "set"), a && (a.set = "miss", a.maxEntrySizeExceeded = !0), this;
|
|
552
553
|
let f = 0 === this.#a ? void 0 : this.#c.get(t);
|
|
553
|
-
if (void 0 === f) f = 0 === this.#a ? this.#v : 0 !== this.#m.length ? this.#m.pop() : this.#a === this.#t ? this.#I(!1) : this.#a, this.#u[f] = t, this.#f[f] = e, this.#c.set(t, f), this.#d[this.#v] = f, this.#p[f] = this.#v, this.#v = f, this.#a++, this.#N(f, u, a), a && (a.set = "add"),
|
|
554
|
+
if (void 0 === f) f = 0 === this.#a ? this.#v : 0 !== this.#m.length ? this.#m.pop() : this.#a === this.#t ? this.#I(!1) : this.#a, this.#u[f] = t, this.#f[f] = e, this.#c.set(t, f), this.#d[this.#v] = f, this.#p[f] = this.#v, this.#v = f, this.#a++, this.#N(f, u, a), a && (a.set = "add"), c = !1, this.#A && !l && this.#s?.(e, t, "add");
|
|
554
555
|
else {
|
|
555
|
-
this.#
|
|
556
|
+
this.#x(f);
|
|
556
557
|
let i = this.#f[f];
|
|
557
558
|
if (e !== i) {
|
|
558
559
|
if (!r) if (this.#F(i)) {
|
|
559
560
|
i !== s && i.__abortController.abort(/* @__PURE__ */ new Error("replaced"));
|
|
560
561
|
let { __staleWhileFetching: h } = i;
|
|
561
|
-
void 0 !== h && h !== e && (this.#
|
|
562
|
+
void 0 !== h && h !== e && (this.#_ && this.#i?.(h, t, "set"), this.#O && this.#w?.push([
|
|
562
563
|
h,
|
|
563
564
|
t,
|
|
564
565
|
"set"
|
|
565
566
|
]));
|
|
566
|
-
} else this.#
|
|
567
|
+
} else this.#_ && this.#i?.(i, t, "set"), this.#O && this.#w?.push([
|
|
567
568
|
i,
|
|
568
569
|
t,
|
|
569
570
|
"set"
|
|
570
571
|
]);
|
|
571
|
-
if (this.#U(f), this.#N(f, u, a), this.#f[f] = e, !
|
|
572
|
+
if (this.#U(f), this.#N(f, u, a), this.#f[f] = e, !l) {
|
|
572
573
|
let s = i && this.#F(i) ? i.__staleWhileFetching : i, h = void 0 === s ? "add" : e !== s ? "replace" : "update";
|
|
573
|
-
a && (a.set = h, void 0 !== s && (a.oldValue = s)), this.#
|
|
574
|
+
a && (a.set = h, void 0 !== s && (a.oldValue = s)), this.#A && this.onInsert?.(e, t, h);
|
|
574
575
|
}
|
|
575
|
-
} else
|
|
576
|
+
} else l || (a && (a.set = "update"), this.#A && this.onInsert?.(e, t, "update"));
|
|
576
577
|
}
|
|
577
|
-
if (0 !== h && !this.#
|
|
578
|
+
if (0 !== h && !this.#y && this.#D(), this.#y && (c || this.#W(f, h, n), a && this.#G(a, f)), !r && this.#O && this.#w) {
|
|
578
579
|
let t, e = this.#w;
|
|
579
580
|
for (; t = e?.shift();) this.#h?.(...t);
|
|
580
581
|
}
|
|
@@ -589,7 +590,7 @@ var S = { hasSubscribers: !1 }, b = S, _ = S, T = "object" == typeof performance
|
|
|
589
590
|
} else if (void 0 !== t) return t;
|
|
590
591
|
}
|
|
591
592
|
} finally {
|
|
592
|
-
if (this.#
|
|
593
|
+
if (this.#O && this.#w) {
|
|
593
594
|
let t, e = this.#w;
|
|
594
595
|
for (; t = e?.shift();) this.#h?.(...t);
|
|
595
596
|
}
|
|
@@ -599,24 +600,24 @@ var S = { hasSubscribers: !1 }, b = S, _ = S, T = "object" == typeof performance
|
|
|
599
600
|
let e = this.#g, i = this.#u[e], s = this.#f[e], h = this.#F(s);
|
|
600
601
|
h && s.__abortController.abort(/* @__PURE__ */ new Error("evicted"));
|
|
601
602
|
let n = h ? s.__staleWhileFetching : s;
|
|
602
|
-
return (this.#
|
|
603
|
+
return (this.#_ || this.#O) && void 0 !== n && (this.#_ && this.#i?.(n, i, "evict"), this.#O && this.#w?.push([
|
|
603
604
|
n,
|
|
604
605
|
i,
|
|
605
606
|
"evict"
|
|
606
|
-
])), this.#U(e), this.#
|
|
607
|
+
])), this.#U(e), this.#z?.[e] && (clearTimeout(this.#z[e]), this.#z[e] = void 0), t && (this.#u[e] = void 0, this.#f[e] = void 0, this.#m.push(e)), 1 === this.#a ? (this.#g = this.#v = 0, this.#m.length = 0) : this.#g = this.#d[e], this.#c.delete(i), this.#a--, e;
|
|
607
608
|
}
|
|
608
609
|
has(t, e = {}) {
|
|
609
|
-
let { status: i =
|
|
610
|
+
let { status: i = y.hasSubscribers ? {} : void 0 } = e;
|
|
610
611
|
e.status = i, i && (i.op = "has", i.key = t, i.cache = this);
|
|
611
612
|
let s = this.#X(t, e);
|
|
612
|
-
return
|
|
613
|
+
return y.hasSubscribers && y.publish(i), s;
|
|
613
614
|
}
|
|
614
615
|
#X(t, e = {}) {
|
|
615
616
|
let { updateAgeOnHas: i = this.updateAgeOnHas, status: s } = e, h = this.#c.get(t);
|
|
616
617
|
if (void 0 !== h) {
|
|
617
618
|
let t = this.#f[h];
|
|
618
619
|
if (this.#F(t) && void 0 === t.__staleWhileFetching) return !1;
|
|
619
|
-
if (!this.#
|
|
620
|
+
if (!this.#C(h)) return i && this.#M(h), s && (s.has = "hit", this.#G(s, h)), !0;
|
|
620
621
|
s && (s.has = "stale", this.#G(s, h));
|
|
621
622
|
} else s && (s.has = "miss");
|
|
622
623
|
return !1;
|
|
@@ -625,15 +626,15 @@ var S = { hasSubscribers: !1 }, b = S, _ = S, T = "object" == typeof performance
|
|
|
625
626
|
let { status: i = E() ? {} : void 0 } = e;
|
|
626
627
|
i && (i.op = "peek", i.key = t, i.cache = this), e.status = i;
|
|
627
628
|
let s = this.#Y(t, e);
|
|
628
|
-
return
|
|
629
|
+
return y.hasSubscribers && y.publish(i), s;
|
|
629
630
|
}
|
|
630
631
|
#Y(t, e) {
|
|
631
632
|
let { status: i, allowStale: s = this.allowStale } = e, h = this.#c.get(t);
|
|
632
|
-
if (void 0 === h || !s && this.#
|
|
633
|
+
if (void 0 === h || !s && this.#C(h)) return void (i && (i.peek = void 0 === h ? "miss" : "stale"));
|
|
633
634
|
let n = this.#f[h], r = this.#F(n) ? n.__staleWhileFetching : n;
|
|
634
635
|
return i && (void 0 !== r ? (i.peek = "hit", i.value = r) : i.peek = "miss"), r;
|
|
635
636
|
}
|
|
636
|
-
#
|
|
637
|
+
#T(t, e, i, s) {
|
|
637
638
|
let h = void 0 === e ? void 0 : this.#f[e];
|
|
638
639
|
if (this.#F(h)) return h;
|
|
639
640
|
let n = new AbortController(), { signal: r } = i;
|
|
@@ -674,10 +675,10 @@ var S = { hasSubscribers: !1 }, b = S, _ = S, T = "object" == typeof performance
|
|
|
674
675
|
return !!e && e instanceof Promise && e.hasOwnProperty("__staleWhileFetching") && e.__abortController instanceof AbortController;
|
|
675
676
|
}
|
|
676
677
|
fetch(t, e = {}) {
|
|
677
|
-
let i =
|
|
678
|
+
let i = z.hasSubscribers, { status: s = E() ? {} : void 0 } = e;
|
|
678
679
|
e.status = s, s && e.context && (s.context = e.context);
|
|
679
680
|
let h = this.#q(t, e);
|
|
680
|
-
return s && i && (s.trace = !0,
|
|
681
|
+
return s && i && (s.trace = !0, z.tracePromise(() => h, s).catch(() => {})), h;
|
|
681
682
|
}
|
|
682
683
|
async #q(t, e = {}) {
|
|
683
684
|
let { allowStale: i = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: h = this.noDeleteOnStaleGet, ttl: n = this.ttl, noDisposeOnSet: r = this.noDisposeOnSet, size: o = 0, sizeCalculation: a = this.sizeCalculation, noUpdateTTL: l = this.noUpdateTTL, noDeleteOnFetchRejection: c = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: u = this.allowStaleOnFetchRejection, ignoreFetchAbort: f = this.ignoreFetchAbort, allowStaleOnFetchAbort: d = this.allowStaleOnFetchAbort, context: p, forceRefresh: g = !1, status: v, signal: m } = e;
|
|
@@ -702,29 +703,29 @@ var S = { hasSubscribers: !1 }, b = S, _ = S, T = "object" == typeof performance
|
|
|
702
703
|
ignoreFetchAbort: f,
|
|
703
704
|
status: v,
|
|
704
705
|
signal: m
|
|
705
|
-
},
|
|
706
|
-
if (void 0 ===
|
|
706
|
+
}, S = this.#c.get(t);
|
|
707
|
+
if (void 0 === S) {
|
|
707
708
|
v && (v.fetch = "miss");
|
|
708
|
-
let e = this.#
|
|
709
|
+
let e = this.#T(t, S, w, p);
|
|
709
710
|
return e.__returned = e;
|
|
710
711
|
}
|
|
711
712
|
{
|
|
712
|
-
let e = this.#f[
|
|
713
|
+
let e = this.#f[S];
|
|
713
714
|
if (this.#F(e)) {
|
|
714
715
|
let t = i && void 0 !== e.__staleWhileFetching;
|
|
715
716
|
return v && (v.fetch = "inflight", t && (v.returnedStale = !0)), t ? e.__staleWhileFetching : e.__returned = e;
|
|
716
717
|
}
|
|
717
|
-
let h = this.#
|
|
718
|
-
if (!g && !h) return v && (v.fetch = "hit"), this.#
|
|
719
|
-
let n = this.#
|
|
718
|
+
let h = this.#C(S);
|
|
719
|
+
if (!g && !h) return v && (v.fetch = "hit"), this.#x(S), s && this.#M(S), v && this.#G(v, S), e;
|
|
720
|
+
let n = this.#T(t, S, w, p), r = void 0 !== n.__staleWhileFetching && i;
|
|
720
721
|
return v && (v.fetch = h ? "stale" : "refresh", r && h && (v.returnedStale = !0)), r ? n.__staleWhileFetching : n.__returned = n;
|
|
721
722
|
}
|
|
722
723
|
}
|
|
723
724
|
forceFetch(t, e = {}) {
|
|
724
|
-
let i =
|
|
725
|
+
let i = z.hasSubscribers, { status: s = E() ? {} : void 0 } = e;
|
|
725
726
|
e.status = s, s && e.context && (s.context = e.context);
|
|
726
727
|
let h = this.#K(t, e);
|
|
727
|
-
return s && i && (s.trace = !0,
|
|
728
|
+
return s && i && (s.trace = !0, z.tracePromise(() => h, s).catch(() => {})), h;
|
|
728
729
|
}
|
|
729
730
|
async #K(t, e = {}) {
|
|
730
731
|
let i = await this.#q(t, e);
|
|
@@ -732,10 +733,10 @@ var S = { hasSubscribers: !1 }, b = S, _ = S, T = "object" == typeof performance
|
|
|
732
733
|
return i;
|
|
733
734
|
}
|
|
734
735
|
memo(t, e = {}) {
|
|
735
|
-
let { status: i =
|
|
736
|
+
let { status: i = y.hasSubscribers ? {} : void 0 } = e;
|
|
736
737
|
e.status = i, i && (i.op = "memo", i.key = t, e.context && (i.context = e.context), i.cache = this);
|
|
737
738
|
let s = this.#Q(t, e);
|
|
738
|
-
return i && (i.value = s),
|
|
739
|
+
return i && (i.value = s), y.hasSubscribers && y.publish(i), s;
|
|
739
740
|
}
|
|
740
741
|
#Q(t, e = {}) {
|
|
741
742
|
let i = this.#r;
|
|
@@ -751,28 +752,28 @@ var S = { hasSubscribers: !1 }, b = S, _ = S, T = "object" == typeof performance
|
|
|
751
752
|
return h && (h.value = l), this.#B(t, l, r), l;
|
|
752
753
|
}
|
|
753
754
|
get(t, e = {}) {
|
|
754
|
-
let { status: i =
|
|
755
|
+
let { status: i = y.hasSubscribers ? {} : void 0 } = e;
|
|
755
756
|
e.status = i, i && (i.op = "get", i.key = t, i.cache = this);
|
|
756
757
|
let s = this.#$(t, e);
|
|
757
|
-
return i && (void 0 !== s && (i.value = s),
|
|
758
|
+
return i && (void 0 !== s && (i.value = s), y.hasSubscribers && y.publish(i)), s;
|
|
758
759
|
}
|
|
759
760
|
#$(t, e = {}) {
|
|
760
761
|
let { allowStale: i = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: h = this.noDeleteOnStaleGet, status: n } = e, r = this.#c.get(t);
|
|
761
762
|
if (void 0 === r) return void (n && (n.get = "miss"));
|
|
762
763
|
let o = this.#f[r], a = this.#F(o);
|
|
763
|
-
return n && this.#G(n, r), this.#
|
|
764
|
+
return n && this.#G(n, r), this.#C(r) ? a ? (n && (n.get = "stale-fetching"), i && void 0 !== o.__staleWhileFetching ? (n && (n.returnedStale = !0), o.__staleWhileFetching) : void 0) : (h || this.#L(t, "expire"), n && (n.get = "stale"), i ? (n && (n.returnedStale = !0), o) : void 0) : (n && (n.get = a ? "fetching" : "hit"), this.#x(r), s && this.#M(r), a ? o.__staleWhileFetching : o);
|
|
764
765
|
}
|
|
765
766
|
#V(t, e) {
|
|
766
767
|
this.#p[e] = t, this.#d[t] = e;
|
|
767
768
|
}
|
|
768
|
-
#
|
|
769
|
+
#x(t) {
|
|
769
770
|
t !== this.#v && (t === this.#g ? this.#g = this.#d[t] : this.#V(this.#p[t], this.#d[t]), this.#V(this.#v, t), this.#v = t);
|
|
770
771
|
}
|
|
771
772
|
delete(t) {
|
|
772
773
|
return this.#L(t, "delete");
|
|
773
774
|
}
|
|
774
775
|
#L(t, e) {
|
|
775
|
-
|
|
776
|
+
y.hasSubscribers && y.publish({
|
|
776
777
|
op: "delete",
|
|
777
778
|
delete: e,
|
|
778
779
|
key: t,
|
|
@@ -781,11 +782,11 @@ var S = { hasSubscribers: !1 }, b = S, _ = S, T = "object" == typeof performance
|
|
|
781
782
|
let i = !1;
|
|
782
783
|
if (0 !== this.#a) {
|
|
783
784
|
let s = this.#c.get(t);
|
|
784
|
-
if (void 0 !== s) if (this.#
|
|
785
|
+
if (void 0 !== s) if (this.#z?.[s] && (clearTimeout(this.#z?.[s]), this.#z[s] = void 0), i = !0, 1 === this.#a) this.#J(e);
|
|
785
786
|
else {
|
|
786
787
|
this.#U(s);
|
|
787
788
|
let i = this.#f[s];
|
|
788
|
-
if (this.#F(i) ? i.__abortController.abort(/* @__PURE__ */ new Error("deleted")) : (this.#
|
|
789
|
+
if (this.#F(i) ? i.__abortController.abort(/* @__PURE__ */ new Error("deleted")) : (this.#_ || this.#O) && (this.#_ && this.#i?.(i, t, e), this.#O && this.#w?.push([
|
|
789
790
|
i,
|
|
790
791
|
t,
|
|
791
792
|
e
|
|
@@ -800,7 +801,7 @@ var S = { hasSubscribers: !1 }, b = S, _ = S, T = "object" == typeof performance
|
|
|
800
801
|
this.#a--, this.#m.push(s);
|
|
801
802
|
}
|
|
802
803
|
}
|
|
803
|
-
if (this.#
|
|
804
|
+
if (this.#O && this.#w?.length) {
|
|
804
805
|
let t, e = this.#w;
|
|
805
806
|
for (; t = e?.shift();) this.#h?.(...t);
|
|
806
807
|
}
|
|
@@ -810,36 +811,36 @@ var S = { hasSubscribers: !1 }, b = S, _ = S, T = "object" == typeof performance
|
|
|
810
811
|
return this.#J("delete");
|
|
811
812
|
}
|
|
812
813
|
#J(t) {
|
|
813
|
-
for (let e of this.#
|
|
814
|
+
for (let e of this.#R({ allowStale: !0 })) {
|
|
814
815
|
let i = this.#f[e];
|
|
815
816
|
if (this.#F(i)) i.__abortController.abort(/* @__PURE__ */ new Error("deleted"));
|
|
816
817
|
else {
|
|
817
818
|
let s = this.#u[e];
|
|
818
|
-
this.#
|
|
819
|
+
this.#_ && this.#i?.(i, s, t), this.#O && this.#w?.push([
|
|
819
820
|
i,
|
|
820
821
|
s,
|
|
821
822
|
t
|
|
822
823
|
]);
|
|
823
824
|
}
|
|
824
825
|
}
|
|
825
|
-
if (this.#c.clear(), this.#f.fill(void 0), this.#u.fill(void 0), this.#
|
|
826
|
-
this.#
|
|
827
|
-
for (let t of this.#
|
|
828
|
-
this.#
|
|
826
|
+
if (this.#c.clear(), this.#f.fill(void 0), this.#u.fill(void 0), this.#y && this.#b) {
|
|
827
|
+
this.#y.fill(0), this.#b.fill(0);
|
|
828
|
+
for (let t of this.#z ?? []) void 0 !== t && clearTimeout(t);
|
|
829
|
+
this.#z?.fill(void 0);
|
|
829
830
|
}
|
|
830
|
-
if (this.#
|
|
831
|
+
if (this.#S && this.#S.fill(0), this.#g = 0, this.#v = 0, this.#m.length = 0, this.#l = 0, this.#a = 0, this.#O && this.#w) {
|
|
831
832
|
let t, e = this.#w;
|
|
832
833
|
for (; t = e?.shift();) this.#h?.(...t);
|
|
833
834
|
}
|
|
834
835
|
}
|
|
835
|
-
},
|
|
836
|
+
}, C = class {
|
|
836
837
|
static defaultOptions = {
|
|
837
838
|
max: 1e3,
|
|
838
839
|
ttl: 18e5
|
|
839
840
|
};
|
|
840
|
-
static cache = new
|
|
841
|
+
static cache = new R(this.defaultOptions);
|
|
841
842
|
static createCache(t = this.defaultOptions) {
|
|
842
|
-
return new
|
|
843
|
+
return new R(t);
|
|
843
844
|
}
|
|
844
845
|
static set(t, e, i = this.cache) {
|
|
845
846
|
let s = i;
|
|
@@ -908,7 +909,7 @@ async function W(t, e = void 0) {
|
|
|
908
909
|
...i,
|
|
909
910
|
...e
|
|
910
911
|
});
|
|
911
|
-
const h =
|
|
912
|
+
const h = C.createCache(s);
|
|
912
913
|
return D.set(t, h), h;
|
|
913
914
|
}
|
|
914
915
|
async function M(t = "") {
|
|
@@ -917,41 +918,41 @@ async function M(t = "") {
|
|
|
917
918
|
}
|
|
918
919
|
async function L(t, e, i = "") {
|
|
919
920
|
const s = await M(i);
|
|
920
|
-
return !!s && (
|
|
921
|
+
return !!s && (C.set(t, e, s), !0);
|
|
921
922
|
}
|
|
922
923
|
async function G(t, e = "") {
|
|
923
924
|
const i = await M(e);
|
|
924
925
|
if (i) {
|
|
925
|
-
const e =
|
|
926
|
+
const e = C.get(t, i);
|
|
926
927
|
return console.log("666000", t, e), e;
|
|
927
928
|
}
|
|
928
929
|
}
|
|
929
930
|
async function U(t, e = "") {
|
|
930
931
|
const i = await M(e);
|
|
931
|
-
if (i) return
|
|
932
|
+
if (i) return C.remove(t, i);
|
|
932
933
|
}
|
|
933
934
|
async function P(t, e = "") {
|
|
934
935
|
const i = await M(e);
|
|
935
|
-
return !!i &&
|
|
936
|
+
return !!i && C.has(t, i);
|
|
936
937
|
}
|
|
937
938
|
async function N(t = "") {
|
|
938
939
|
const e = await M(t);
|
|
939
|
-
return e ?
|
|
940
|
+
return e ? C.count(e) : 0;
|
|
940
941
|
}
|
|
941
942
|
async function I(t = "") {
|
|
942
943
|
const e = await M(t);
|
|
943
|
-
return e ?
|
|
944
|
+
return e ? C.maxSize(e) : 0;
|
|
944
945
|
}
|
|
945
946
|
async function H(t, e = "") {
|
|
946
947
|
const i = await M(e);
|
|
947
|
-
return !!i &&
|
|
948
|
+
return !!i && C.peek(t, i);
|
|
948
949
|
}
|
|
949
950
|
async function $(t = "") {
|
|
950
951
|
const e = await M(t);
|
|
951
|
-
return e &&
|
|
952
|
+
return e && C.clear(e), !1;
|
|
952
953
|
}
|
|
953
954
|
async function B(t = "") {
|
|
954
955
|
const e = await M(t);
|
|
955
|
-
if (e) return
|
|
956
|
+
if (e) return C.keys(e);
|
|
956
957
|
}
|
|
957
958
|
a(j);
|