@antcde/vue-utils 0.2.0 → 0.2.10
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/README.md +4 -1
- package/dist/index.js +116 -1327
- package/dist/types/index.d.ts +1 -1
- package/dist/types/useAntColorMode.d.ts +1 -1
- package/dist/types/useAntI18n.d.ts +3 -3
- package/dist/types/useCommsClient.d.ts +2 -3
- package/dist/types/useCommsHost.d.ts +1 -1
- package/dist/types/utils.d.ts +38 -0
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { useColorMode as
|
|
2
|
-
import { computed as
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { newCommsClient as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { useColorMode as A, objectPick as O, objectOmit as C, useMagicKeys as I, whenever as f, watchDebounced as E, useAsyncState as L } from "@vueuse/core";
|
|
2
|
+
import { computed as i, watch as h, ref as b, onBeforeUnmount as w, onMounted as U, onUnmounted as D, readonly as H, inject as z } from "vue";
|
|
3
|
+
import { useI18n as B } from "vue-i18n";
|
|
4
|
+
import { newCommsClient as K, newCommsHost as P } from "@antcde/connect-ts";
|
|
5
|
+
import { concat as T, Subject as _, concatMap as v, map as S, distinctUntilChanged as V, debounceTime as W, tap as q, BehaviorSubject as x, filter as F } from "rxjs";
|
|
6
|
+
function ee(o, s) {
|
|
7
|
+
const t = A(s), e = i(() => o.context.value.darkMode), a = i(() => {
|
|
8
|
+
switch (e.value) {
|
|
8
9
|
case null:
|
|
9
10
|
return "auto";
|
|
10
11
|
case !0:
|
|
@@ -14,8 +15,8 @@ function Re(e, r) {
|
|
|
14
15
|
default:
|
|
15
16
|
return t.value;
|
|
16
17
|
}
|
|
17
|
-
}),
|
|
18
|
-
switch (
|
|
18
|
+
}), r = i(() => {
|
|
19
|
+
switch (a.value) {
|
|
19
20
|
case "light":
|
|
20
21
|
case "auto":
|
|
21
22
|
return !1;
|
|
@@ -24,1350 +25,138 @@ function Re(e, r) {
|
|
|
24
25
|
}
|
|
25
26
|
});
|
|
26
27
|
return Object.assign(
|
|
27
|
-
|
|
28
|
-
{ host:
|
|
29
|
-
|
|
28
|
+
a,
|
|
29
|
+
{ host: e, isDark: r },
|
|
30
|
+
O(t, ["state", "system", "store"])
|
|
30
31
|
);
|
|
31
32
|
}
|
|
32
|
-
function
|
|
33
|
-
const t =
|
|
34
|
-
return
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
(n, o) => Object.defineProperty(n, o, {
|
|
39
|
-
get: () => t.value[o],
|
|
40
|
-
enumerable: !0
|
|
41
|
-
}),
|
|
42
|
-
{}
|
|
43
|
-
);
|
|
44
|
-
}
|
|
45
|
-
var K = function(e, r) {
|
|
46
|
-
return K = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, n) {
|
|
47
|
-
t.__proto__ = n;
|
|
48
|
-
} || function(t, n) {
|
|
49
|
-
for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
50
|
-
}, K(e, r);
|
|
51
|
-
};
|
|
52
|
-
function x(e, r) {
|
|
53
|
-
if (typeof r != "function" && r !== null)
|
|
54
|
-
throw new TypeError("Class extends value " + String(r) + " is not a constructor or null");
|
|
55
|
-
K(e, r);
|
|
56
|
-
function t() {
|
|
57
|
-
this.constructor = e;
|
|
58
|
-
}
|
|
59
|
-
e.prototype = r === null ? Object.create(r) : (t.prototype = r.prototype, new t());
|
|
60
|
-
}
|
|
61
|
-
function Mt(e, r, t, n) {
|
|
62
|
-
function o(i) {
|
|
63
|
-
return i instanceof t ? i : new t(function(u) {
|
|
64
|
-
u(i);
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
return new (t || (t = Promise))(function(i, u) {
|
|
68
|
-
function s(l) {
|
|
69
|
-
try {
|
|
70
|
-
c(n.next(l));
|
|
71
|
-
} catch (d) {
|
|
72
|
-
u(d);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
function a(l) {
|
|
76
|
-
try {
|
|
77
|
-
c(n.throw(l));
|
|
78
|
-
} catch (d) {
|
|
79
|
-
u(d);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
function c(l) {
|
|
83
|
-
l.done ? i(l.value) : o(l.value).then(s, a);
|
|
84
|
-
}
|
|
85
|
-
c((n = n.apply(e, r || [])).next());
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
function ut(e, r) {
|
|
89
|
-
var t = { label: 0, sent: function() {
|
|
90
|
-
if (i[0] & 1) throw i[1];
|
|
91
|
-
return i[1];
|
|
92
|
-
}, trys: [], ops: [] }, n, o, i, u = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
|
93
|
-
return u.next = s(0), u.throw = s(1), u.return = s(2), typeof Symbol == "function" && (u[Symbol.iterator] = function() {
|
|
94
|
-
return this;
|
|
95
|
-
}), u;
|
|
96
|
-
function s(c) {
|
|
97
|
-
return function(l) {
|
|
98
|
-
return a([c, l]);
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
function a(c) {
|
|
102
|
-
if (n) throw new TypeError("Generator is already executing.");
|
|
103
|
-
for (; u && (u = 0, c[0] && (t = 0)), t; ) try {
|
|
104
|
-
if (n = 1, o && (i = c[0] & 2 ? o.return : c[0] ? o.throw || ((i = o.return) && i.call(o), 0) : o.next) && !(i = i.call(o, c[1])).done) return i;
|
|
105
|
-
switch (o = 0, i && (c = [c[0] & 2, i.value]), c[0]) {
|
|
106
|
-
case 0:
|
|
107
|
-
case 1:
|
|
108
|
-
i = c;
|
|
109
|
-
break;
|
|
110
|
-
case 4:
|
|
111
|
-
return t.label++, { value: c[1], done: !1 };
|
|
112
|
-
case 5:
|
|
113
|
-
t.label++, o = c[1], c = [0];
|
|
114
|
-
continue;
|
|
115
|
-
case 7:
|
|
116
|
-
c = t.ops.pop(), t.trys.pop();
|
|
117
|
-
continue;
|
|
118
|
-
default:
|
|
119
|
-
if (i = t.trys, !(i = i.length > 0 && i[i.length - 1]) && (c[0] === 6 || c[0] === 2)) {
|
|
120
|
-
t = 0;
|
|
121
|
-
continue;
|
|
122
|
-
}
|
|
123
|
-
if (c[0] === 3 && (!i || c[1] > i[0] && c[1] < i[3])) {
|
|
124
|
-
t.label = c[1];
|
|
125
|
-
break;
|
|
126
|
-
}
|
|
127
|
-
if (c[0] === 6 && t.label < i[1]) {
|
|
128
|
-
t.label = i[1], i = c;
|
|
129
|
-
break;
|
|
130
|
-
}
|
|
131
|
-
if (i && t.label < i[2]) {
|
|
132
|
-
t.label = i[2], t.ops.push(c);
|
|
133
|
-
break;
|
|
134
|
-
}
|
|
135
|
-
i[2] && t.ops.pop(), t.trys.pop();
|
|
136
|
-
continue;
|
|
137
|
-
}
|
|
138
|
-
c = r.call(e, t);
|
|
139
|
-
} catch (l) {
|
|
140
|
-
c = [6, l], o = 0;
|
|
141
|
-
} finally {
|
|
142
|
-
n = i = 0;
|
|
143
|
-
}
|
|
144
|
-
if (c[0] & 5) throw c[1];
|
|
145
|
-
return { value: c[0] ? c[1] : void 0, done: !0 };
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
function P(e) {
|
|
149
|
-
var r = typeof Symbol == "function" && Symbol.iterator, t = r && e[r], n = 0;
|
|
150
|
-
if (t) return t.call(e);
|
|
151
|
-
if (e && typeof e.length == "number") return {
|
|
152
|
-
next: function() {
|
|
153
|
-
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
154
|
-
}
|
|
155
|
-
};
|
|
156
|
-
throw new TypeError(r ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
157
|
-
}
|
|
158
|
-
function R(e, r) {
|
|
159
|
-
var t = typeof Symbol == "function" && e[Symbol.iterator];
|
|
160
|
-
if (!t) return e;
|
|
161
|
-
var n = t.call(e), o, i = [], u;
|
|
162
|
-
try {
|
|
163
|
-
for (; (r === void 0 || r-- > 0) && !(o = n.next()).done; ) i.push(o.value);
|
|
164
|
-
} catch (s) {
|
|
165
|
-
u = { error: s };
|
|
166
|
-
} finally {
|
|
167
|
-
try {
|
|
168
|
-
o && !o.done && (t = n.return) && t.call(n);
|
|
169
|
-
} finally {
|
|
170
|
-
if (u) throw u.error;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
return i;
|
|
174
|
-
}
|
|
175
|
-
function F(e, r, t) {
|
|
176
|
-
if (t || arguments.length === 2) for (var n = 0, o = r.length, i; n < o; n++)
|
|
177
|
-
(i || !(n in r)) && (i || (i = Array.prototype.slice.call(r, 0, n)), i[n] = r[n]);
|
|
178
|
-
return e.concat(i || Array.prototype.slice.call(r));
|
|
179
|
-
}
|
|
180
|
-
function j(e) {
|
|
181
|
-
return this instanceof j ? (this.v = e, this) : new j(e);
|
|
182
|
-
}
|
|
183
|
-
function Rt(e, r, t) {
|
|
184
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
185
|
-
var n = t.apply(e, r || []), o, i = [];
|
|
186
|
-
return o = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), s("next"), s("throw"), s("return", u), o[Symbol.asyncIterator] = function() {
|
|
187
|
-
return this;
|
|
188
|
-
}, o;
|
|
189
|
-
function u(f) {
|
|
190
|
-
return function(b) {
|
|
191
|
-
return Promise.resolve(b).then(f, d);
|
|
192
|
-
};
|
|
193
|
-
}
|
|
194
|
-
function s(f, b) {
|
|
195
|
-
n[f] && (o[f] = function(v) {
|
|
196
|
-
return new Promise(function(A, h) {
|
|
197
|
-
i.push([f, v, A, h]) > 1 || a(f, v);
|
|
198
|
-
});
|
|
199
|
-
}, b && (o[f] = b(o[f])));
|
|
200
|
-
}
|
|
201
|
-
function a(f, b) {
|
|
202
|
-
try {
|
|
203
|
-
c(n[f](b));
|
|
204
|
-
} catch (v) {
|
|
205
|
-
y(i[0][3], v);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
function c(f) {
|
|
209
|
-
f.value instanceof j ? Promise.resolve(f.value.v).then(l, d) : y(i[0][2], f);
|
|
210
|
-
}
|
|
211
|
-
function l(f) {
|
|
212
|
-
a("next", f);
|
|
213
|
-
}
|
|
214
|
-
function d(f) {
|
|
215
|
-
a("throw", f);
|
|
216
|
-
}
|
|
217
|
-
function y(f, b) {
|
|
218
|
-
f(b), i.shift(), i.length && a(i[0][0], i[0][1]);
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
function Ft(e) {
|
|
222
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
223
|
-
var r = e[Symbol.asyncIterator], t;
|
|
224
|
-
return r ? r.call(e) : (e = typeof P == "function" ? P(e) : e[Symbol.iterator](), t = {}, n("next"), n("throw"), n("return"), t[Symbol.asyncIterator] = function() {
|
|
225
|
-
return this;
|
|
226
|
-
}, t);
|
|
227
|
-
function n(i) {
|
|
228
|
-
t[i] = e[i] && function(u) {
|
|
229
|
-
return new Promise(function(s, a) {
|
|
230
|
-
u = e[i](u), o(s, a, u.done, u.value);
|
|
231
|
-
});
|
|
232
|
-
};
|
|
233
|
-
}
|
|
234
|
-
function o(i, u, s, a) {
|
|
235
|
-
Promise.resolve(a).then(function(c) {
|
|
236
|
-
i({ value: c, done: s });
|
|
237
|
-
}, u);
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
function p(e) {
|
|
241
|
-
return typeof e == "function";
|
|
242
|
-
}
|
|
243
|
-
function ct(e) {
|
|
244
|
-
var r = function(n) {
|
|
245
|
-
Error.call(n), n.stack = new Error().stack;
|
|
246
|
-
}, t = e(r);
|
|
247
|
-
return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
|
|
248
|
-
}
|
|
249
|
-
var H = ct(function(e) {
|
|
250
|
-
return function(t) {
|
|
251
|
-
e(this), this.message = t ? t.length + ` errors occurred during unsubscription:
|
|
252
|
-
` + t.map(function(n, o) {
|
|
253
|
-
return o + 1 + ") " + n.toString();
|
|
254
|
-
}).join(`
|
|
255
|
-
`) : "", this.name = "UnsubscriptionError", this.errors = t;
|
|
256
|
-
};
|
|
257
|
-
});
|
|
258
|
-
function V(e, r) {
|
|
259
|
-
if (e) {
|
|
260
|
-
var t = e.indexOf(r);
|
|
261
|
-
0 <= t && e.splice(t, 1);
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
var T = function() {
|
|
265
|
-
function e(r) {
|
|
266
|
-
this.initialTeardown = r, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
267
|
-
}
|
|
268
|
-
return e.prototype.unsubscribe = function() {
|
|
269
|
-
var r, t, n, o, i;
|
|
270
|
-
if (!this.closed) {
|
|
271
|
-
this.closed = !0;
|
|
272
|
-
var u = this._parentage;
|
|
273
|
-
if (u)
|
|
274
|
-
if (this._parentage = null, Array.isArray(u))
|
|
275
|
-
try {
|
|
276
|
-
for (var s = P(u), a = s.next(); !a.done; a = s.next()) {
|
|
277
|
-
var c = a.value;
|
|
278
|
-
c.remove(this);
|
|
279
|
-
}
|
|
280
|
-
} catch (v) {
|
|
281
|
-
r = { error: v };
|
|
282
|
-
} finally {
|
|
283
|
-
try {
|
|
284
|
-
a && !a.done && (t = s.return) && t.call(s);
|
|
285
|
-
} finally {
|
|
286
|
-
if (r) throw r.error;
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
else
|
|
290
|
-
u.remove(this);
|
|
291
|
-
var l = this.initialTeardown;
|
|
292
|
-
if (p(l))
|
|
293
|
-
try {
|
|
294
|
-
l();
|
|
295
|
-
} catch (v) {
|
|
296
|
-
i = v instanceof H ? v.errors : [v];
|
|
297
|
-
}
|
|
298
|
-
var d = this._finalizers;
|
|
299
|
-
if (d) {
|
|
300
|
-
this._finalizers = null;
|
|
301
|
-
try {
|
|
302
|
-
for (var y = P(d), f = y.next(); !f.done; f = y.next()) {
|
|
303
|
-
var b = f.value;
|
|
304
|
-
try {
|
|
305
|
-
X(b);
|
|
306
|
-
} catch (v) {
|
|
307
|
-
i = i ?? [], v instanceof H ? i = F(F([], R(i)), R(v.errors)) : i.push(v);
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
} catch (v) {
|
|
311
|
-
n = { error: v };
|
|
312
|
-
} finally {
|
|
313
|
-
try {
|
|
314
|
-
f && !f.done && (o = y.return) && o.call(y);
|
|
315
|
-
} finally {
|
|
316
|
-
if (n) throw n.error;
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
if (i)
|
|
321
|
-
throw new H(i);
|
|
322
|
-
}
|
|
323
|
-
}, e.prototype.add = function(r) {
|
|
324
|
-
var t;
|
|
325
|
-
if (r && r !== this)
|
|
326
|
-
if (this.closed)
|
|
327
|
-
X(r);
|
|
328
|
-
else {
|
|
329
|
-
if (r instanceof e) {
|
|
330
|
-
if (r.closed || r._hasParent(this))
|
|
331
|
-
return;
|
|
332
|
-
r._addParent(this);
|
|
333
|
-
}
|
|
334
|
-
(this._finalizers = (t = this._finalizers) !== null && t !== void 0 ? t : []).push(r);
|
|
335
|
-
}
|
|
336
|
-
}, e.prototype._hasParent = function(r) {
|
|
337
|
-
var t = this._parentage;
|
|
338
|
-
return t === r || Array.isArray(t) && t.includes(r);
|
|
339
|
-
}, e.prototype._addParent = function(r) {
|
|
340
|
-
var t = this._parentage;
|
|
341
|
-
this._parentage = Array.isArray(t) ? (t.push(r), t) : t ? [t, r] : r;
|
|
342
|
-
}, e.prototype._removeParent = function(r) {
|
|
343
|
-
var t = this._parentage;
|
|
344
|
-
t === r ? this._parentage = null : Array.isArray(t) && V(t, r);
|
|
345
|
-
}, e.prototype.remove = function(r) {
|
|
346
|
-
var t = this._finalizers;
|
|
347
|
-
t && V(t, r), r instanceof e && r._removeParent(this);
|
|
348
|
-
}, e.EMPTY = function() {
|
|
349
|
-
var r = new e();
|
|
350
|
-
return r.closed = !0, r;
|
|
351
|
-
}(), e;
|
|
352
|
-
}(), st = T.EMPTY;
|
|
353
|
-
function at(e) {
|
|
354
|
-
return e instanceof T || e && "closed" in e && p(e.remove) && p(e.add) && p(e.unsubscribe);
|
|
355
|
-
}
|
|
356
|
-
function X(e) {
|
|
357
|
-
p(e) ? e() : e.unsubscribe();
|
|
358
|
-
}
|
|
359
|
-
var Vt = {
|
|
360
|
-
Promise: void 0
|
|
361
|
-
}, Bt = {
|
|
362
|
-
setTimeout: function(e, r) {
|
|
363
|
-
for (var t = [], n = 2; n < arguments.length; n++)
|
|
364
|
-
t[n - 2] = arguments[n];
|
|
365
|
-
return setTimeout.apply(void 0, F([e, r], R(t)));
|
|
366
|
-
},
|
|
367
|
-
clearTimeout: function(e) {
|
|
368
|
-
return clearTimeout(e);
|
|
369
|
-
},
|
|
370
|
-
delegate: void 0
|
|
371
|
-
};
|
|
372
|
-
function lt(e) {
|
|
373
|
-
Bt.setTimeout(function() {
|
|
374
|
-
throw e;
|
|
375
|
-
});
|
|
376
|
-
}
|
|
377
|
-
function Z() {
|
|
378
|
-
}
|
|
379
|
-
function M(e) {
|
|
380
|
-
e();
|
|
381
|
-
}
|
|
382
|
-
var q = function(e) {
|
|
383
|
-
x(r, e);
|
|
384
|
-
function r(t) {
|
|
385
|
-
var n = e.call(this) || this;
|
|
386
|
-
return n.isStopped = !1, t ? (n.destination = t, at(t) && t.add(n)) : n.destination = Yt, n;
|
|
387
|
-
}
|
|
388
|
-
return r.create = function(t, n, o) {
|
|
389
|
-
return new $(t, n, o);
|
|
390
|
-
}, r.prototype.next = function(t) {
|
|
391
|
-
this.isStopped || this._next(t);
|
|
392
|
-
}, r.prototype.error = function(t) {
|
|
393
|
-
this.isStopped || (this.isStopped = !0, this._error(t));
|
|
394
|
-
}, r.prototype.complete = function() {
|
|
395
|
-
this.isStopped || (this.isStopped = !0, this._complete());
|
|
396
|
-
}, r.prototype.unsubscribe = function() {
|
|
397
|
-
this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
|
|
398
|
-
}, r.prototype._next = function(t) {
|
|
399
|
-
this.destination.next(t);
|
|
400
|
-
}, r.prototype._error = function(t) {
|
|
401
|
-
try {
|
|
402
|
-
this.destination.error(t);
|
|
403
|
-
} finally {
|
|
404
|
-
this.unsubscribe();
|
|
405
|
-
}
|
|
406
|
-
}, r.prototype._complete = function() {
|
|
407
|
-
try {
|
|
408
|
-
this.destination.complete();
|
|
409
|
-
} finally {
|
|
410
|
-
this.unsubscribe();
|
|
411
|
-
}
|
|
412
|
-
}, r;
|
|
413
|
-
}(T), Dt = function() {
|
|
414
|
-
function e(r) {
|
|
415
|
-
this.partialObserver = r;
|
|
416
|
-
}
|
|
417
|
-
return e.prototype.next = function(r) {
|
|
418
|
-
var t = this.partialObserver;
|
|
419
|
-
if (t.next)
|
|
420
|
-
try {
|
|
421
|
-
t.next(r);
|
|
422
|
-
} catch (n) {
|
|
423
|
-
U(n);
|
|
424
|
-
}
|
|
425
|
-
}, e.prototype.error = function(r) {
|
|
426
|
-
var t = this.partialObserver;
|
|
427
|
-
if (t.error)
|
|
428
|
-
try {
|
|
429
|
-
t.error(r);
|
|
430
|
-
} catch (n) {
|
|
431
|
-
U(n);
|
|
432
|
-
}
|
|
433
|
-
else
|
|
434
|
-
U(r);
|
|
435
|
-
}, e.prototype.complete = function() {
|
|
436
|
-
var r = this.partialObserver;
|
|
437
|
-
if (r.complete)
|
|
438
|
-
try {
|
|
439
|
-
r.complete();
|
|
440
|
-
} catch (t) {
|
|
441
|
-
U(t);
|
|
442
|
-
}
|
|
443
|
-
}, e;
|
|
444
|
-
}(), $ = function(e) {
|
|
445
|
-
x(r, e);
|
|
446
|
-
function r(t, n, o) {
|
|
447
|
-
var i = e.call(this) || this, u;
|
|
448
|
-
return p(t) || !t ? u = {
|
|
449
|
-
next: t ?? void 0,
|
|
450
|
-
error: n ?? void 0,
|
|
451
|
-
complete: o ?? void 0
|
|
452
|
-
} : u = t, i.destination = new Dt(u), i;
|
|
453
|
-
}
|
|
454
|
-
return r;
|
|
455
|
-
}(q);
|
|
456
|
-
function U(e) {
|
|
457
|
-
lt(e);
|
|
458
|
-
}
|
|
459
|
-
function Ht(e) {
|
|
460
|
-
throw e;
|
|
461
|
-
}
|
|
462
|
-
var Yt = {
|
|
463
|
-
closed: !0,
|
|
464
|
-
next: Z,
|
|
465
|
-
error: Ht,
|
|
466
|
-
complete: Z
|
|
467
|
-
}, W = function() {
|
|
468
|
-
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
469
|
-
}();
|
|
470
|
-
function D(e) {
|
|
471
|
-
return e;
|
|
472
|
-
}
|
|
473
|
-
function zt(e) {
|
|
474
|
-
return e.length === 0 ? D : e.length === 1 ? e[0] : function(t) {
|
|
475
|
-
return e.reduce(function(n, o) {
|
|
476
|
-
return o(n);
|
|
477
|
-
}, t);
|
|
478
|
-
};
|
|
479
|
-
}
|
|
480
|
-
var w = function() {
|
|
481
|
-
function e(r) {
|
|
482
|
-
r && (this._subscribe = r);
|
|
483
|
-
}
|
|
484
|
-
return e.prototype.lift = function(r) {
|
|
485
|
-
var t = new e();
|
|
486
|
-
return t.source = this, t.operator = r, t;
|
|
487
|
-
}, e.prototype.subscribe = function(r, t, n) {
|
|
488
|
-
var o = this, i = Kt(r) ? r : new $(r, t, n);
|
|
489
|
-
return M(function() {
|
|
490
|
-
var u = o, s = u.operator, a = u.source;
|
|
491
|
-
i.add(s ? s.call(i, a) : a ? o._subscribe(i) : o._trySubscribe(i));
|
|
492
|
-
}), i;
|
|
493
|
-
}, e.prototype._trySubscribe = function(r) {
|
|
494
|
-
try {
|
|
495
|
-
return this._subscribe(r);
|
|
496
|
-
} catch (t) {
|
|
497
|
-
r.error(t);
|
|
498
|
-
}
|
|
499
|
-
}, e.prototype.forEach = function(r, t) {
|
|
500
|
-
var n = this;
|
|
501
|
-
return t = N(t), new t(function(o, i) {
|
|
502
|
-
var u = new $({
|
|
503
|
-
next: function(s) {
|
|
504
|
-
try {
|
|
505
|
-
r(s);
|
|
506
|
-
} catch (a) {
|
|
507
|
-
i(a), u.unsubscribe();
|
|
508
|
-
}
|
|
509
|
-
},
|
|
510
|
-
error: i,
|
|
511
|
-
complete: o
|
|
512
|
-
});
|
|
513
|
-
n.subscribe(u);
|
|
514
|
-
});
|
|
515
|
-
}, e.prototype._subscribe = function(r) {
|
|
516
|
-
var t;
|
|
517
|
-
return (t = this.source) === null || t === void 0 ? void 0 : t.subscribe(r);
|
|
518
|
-
}, e.prototype[W] = function() {
|
|
519
|
-
return this;
|
|
520
|
-
}, e.prototype.pipe = function() {
|
|
521
|
-
for (var r = [], t = 0; t < arguments.length; t++)
|
|
522
|
-
r[t] = arguments[t];
|
|
523
|
-
return zt(r)(this);
|
|
524
|
-
}, e.prototype.toPromise = function(r) {
|
|
525
|
-
var t = this;
|
|
526
|
-
return r = N(r), new r(function(n, o) {
|
|
527
|
-
var i;
|
|
528
|
-
t.subscribe(function(u) {
|
|
529
|
-
return i = u;
|
|
530
|
-
}, function(u) {
|
|
531
|
-
return o(u);
|
|
532
|
-
}, function() {
|
|
533
|
-
return n(i);
|
|
534
|
-
});
|
|
535
|
-
});
|
|
536
|
-
}, e.create = function(r) {
|
|
537
|
-
return new e(r);
|
|
538
|
-
}, e;
|
|
539
|
-
}();
|
|
540
|
-
function N(e) {
|
|
541
|
-
var r;
|
|
542
|
-
return (r = e ?? Vt.Promise) !== null && r !== void 0 ? r : Promise;
|
|
543
|
-
}
|
|
544
|
-
function Gt(e) {
|
|
545
|
-
return e && p(e.next) && p(e.error) && p(e.complete);
|
|
546
|
-
}
|
|
547
|
-
function Kt(e) {
|
|
548
|
-
return e && e instanceof q || Gt(e) && at(e);
|
|
549
|
-
}
|
|
550
|
-
function $t(e) {
|
|
551
|
-
return p(e == null ? void 0 : e.lift);
|
|
552
|
-
}
|
|
553
|
-
function I(e) {
|
|
554
|
-
return function(r) {
|
|
555
|
-
if ($t(r))
|
|
556
|
-
return r.lift(function(t) {
|
|
557
|
-
try {
|
|
558
|
-
return e(t, this);
|
|
559
|
-
} catch (n) {
|
|
560
|
-
this.error(n);
|
|
561
|
-
}
|
|
562
|
-
});
|
|
563
|
-
throw new TypeError("Unable to lift unknown Observable type");
|
|
564
|
-
};
|
|
565
|
-
}
|
|
566
|
-
function _(e, r, t, n, o) {
|
|
567
|
-
return new qt(e, r, t, n, o);
|
|
568
|
-
}
|
|
569
|
-
var qt = function(e) {
|
|
570
|
-
x(r, e);
|
|
571
|
-
function r(t, n, o, i, u, s) {
|
|
572
|
-
var a = e.call(this, t) || this;
|
|
573
|
-
return a.onFinalize = u, a.shouldUnsubscribe = s, a._next = n ? function(c) {
|
|
574
|
-
try {
|
|
575
|
-
n(c);
|
|
576
|
-
} catch (l) {
|
|
577
|
-
t.error(l);
|
|
578
|
-
}
|
|
579
|
-
} : e.prototype._next, a._error = i ? function(c) {
|
|
580
|
-
try {
|
|
581
|
-
i(c);
|
|
582
|
-
} catch (l) {
|
|
583
|
-
t.error(l);
|
|
584
|
-
} finally {
|
|
585
|
-
this.unsubscribe();
|
|
586
|
-
}
|
|
587
|
-
} : e.prototype._error, a._complete = o ? function() {
|
|
588
|
-
try {
|
|
589
|
-
o();
|
|
590
|
-
} catch (c) {
|
|
591
|
-
t.error(c);
|
|
592
|
-
} finally {
|
|
593
|
-
this.unsubscribe();
|
|
594
|
-
}
|
|
595
|
-
} : e.prototype._complete, a;
|
|
596
|
-
}
|
|
597
|
-
return r.prototype.unsubscribe = function() {
|
|
598
|
-
var t;
|
|
599
|
-
if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
|
|
600
|
-
var n = this.closed;
|
|
601
|
-
e.prototype.unsubscribe.call(this), !n && ((t = this.onFinalize) === null || t === void 0 || t.call(this));
|
|
602
|
-
}
|
|
603
|
-
}, r;
|
|
604
|
-
}(q), Wt = ct(function(e) {
|
|
605
|
-
return function() {
|
|
606
|
-
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
607
|
-
};
|
|
608
|
-
}), J = function(e) {
|
|
609
|
-
x(r, e);
|
|
610
|
-
function r() {
|
|
611
|
-
var t = e.call(this) || this;
|
|
612
|
-
return t.closed = !1, t.currentObservers = null, t.observers = [], t.isStopped = !1, t.hasError = !1, t.thrownError = null, t;
|
|
613
|
-
}
|
|
614
|
-
return r.prototype.lift = function(t) {
|
|
615
|
-
var n = new tt(this, this);
|
|
616
|
-
return n.operator = t, n;
|
|
617
|
-
}, r.prototype._throwIfClosed = function() {
|
|
618
|
-
if (this.closed)
|
|
619
|
-
throw new Wt();
|
|
620
|
-
}, r.prototype.next = function(t) {
|
|
621
|
-
var n = this;
|
|
622
|
-
M(function() {
|
|
623
|
-
var o, i;
|
|
624
|
-
if (n._throwIfClosed(), !n.isStopped) {
|
|
625
|
-
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
626
|
-
try {
|
|
627
|
-
for (var u = P(n.currentObservers), s = u.next(); !s.done; s = u.next()) {
|
|
628
|
-
var a = s.value;
|
|
629
|
-
a.next(t);
|
|
630
|
-
}
|
|
631
|
-
} catch (c) {
|
|
632
|
-
o = { error: c };
|
|
633
|
-
} finally {
|
|
634
|
-
try {
|
|
635
|
-
s && !s.done && (i = u.return) && i.call(u);
|
|
636
|
-
} finally {
|
|
637
|
-
if (o) throw o.error;
|
|
638
|
-
}
|
|
639
|
-
}
|
|
640
|
-
}
|
|
641
|
-
});
|
|
642
|
-
}, r.prototype.error = function(t) {
|
|
643
|
-
var n = this;
|
|
644
|
-
M(function() {
|
|
645
|
-
if (n._throwIfClosed(), !n.isStopped) {
|
|
646
|
-
n.hasError = n.isStopped = !0, n.thrownError = t;
|
|
647
|
-
for (var o = n.observers; o.length; )
|
|
648
|
-
o.shift().error(t);
|
|
649
|
-
}
|
|
650
|
-
});
|
|
651
|
-
}, r.prototype.complete = function() {
|
|
652
|
-
var t = this;
|
|
653
|
-
M(function() {
|
|
654
|
-
if (t._throwIfClosed(), !t.isStopped) {
|
|
655
|
-
t.isStopped = !0;
|
|
656
|
-
for (var n = t.observers; n.length; )
|
|
657
|
-
n.shift().complete();
|
|
658
|
-
}
|
|
659
|
-
});
|
|
660
|
-
}, r.prototype.unsubscribe = function() {
|
|
661
|
-
this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
|
|
662
|
-
}, Object.defineProperty(r.prototype, "observed", {
|
|
663
|
-
get: function() {
|
|
664
|
-
var t;
|
|
665
|
-
return ((t = this.observers) === null || t === void 0 ? void 0 : t.length) > 0;
|
|
666
|
-
},
|
|
667
|
-
enumerable: !1,
|
|
668
|
-
configurable: !0
|
|
669
|
-
}), r.prototype._trySubscribe = function(t) {
|
|
670
|
-
return this._throwIfClosed(), e.prototype._trySubscribe.call(this, t);
|
|
671
|
-
}, r.prototype._subscribe = function(t) {
|
|
672
|
-
return this._throwIfClosed(), this._checkFinalizedStatuses(t), this._innerSubscribe(t);
|
|
673
|
-
}, r.prototype._innerSubscribe = function(t) {
|
|
674
|
-
var n = this, o = this, i = o.hasError, u = o.isStopped, s = o.observers;
|
|
675
|
-
return i || u ? st : (this.currentObservers = null, s.push(t), new T(function() {
|
|
676
|
-
n.currentObservers = null, V(s, t);
|
|
677
|
-
}));
|
|
678
|
-
}, r.prototype._checkFinalizedStatuses = function(t) {
|
|
679
|
-
var n = this, o = n.hasError, i = n.thrownError, u = n.isStopped;
|
|
680
|
-
o ? t.error(i) : u && t.complete();
|
|
681
|
-
}, r.prototype.asObservable = function() {
|
|
682
|
-
var t = new w();
|
|
683
|
-
return t.source = this, t;
|
|
684
|
-
}, r.create = function(t, n) {
|
|
685
|
-
return new tt(t, n);
|
|
686
|
-
}, r;
|
|
687
|
-
}(w), tt = function(e) {
|
|
688
|
-
x(r, e);
|
|
689
|
-
function r(t, n) {
|
|
690
|
-
var o = e.call(this) || this;
|
|
691
|
-
return o.destination = t, o.source = n, o;
|
|
692
|
-
}
|
|
693
|
-
return r.prototype.next = function(t) {
|
|
694
|
-
var n, o;
|
|
695
|
-
(o = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || o === void 0 || o.call(n, t);
|
|
696
|
-
}, r.prototype.error = function(t) {
|
|
697
|
-
var n, o;
|
|
698
|
-
(o = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || o === void 0 || o.call(n, t);
|
|
699
|
-
}, r.prototype.complete = function() {
|
|
700
|
-
var t, n;
|
|
701
|
-
(n = (t = this.destination) === null || t === void 0 ? void 0 : t.complete) === null || n === void 0 || n.call(t);
|
|
702
|
-
}, r.prototype._subscribe = function(t) {
|
|
703
|
-
var n, o;
|
|
704
|
-
return (o = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t)) !== null && o !== void 0 ? o : st;
|
|
705
|
-
}, r;
|
|
706
|
-
}(J), Y = function(e) {
|
|
707
|
-
x(r, e);
|
|
708
|
-
function r(t) {
|
|
709
|
-
var n = e.call(this) || this;
|
|
710
|
-
return n._value = t, n;
|
|
711
|
-
}
|
|
712
|
-
return Object.defineProperty(r.prototype, "value", {
|
|
713
|
-
get: function() {
|
|
714
|
-
return this.getValue();
|
|
33
|
+
function te(o, s) {
|
|
34
|
+
const t = B(s);
|
|
35
|
+
return h(
|
|
36
|
+
() => {
|
|
37
|
+
var e;
|
|
38
|
+
return (e = o.context.value.user) == null ? void 0 : e.language;
|
|
715
39
|
},
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
var n = e.prototype._subscribe.call(this, t);
|
|
720
|
-
return !n.closed && t.next(this._value), n;
|
|
721
|
-
}, r.prototype.getValue = function() {
|
|
722
|
-
var t = this, n = t.hasError, o = t.thrownError, i = t._value;
|
|
723
|
-
if (n)
|
|
724
|
-
throw o;
|
|
725
|
-
return this._throwIfClosed(), i;
|
|
726
|
-
}, r.prototype.next = function(t) {
|
|
727
|
-
e.prototype.next.call(this, this._value = t);
|
|
728
|
-
}, r;
|
|
729
|
-
}(J), Jt = {
|
|
730
|
-
now: function() {
|
|
731
|
-
return Date.now();
|
|
732
|
-
}
|
|
733
|
-
}, Qt = function(e) {
|
|
734
|
-
x(r, e);
|
|
735
|
-
function r(t, n) {
|
|
736
|
-
return e.call(this) || this;
|
|
737
|
-
}
|
|
738
|
-
return r.prototype.schedule = function(t, n) {
|
|
739
|
-
return this;
|
|
740
|
-
}, r;
|
|
741
|
-
}(T), et = {
|
|
742
|
-
setInterval: function(e, r) {
|
|
743
|
-
for (var t = [], n = 2; n < arguments.length; n++)
|
|
744
|
-
t[n - 2] = arguments[n];
|
|
745
|
-
return setInterval.apply(void 0, F([e, r], R(t)));
|
|
746
|
-
},
|
|
747
|
-
clearInterval: function(e) {
|
|
748
|
-
return clearInterval(e);
|
|
749
|
-
},
|
|
750
|
-
delegate: void 0
|
|
751
|
-
}, Xt = function(e) {
|
|
752
|
-
x(r, e);
|
|
753
|
-
function r(t, n) {
|
|
754
|
-
var o = e.call(this, t, n) || this;
|
|
755
|
-
return o.scheduler = t, o.work = n, o.pending = !1, o;
|
|
756
|
-
}
|
|
757
|
-
return r.prototype.schedule = function(t, n) {
|
|
758
|
-
var o;
|
|
759
|
-
if (n === void 0 && (n = 0), this.closed)
|
|
760
|
-
return this;
|
|
761
|
-
this.state = t;
|
|
762
|
-
var i = this.id, u = this.scheduler;
|
|
763
|
-
return i != null && (this.id = this.recycleAsyncId(u, i, n)), this.pending = !0, this.delay = n, this.id = (o = this.id) !== null && o !== void 0 ? o : this.requestAsyncId(u, this.id, n), this;
|
|
764
|
-
}, r.prototype.requestAsyncId = function(t, n, o) {
|
|
765
|
-
return o === void 0 && (o = 0), et.setInterval(t.flush.bind(t, this), o);
|
|
766
|
-
}, r.prototype.recycleAsyncId = function(t, n, o) {
|
|
767
|
-
if (o === void 0 && (o = 0), o != null && this.delay === o && this.pending === !1)
|
|
768
|
-
return n;
|
|
769
|
-
n != null && et.clearInterval(n);
|
|
770
|
-
}, r.prototype.execute = function(t, n) {
|
|
771
|
-
if (this.closed)
|
|
772
|
-
return new Error("executing a cancelled action");
|
|
773
|
-
this.pending = !1;
|
|
774
|
-
var o = this._execute(t, n);
|
|
775
|
-
if (o)
|
|
776
|
-
return o;
|
|
777
|
-
this.pending === !1 && this.id != null && (this.id = this.recycleAsyncId(this.scheduler, this.id, null));
|
|
778
|
-
}, r.prototype._execute = function(t, n) {
|
|
779
|
-
var o = !1, i;
|
|
780
|
-
try {
|
|
781
|
-
this.work(t);
|
|
782
|
-
} catch (u) {
|
|
783
|
-
o = !0, i = u || new Error("Scheduled action threw falsy error");
|
|
784
|
-
}
|
|
785
|
-
if (o)
|
|
786
|
-
return this.unsubscribe(), i;
|
|
787
|
-
}, r.prototype.unsubscribe = function() {
|
|
788
|
-
if (!this.closed) {
|
|
789
|
-
var t = this, n = t.id, o = t.scheduler, i = o.actions;
|
|
790
|
-
this.work = this.state = this.scheduler = null, this.pending = !1, V(i, this), n != null && (this.id = this.recycleAsyncId(o, n, null)), this.delay = null, e.prototype.unsubscribe.call(this);
|
|
791
|
-
}
|
|
792
|
-
}, r;
|
|
793
|
-
}(Qt), rt = function() {
|
|
794
|
-
function e(r, t) {
|
|
795
|
-
t === void 0 && (t = e.now), this.schedulerActionCtor = r, this.now = t;
|
|
796
|
-
}
|
|
797
|
-
return e.prototype.schedule = function(r, t, n) {
|
|
798
|
-
return t === void 0 && (t = 0), new this.schedulerActionCtor(this, r).schedule(n, t);
|
|
799
|
-
}, e.now = Jt.now, e;
|
|
800
|
-
}(), Zt = function(e) {
|
|
801
|
-
x(r, e);
|
|
802
|
-
function r(t, n) {
|
|
803
|
-
n === void 0 && (n = rt.now);
|
|
804
|
-
var o = e.call(this, t, n) || this;
|
|
805
|
-
return o.actions = [], o._active = !1, o;
|
|
806
|
-
}
|
|
807
|
-
return r.prototype.flush = function(t) {
|
|
808
|
-
var n = this.actions;
|
|
809
|
-
if (this._active) {
|
|
810
|
-
n.push(t);
|
|
811
|
-
return;
|
|
812
|
-
}
|
|
813
|
-
var o;
|
|
814
|
-
this._active = !0;
|
|
815
|
-
do
|
|
816
|
-
if (o = t.execute(t.state, t.delay))
|
|
817
|
-
break;
|
|
818
|
-
while (t = n.shift());
|
|
819
|
-
if (this._active = !1, o) {
|
|
820
|
-
for (; t = n.shift(); )
|
|
821
|
-
t.unsubscribe();
|
|
822
|
-
throw o;
|
|
823
|
-
}
|
|
824
|
-
}, r;
|
|
825
|
-
}(rt), Nt = new Zt(Xt);
|
|
826
|
-
function te(e) {
|
|
827
|
-
return e && p(e.schedule);
|
|
828
|
-
}
|
|
829
|
-
function ee(e) {
|
|
830
|
-
return e[e.length - 1];
|
|
831
|
-
}
|
|
832
|
-
function re(e) {
|
|
833
|
-
return te(ee(e)) ? e.pop() : void 0;
|
|
834
|
-
}
|
|
835
|
-
var ft = function(e) {
|
|
836
|
-
return e && typeof e.length == "number" && typeof e != "function";
|
|
837
|
-
};
|
|
838
|
-
function ht(e) {
|
|
839
|
-
return p(e == null ? void 0 : e.then);
|
|
840
|
-
}
|
|
841
|
-
function dt(e) {
|
|
842
|
-
return p(e[W]);
|
|
843
|
-
}
|
|
844
|
-
function vt(e) {
|
|
845
|
-
return Symbol.asyncIterator && p(e == null ? void 0 : e[Symbol.asyncIterator]);
|
|
846
|
-
}
|
|
847
|
-
function pt(e) {
|
|
848
|
-
return new TypeError("You provided " + (e !== null && typeof e == "object" ? "an invalid object" : "'" + e + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
|
|
849
|
-
}
|
|
850
|
-
function ne() {
|
|
851
|
-
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
|
852
|
-
}
|
|
853
|
-
var yt = ne();
|
|
854
|
-
function bt(e) {
|
|
855
|
-
return p(e == null ? void 0 : e[yt]);
|
|
856
|
-
}
|
|
857
|
-
function mt(e) {
|
|
858
|
-
return Rt(this, arguments, function() {
|
|
859
|
-
var t, n, o, i;
|
|
860
|
-
return ut(this, function(u) {
|
|
861
|
-
switch (u.label) {
|
|
862
|
-
case 0:
|
|
863
|
-
t = e.getReader(), u.label = 1;
|
|
864
|
-
case 1:
|
|
865
|
-
u.trys.push([1, , 9, 10]), u.label = 2;
|
|
866
|
-
case 2:
|
|
867
|
-
return [4, j(t.read())];
|
|
868
|
-
case 3:
|
|
869
|
-
return n = u.sent(), o = n.value, i = n.done, i ? [4, j(void 0)] : [3, 5];
|
|
870
|
-
case 4:
|
|
871
|
-
return [2, u.sent()];
|
|
872
|
-
case 5:
|
|
873
|
-
return [4, j(o)];
|
|
874
|
-
case 6:
|
|
875
|
-
return [4, u.sent()];
|
|
876
|
-
case 7:
|
|
877
|
-
return u.sent(), [3, 2];
|
|
878
|
-
case 8:
|
|
879
|
-
return [3, 10];
|
|
880
|
-
case 9:
|
|
881
|
-
return t.releaseLock(), [7];
|
|
882
|
-
case 10:
|
|
883
|
-
return [2];
|
|
884
|
-
}
|
|
885
|
-
});
|
|
886
|
-
});
|
|
887
|
-
}
|
|
888
|
-
function wt(e) {
|
|
889
|
-
return p(e == null ? void 0 : e.getReader);
|
|
890
|
-
}
|
|
891
|
-
function C(e) {
|
|
892
|
-
if (e instanceof w)
|
|
893
|
-
return e;
|
|
894
|
-
if (e != null) {
|
|
895
|
-
if (dt(e))
|
|
896
|
-
return oe(e);
|
|
897
|
-
if (ft(e))
|
|
898
|
-
return ie(e);
|
|
899
|
-
if (ht(e))
|
|
900
|
-
return ue(e);
|
|
901
|
-
if (vt(e))
|
|
902
|
-
return gt(e);
|
|
903
|
-
if (bt(e))
|
|
904
|
-
return ce(e);
|
|
905
|
-
if (wt(e))
|
|
906
|
-
return se(e);
|
|
907
|
-
}
|
|
908
|
-
throw pt(e);
|
|
909
|
-
}
|
|
910
|
-
function oe(e) {
|
|
911
|
-
return new w(function(r) {
|
|
912
|
-
var t = e[W]();
|
|
913
|
-
if (p(t.subscribe))
|
|
914
|
-
return t.subscribe(r);
|
|
915
|
-
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
916
|
-
});
|
|
917
|
-
}
|
|
918
|
-
function ie(e) {
|
|
919
|
-
return new w(function(r) {
|
|
920
|
-
for (var t = 0; t < e.length && !r.closed; t++)
|
|
921
|
-
r.next(e[t]);
|
|
922
|
-
r.complete();
|
|
923
|
-
});
|
|
924
|
-
}
|
|
925
|
-
function ue(e) {
|
|
926
|
-
return new w(function(r) {
|
|
927
|
-
e.then(function(t) {
|
|
928
|
-
r.closed || (r.next(t), r.complete());
|
|
929
|
-
}, function(t) {
|
|
930
|
-
return r.error(t);
|
|
931
|
-
}).then(null, lt);
|
|
932
|
-
});
|
|
933
|
-
}
|
|
934
|
-
function ce(e) {
|
|
935
|
-
return new w(function(r) {
|
|
936
|
-
var t, n;
|
|
937
|
-
try {
|
|
938
|
-
for (var o = P(e), i = o.next(); !i.done; i = o.next()) {
|
|
939
|
-
var u = i.value;
|
|
940
|
-
if (r.next(u), r.closed)
|
|
941
|
-
return;
|
|
942
|
-
}
|
|
943
|
-
} catch (s) {
|
|
944
|
-
t = { error: s };
|
|
945
|
-
} finally {
|
|
946
|
-
try {
|
|
947
|
-
i && !i.done && (n = o.return) && n.call(o);
|
|
948
|
-
} finally {
|
|
949
|
-
if (t) throw t.error;
|
|
950
|
-
}
|
|
951
|
-
}
|
|
952
|
-
r.complete();
|
|
953
|
-
});
|
|
954
|
-
}
|
|
955
|
-
function gt(e) {
|
|
956
|
-
return new w(function(r) {
|
|
957
|
-
ae(e, r).catch(function(t) {
|
|
958
|
-
return r.error(t);
|
|
959
|
-
});
|
|
960
|
-
});
|
|
961
|
-
}
|
|
962
|
-
function se(e) {
|
|
963
|
-
return gt(mt(e));
|
|
964
|
-
}
|
|
965
|
-
function ae(e, r) {
|
|
966
|
-
var t, n, o, i;
|
|
967
|
-
return Mt(this, void 0, void 0, function() {
|
|
968
|
-
var u, s;
|
|
969
|
-
return ut(this, function(a) {
|
|
970
|
-
switch (a.label) {
|
|
971
|
-
case 0:
|
|
972
|
-
a.trys.push([0, 5, 6, 11]), t = Ft(e), a.label = 1;
|
|
973
|
-
case 1:
|
|
974
|
-
return [4, t.next()];
|
|
975
|
-
case 2:
|
|
976
|
-
if (n = a.sent(), !!n.done) return [3, 4];
|
|
977
|
-
if (u = n.value, r.next(u), r.closed)
|
|
978
|
-
return [2];
|
|
979
|
-
a.label = 3;
|
|
980
|
-
case 3:
|
|
981
|
-
return [3, 1];
|
|
982
|
-
case 4:
|
|
983
|
-
return [3, 11];
|
|
984
|
-
case 5:
|
|
985
|
-
return s = a.sent(), o = { error: s }, [3, 11];
|
|
986
|
-
case 6:
|
|
987
|
-
return a.trys.push([6, , 9, 10]), n && !n.done && (i = t.return) ? [4, i.call(t)] : [3, 8];
|
|
988
|
-
case 7:
|
|
989
|
-
a.sent(), a.label = 8;
|
|
990
|
-
case 8:
|
|
991
|
-
return [3, 10];
|
|
992
|
-
case 9:
|
|
993
|
-
if (o) throw o.error;
|
|
994
|
-
return [7];
|
|
995
|
-
case 10:
|
|
996
|
-
return [7];
|
|
997
|
-
case 11:
|
|
998
|
-
return r.complete(), [2];
|
|
999
|
-
}
|
|
1000
|
-
});
|
|
1001
|
-
});
|
|
1002
|
-
}
|
|
1003
|
-
function O(e, r, t, n, o) {
|
|
1004
|
-
n === void 0 && (n = 0), o === void 0 && (o = !1);
|
|
1005
|
-
var i = r.schedule(function() {
|
|
1006
|
-
t(), o ? e.add(this.schedule(null, n)) : this.unsubscribe();
|
|
1007
|
-
}, n);
|
|
1008
|
-
if (e.add(i), !o)
|
|
1009
|
-
return i;
|
|
1010
|
-
}
|
|
1011
|
-
function St(e, r) {
|
|
1012
|
-
return r === void 0 && (r = 0), I(function(t, n) {
|
|
1013
|
-
t.subscribe(_(n, function(o) {
|
|
1014
|
-
return O(n, e, function() {
|
|
1015
|
-
return n.next(o);
|
|
1016
|
-
}, r);
|
|
1017
|
-
}, function() {
|
|
1018
|
-
return O(n, e, function() {
|
|
1019
|
-
return n.complete();
|
|
1020
|
-
}, r);
|
|
1021
|
-
}, function(o) {
|
|
1022
|
-
return O(n, e, function() {
|
|
1023
|
-
return n.error(o);
|
|
1024
|
-
}, r);
|
|
1025
|
-
}));
|
|
1026
|
-
});
|
|
1027
|
-
}
|
|
1028
|
-
function xt(e, r) {
|
|
1029
|
-
return r === void 0 && (r = 0), I(function(t, n) {
|
|
1030
|
-
n.add(e.schedule(function() {
|
|
1031
|
-
return t.subscribe(n);
|
|
1032
|
-
}, r));
|
|
1033
|
-
});
|
|
1034
|
-
}
|
|
1035
|
-
function le(e, r) {
|
|
1036
|
-
return C(e).pipe(xt(r), St(r));
|
|
1037
|
-
}
|
|
1038
|
-
function fe(e, r) {
|
|
1039
|
-
return C(e).pipe(xt(r), St(r));
|
|
1040
|
-
}
|
|
1041
|
-
function he(e, r) {
|
|
1042
|
-
return new w(function(t) {
|
|
1043
|
-
var n = 0;
|
|
1044
|
-
return r.schedule(function() {
|
|
1045
|
-
n === e.length ? t.complete() : (t.next(e[n++]), t.closed || this.schedule());
|
|
1046
|
-
});
|
|
1047
|
-
});
|
|
1048
|
-
}
|
|
1049
|
-
function de(e, r) {
|
|
1050
|
-
return new w(function(t) {
|
|
1051
|
-
var n;
|
|
1052
|
-
return O(t, r, function() {
|
|
1053
|
-
n = e[yt](), O(t, r, function() {
|
|
1054
|
-
var o, i, u;
|
|
1055
|
-
try {
|
|
1056
|
-
o = n.next(), i = o.value, u = o.done;
|
|
1057
|
-
} catch (s) {
|
|
1058
|
-
t.error(s);
|
|
1059
|
-
return;
|
|
1060
|
-
}
|
|
1061
|
-
u ? t.complete() : t.next(i);
|
|
1062
|
-
}, 0, !0);
|
|
1063
|
-
}), function() {
|
|
1064
|
-
return p(n == null ? void 0 : n.return) && n.return();
|
|
1065
|
-
};
|
|
1066
|
-
});
|
|
1067
|
-
}
|
|
1068
|
-
function _t(e, r) {
|
|
1069
|
-
if (!e)
|
|
1070
|
-
throw new Error("Iterable cannot be null");
|
|
1071
|
-
return new w(function(t) {
|
|
1072
|
-
O(t, r, function() {
|
|
1073
|
-
var n = e[Symbol.asyncIterator]();
|
|
1074
|
-
O(t, r, function() {
|
|
1075
|
-
n.next().then(function(o) {
|
|
1076
|
-
o.done ? t.complete() : t.next(o.value);
|
|
1077
|
-
});
|
|
1078
|
-
}, 0, !0);
|
|
1079
|
-
});
|
|
1080
|
-
});
|
|
1081
|
-
}
|
|
1082
|
-
function ve(e, r) {
|
|
1083
|
-
return _t(mt(e), r);
|
|
1084
|
-
}
|
|
1085
|
-
function pe(e, r) {
|
|
1086
|
-
if (e != null) {
|
|
1087
|
-
if (dt(e))
|
|
1088
|
-
return le(e, r);
|
|
1089
|
-
if (ft(e))
|
|
1090
|
-
return he(e, r);
|
|
1091
|
-
if (ht(e))
|
|
1092
|
-
return fe(e, r);
|
|
1093
|
-
if (vt(e))
|
|
1094
|
-
return _t(e, r);
|
|
1095
|
-
if (bt(e))
|
|
1096
|
-
return de(e, r);
|
|
1097
|
-
if (wt(e))
|
|
1098
|
-
return ve(e, r);
|
|
1099
|
-
}
|
|
1100
|
-
throw pt(e);
|
|
1101
|
-
}
|
|
1102
|
-
function ye(e, r) {
|
|
1103
|
-
return r ? pe(e, r) : C(e);
|
|
1104
|
-
}
|
|
1105
|
-
function Q(e, r) {
|
|
1106
|
-
return I(function(t, n) {
|
|
1107
|
-
var o = 0;
|
|
1108
|
-
t.subscribe(_(n, function(i) {
|
|
1109
|
-
n.next(e.call(r, i, o++));
|
|
1110
|
-
}));
|
|
1111
|
-
});
|
|
1112
|
-
}
|
|
1113
|
-
function be(e, r, t, n, o, i, u, s) {
|
|
1114
|
-
var a = [], c = 0, l = 0, d = !1, y = function() {
|
|
1115
|
-
d && !a.length && !c && r.complete();
|
|
1116
|
-
}, f = function(v) {
|
|
1117
|
-
return c < n ? b(v) : a.push(v);
|
|
1118
|
-
}, b = function(v) {
|
|
1119
|
-
c++;
|
|
1120
|
-
var A = !1;
|
|
1121
|
-
C(t(v, l++)).subscribe(_(r, function(h) {
|
|
1122
|
-
r.next(h);
|
|
1123
|
-
}, function() {
|
|
1124
|
-
A = !0;
|
|
1125
|
-
}, void 0, function() {
|
|
1126
|
-
if (A)
|
|
1127
|
-
try {
|
|
1128
|
-
c--;
|
|
1129
|
-
for (var h = function() {
|
|
1130
|
-
var m = a.shift();
|
|
1131
|
-
u || b(m);
|
|
1132
|
-
}; a.length && c < n; )
|
|
1133
|
-
h();
|
|
1134
|
-
y();
|
|
1135
|
-
} catch (m) {
|
|
1136
|
-
r.error(m);
|
|
1137
|
-
}
|
|
1138
|
-
}));
|
|
1139
|
-
};
|
|
1140
|
-
return e.subscribe(_(r, f, function() {
|
|
1141
|
-
d = !0, y();
|
|
1142
|
-
})), function() {
|
|
1143
|
-
};
|
|
1144
|
-
}
|
|
1145
|
-
function B(e, r, t) {
|
|
1146
|
-
return t === void 0 && (t = 1 / 0), p(r) ? B(function(n, o) {
|
|
1147
|
-
return Q(function(i, u) {
|
|
1148
|
-
return r(n, i, o, u);
|
|
1149
|
-
})(C(e(n, o)));
|
|
1150
|
-
}, t) : (typeof r == "number" && (t = r), I(function(n, o) {
|
|
1151
|
-
return be(n, o, e, t);
|
|
1152
|
-
}));
|
|
1153
|
-
}
|
|
1154
|
-
function me(e) {
|
|
1155
|
-
return B(D, e);
|
|
1156
|
-
}
|
|
1157
|
-
function we() {
|
|
1158
|
-
return me(1);
|
|
1159
|
-
}
|
|
1160
|
-
function ge() {
|
|
1161
|
-
for (var e = [], r = 0; r < arguments.length; r++)
|
|
1162
|
-
e[r] = arguments[r];
|
|
1163
|
-
return we()(ye(e, re(e)));
|
|
1164
|
-
}
|
|
1165
|
-
function Se(e, r) {
|
|
1166
|
-
return I(function(t, n) {
|
|
1167
|
-
var o = 0;
|
|
1168
|
-
t.subscribe(_(n, function(i) {
|
|
1169
|
-
return e.call(r, i, o++) && n.next(i);
|
|
1170
|
-
}));
|
|
1171
|
-
});
|
|
1172
|
-
}
|
|
1173
|
-
function nt(e, r) {
|
|
1174
|
-
return p(r) ? B(e, r, 1) : B(e, 1);
|
|
1175
|
-
}
|
|
1176
|
-
function xe(e, r) {
|
|
1177
|
-
return r === void 0 && (r = Nt), I(function(t, n) {
|
|
1178
|
-
var o = null, i = null, u = null, s = function() {
|
|
1179
|
-
if (o) {
|
|
1180
|
-
o.unsubscribe(), o = null;
|
|
1181
|
-
var c = i;
|
|
1182
|
-
i = null, n.next(c);
|
|
1183
|
-
}
|
|
1184
|
-
};
|
|
1185
|
-
function a() {
|
|
1186
|
-
var c = u + e, l = r.now();
|
|
1187
|
-
if (l < c) {
|
|
1188
|
-
o = this.schedule(void 0, c - l), n.add(o);
|
|
1189
|
-
return;
|
|
1190
|
-
}
|
|
1191
|
-
s();
|
|
1192
|
-
}
|
|
1193
|
-
t.subscribe(_(n, function(c) {
|
|
1194
|
-
i = c, u = r.now(), o || (o = r.schedule(a, e), n.add(o));
|
|
1195
|
-
}, function() {
|
|
1196
|
-
s(), n.complete();
|
|
1197
|
-
}, void 0, function() {
|
|
1198
|
-
i = o = null;
|
|
1199
|
-
}));
|
|
1200
|
-
});
|
|
40
|
+
(e) => t.locale.value = e ?? "en",
|
|
41
|
+
{ immediate: !0 }
|
|
42
|
+
), t;
|
|
1201
43
|
}
|
|
1202
|
-
function
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
var s = r(u);
|
|
1207
|
-
(i || !e(o, s)) && (i = !1, o = s, n.next(u));
|
|
1208
|
-
}));
|
|
44
|
+
function G(o, s) {
|
|
45
|
+
const t = b({}), e = K({ parent: window.parent, connect: o }), a = b(""), r = i({
|
|
46
|
+
get: () => a.value,
|
|
47
|
+
set: (u) => e.appState.set(u)
|
|
1209
48
|
});
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
return e === r;
|
|
1213
|
-
}
|
|
1214
|
-
function Ee(e, r, t) {
|
|
1215
|
-
var n = p(e) || r || t ? { next: e, error: r, complete: t } : e;
|
|
1216
|
-
return n ? I(function(o, i) {
|
|
1217
|
-
var u;
|
|
1218
|
-
(u = n.subscribe) === null || u === void 0 || u.call(n);
|
|
1219
|
-
var s = !0;
|
|
1220
|
-
o.subscribe(_(i, function(a) {
|
|
1221
|
-
var c;
|
|
1222
|
-
(c = n.next) === null || c === void 0 || c.call(n, a), i.next(a);
|
|
1223
|
-
}, function() {
|
|
1224
|
-
var a;
|
|
1225
|
-
s = !1, (a = n.complete) === null || a === void 0 || a.call(n), i.complete();
|
|
1226
|
-
}, function(a) {
|
|
1227
|
-
var c;
|
|
1228
|
-
s = !1, (c = n.error) === null || c === void 0 || c.call(n, a), i.error(a);
|
|
1229
|
-
}, function() {
|
|
1230
|
-
var a, c;
|
|
1231
|
-
s && ((a = n.unsubscribe) === null || a === void 0 || a.call(n)), (c = n.finalize) === null || c === void 0 || c.call(n);
|
|
1232
|
-
}));
|
|
1233
|
-
}) : D;
|
|
1234
|
-
}
|
|
1235
|
-
function Oe(e, r) {
|
|
1236
|
-
const t = S({}), n = Lt({ parent: window.parent, connect: e }), o = S(""), i = g({
|
|
1237
|
-
get: () => o.value,
|
|
1238
|
-
set: (s) => n.appState.set(s)
|
|
1239
|
-
}), u = S({ availableLocales: [] });
|
|
1240
|
-
return n.context.subscribe((s) => t.value = s), ge(n.appState.get(), n.appState).subscribe((s) => o.value = s), n.locales.subscribe((s) => u.value = s), je(n.signal, n, r), it(() => n.unsubscribe()), Object.assign(
|
|
1241
|
-
ot(n, ["context", "toolbar", "appState", "locales"]),
|
|
49
|
+
return e.context.subscribe((u) => t.value = u), T(e.appState.get(), e.appState).subscribe((u) => a.value = u), N(e.signal, e, s), w(() => e.unsubscribe()), Object.assign(
|
|
50
|
+
C(e, ["context", "toolbar", "appState"]),
|
|
1242
51
|
{
|
|
1243
52
|
context: t,
|
|
1244
|
-
toolbar:
|
|
1245
|
-
appState:
|
|
1246
|
-
locales: u
|
|
53
|
+
toolbar: J(e),
|
|
54
|
+
appState: r
|
|
1247
55
|
}
|
|
1248
56
|
);
|
|
1249
57
|
}
|
|
1250
|
-
function
|
|
1251
|
-
const
|
|
1252
|
-
title:
|
|
1253
|
-
get: () =>
|
|
1254
|
-
set: (t) =>
|
|
58
|
+
function J(o) {
|
|
59
|
+
const s = {
|
|
60
|
+
title: i({
|
|
61
|
+
get: () => o.toolbar.get().title,
|
|
62
|
+
set: (t) => o.toolbar.set((e) => ({ ...e, title: t }))
|
|
1255
63
|
}),
|
|
1256
|
-
searchEnabled:
|
|
1257
|
-
get: () =>
|
|
1258
|
-
set: (t) =>
|
|
64
|
+
searchEnabled: i({
|
|
65
|
+
get: () => o.toolbar.get().search.enabled,
|
|
66
|
+
set: (t) => o.toolbar.set((e) => ({ ...e, search: { ...e.search, enabled: t } }))
|
|
1259
67
|
}),
|
|
1260
|
-
search:
|
|
1261
|
-
menu:
|
|
1262
|
-
get: () =>
|
|
1263
|
-
set: (t) =>
|
|
68
|
+
search: b(""),
|
|
69
|
+
menu: i({
|
|
70
|
+
get: () => o.toolbar.get().menu ?? [],
|
|
71
|
+
set: (t) => o.toolbar.set((e) => ({ ...e, menu: t }))
|
|
1264
72
|
}),
|
|
1265
|
-
isLoading:
|
|
1266
|
-
get: () =>
|
|
1267
|
-
set: (t) =>
|
|
73
|
+
isLoading: i({
|
|
74
|
+
get: () => o.toolbar.get().isLoading,
|
|
75
|
+
set: (t) => o.toolbar.set((e) => ({ ...e, isLoading: t }))
|
|
1268
76
|
})
|
|
1269
77
|
};
|
|
1270
|
-
return
|
|
78
|
+
return o.toolbar.pipe(S((t) => t.search.input ?? ""), V(), W(300), q(console.log)).forEach((t) => s.search.value = t), s;
|
|
1271
79
|
}
|
|
1272
|
-
function
|
|
1273
|
-
const
|
|
1274
|
-
|
|
1275
|
-
|
|
80
|
+
function N(o, s, t) {
|
|
81
|
+
const e = I(), { ctrl: a, shift: r } = e, u = new _(), c = u.pipe(
|
|
82
|
+
v(t ?? ((m) => Promise.resolve(m))),
|
|
83
|
+
v((m) => o(m))
|
|
1276
84
|
).subscribe();
|
|
1277
|
-
return
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
)
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
85
|
+
return s.add(c), c.add(f(a, () => u.next({ hotkeys: { ctrl: !0 } }))), c.add(f(r, () => u.next({ hotkeys: { shift: !0 } }))), c;
|
|
86
|
+
}
|
|
87
|
+
function oe(o) {
|
|
88
|
+
const { context: s } = o, t = new x({}), e = (n) => t.next(n(t.value)), a = b(), r = new x(void 0);
|
|
89
|
+
h(a, (n) => r.next(n), { immediate: !0 });
|
|
90
|
+
const u = r.asObservable().pipe(
|
|
91
|
+
S((n) => n == null ? void 0 : n.contentWindow),
|
|
92
|
+
F((n) => !!n)
|
|
93
|
+
), c = P({ ...o, contextChanges: t, windowChanges: u });
|
|
94
|
+
Object.entries(s).map(([n, l]) => h(
|
|
95
|
+
l,
|
|
96
|
+
(d) => e((p) => ({ ...p, [n]: d })),
|
|
97
|
+
{ immediate: !0 }
|
|
98
|
+
)).forEach((n) => c.scope.add(n)), c.toolbar.subscribe((n) => {
|
|
99
|
+
var d, p;
|
|
100
|
+
const l = o.toolbar;
|
|
101
|
+
l.title.value = n.title, l.searchEnabled.value = ((d = n.search) == null ? void 0 : d.enabled) ?? !1, l.search.value = (p = n.search) == null ? void 0 : p.input, l.menu.value = n.menu, l.isLoading.value = (n == null ? void 0 : n.isLoading) ?? !1;
|
|
102
|
+
}), E(
|
|
103
|
+
o.toolbar.search,
|
|
104
|
+
(n) => c.toolbar.set.search(n),
|
|
105
|
+
{ immediate: !0, debounce: 100 }
|
|
1290
106
|
);
|
|
107
|
+
const m = b(c.appState.get()), j = i({
|
|
108
|
+
get: () => m.value,
|
|
109
|
+
set: (n) => c.appState.set(n)
|
|
110
|
+
});
|
|
111
|
+
c.appState.changes.subscribe((n) => m.value = n);
|
|
112
|
+
const g = b(!1);
|
|
113
|
+
c.isConnectionInitialized.subscribe((n) => g.value = n), w(() => c.unsubscribe());
|
|
114
|
+
const { unsubscribe: y, signal: k, closed: M } = c;
|
|
115
|
+
return {
|
|
116
|
+
...o,
|
|
117
|
+
client: a,
|
|
118
|
+
appState: j,
|
|
119
|
+
isConnectionInitialized: g,
|
|
120
|
+
unsubscribe: y,
|
|
121
|
+
signal: k,
|
|
122
|
+
closed: M
|
|
123
|
+
};
|
|
1291
124
|
}
|
|
1292
|
-
function
|
|
1293
|
-
const [
|
|
1294
|
-
|
|
1295
|
-
() =>
|
|
1296
|
-
(
|
|
125
|
+
function ne(o = "comms") {
|
|
126
|
+
const [s, t] = Q(
|
|
127
|
+
o,
|
|
128
|
+
() => G(),
|
|
129
|
+
(e) => e.unsubscribe()
|
|
1297
130
|
);
|
|
1298
|
-
return { provideComms:
|
|
131
|
+
return { provideComms: s, injectComms: t };
|
|
1299
132
|
}
|
|
1300
|
-
function
|
|
1301
|
-
let
|
|
1302
|
-
const
|
|
133
|
+
function Q(o, s, t) {
|
|
134
|
+
let e;
|
|
135
|
+
const a = () => (!e && (e = s()), e);
|
|
1303
136
|
return [
|
|
1304
|
-
(
|
|
1305
|
-
() =>
|
|
137
|
+
(r) => (r.onUnmount(() => t && e && t(e)), r.provide(o, a)),
|
|
138
|
+
() => z(o)()
|
|
1306
139
|
];
|
|
1307
140
|
}
|
|
1308
|
-
function
|
|
1309
|
-
const
|
|
1310
|
-
return Object.assign(
|
|
1311
|
-
execute: (...
|
|
1312
|
-
executeDelayed:
|
|
141
|
+
function se(o, s, t) {
|
|
142
|
+
const a = L(o, s, { immediate: !1, ...t });
|
|
143
|
+
return Object.assign(C(a, ["execute"]), {
|
|
144
|
+
execute: (...r) => a.execute(void 0, ...r),
|
|
145
|
+
executeDelayed: a.execute
|
|
1313
146
|
});
|
|
1314
147
|
}
|
|
1315
|
-
function
|
|
1316
|
-
let
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
function De(e, r, t) {
|
|
1320
|
-
const n = ref(void 0);
|
|
1321
|
-
return Ce(e, r, (o) => n.value = t ? t(o) : o), readonly(n);
|
|
1322
|
-
}
|
|
1323
|
-
function He(e) {
|
|
1324
|
-
const { context: r } = e, t = new Y({}), n = (h) => t.next(h(t.value)), o = S(), i = new Y(void 0);
|
|
1325
|
-
Object.entries(r).forEach(([h, m]) => z(
|
|
1326
|
-
m,
|
|
1327
|
-
(k) => n((L) => ({ ...L, [h]: k })),
|
|
1328
|
-
{ immediate: !0 }
|
|
1329
|
-
)), z(o, (h) => i.next(h), { immediate: !0 });
|
|
1330
|
-
const u = i.asObservable().pipe(
|
|
1331
|
-
Q((h) => h == null ? void 0 : h.contentWindow),
|
|
1332
|
-
Se((h) => !!h)
|
|
1333
|
-
), s = new Y({ availableLocales: [] }), { locale: a, availableLocales: c } = G();
|
|
1334
|
-
kt(() => s.next(Pe({ locale: a, availableLocales: c })));
|
|
1335
|
-
const l = Ut({ ...e, contextChanges: t, windowChanges: u, locales: s });
|
|
1336
|
-
l.toolbar.subscribe((h) => {
|
|
1337
|
-
var k, L;
|
|
1338
|
-
const m = e.toolbar;
|
|
1339
|
-
m.title.value = h.title, m.searchEnabled.value = ((k = h.search) == null ? void 0 : k.enabled) ?? !1, m.search.value = (L = h.search) == null ? void 0 : L.input, m.menu.value = h.menu, m.isLoading.value = (h == null ? void 0 : h.isLoading) ?? !1;
|
|
1340
|
-
}), jt(
|
|
1341
|
-
e.toolbar.search,
|
|
1342
|
-
(h) => l.toolbar.set.search(h),
|
|
1343
|
-
{ immediate: !0, debounce: 100 }
|
|
1344
|
-
);
|
|
1345
|
-
const d = S(l.appState.get()), y = g({
|
|
1346
|
-
get: () => d.value,
|
|
1347
|
-
set: (h) => l.appState.set(h)
|
|
1348
|
-
});
|
|
1349
|
-
l.appState.changes.subscribe((h) => d.value = h);
|
|
1350
|
-
const f = S(!1);
|
|
1351
|
-
l.isConnectionInitialized.subscribe((h) => f.value = h), it(() => l.unsubscribe());
|
|
1352
|
-
const { unsubscribe: b, signal: v, closed: A } = l;
|
|
1353
|
-
return {
|
|
1354
|
-
...e,
|
|
1355
|
-
client: o,
|
|
1356
|
-
appState: y,
|
|
1357
|
-
isConnectionInitialized: f,
|
|
1358
|
-
unsubscribe: b,
|
|
1359
|
-
signal: v,
|
|
1360
|
-
closed: A
|
|
1361
|
-
};
|
|
148
|
+
function ae(o) {
|
|
149
|
+
let s;
|
|
150
|
+
const t = b(void 0);
|
|
151
|
+
return U(() => s = o.signal.receive((e) => t.value = e)), D(() => s == null ? void 0 : s()), [H(t), () => s == null ? void 0 : s()];
|
|
1362
152
|
}
|
|
1363
153
|
export {
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
Ce as watchSignal
|
|
154
|
+
ee as useAntColorMode,
|
|
155
|
+
te as useAntI18n,
|
|
156
|
+
se as useApi,
|
|
157
|
+
G as useCommsClient,
|
|
158
|
+
oe as useCommsHost,
|
|
159
|
+
ne as useCommsInjection,
|
|
160
|
+
ae as useSignal,
|
|
161
|
+
Q as useSingleton
|
|
1373
162
|
};
|