@voltro/client 0.74.0 → 0.75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +319 -0
- package/dist/{authRefresh-8OXBP96t.js → authRefresh-BhamJWRV.js} +144 -141
- package/dist/index.js +698 -698
- package/dist/runtime.js +1 -1
- package/package.json +2 -2
|
@@ -1,27 +1,30 @@
|
|
|
1
|
-
import { Cause as e, Context as t, Effect as n, Exit as r, Fiber as i, Layer as a, ManagedRuntime as o, Option as s,
|
|
2
|
-
import * as
|
|
3
|
-
import { RpcClient as
|
|
4
|
-
import { applyRowPatch as
|
|
5
|
-
import * as
|
|
6
|
-
//#region src/
|
|
7
|
-
var
|
|
8
|
-
|
|
1
|
+
import { Cause as e, Context as t, Effect as n, Exit as r, Fiber as i, Layer as a, ManagedRuntime as o, Option as s, ParseResult as c, Schedule as l, Scheduler as u, Stream as d } from "effect";
|
|
2
|
+
import * as f from "@effect/platform/Headers";
|
|
3
|
+
import { RpcClient as p, RpcClientError as m, RpcSerialization as h } from "@effect/rpc";
|
|
4
|
+
import { applyRowPatch as g, compareSurfaces as _, groupShapeDigests as v } from "@voltro/protocol";
|
|
5
|
+
import * as y from "@effect/platform/Socket";
|
|
6
|
+
//#region src/squashRpcCause.ts
|
|
7
|
+
var b = (t) => {
|
|
8
|
+
let n = e.squash(t);
|
|
9
|
+
return s.isNone(e.failureOption(t)) && c.isParseError(n) && console.error("[voltro] a value failed its schema in the client — if it is the request payload, the request never reached the server, so no server log has it:\n" + n.message), n;
|
|
10
|
+
}, x = /* @__PURE__ */ new Set(), S = (e) => {
|
|
11
|
+
for (let t of x) try {
|
|
9
12
|
t(e);
|
|
10
13
|
} catch {}
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
}),
|
|
14
|
+
}, ee = (e) => (x.add(e), () => {
|
|
15
|
+
x.delete(e);
|
|
16
|
+
}), C = /* @__PURE__ */ new WeakMap(), w = (e, t) => ((typeof e == "object" && e || typeof e == "function") && C.set(e, t), e), T = (e, t) => {
|
|
14
17
|
if ((typeof e != "object" || !e) && typeof e != "function") return t;
|
|
15
|
-
let n =
|
|
18
|
+
let n = C.get(e);
|
|
16
19
|
if (n !== void 0) return n;
|
|
17
20
|
try {
|
|
18
|
-
return
|
|
21
|
+
return m.TypeId in e ? "transport" : t;
|
|
19
22
|
} catch {
|
|
20
23
|
return t;
|
|
21
24
|
}
|
|
22
|
-
},
|
|
25
|
+
}, E = "voltro.client-diagnostics.v1", D = 400, O = 240, k = Symbol.for("@voltro/client/diagnostics"), A = globalThis, te = () => typeof performance < "u" && typeof performance.now == "function" ? performance.now() : Date.now(), j = A[k] ?? (A[k] = {
|
|
23
26
|
sessionStartedAt: Date.now(),
|
|
24
|
-
monotonicStartedAt:
|
|
27
|
+
monotonicStartedAt: te(),
|
|
25
28
|
sequence: 0,
|
|
26
29
|
dropped: 0,
|
|
27
30
|
storage: void 0,
|
|
@@ -29,17 +32,17 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
29
32
|
resolved: {},
|
|
30
33
|
loadedStorage: !1,
|
|
31
34
|
listeners: /* @__PURE__ */ new Set()
|
|
32
|
-
}), M = (e) => e.length <=
|
|
35
|
+
}), M = (e) => e.length <= O ? e : `${e.slice(0, O)}…`, ne = (e) => {
|
|
33
36
|
let t = {};
|
|
34
37
|
for (let [n, r] of Object.entries(e)) r !== void 0 && (t[n] = typeof r == "string" ? M(r) : r);
|
|
35
38
|
return t;
|
|
36
|
-
},
|
|
39
|
+
}, re = (e) => {
|
|
37
40
|
if (typeof e != "object" || !e) return !1;
|
|
38
41
|
let t = e;
|
|
39
42
|
return typeof t.sequence == "number" && typeof t.at == "number" && typeof t.elapsedMs == "number" && typeof t.api == "string" && typeof t.kind == "string" && typeof t.fields == "object" && t.fields !== null;
|
|
40
43
|
}, N = () => {
|
|
41
44
|
if (j.storage !== void 0) try {
|
|
42
|
-
j.storage.setItem(
|
|
45
|
+
j.storage.setItem(E, JSON.stringify({
|
|
43
46
|
version: 1,
|
|
44
47
|
sessionStartedAt: j.sessionStartedAt,
|
|
45
48
|
sequence: j.sequence,
|
|
@@ -51,37 +54,37 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
51
54
|
for (let e of j.listeners) try {
|
|
52
55
|
e();
|
|
53
56
|
} catch {}
|
|
54
|
-
},
|
|
57
|
+
}, ie = (e) => {
|
|
55
58
|
if (j.storage = e, !j.loadedStorage) {
|
|
56
59
|
j.loadedStorage = !0;
|
|
57
60
|
try {
|
|
58
|
-
let t = e.getItem(
|
|
61
|
+
let t = e.getItem(E);
|
|
59
62
|
if (t !== null) {
|
|
60
|
-
let e = JSON.parse(t), n = Array.isArray(e.events) ? e.events.filter(
|
|
63
|
+
let e = JSON.parse(t), n = Array.isArray(e.events) ? e.events.filter(re) : [], r = Math.max(typeof e.sequence == "number" ? e.sequence : 0, 0, ...n.map((e) => e.sequence)), i = j.events.map((e, t) => ({
|
|
61
64
|
...e,
|
|
62
65
|
sequence: r + t + 1
|
|
63
|
-
})), a = [...n, ...i], o = Math.max(0, a.length -
|
|
66
|
+
})), a = [...n, ...i], o = Math.max(0, a.length - D), s = typeof e.dropped == "number" ? e.dropped : 0;
|
|
64
67
|
j.dropped = j.dropped + s + o, j.events = a.slice(-400), j.sequence = Math.max(r + i.length, ...j.events.map((e) => e.sequence)), typeof e.sessionStartedAt == "number" && (j.sessionStartedAt = Math.min(j.sessionStartedAt, e.sessionStartedAt));
|
|
65
68
|
}
|
|
66
69
|
} catch {}
|
|
67
70
|
}
|
|
68
71
|
N();
|
|
69
|
-
},
|
|
72
|
+
}, ae = () => {
|
|
70
73
|
j.storage = void 0;
|
|
71
74
|
}, F = (e, t, n = {}) => {
|
|
72
75
|
let r = {
|
|
73
76
|
sequence: ++j.sequence,
|
|
74
77
|
at: Date.now(),
|
|
75
|
-
elapsedMs: Math.max(0, Math.round(
|
|
78
|
+
elapsedMs: Math.max(0, Math.round(te() - j.monotonicStartedAt)),
|
|
76
79
|
api: M(e),
|
|
77
80
|
kind: t,
|
|
78
|
-
fields:
|
|
81
|
+
fields: ne(n)
|
|
79
82
|
};
|
|
80
83
|
return t === "runtime.resolved" && (j.resolved = {
|
|
81
84
|
...j.resolved,
|
|
82
85
|
[r.api]: r.fields
|
|
83
|
-
}), j.events.push(r), j.events.length >
|
|
84
|
-
},
|
|
86
|
+
}), j.events.push(r), j.events.length > D && (j.events.splice(0, j.events.length - D), j.dropped += 1), N(), P(), r;
|
|
87
|
+
}, oe = (e) => ({
|
|
85
88
|
version: 1,
|
|
86
89
|
generatedAt: Date.now(),
|
|
87
90
|
sessionStartedAt: j.sessionStartedAt,
|
|
@@ -89,38 +92,38 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
89
92
|
dropped: j.dropped,
|
|
90
93
|
events: e === void 0 ? [...j.events] : j.events.filter((t) => t.api === e),
|
|
91
94
|
runtime: e === void 0 ? { ...j.resolved } : j.resolved[e] === void 0 ? {} : { [e]: j.resolved[e] }
|
|
92
|
-
}),
|
|
95
|
+
}), se = () => {
|
|
93
96
|
j.events = [], j.dropped = 0;
|
|
94
97
|
try {
|
|
95
|
-
j.storage?.removeItem(
|
|
98
|
+
j.storage?.removeItem(E);
|
|
96
99
|
} catch {}
|
|
97
100
|
P();
|
|
98
|
-
},
|
|
101
|
+
}, ce = (e) => (j.listeners.add(e), () => {
|
|
99
102
|
j.listeners.delete(e);
|
|
100
103
|
}), I = (e) => {
|
|
101
104
|
let t = (e) => e == null ? "null" : typeof e == "string" ? JSON.stringify(e) : typeof e == "number" || typeof e == "boolean" ? String(e) : Array.isArray(e) ? `[${e.map(t).join(",")}]` : typeof e == "object" ? `{${Object.keys(e).sort().map((n) => `${JSON.stringify(n)}:${t(e[n])}`).join(",")}}` : String(e);
|
|
102
105
|
return t(e);
|
|
103
|
-
},
|
|
106
|
+
}, le = Object.freeze({
|
|
104
107
|
data: void 0,
|
|
105
108
|
revision: -1,
|
|
106
109
|
emittedAt: void 0,
|
|
107
110
|
error: void 0,
|
|
108
111
|
pendingPatches: 0
|
|
109
|
-
}), L = 5e3,
|
|
112
|
+
}), L = 5e3, ue = (e, t) => e._tag === "snapshot" && t !== void 0 && e.reconciles === t, de = 0, R = 0, fe = () => `patch_${++R}`, z = (e, t) => {
|
|
110
113
|
let n = e;
|
|
111
114
|
for (let e of t.split(".")) {
|
|
112
115
|
if (typeof n != "object" || !n) return;
|
|
113
116
|
n = n[e];
|
|
114
117
|
}
|
|
115
118
|
return n;
|
|
116
|
-
},
|
|
119
|
+
}, B = (e, t, n) => {
|
|
117
120
|
let r = t.split("."), i = (e) => typeof e == "object" && e && !Array.isArray(e) ? { ...e } : {}, a = i(e), o = a;
|
|
118
121
|
for (let e = 0; e < r.length - 1; e += 1) o[r[e]] = i(o[r[e]]), o = o[r[e]];
|
|
119
122
|
return o[r[r.length - 1]] = n, a;
|
|
120
|
-
},
|
|
123
|
+
}, V = (e, t) => {
|
|
121
124
|
let n = e.by ?? "id", r = e.identify ? e.identify(t) : typeof t[n] == "string" ? t[n] : typeof t.id == "string" ? t.id : void 0, i = r === void 0 ? [] : Array.isArray(r) ? r : [r];
|
|
122
125
|
return i.length === 0 ? null : new Set(i);
|
|
123
|
-
},
|
|
126
|
+
}, pe = (e, t, n) => {
|
|
124
127
|
let r = e.path, i = e.by ?? "id";
|
|
125
128
|
if (e.op === "insert") {
|
|
126
129
|
let a = e.shapeItem ?? e.shape, o = a ? {
|
|
@@ -133,11 +136,11 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
133
136
|
optimistic: !0
|
|
134
137
|
}, s = e.order ?? "append";
|
|
135
138
|
return (e) => {
|
|
136
|
-
let t = Array.isArray(
|
|
137
|
-
return
|
|
139
|
+
let t = Array.isArray(z(e, r)) ? z(e, r) : [];
|
|
140
|
+
return B(e ?? {}, r, s === "append" ? [...t, o] : [o, ...t]);
|
|
138
141
|
};
|
|
139
142
|
}
|
|
140
|
-
let a =
|
|
143
|
+
let a = V(e, t);
|
|
141
144
|
if (a === null) return null;
|
|
142
145
|
if (e.op === "update") {
|
|
143
146
|
let n = e.shapeItem ?? e.shape, o = n ? (e) => ({
|
|
@@ -151,24 +154,24 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
151
154
|
optimistic: !0
|
|
152
155
|
});
|
|
153
156
|
return (e) => {
|
|
154
|
-
let t =
|
|
157
|
+
let t = z(e, r);
|
|
155
158
|
if (!Array.isArray(t)) {
|
|
156
159
|
if (typeof t != "object" || !t) return e;
|
|
157
160
|
let n = t;
|
|
158
|
-
return a.has(n[i]) ?
|
|
161
|
+
return a.has(n[i]) ? B(e, r, o(n)) : e;
|
|
159
162
|
}
|
|
160
|
-
return
|
|
163
|
+
return B(e, r, t.map((e) => a.has(e[i]) ? o(e) : e));
|
|
161
164
|
};
|
|
162
165
|
}
|
|
163
166
|
return (e) => {
|
|
164
|
-
let t = Array.isArray(
|
|
165
|
-
return
|
|
167
|
+
let t = Array.isArray(z(e, r)) ? z(e, r) : [];
|
|
168
|
+
return B(e, r, t.filter((e) => !a.has(e[i])));
|
|
166
169
|
};
|
|
167
|
-
},
|
|
170
|
+
}, me = (e, t, n) => {
|
|
168
171
|
if (e.op === "insert") return n;
|
|
169
172
|
let r = t.id;
|
|
170
173
|
return typeof r == "string" && r.length > 0 ? r : null;
|
|
171
|
-
},
|
|
174
|
+
}, he = (e, t, n, r) => {
|
|
172
175
|
let { anchorColumn: i, targetColumn: a } = e, o = new Set(n.map((e) => String(e)));
|
|
173
176
|
return (e) => {
|
|
174
177
|
if (!Array.isArray(e)) return e;
|
|
@@ -199,8 +202,8 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
199
202
|
}));
|
|
200
203
|
return c ? n : e;
|
|
201
204
|
};
|
|
202
|
-
},
|
|
203
|
-
if (e.path !== void 0) return
|
|
205
|
+
}, ge = (e, t, n) => {
|
|
206
|
+
if (e.path !== void 0) return pe(e, t, n);
|
|
204
207
|
switch (e.op) {
|
|
205
208
|
case "insert": {
|
|
206
209
|
let r = e.shape ? {
|
|
@@ -218,7 +221,7 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
218
221
|
};
|
|
219
222
|
}
|
|
220
223
|
case "update": {
|
|
221
|
-
let n =
|
|
224
|
+
let n = V(e, t);
|
|
222
225
|
if (n === null) return null;
|
|
223
226
|
let r = e.shape, i = r ? (e) => ({
|
|
224
227
|
...r(t, e),
|
|
@@ -241,7 +244,7 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
241
244
|
};
|
|
242
245
|
}
|
|
243
246
|
case "delete": {
|
|
244
|
-
let n =
|
|
247
|
+
let n = V(e, t);
|
|
245
248
|
return n === null ? null : (e) => {
|
|
246
249
|
if (!Array.isArray(e)) {
|
|
247
250
|
let t = e;
|
|
@@ -251,7 +254,7 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
251
254
|
};
|
|
252
255
|
}
|
|
253
256
|
}
|
|
254
|
-
},
|
|
257
|
+
}, _e = 5e3, ve = 15e3, ye = 2e3, be = () => globalThis.document?.visibilityState === "hidden", H = class {
|
|
255
258
|
entries = /* @__PURE__ */ new Map();
|
|
256
259
|
refreshing = /* @__PURE__ */ new WeakSet();
|
|
257
260
|
successor;
|
|
@@ -263,7 +266,7 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
263
266
|
apiName;
|
|
264
267
|
recoveryStuckMs;
|
|
265
268
|
constructor(e = {}) {
|
|
266
|
-
this.inactiveTtlMs = e.inactiveTtlMs ??
|
|
269
|
+
this.inactiveTtlMs = e.inactiveTtlMs ?? _e, this.onChangeHook = e.onChange, this.errorBus = e.errorBus, this.mirror = e.mirror, this.mergeCell = e.mergeCell, this.apiName = e.apiName, this.recoveryStuckMs = e.recoveryStuckMs ?? ve;
|
|
267
270
|
}
|
|
268
271
|
diagnose(e, t, n = {}) {
|
|
269
272
|
this.apiName !== void 0 && F(this.apiName, e, {
|
|
@@ -285,7 +288,7 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
285
288
|
let r = I(e), i = typeof e[0] == "string" ? e[0] : void 0, a = this.entries.get(r);
|
|
286
289
|
a ||= this.createStub(r, i);
|
|
287
290
|
let o = {
|
|
288
|
-
id:
|
|
291
|
+
id: fe(),
|
|
289
292
|
mutationId: n,
|
|
290
293
|
reducer: t
|
|
291
294
|
};
|
|
@@ -299,7 +302,7 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
299
302
|
for (let i of this.entries.values()) {
|
|
300
303
|
if (i.tag !== e) continue;
|
|
301
304
|
let a = {
|
|
302
|
-
id: `forTag-${++
|
|
305
|
+
id: `forTag-${++R}`,
|
|
303
306
|
mutationId: n,
|
|
304
307
|
reducer: t
|
|
305
308
|
};
|
|
@@ -347,7 +350,7 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
347
350
|
}
|
|
348
351
|
}
|
|
349
352
|
autoApply(e, t, n) {
|
|
350
|
-
let r = `optimistic-${n}-${++
|
|
353
|
+
let r = `optimistic-${n}-${++R}`;
|
|
351
354
|
for (let i of e) {
|
|
352
355
|
for (let e of this.entries.values()) {
|
|
353
356
|
if (!(Array.isArray(e.source) ? e.source.includes(i.table) : e.source === i.table)) continue;
|
|
@@ -361,7 +364,7 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
361
364
|
if (!n) continue;
|
|
362
365
|
}
|
|
363
366
|
if (e.computed && i.op === "insert" && i.path === void 0) continue;
|
|
364
|
-
let a =
|
|
367
|
+
let a = ge(i, t, r);
|
|
365
368
|
if (a === null) continue;
|
|
366
369
|
let o = {
|
|
367
370
|
id: `${r}-${e.key}`,
|
|
@@ -374,10 +377,10 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
374
377
|
if (e !== void 0) for (let [a, o] of Object.entries(e)) {
|
|
375
378
|
let e = t[a];
|
|
376
379
|
if (!Array.isArray(e)) continue;
|
|
377
|
-
let s =
|
|
380
|
+
let s = me(i, t, r);
|
|
378
381
|
if (s !== null) for (let t of this.entries.values()) {
|
|
379
382
|
if (!(Array.isArray(t.source) ? t.source.includes(o.junction) : t.source === o.junction) || t.computed) continue;
|
|
380
|
-
let i =
|
|
383
|
+
let i = he(o, s, e.map((e) => String(e)), `${r}-${a}`);
|
|
381
384
|
t.state.patches.push({
|
|
382
385
|
id: `${r}-${a}-${t.key}`,
|
|
383
386
|
mutationId: n,
|
|
@@ -453,8 +456,8 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
453
456
|
let i = Date.now();
|
|
454
457
|
e.recoveryTimer = setTimeout(() => {
|
|
455
458
|
if (e.recoveryPhase !== "awaiting-delivery" || e.recoveryAttempt !== t) return;
|
|
456
|
-
let a = Date.now() - i, o = Math.max(0, a - this.recoveryStuckMs), s =
|
|
457
|
-
if (o >
|
|
459
|
+
let a = Date.now() - i, o = Math.max(0, a - this.recoveryStuckMs), s = be();
|
|
460
|
+
if (o > ye || s) {
|
|
458
461
|
n += 1, n === 1 && this.diagnose("subscription.recovery-timer-late", e, {
|
|
459
462
|
waitedMs: a,
|
|
460
463
|
timerLateMs: o,
|
|
@@ -584,20 +587,20 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
584
587
|
startFiber(t, i, a) {
|
|
585
588
|
let o = t.tag ?? t.key, c = ++t.generation, l = new Set(t.state.patches.filter((e) => e.confirmed === !0).map((e) => e.id));
|
|
586
589
|
l.size > 0 && (t.primaryReads = !0);
|
|
587
|
-
let
|
|
590
|
+
let u = t.primaryReads ? `reconcile-${++de}` : void 0;
|
|
588
591
|
t.resumeAfterTransportOpen = !1;
|
|
589
|
-
let m = i(),
|
|
592
|
+
let m = i(), h = d.unwrapScoped(n.currentSpan.pipe(n.catchAll(() => n.succeed(void 0)), n.map((e) => (e && (t.traceId = e.traceId, S({
|
|
590
593
|
traceId: e.traceId,
|
|
591
594
|
spanId: e.spanId,
|
|
592
595
|
source: "subscription",
|
|
593
596
|
tag: o
|
|
594
|
-
})), m)))).pipe(
|
|
597
|
+
})), m)))).pipe(d.withSpan(`client.subscription.${o}`, { attributes: { "rpc.tag": o } })), _ = u === void 0 && t.state.baseRevision >= 0 ? t.state.baseRevision : void 0, v = h.pipe(d.runForEach((r) => n.sync(() => {
|
|
595
598
|
if (t.generation === c && this.entries.get(t.key) === t) {
|
|
596
599
|
if (r._tag === "snapshot") t.state.base = r.data, t.state.baseRevision = r.revision, t.state.baseEmittedAt = void 0, t.state.baseError = void 0, r.computed === !0 && (t.computed = !0);
|
|
597
600
|
else if (r._tag === "error") t.state.baseError = e.fail(r.error), typeof r.revision == "number" && (t.state.baseRevision = r.revision);
|
|
598
601
|
else {
|
|
599
602
|
let e = t.state.base;
|
|
600
|
-
Array.isArray(e) && (t.state.base =
|
|
603
|
+
Array.isArray(e) && (t.state.base = g(e, r.patch, this.mergeCell === void 0 ? {} : { mergeCell: this.mergeCell })), t.state.baseRevision = r.revision, t.state.baseEmittedAt = r.emittedAt, t.state.baseError = void 0;
|
|
601
604
|
}
|
|
602
605
|
this.refreshing.delete(t), r._tag !== "error" && (t.lastDeliveryAt = Date.now(), t.recoveryPhase !== "steady" && (t.recoveryTimer !== null && clearTimeout(t.recoveryTimer), t.recoveryTimer = null, this.diagnose("subscription.first-delivery", t, {
|
|
603
606
|
delivery: r._tag,
|
|
@@ -605,17 +608,17 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
605
608
|
}), t.recoveryPhase = "steady", this.diagnose("subscription.health-cleared", t, { delivery: r._tag })), this.errorBus?.emitSuccess({
|
|
606
609
|
source: "subscription",
|
|
607
610
|
tag: t.tag ?? t.key
|
|
608
|
-
})),
|
|
611
|
+
})), ue(r, u) && (t.state.patches = t.state.patches.filter((e) => !l.has(e.id))), this.mirror !== void 0 && r._tag !== "error" && this.mirror.save(t.key, {
|
|
609
612
|
tag: t.tag,
|
|
610
613
|
data: t.state.base,
|
|
611
614
|
revision: t.state.baseRevision
|
|
612
615
|
}).catch(() => {}), this.invalidate(t);
|
|
613
616
|
}
|
|
614
|
-
}))), y = a.runFork(
|
|
617
|
+
}))), y = a.runFork(u === void 0 ? _ === void 0 ? v : v.pipe(n.locallyWith(p.currentHeaders, (e) => f.set(e, "voltro-resume-from", String(_)))) : v.pipe(n.locallyWith(p.currentHeaders, (e) => f.set(f.remove(e, "voltro-resume-from"), "voltro-reconcile", u))));
|
|
615
618
|
t.fiber = y, y.addObserver((n) => {
|
|
616
619
|
if (t.generation === c && this.entries.get(t.key) === t && (this.refreshing.delete(t), t.fiber === y && (t.fiber = null), r.isFailure(n) && !r.isInterrupted(n))) {
|
|
617
620
|
t.state.baseRevision === -1 && (t.state.baseError = n.cause, this.invalidate(t));
|
|
618
|
-
let r =
|
|
621
|
+
let r = b(n.cause), i = e.failureOption(n.cause), a = s.isSome(i) ? T(i.value, "handler") : "unknown";
|
|
619
622
|
a === "transport" && (t.recoveryTimer !== null && clearTimeout(t.recoveryTimer), t.recoveryTimer = null, t.resumeAfterTransportOpen = !0, t.recoveryPhase = "awaiting-protocol", t.lastTransportFailureAt = Date.now(), this.diagnose("subscription.transport-failed", t)), this.errorBus && this.errorBus.emit({
|
|
620
623
|
source: "subscription",
|
|
621
624
|
tag: t.tag ?? t.key,
|
|
@@ -634,7 +637,7 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
634
637
|
}
|
|
635
638
|
getSnapshot(e) {
|
|
636
639
|
let t = this.entries.get(e);
|
|
637
|
-
if (!t) return
|
|
640
|
+
if (!t) return le;
|
|
638
641
|
if (t.state.cachedSnapshot !== null) return t.state.cachedSnapshot;
|
|
639
642
|
let n = t.state.base;
|
|
640
643
|
if (n !== void 0 && t.state.patches.length > 0) for (let e of t.state.patches) n = e.reducer(n);
|
|
@@ -657,26 +660,26 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
657
660
|
t && t.subscribers.size === 0 && (t.recoveryTimer !== null && clearTimeout(t.recoveryTimer), t.fiber && n.runFork(i.interrupt(t.fiber)), this.entries.delete(e.key));
|
|
658
661
|
}, this.inactiveTtlMs);
|
|
659
662
|
}
|
|
660
|
-
},
|
|
663
|
+
}, xe = class extends H {
|
|
661
664
|
subscribe(e, t, n, r, i = {}) {
|
|
662
665
|
return {
|
|
663
666
|
getSnapshot: () => this.peek(e),
|
|
664
667
|
unsubscribe: () => {}
|
|
665
668
|
};
|
|
666
669
|
}
|
|
667
|
-
},
|
|
668
|
-
for (let t of
|
|
670
|
+
}, U = /* @__PURE__ */ new Set(), W = (e) => {
|
|
671
|
+
for (let t of U) try {
|
|
669
672
|
t(e);
|
|
670
673
|
} catch {}
|
|
671
|
-
},
|
|
672
|
-
|
|
673
|
-
}),
|
|
674
|
-
|
|
674
|
+
}, Se = (e) => (U.add(e), () => {
|
|
675
|
+
U.delete(e);
|
|
676
|
+
}), Ce = (e, t) => {
|
|
677
|
+
W({
|
|
675
678
|
error: e,
|
|
676
679
|
source: "manual",
|
|
677
680
|
...t ? { context: t } : {}
|
|
678
681
|
});
|
|
679
|
-
},
|
|
682
|
+
}, G = class {
|
|
680
683
|
#e = /* @__PURE__ */ new Set();
|
|
681
684
|
#t = /* @__PURE__ */ new Set();
|
|
682
685
|
on(e) {
|
|
@@ -688,7 +691,7 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
688
691
|
for (let t of this.#e) try {
|
|
689
692
|
t(e);
|
|
690
693
|
} catch {}
|
|
691
|
-
|
|
694
|
+
W({
|
|
692
695
|
error: e.error,
|
|
693
696
|
source: `rpc.${e.source}`,
|
|
694
697
|
context: {
|
|
@@ -710,32 +713,32 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
710
713
|
t(e);
|
|
711
714
|
} catch {}
|
|
712
715
|
}
|
|
713
|
-
},
|
|
714
|
-
let t = Math.trunc(
|
|
716
|
+
}, K = (e, t, n, r) => Math.min(r, Math.max(n, e === void 0 || !Number.isFinite(e) ? t : e)), we = (e) => {
|
|
717
|
+
let t = Math.trunc(K(e?.maxMs, 5e3, 50, 6e4));
|
|
715
718
|
return {
|
|
716
|
-
initialMs: Math.trunc(
|
|
717
|
-
thenMs: Math.trunc(
|
|
718
|
-
factor:
|
|
719
|
+
initialMs: Math.trunc(K(e?.initialMs, 0, 0, t)),
|
|
720
|
+
thenMs: Math.trunc(K(e?.thenMs, 500, 50, t)),
|
|
721
|
+
factor: K(e?.factor, 1.5, 1, 10),
|
|
719
722
|
maxMs: t
|
|
720
723
|
};
|
|
721
|
-
},
|
|
724
|
+
}, q = (e, t) => t <= 1 ? e.initialMs : Math.min(e.maxMs, e.thenMs * e.factor ** (t - 2)), Te = (e, t) => {
|
|
722
725
|
let r = 0;
|
|
723
726
|
return {
|
|
724
727
|
reset: () => {
|
|
725
728
|
r = 0;
|
|
726
729
|
},
|
|
727
|
-
schedule:
|
|
728
|
-
let n =
|
|
730
|
+
schedule: l.forever.pipe(l.addDelayEffect(() => n.sync(() => {
|
|
731
|
+
let n = q(e, ++r);
|
|
729
732
|
return t(r, n), n;
|
|
730
733
|
})))
|
|
731
734
|
};
|
|
732
|
-
},
|
|
733
|
-
graceMs:
|
|
734
|
-
retry:
|
|
735
|
-
maxPendingMutations:
|
|
736
|
-
replayWindowMs:
|
|
735
|
+
}, J = (e, t, n, r) => e === void 0 || !Number.isFinite(e) ? t : Math.min(r, Math.max(n, Math.trunc(e))), Ee = (e) => ({
|
|
736
|
+
graceMs: J(e?.graceMs, 1500, 0, 3e4),
|
|
737
|
+
retry: we(e?.retry),
|
|
738
|
+
maxPendingMutations: J(e?.maxPendingMutations, 32, 0, 256),
|
|
739
|
+
replayWindowMs: J(e?.replayWindowMs, 1e4, 250, 6e4),
|
|
737
740
|
capabilitiesUrl: e?.capabilitiesUrl
|
|
738
|
-
}),
|
|
741
|
+
}), De = Object.freeze({
|
|
739
742
|
rawTransport: "connected",
|
|
740
743
|
status: "connected",
|
|
741
744
|
failureCount: 0,
|
|
@@ -743,7 +746,7 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
743
746
|
failedSubscriptions: Object.freeze([]),
|
|
744
747
|
pendingMutationReplays: 0,
|
|
745
748
|
mutationReplay: "unknown"
|
|
746
|
-
}),
|
|
749
|
+
}), Y = class {
|
|
747
750
|
#e;
|
|
748
751
|
#t;
|
|
749
752
|
#n;
|
|
@@ -766,7 +769,7 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
766
769
|
#y = !1;
|
|
767
770
|
#b;
|
|
768
771
|
constructor(e, t, n) {
|
|
769
|
-
this.#e = e, this.#t =
|
|
772
|
+
this.#e = e, this.#t = Ee(t), this.#n = {
|
|
770
773
|
now: n?.now ?? Date.now,
|
|
771
774
|
setTimeout: n?.setTimeout ?? ((e, t) => setTimeout(e, t)),
|
|
772
775
|
clearTimeout: n?.clearTimeout ?? ((e) => clearTimeout(e))
|
|
@@ -779,7 +782,7 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
779
782
|
return this.#g.signal;
|
|
780
783
|
}
|
|
781
784
|
getSnapshot = () => this.#b;
|
|
782
|
-
getServerSnapshot = () =>
|
|
785
|
+
getServerSnapshot = () => De;
|
|
783
786
|
subscribe = (e) => (this.#r.add(e), () => {
|
|
784
787
|
this.#r.delete(e);
|
|
785
788
|
});
|
|
@@ -915,17 +918,17 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
915
918
|
for (let e of this.#o) e(!1);
|
|
916
919
|
this.#o.clear(), this.#r.clear(), this.#i.clear();
|
|
917
920
|
}
|
|
918
|
-
},
|
|
919
|
-
let r =
|
|
921
|
+
}, Oe = /* @__PURE__ */ new WeakMap(), ke = (e, t, n) => {
|
|
922
|
+
let r = Oe.get(e);
|
|
920
923
|
if (r !== void 0) return r;
|
|
921
|
-
let i = new
|
|
922
|
-
return e.on((e) => i.observeError(e)), typeof e.onSuccess == "function" && e.onSuccess((e) => i.observeSuccess(e)),
|
|
923
|
-
},
|
|
924
|
+
let i = new Y(t, n);
|
|
925
|
+
return e.on((e) => i.observeError(e)), typeof e.onSuccess == "function" && e.onSuccess((e) => i.observeSuccess(e)), Oe.set(e, i), i;
|
|
926
|
+
}, Ae = {
|
|
924
927
|
channel: "timer",
|
|
925
928
|
yield: (e) => {
|
|
926
929
|
setTimeout(e, 0);
|
|
927
930
|
}
|
|
928
|
-
},
|
|
931
|
+
}, je = (e) => {
|
|
929
932
|
let t = [];
|
|
930
933
|
return e.port1.onmessage = () => {
|
|
931
934
|
t.shift()?.();
|
|
@@ -935,18 +938,18 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
935
938
|
t.push(n), e.port2.postMessage(null);
|
|
936
939
|
}
|
|
937
940
|
};
|
|
938
|
-
},
|
|
939
|
-
let n =
|
|
941
|
+
}, Me = () => globalThis.window !== void 0 && typeof MessageChannel == "function" ? je(new MessageChannel()) : Ae, Ne = 2048, Pe = (e = Me(), t = Ne) => {
|
|
942
|
+
let n = u.SchedulerRunner.cached((n, r) => {
|
|
940
943
|
n >= t ? e.yield(() => r(0)) : Promise.resolve().then(() => r(n + 1));
|
|
941
944
|
});
|
|
942
945
|
return {
|
|
943
946
|
yieldChannel: e.channel,
|
|
944
|
-
shouldYield:
|
|
947
|
+
shouldYield: u.defaultShouldYield,
|
|
945
948
|
scheduleTask: (e, t, r) => {
|
|
946
949
|
n(r).scheduleTask(e, t);
|
|
947
950
|
}
|
|
948
951
|
};
|
|
949
|
-
},
|
|
952
|
+
}, Fe = (e, t, n) => {
|
|
950
953
|
try {
|
|
951
954
|
let r = globalThis.location, i = typeof r == "object" && r ? r.href : void 0, a = new URL(e, i);
|
|
952
955
|
if (a.protocol === "wss:" ? a.protocol = "https:" : a.protocol === "ws:" && (a.protocol = "http:"), n !== void 0) return new URL(n, a).toString();
|
|
@@ -960,8 +963,8 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
960
963
|
} catch {
|
|
961
964
|
return;
|
|
962
965
|
}
|
|
963
|
-
},
|
|
964
|
-
let a =
|
|
966
|
+
}, Ie = async (e, t, n = fetch, r = 1500, i) => {
|
|
967
|
+
let a = Fe(e, t, i);
|
|
965
968
|
if (a === void 0) return;
|
|
966
969
|
let o = new AbortController(), s = setTimeout(() => o.abort(), r);
|
|
967
970
|
try {
|
|
@@ -985,7 +988,7 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
985
988
|
} finally {
|
|
986
989
|
clearTimeout(s);
|
|
987
990
|
}
|
|
988
|
-
},
|
|
991
|
+
}, Le = class {
|
|
989
992
|
#e;
|
|
990
993
|
#t;
|
|
991
994
|
#n;
|
|
@@ -1014,9 +1017,9 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
1014
1017
|
e();
|
|
1015
1018
|
} catch {}
|
|
1016
1019
|
}
|
|
1017
|
-
},
|
|
1018
|
-
|
|
1019
|
-
},
|
|
1020
|
+
}, X = /* @__PURE__ */ new WeakMap(), Re = (e, t) => {
|
|
1021
|
+
X.set(e, t);
|
|
1022
|
+
}, ze = (e) => X.get(e), Be = (e, t, r = new Le()) => y.Socket.of({
|
|
1020
1023
|
...e,
|
|
1021
1024
|
runRaw: (i, a) => n.acquireUseRelease(n.sync(() => r.begin()), (r) => e.runRaw(i, {
|
|
1022
1025
|
...a,
|
|
@@ -1024,10 +1027,10 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
1024
1027
|
r.open() !== void 0 && t();
|
|
1025
1028
|
}))
|
|
1026
1029
|
}), (e) => n.sync(e.close))
|
|
1027
|
-
}),
|
|
1030
|
+
}), Ve = 3, He = (e, t, n) => {
|
|
1028
1031
|
let r;
|
|
1029
1032
|
try {
|
|
1030
|
-
r =
|
|
1033
|
+
r = _(v(t), n);
|
|
1031
1034
|
} catch {
|
|
1032
1035
|
return;
|
|
1033
1036
|
}
|
|
@@ -1038,12 +1041,12 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
1038
1041
|
missingHere: a.length,
|
|
1039
1042
|
first: i[0] ?? a[0] ?? null
|
|
1040
1043
|
});
|
|
1041
|
-
let o = [...i, ...a].slice(0,
|
|
1044
|
+
let o = [...i, ...a].slice(0, Ve), s = i.length + a.length - o.length;
|
|
1042
1045
|
console.warn(`[voltro] the api client this page loaded does not match what the '${e}' server binds: ${o.join(", ")}${s > 0 ? ` and ${s} more` : ""}. Responses for those procedures may decode against the wrong schema — a field the server sends and this client does not know is dropped silently. Reload; if it persists, stop the dev server, delete \`.framework/.vite\`, and start it again.`);
|
|
1043
|
-
},
|
|
1046
|
+
}, Ue = async (e) => {
|
|
1044
1047
|
let { name: r, wsUrl: i, group: s, headers: c, webSocketConstructor: l } = e, u = e.generation ?? 0;
|
|
1045
1048
|
F(r, "runtime.build-started", { generation: u });
|
|
1046
|
-
let
|
|
1049
|
+
let d = e.errorBus ?? new G(), m = e.recovery ?? ke(d, r), g = Te(m.options.retry, (e, t) => {
|
|
1047
1050
|
F(r, "socket.retry-scheduled", {
|
|
1048
1051
|
generation: u,
|
|
1049
1052
|
attempt: e,
|
|
@@ -1051,45 +1054,45 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
1051
1054
|
owner: "socket"
|
|
1052
1055
|
});
|
|
1053
1056
|
});
|
|
1054
|
-
|
|
1055
|
-
|
|
1057
|
+
Ie(i, r, fetch, 1500, m.options.capabilitiesUrl).then((e) => {
|
|
1058
|
+
m.setMutationReplaySupported(e?.mutationReplay === !0, u), F(r, "runtime.capabilities", {
|
|
1056
1059
|
mutationReplay: e?.mutationReplay === !0,
|
|
1057
1060
|
discovered: e !== void 0
|
|
1058
|
-
}), e?.surface !== void 0 &&
|
|
1061
|
+
}), e?.surface !== void 0 && He(r, s, e.surface);
|
|
1059
1062
|
});
|
|
1060
|
-
let _ = new
|
|
1061
|
-
errorBus:
|
|
1063
|
+
let _ = new H({
|
|
1064
|
+
errorBus: d,
|
|
1062
1065
|
apiName: r
|
|
1063
|
-
}),
|
|
1066
|
+
}), v = new Le(), b;
|
|
1064
1067
|
class x extends t.Tag(`@voltro/client/AppClient/${r}`)() {}
|
|
1065
|
-
let S = a.succeed(
|
|
1068
|
+
let S = a.succeed(y.WebSocketConstructor, l), ee = y.layerWebSocket(i).pipe(a.provide(S)), C = a.effect(y.Socket, n.map(y.Socket, (e) => Be(e, () => {
|
|
1066
1069
|
g.reset();
|
|
1067
1070
|
let e = 0;
|
|
1068
1071
|
b !== void 0 && (e = _.resumeTransportFailures(b)), F(r, "protocol.ready", {
|
|
1069
1072
|
generation: u,
|
|
1070
1073
|
resumed: e
|
|
1071
|
-
}),
|
|
1072
|
-
},
|
|
1073
|
-
b =
|
|
1074
|
+
}), m.protocolReady();
|
|
1075
|
+
}, v))).pipe(a.provide(ee)), w = p.layerProtocolSocket({ retrySchedule: g.schedule }).pipe(a.provide(h.layerJson), a.provide(C)), T = typeof c == "function" ? await c() : c, E = a.scoped(x, p.make(s)).pipe(a.provide(w)), D = T ? a.locallyScoped(p.currentHeaders, f.fromInput(T)) : a.empty, O = Pe(), k = o.make(a.merge(E, D).pipe(a.provide(a.setScheduler(O))));
|
|
1076
|
+
b = k, Re(b, v);
|
|
1074
1077
|
try {
|
|
1075
|
-
let e = await
|
|
1078
|
+
let e = await k.runPromise(x);
|
|
1076
1079
|
return F(r, "runtime.resolved", {
|
|
1077
1080
|
generation: u,
|
|
1078
|
-
scheduler:
|
|
1081
|
+
scheduler: O.yieldChannel
|
|
1079
1082
|
}), {
|
|
1080
|
-
runtime:
|
|
1083
|
+
runtime: k,
|
|
1081
1084
|
client: e,
|
|
1082
1085
|
cache: _,
|
|
1083
|
-
errorBus:
|
|
1084
|
-
recovery:
|
|
1086
|
+
errorBus: d,
|
|
1087
|
+
recovery: m
|
|
1085
1088
|
};
|
|
1086
1089
|
} catch (e) {
|
|
1087
1090
|
throw F(r, "runtime.failed", {
|
|
1088
1091
|
generation: u,
|
|
1089
1092
|
errorName: e instanceof Error ? e.name : typeof e
|
|
1090
|
-
}),
|
|
1093
|
+
}), k.dispose(), e;
|
|
1091
1094
|
}
|
|
1092
|
-
},
|
|
1095
|
+
}, We = (e, t, n) => ({
|
|
1093
1096
|
resolved: null,
|
|
1094
1097
|
retryToken: 0,
|
|
1095
1098
|
failureCount: 0,
|
|
@@ -1107,13 +1110,13 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
1107
1110
|
e.wedgeStop !== null && (e.wedgeStop(), e.wedgeStop = null);
|
|
1108
1111
|
}, Q = (e) => {
|
|
1109
1112
|
e.cache.destroy(e.runtime), e.runtime.dispose();
|
|
1110
|
-
},
|
|
1113
|
+
}, Ge = (e) => {
|
|
1111
1114
|
let t = e.apis, n = e.buildClient, r = e.onChange, i = e.stableWindowMs ?? 5e3, a = e.scheduler?.setTimeout ?? ((e, t) => setTimeout(e, t)), o = e.scheduler?.clearTimeout ?? ((e) => {
|
|
1112
1115
|
clearTimeout(e);
|
|
1113
1116
|
}), s = e.scheduler?.queueMicrotask ?? queueMicrotask, c = e.onReconnecting, l = e.wedgeBackstop, u = /* @__PURE__ */ new Map();
|
|
1114
1117
|
for (let n of t) {
|
|
1115
|
-
let t = e.errorBusFor?.(n.name) ?? new
|
|
1116
|
-
u.set(n.name,
|
|
1118
|
+
let t = e.errorBusFor?.(n.name) ?? new G(), r = e.recoveryFor?.(n.name, n.recovery), i = r ?? new Y(n.name, n.recovery);
|
|
1119
|
+
u.set(n.name, We(t, i, r === void 0));
|
|
1117
1120
|
}
|
|
1118
1121
|
let d = !1, f = /* @__PURE__ */ new Set(), p = (e, t) => {
|
|
1119
1122
|
let n = a(() => {
|
|
@@ -1132,7 +1135,7 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
1132
1135
|
let n = u.get(t.name);
|
|
1133
1136
|
if (!n) return;
|
|
1134
1137
|
h(t, n);
|
|
1135
|
-
let r = e.retryDelayMs?.(n.failureCount) ??
|
|
1138
|
+
let r = e.retryDelayMs?.(n.failureCount) ?? q(n.recovery.options.retry, n.failureCount);
|
|
1136
1139
|
F(t.name, "socket.retry-scheduled", {
|
|
1137
1140
|
generation: n.generation,
|
|
1138
1141
|
attempt: n.failureCount,
|
|
@@ -1206,7 +1209,7 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
1206
1209
|
v(!1);
|
|
1207
1210
|
}
|
|
1208
1211
|
});
|
|
1209
|
-
},
|
|
1212
|
+
}, Ke = (e, t) => {
|
|
1210
1213
|
let n = t.split("."), r = e;
|
|
1211
1214
|
for (let e = 0; e < n.length; e++) {
|
|
1212
1215
|
let i = n[e];
|
|
@@ -1225,12 +1228,12 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
1225
1228
|
}
|
|
1226
1229
|
if (typeof r != "function") throw Error(`@voltro/client: rpc tag ${JSON.stringify(t)} did not resolve to a callable method.`);
|
|
1227
1230
|
return r;
|
|
1228
|
-
},
|
|
1231
|
+
}, qe = async (t, n) => {
|
|
1229
1232
|
let i = await t.runPromiseExit(n);
|
|
1230
1233
|
if (r.isSuccess(i)) return i.value;
|
|
1231
|
-
let a =
|
|
1232
|
-
throw
|
|
1233
|
-
}, $ = (e) => e?._tag === "Unauthenticated",
|
|
1234
|
+
let a = b(i.cause), o = e.failureOption(i.cause);
|
|
1235
|
+
throw w(a, s.isSome(o) ? T(o.value, "handler") : "unknown");
|
|
1236
|
+
}, $ = (e) => e?._tag === "Unauthenticated", Je = (e, t, n = {}) => {
|
|
1234
1237
|
let r = n.cooldownMs ?? 15e3, i = n.maxConsecutive ?? 3, a = n.now ?? (() => Date.now()), o = -Infinity, s = 0, c = e.on((e) => {
|
|
1235
1238
|
if (!$(e.error) || s >= i) return;
|
|
1236
1239
|
let n = a();
|
|
@@ -1248,4 +1251,4 @@ var y = /* @__PURE__ */ new Set(), b = (e) => {
|
|
|
1248
1251
|
};
|
|
1249
1252
|
};
|
|
1250
1253
|
//#endregion
|
|
1251
|
-
export {
|
|
1254
|
+
export { ee as A, ae as C, w as D, ce as E, T as O, oe as S, F as T, xe as _, Ge as a, ue as b, ze as c, ke as d, Ee as f, Se as g, Ce as h, Ke as i, b as j, S as k, De as l, W as m, Je as n, Ue as o, G as p, qe as r, Be as s, $ as t, Y as u, H as v, ie as w, se as x, I as y };
|