@quick-threejs/reactive 0.1.38 → 0.1.39
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/FontLoader-Cp39O036.mjs +3057 -0
- package/dist/FontLoader-DvGzwRip.js +34 -0
- package/dist/common/blueprints/props.blueprint.d.ts +1 -1
- package/dist/core/app/app.module.d.ts +4 -2
- package/dist/core/app/{app.util.d.ts → app.worker.d.ts} +2 -1
- package/dist/core/app/debug/debug.module.d.ts +3 -1
- package/dist/core/app/loader/loader.controller.d.ts +3 -1
- package/dist/core/app/loader/loader.module.d.ts +3 -1
- package/dist/core/app/timer/timer.controller.d.ts +3 -1
- package/dist/core/app/timer/timer.module.d.ts +3 -1
- package/dist/core/register/register.module.d.ts +2 -2
- package/dist/core/register/register.service.d.ts +38 -5
- package/dist/main.d.ts +3 -2
- package/dist/main.js +4 -3
- package/dist/main.mjs +3042 -1148
- package/dist/main.worker.d.ts +2 -1
- package/dist/worker.js +1 -1
- package/dist/worker.mjs +1358 -30
- package/package.json +8 -7
- package/dist/app.module-BHIYNoTs.js +0 -35
- package/dist/app.module-Cuyp2CTi.mjs +0 -6246
- package/dist/core/index.d.ts +0 -3
|
@@ -0,0 +1,3057 @@
|
|
|
1
|
+
var or = Object.defineProperty;
|
|
2
|
+
var sr = (e, t, r) => t in e ? or(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var h = (e, t, r) => sr(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
+
import { EventDispatcher as ar, ObjectLoader as ur, Loader as cr, FileLoader as fr, ShapePath as lr } from "three";
|
|
5
|
+
const $n = [
|
|
6
|
+
"ArrowUp",
|
|
7
|
+
"ArrowDown",
|
|
8
|
+
"ArrowLeft",
|
|
9
|
+
"ArrowRight"
|
|
10
|
+
], jn = [
|
|
11
|
+
"contextmenu",
|
|
12
|
+
"resize",
|
|
13
|
+
"mousedown",
|
|
14
|
+
"mousemove",
|
|
15
|
+
"mouseup",
|
|
16
|
+
"pointerdown",
|
|
17
|
+
"pointermove",
|
|
18
|
+
"pointercancel",
|
|
19
|
+
"pointerup",
|
|
20
|
+
"touchstart",
|
|
21
|
+
"touchmove",
|
|
22
|
+
"touchend",
|
|
23
|
+
"wheel",
|
|
24
|
+
"keydown"
|
|
25
|
+
];
|
|
26
|
+
var dr = /* @__PURE__ */ ((e) => (e[e.PERSPECTIVE = 0] = "PERSPECTIVE", e[e.ORTHOGRAPHIC = 1] = "ORTHOGRAPHIC", e))(dr || {});
|
|
27
|
+
class hr {
|
|
28
|
+
constructor() {
|
|
29
|
+
h(this, "contextmenu$$");
|
|
30
|
+
h(this, "resize$$");
|
|
31
|
+
h(this, "mousedown$$");
|
|
32
|
+
h(this, "mousemove$$");
|
|
33
|
+
h(this, "mouseup$$");
|
|
34
|
+
h(this, "pointerdown$$");
|
|
35
|
+
h(this, "pointermove$$");
|
|
36
|
+
h(this, "pointercancel$$");
|
|
37
|
+
h(this, "pointerup$$");
|
|
38
|
+
h(this, "touchstart$$");
|
|
39
|
+
h(this, "touchmove$$");
|
|
40
|
+
h(this, "touchend$$");
|
|
41
|
+
h(this, "wheel$$");
|
|
42
|
+
h(this, "keydown$$");
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
class pr extends hr {
|
|
46
|
+
constructor() {
|
|
47
|
+
super(...arguments);
|
|
48
|
+
h(this, "contextmenu$");
|
|
49
|
+
h(this, "resize$");
|
|
50
|
+
h(this, "mousedown$");
|
|
51
|
+
h(this, "mousemove$");
|
|
52
|
+
h(this, "mouseup$");
|
|
53
|
+
h(this, "pointerdown$");
|
|
54
|
+
h(this, "pointermove$");
|
|
55
|
+
h(this, "pointercancel$");
|
|
56
|
+
h(this, "pointerup$");
|
|
57
|
+
h(this, "touchstart$");
|
|
58
|
+
h(this, "touchmove$");
|
|
59
|
+
h(this, "touchend$");
|
|
60
|
+
h(this, "wheel$");
|
|
61
|
+
h(this, "keydown$");
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
class An extends pr {
|
|
65
|
+
constructor() {
|
|
66
|
+
super(...arguments);
|
|
67
|
+
h(this, "contextmenu");
|
|
68
|
+
h(this, "resize");
|
|
69
|
+
h(this, "mousedown");
|
|
70
|
+
h(this, "mousemove");
|
|
71
|
+
h(this, "mouseup");
|
|
72
|
+
h(this, "pointerdown");
|
|
73
|
+
h(this, "pointermove");
|
|
74
|
+
h(this, "pointercancel");
|
|
75
|
+
h(this, "pointerup");
|
|
76
|
+
h(this, "touchstart");
|
|
77
|
+
h(this, "touchmove");
|
|
78
|
+
h(this, "touchend");
|
|
79
|
+
h(this, "wheel");
|
|
80
|
+
h(this, "keydown");
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
class Cn {
|
|
84
|
+
constructor() {
|
|
85
|
+
h(this, "contextmenu$");
|
|
86
|
+
h(this, "resize$");
|
|
87
|
+
h(this, "mousedown$");
|
|
88
|
+
h(this, "mousemove$");
|
|
89
|
+
h(this, "mouseup$");
|
|
90
|
+
h(this, "pointerdown$");
|
|
91
|
+
h(this, "pointermove$");
|
|
92
|
+
h(this, "pointercancel$");
|
|
93
|
+
h(this, "pointerup$");
|
|
94
|
+
h(this, "touchstart$");
|
|
95
|
+
h(this, "touchmove$");
|
|
96
|
+
h(this, "touchend$");
|
|
97
|
+
h(this, "wheel$");
|
|
98
|
+
h(this, "keydown$");
|
|
99
|
+
h(this, "contextmenu");
|
|
100
|
+
h(this, "resize");
|
|
101
|
+
h(this, "mousedown");
|
|
102
|
+
h(this, "mousemove");
|
|
103
|
+
h(this, "mouseup");
|
|
104
|
+
h(this, "pointerdown");
|
|
105
|
+
h(this, "pointermove");
|
|
106
|
+
h(this, "pointercancel");
|
|
107
|
+
h(this, "pointerup");
|
|
108
|
+
h(this, "touchstart");
|
|
109
|
+
h(this, "touchmove");
|
|
110
|
+
h(this, "touchend");
|
|
111
|
+
h(this, "wheel");
|
|
112
|
+
h(this, "keydown");
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
class zn {
|
|
116
|
+
constructor() {
|
|
117
|
+
h(this, "contextmenu$");
|
|
118
|
+
h(this, "resize$");
|
|
119
|
+
h(this, "mousedown$");
|
|
120
|
+
h(this, "mousemove$");
|
|
121
|
+
h(this, "mouseup$");
|
|
122
|
+
h(this, "pointerdown$");
|
|
123
|
+
h(this, "pointermove$");
|
|
124
|
+
h(this, "pointercancel$");
|
|
125
|
+
h(this, "pointerup$");
|
|
126
|
+
h(this, "touchstart$");
|
|
127
|
+
h(this, "touchmove$");
|
|
128
|
+
h(this, "touchend$");
|
|
129
|
+
h(this, "wheel$");
|
|
130
|
+
h(this, "keydown$");
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
const Dn = "CONTAINER", Fn = "LOADER_SERIALIZED_LOAD";
|
|
134
|
+
var ft = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
135
|
+
function qn(e) {
|
|
136
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
137
|
+
}
|
|
138
|
+
function Ln(e) {
|
|
139
|
+
if (e.__esModule) return e;
|
|
140
|
+
var t = e.default;
|
|
141
|
+
if (typeof t == "function") {
|
|
142
|
+
var r = function n() {
|
|
143
|
+
return this instanceof n ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
|
|
144
|
+
};
|
|
145
|
+
r.prototype = t.prototype;
|
|
146
|
+
} else r = {};
|
|
147
|
+
return Object.defineProperty(r, "__esModule", { value: !0 }), Object.keys(e).forEach(function(n) {
|
|
148
|
+
var i = Object.getOwnPropertyDescriptor(e, n);
|
|
149
|
+
Object.defineProperty(r, n, i.get ? i : {
|
|
150
|
+
enumerable: !0,
|
|
151
|
+
get: function() {
|
|
152
|
+
return e[n];
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
}), r;
|
|
156
|
+
}
|
|
157
|
+
var lt = {};
|
|
158
|
+
/*! *****************************************************************************
|
|
159
|
+
Copyright (C) Microsoft. All rights reserved.
|
|
160
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
161
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
162
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
163
|
+
|
|
164
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
165
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
166
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
167
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
168
|
+
|
|
169
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
170
|
+
and limitations under the License.
|
|
171
|
+
***************************************************************************** */
|
|
172
|
+
var dt;
|
|
173
|
+
function vr() {
|
|
174
|
+
if (dt) return lt;
|
|
175
|
+
dt = 1;
|
|
176
|
+
var e;
|
|
177
|
+
return function(t) {
|
|
178
|
+
(function(r) {
|
|
179
|
+
var n = typeof globalThis == "object" ? globalThis : typeof ft == "object" ? ft : typeof self == "object" ? self : typeof this == "object" ? this : d(), i = o(t);
|
|
180
|
+
typeof n.Reflect < "u" && (i = o(n.Reflect, i)), r(i, n), typeof n.Reflect > "u" && (n.Reflect = t);
|
|
181
|
+
function o(f, b) {
|
|
182
|
+
return function(M, I) {
|
|
183
|
+
Object.defineProperty(f, M, { configurable: !0, writable: !0, value: I }), b && b(M, I);
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
function s() {
|
|
187
|
+
try {
|
|
188
|
+
return Function("return this;")();
|
|
189
|
+
} catch {
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
function c() {
|
|
193
|
+
try {
|
|
194
|
+
return (0, eval)("(function() { return this; })()");
|
|
195
|
+
} catch {
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
function d() {
|
|
199
|
+
return s() || c();
|
|
200
|
+
}
|
|
201
|
+
})(function(r, n) {
|
|
202
|
+
var i = Object.prototype.hasOwnProperty, o = typeof Symbol == "function", s = o && typeof Symbol.toPrimitive < "u" ? Symbol.toPrimitive : "@@toPrimitive", c = o && typeof Symbol.iterator < "u" ? Symbol.iterator : "@@iterator", d = typeof Object.create == "function", f = { __proto__: [] } instanceof Array, b = !d && !f, M = {
|
|
203
|
+
// create an object in dictionary mode (a.k.a. "slow" mode in v8)
|
|
204
|
+
create: d ? function() {
|
|
205
|
+
return De(/* @__PURE__ */ Object.create(null));
|
|
206
|
+
} : f ? function() {
|
|
207
|
+
return De({ __proto__: null });
|
|
208
|
+
} : function() {
|
|
209
|
+
return De({});
|
|
210
|
+
},
|
|
211
|
+
has: b ? function(a, u) {
|
|
212
|
+
return i.call(a, u);
|
|
213
|
+
} : function(a, u) {
|
|
214
|
+
return u in a;
|
|
215
|
+
},
|
|
216
|
+
get: b ? function(a, u) {
|
|
217
|
+
return i.call(a, u) ? a[u] : void 0;
|
|
218
|
+
} : function(a, u) {
|
|
219
|
+
return a[u];
|
|
220
|
+
}
|
|
221
|
+
}, I = Object.getPrototypeOf(Function), O = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : er(), x = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : tr(), S = typeof WeakMap == "function" ? WeakMap : rr(), R = o ? Symbol.for("@reflect-metadata:registry") : void 0, q = Qt(), G = Xt(q);
|
|
222
|
+
function B(a, u, l, p) {
|
|
223
|
+
if (E(l)) {
|
|
224
|
+
if (!rt(a))
|
|
225
|
+
throw new TypeError();
|
|
226
|
+
if (!nt(u))
|
|
227
|
+
throw new TypeError();
|
|
228
|
+
return Q(a, u);
|
|
229
|
+
} else {
|
|
230
|
+
if (!rt(a))
|
|
231
|
+
throw new TypeError();
|
|
232
|
+
if (!D(u))
|
|
233
|
+
throw new TypeError();
|
|
234
|
+
if (!D(p) && !E(p) && !ue(p))
|
|
235
|
+
throw new TypeError();
|
|
236
|
+
return ue(p) && (p = void 0), l = Y(l), N(a, u, l, p);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
r("decorate", B);
|
|
240
|
+
function ee(a, u) {
|
|
241
|
+
function l(p, _) {
|
|
242
|
+
if (!D(p))
|
|
243
|
+
throw new TypeError();
|
|
244
|
+
if (!E(_) && !Zt(_))
|
|
245
|
+
throw new TypeError();
|
|
246
|
+
Z(a, u, p, _);
|
|
247
|
+
}
|
|
248
|
+
return l;
|
|
249
|
+
}
|
|
250
|
+
r("metadata", ee);
|
|
251
|
+
function te(a, u, l, p) {
|
|
252
|
+
if (!D(l))
|
|
253
|
+
throw new TypeError();
|
|
254
|
+
return E(p) || (p = Y(p)), Z(a, u, l, p);
|
|
255
|
+
}
|
|
256
|
+
r("defineMetadata", te);
|
|
257
|
+
function U(a, u, l) {
|
|
258
|
+
if (!D(u))
|
|
259
|
+
throw new TypeError();
|
|
260
|
+
return E(l) || (l = Y(l)), V(a, u, l);
|
|
261
|
+
}
|
|
262
|
+
r("hasMetadata", U);
|
|
263
|
+
function ge(a, u, l) {
|
|
264
|
+
if (!D(u))
|
|
265
|
+
throw new TypeError();
|
|
266
|
+
return E(l) || (l = Y(l)), he(a, u, l);
|
|
267
|
+
}
|
|
268
|
+
r("hasOwnMetadata", ge);
|
|
269
|
+
function Ae(a, u, l) {
|
|
270
|
+
if (!D(u))
|
|
271
|
+
throw new TypeError();
|
|
272
|
+
return E(l) || (l = Y(l)), _e(a, u, l);
|
|
273
|
+
}
|
|
274
|
+
r("getMetadata", Ae);
|
|
275
|
+
function y(a, u, l) {
|
|
276
|
+
if (!D(u))
|
|
277
|
+
throw new TypeError();
|
|
278
|
+
return E(l) || (l = Y(l)), se(a, u, l);
|
|
279
|
+
}
|
|
280
|
+
r("getOwnMetadata", y);
|
|
281
|
+
function k(a, u) {
|
|
282
|
+
if (!D(a))
|
|
283
|
+
throw new TypeError();
|
|
284
|
+
return E(u) || (u = Y(u)), ae(a, u);
|
|
285
|
+
}
|
|
286
|
+
r("getMetadataKeys", k);
|
|
287
|
+
function $(a, u) {
|
|
288
|
+
if (!D(a))
|
|
289
|
+
throw new TypeError();
|
|
290
|
+
return E(u) || (u = Y(u)), Ke(a, u);
|
|
291
|
+
}
|
|
292
|
+
r("getOwnMetadataKeys", $);
|
|
293
|
+
function z(a, u, l) {
|
|
294
|
+
if (!D(u))
|
|
295
|
+
throw new TypeError();
|
|
296
|
+
if (E(l) || (l = Y(l)), !D(u))
|
|
297
|
+
throw new TypeError();
|
|
298
|
+
E(l) || (l = Y(l));
|
|
299
|
+
var p = pe(
|
|
300
|
+
u,
|
|
301
|
+
l,
|
|
302
|
+
/*Create*/
|
|
303
|
+
!1
|
|
304
|
+
);
|
|
305
|
+
return E(p) ? !1 : p.OrdinaryDeleteMetadata(a, u, l);
|
|
306
|
+
}
|
|
307
|
+
r("deleteMetadata", z);
|
|
308
|
+
function Q(a, u) {
|
|
309
|
+
for (var l = a.length - 1; l >= 0; --l) {
|
|
310
|
+
var p = a[l], _ = p(u);
|
|
311
|
+
if (!E(_) && !ue(_)) {
|
|
312
|
+
if (!nt(_))
|
|
313
|
+
throw new TypeError();
|
|
314
|
+
u = _;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
return u;
|
|
318
|
+
}
|
|
319
|
+
function N(a, u, l, p) {
|
|
320
|
+
for (var _ = a.length - 1; _ >= 0; --_) {
|
|
321
|
+
var L = a[_], F = L(u, l, p);
|
|
322
|
+
if (!E(F) && !ue(F)) {
|
|
323
|
+
if (!D(F))
|
|
324
|
+
throw new TypeError();
|
|
325
|
+
p = F;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
return p;
|
|
329
|
+
}
|
|
330
|
+
function V(a, u, l) {
|
|
331
|
+
var p = he(a, u, l);
|
|
332
|
+
if (p)
|
|
333
|
+
return !0;
|
|
334
|
+
var _ = ze(u);
|
|
335
|
+
return ue(_) ? !1 : V(a, _, l);
|
|
336
|
+
}
|
|
337
|
+
function he(a, u, l) {
|
|
338
|
+
var p = pe(
|
|
339
|
+
u,
|
|
340
|
+
l,
|
|
341
|
+
/*Create*/
|
|
342
|
+
!1
|
|
343
|
+
);
|
|
344
|
+
return E(p) ? !1 : tt(p.OrdinaryHasOwnMetadata(a, u, l));
|
|
345
|
+
}
|
|
346
|
+
function _e(a, u, l) {
|
|
347
|
+
var p = he(a, u, l);
|
|
348
|
+
if (p)
|
|
349
|
+
return se(a, u, l);
|
|
350
|
+
var _ = ze(u);
|
|
351
|
+
if (!ue(_))
|
|
352
|
+
return _e(a, _, l);
|
|
353
|
+
}
|
|
354
|
+
function se(a, u, l) {
|
|
355
|
+
var p = pe(
|
|
356
|
+
u,
|
|
357
|
+
l,
|
|
358
|
+
/*Create*/
|
|
359
|
+
!1
|
|
360
|
+
);
|
|
361
|
+
if (!E(p))
|
|
362
|
+
return p.OrdinaryGetOwnMetadata(a, u, l);
|
|
363
|
+
}
|
|
364
|
+
function Z(a, u, l, p) {
|
|
365
|
+
var _ = pe(
|
|
366
|
+
l,
|
|
367
|
+
p,
|
|
368
|
+
/*Create*/
|
|
369
|
+
!0
|
|
370
|
+
);
|
|
371
|
+
_.OrdinaryDefineOwnMetadata(a, u, l, p);
|
|
372
|
+
}
|
|
373
|
+
function ae(a, u) {
|
|
374
|
+
var l = Ke(a, u), p = ze(a);
|
|
375
|
+
if (p === null)
|
|
376
|
+
return l;
|
|
377
|
+
var _ = ae(p, u);
|
|
378
|
+
if (_.length <= 0)
|
|
379
|
+
return l;
|
|
380
|
+
if (l.length <= 0)
|
|
381
|
+
return _;
|
|
382
|
+
for (var L = new x(), F = [], T = 0, v = l; T < v.length; T++) {
|
|
383
|
+
var m = v[T], w = L.has(m);
|
|
384
|
+
w || (L.add(m), F.push(m));
|
|
385
|
+
}
|
|
386
|
+
for (var g = 0, P = _; g < P.length; g++) {
|
|
387
|
+
var m = P[g], w = L.has(m);
|
|
388
|
+
w || (L.add(m), F.push(m));
|
|
389
|
+
}
|
|
390
|
+
return F;
|
|
391
|
+
}
|
|
392
|
+
function Ke(a, u) {
|
|
393
|
+
var l = pe(
|
|
394
|
+
a,
|
|
395
|
+
u,
|
|
396
|
+
/*create*/
|
|
397
|
+
!1
|
|
398
|
+
);
|
|
399
|
+
return l ? l.OrdinaryOwnMetadataKeys(a, u) : [];
|
|
400
|
+
}
|
|
401
|
+
function et(a) {
|
|
402
|
+
if (a === null)
|
|
403
|
+
return 1;
|
|
404
|
+
switch (typeof a) {
|
|
405
|
+
case "undefined":
|
|
406
|
+
return 0;
|
|
407
|
+
case "boolean":
|
|
408
|
+
return 2;
|
|
409
|
+
case "string":
|
|
410
|
+
return 3;
|
|
411
|
+
case "symbol":
|
|
412
|
+
return 4;
|
|
413
|
+
case "number":
|
|
414
|
+
return 5;
|
|
415
|
+
case "object":
|
|
416
|
+
return a === null ? 1 : 6;
|
|
417
|
+
default:
|
|
418
|
+
return 6;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
function E(a) {
|
|
422
|
+
return a === void 0;
|
|
423
|
+
}
|
|
424
|
+
function ue(a) {
|
|
425
|
+
return a === null;
|
|
426
|
+
}
|
|
427
|
+
function Bt(a) {
|
|
428
|
+
return typeof a == "symbol";
|
|
429
|
+
}
|
|
430
|
+
function D(a) {
|
|
431
|
+
return typeof a == "object" ? a !== null : typeof a == "function";
|
|
432
|
+
}
|
|
433
|
+
function Ut(a, u) {
|
|
434
|
+
switch (et(a)) {
|
|
435
|
+
case 0:
|
|
436
|
+
return a;
|
|
437
|
+
case 1:
|
|
438
|
+
return a;
|
|
439
|
+
case 2:
|
|
440
|
+
return a;
|
|
441
|
+
case 3:
|
|
442
|
+
return a;
|
|
443
|
+
case 4:
|
|
444
|
+
return a;
|
|
445
|
+
case 5:
|
|
446
|
+
return a;
|
|
447
|
+
}
|
|
448
|
+
var l = "string", p = it(a, s);
|
|
449
|
+
if (p !== void 0) {
|
|
450
|
+
var _ = p.call(a, l);
|
|
451
|
+
if (D(_))
|
|
452
|
+
throw new TypeError();
|
|
453
|
+
return _;
|
|
454
|
+
}
|
|
455
|
+
return Vt(a);
|
|
456
|
+
}
|
|
457
|
+
function Vt(a, u) {
|
|
458
|
+
var l, p;
|
|
459
|
+
{
|
|
460
|
+
var _ = a.toString;
|
|
461
|
+
if (Se(_)) {
|
|
462
|
+
var p = _.call(a);
|
|
463
|
+
if (!D(p))
|
|
464
|
+
return p;
|
|
465
|
+
}
|
|
466
|
+
var l = a.valueOf;
|
|
467
|
+
if (Se(l)) {
|
|
468
|
+
var p = l.call(a);
|
|
469
|
+
if (!D(p))
|
|
470
|
+
return p;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
throw new TypeError();
|
|
474
|
+
}
|
|
475
|
+
function tt(a) {
|
|
476
|
+
return !!a;
|
|
477
|
+
}
|
|
478
|
+
function Jt(a) {
|
|
479
|
+
return "" + a;
|
|
480
|
+
}
|
|
481
|
+
function Y(a) {
|
|
482
|
+
var u = Ut(a);
|
|
483
|
+
return Bt(u) ? u : Jt(u);
|
|
484
|
+
}
|
|
485
|
+
function rt(a) {
|
|
486
|
+
return Array.isArray ? Array.isArray(a) : a instanceof Object ? a instanceof Array : Object.prototype.toString.call(a) === "[object Array]";
|
|
487
|
+
}
|
|
488
|
+
function Se(a) {
|
|
489
|
+
return typeof a == "function";
|
|
490
|
+
}
|
|
491
|
+
function nt(a) {
|
|
492
|
+
return typeof a == "function";
|
|
493
|
+
}
|
|
494
|
+
function Zt(a) {
|
|
495
|
+
switch (et(a)) {
|
|
496
|
+
case 3:
|
|
497
|
+
return !0;
|
|
498
|
+
case 4:
|
|
499
|
+
return !0;
|
|
500
|
+
default:
|
|
501
|
+
return !1;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
function Ce(a, u) {
|
|
505
|
+
return a === u || a !== a && u !== u;
|
|
506
|
+
}
|
|
507
|
+
function it(a, u) {
|
|
508
|
+
var l = a[u];
|
|
509
|
+
if (l != null) {
|
|
510
|
+
if (!Se(l))
|
|
511
|
+
throw new TypeError();
|
|
512
|
+
return l;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
function ot(a) {
|
|
516
|
+
var u = it(a, c);
|
|
517
|
+
if (!Se(u))
|
|
518
|
+
throw new TypeError();
|
|
519
|
+
var l = u.call(a);
|
|
520
|
+
if (!D(l))
|
|
521
|
+
throw new TypeError();
|
|
522
|
+
return l;
|
|
523
|
+
}
|
|
524
|
+
function st(a) {
|
|
525
|
+
return a.value;
|
|
526
|
+
}
|
|
527
|
+
function at(a) {
|
|
528
|
+
var u = a.next();
|
|
529
|
+
return u.done ? !1 : u;
|
|
530
|
+
}
|
|
531
|
+
function ut(a) {
|
|
532
|
+
var u = a.return;
|
|
533
|
+
u && u.call(a);
|
|
534
|
+
}
|
|
535
|
+
function ze(a) {
|
|
536
|
+
var u = Object.getPrototypeOf(a);
|
|
537
|
+
if (typeof a != "function" || a === I || u !== I)
|
|
538
|
+
return u;
|
|
539
|
+
var l = a.prototype, p = l && Object.getPrototypeOf(l);
|
|
540
|
+
if (p == null || p === Object.prototype)
|
|
541
|
+
return u;
|
|
542
|
+
var _ = p.constructor;
|
|
543
|
+
return typeof _ != "function" || _ === a ? u : _;
|
|
544
|
+
}
|
|
545
|
+
function Yt() {
|
|
546
|
+
var a;
|
|
547
|
+
!E(R) && typeof n.Reflect < "u" && !(R in n.Reflect) && typeof n.Reflect.defineMetadata == "function" && (a = Kt(n.Reflect));
|
|
548
|
+
var u, l, p, _ = new S(), L = {
|
|
549
|
+
registerProvider: F,
|
|
550
|
+
getProvider: v,
|
|
551
|
+
setProvider: w
|
|
552
|
+
};
|
|
553
|
+
return L;
|
|
554
|
+
function F(g) {
|
|
555
|
+
if (!Object.isExtensible(L))
|
|
556
|
+
throw new Error("Cannot add provider to a frozen registry.");
|
|
557
|
+
switch (!0) {
|
|
558
|
+
case a === g:
|
|
559
|
+
break;
|
|
560
|
+
case E(u):
|
|
561
|
+
u = g;
|
|
562
|
+
break;
|
|
563
|
+
case u === g:
|
|
564
|
+
break;
|
|
565
|
+
case E(l):
|
|
566
|
+
l = g;
|
|
567
|
+
break;
|
|
568
|
+
case l === g:
|
|
569
|
+
break;
|
|
570
|
+
default:
|
|
571
|
+
p === void 0 && (p = new x()), p.add(g);
|
|
572
|
+
break;
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
function T(g, P) {
|
|
576
|
+
if (!E(u)) {
|
|
577
|
+
if (u.isProviderFor(g, P))
|
|
578
|
+
return u;
|
|
579
|
+
if (!E(l)) {
|
|
580
|
+
if (l.isProviderFor(g, P))
|
|
581
|
+
return u;
|
|
582
|
+
if (!E(p))
|
|
583
|
+
for (var j = ot(p); ; ) {
|
|
584
|
+
var C = at(j);
|
|
585
|
+
if (!C)
|
|
586
|
+
return;
|
|
587
|
+
var J = st(C);
|
|
588
|
+
if (J.isProviderFor(g, P))
|
|
589
|
+
return ut(j), J;
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
if (!E(a) && a.isProviderFor(g, P))
|
|
594
|
+
return a;
|
|
595
|
+
}
|
|
596
|
+
function v(g, P) {
|
|
597
|
+
var j = _.get(g), C;
|
|
598
|
+
return E(j) || (C = j.get(P)), E(C) && (C = T(g, P), E(C) || (E(j) && (j = new O(), _.set(g, j)), j.set(P, C))), C;
|
|
599
|
+
}
|
|
600
|
+
function m(g) {
|
|
601
|
+
if (E(g))
|
|
602
|
+
throw new TypeError();
|
|
603
|
+
return u === g || l === g || !E(p) && p.has(g);
|
|
604
|
+
}
|
|
605
|
+
function w(g, P, j) {
|
|
606
|
+
if (!m(j))
|
|
607
|
+
throw new Error("Metadata provider not registered.");
|
|
608
|
+
var C = v(g, P);
|
|
609
|
+
if (C !== j) {
|
|
610
|
+
if (!E(C))
|
|
611
|
+
return !1;
|
|
612
|
+
var J = _.get(g);
|
|
613
|
+
E(J) && (J = new O(), _.set(g, J)), J.set(P, j);
|
|
614
|
+
}
|
|
615
|
+
return !0;
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
function Qt() {
|
|
619
|
+
var a;
|
|
620
|
+
return !E(R) && D(n.Reflect) && Object.isExtensible(n.Reflect) && (a = n.Reflect[R]), E(a) && (a = Yt()), !E(R) && D(n.Reflect) && Object.isExtensible(n.Reflect) && Object.defineProperty(n.Reflect, R, {
|
|
621
|
+
enumerable: !1,
|
|
622
|
+
configurable: !1,
|
|
623
|
+
writable: !1,
|
|
624
|
+
value: a
|
|
625
|
+
}), a;
|
|
626
|
+
}
|
|
627
|
+
function Xt(a) {
|
|
628
|
+
var u = new S(), l = {
|
|
629
|
+
isProviderFor: function(m, w) {
|
|
630
|
+
var g = u.get(m);
|
|
631
|
+
return E(g) ? !1 : g.has(w);
|
|
632
|
+
},
|
|
633
|
+
OrdinaryDefineOwnMetadata: F,
|
|
634
|
+
OrdinaryHasOwnMetadata: _,
|
|
635
|
+
OrdinaryGetOwnMetadata: L,
|
|
636
|
+
OrdinaryOwnMetadataKeys: T,
|
|
637
|
+
OrdinaryDeleteMetadata: v
|
|
638
|
+
};
|
|
639
|
+
return q.registerProvider(l), l;
|
|
640
|
+
function p(m, w, g) {
|
|
641
|
+
var P = u.get(m), j = !1;
|
|
642
|
+
if (E(P)) {
|
|
643
|
+
if (!g)
|
|
644
|
+
return;
|
|
645
|
+
P = new O(), u.set(m, P), j = !0;
|
|
646
|
+
}
|
|
647
|
+
var C = P.get(w);
|
|
648
|
+
if (E(C)) {
|
|
649
|
+
if (!g)
|
|
650
|
+
return;
|
|
651
|
+
if (C = new O(), P.set(w, C), !a.setProvider(m, w, l))
|
|
652
|
+
throw P.delete(w), j && u.delete(m), new Error("Wrong provider for target.");
|
|
653
|
+
}
|
|
654
|
+
return C;
|
|
655
|
+
}
|
|
656
|
+
function _(m, w, g) {
|
|
657
|
+
var P = p(
|
|
658
|
+
w,
|
|
659
|
+
g,
|
|
660
|
+
/*Create*/
|
|
661
|
+
!1
|
|
662
|
+
);
|
|
663
|
+
return E(P) ? !1 : tt(P.has(m));
|
|
664
|
+
}
|
|
665
|
+
function L(m, w, g) {
|
|
666
|
+
var P = p(
|
|
667
|
+
w,
|
|
668
|
+
g,
|
|
669
|
+
/*Create*/
|
|
670
|
+
!1
|
|
671
|
+
);
|
|
672
|
+
if (!E(P))
|
|
673
|
+
return P.get(m);
|
|
674
|
+
}
|
|
675
|
+
function F(m, w, g, P) {
|
|
676
|
+
var j = p(
|
|
677
|
+
g,
|
|
678
|
+
P,
|
|
679
|
+
/*Create*/
|
|
680
|
+
!0
|
|
681
|
+
);
|
|
682
|
+
j.set(m, w);
|
|
683
|
+
}
|
|
684
|
+
function T(m, w) {
|
|
685
|
+
var g = [], P = p(
|
|
686
|
+
m,
|
|
687
|
+
w,
|
|
688
|
+
/*Create*/
|
|
689
|
+
!1
|
|
690
|
+
);
|
|
691
|
+
if (E(P))
|
|
692
|
+
return g;
|
|
693
|
+
for (var j = P.keys(), C = ot(j), J = 0; ; ) {
|
|
694
|
+
var ct = at(C);
|
|
695
|
+
if (!ct)
|
|
696
|
+
return g.length = J, g;
|
|
697
|
+
var nr = st(ct);
|
|
698
|
+
try {
|
|
699
|
+
g[J] = nr;
|
|
700
|
+
} catch (ir) {
|
|
701
|
+
try {
|
|
702
|
+
ut(C);
|
|
703
|
+
} finally {
|
|
704
|
+
throw ir;
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
J++;
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
function v(m, w, g) {
|
|
711
|
+
var P = p(
|
|
712
|
+
w,
|
|
713
|
+
g,
|
|
714
|
+
/*Create*/
|
|
715
|
+
!1
|
|
716
|
+
);
|
|
717
|
+
if (E(P) || !P.delete(m))
|
|
718
|
+
return !1;
|
|
719
|
+
if (P.size === 0) {
|
|
720
|
+
var j = u.get(w);
|
|
721
|
+
E(j) || (j.delete(g), j.size === 0 && u.delete(j));
|
|
722
|
+
}
|
|
723
|
+
return !0;
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
function Kt(a) {
|
|
727
|
+
var u = a.defineMetadata, l = a.hasOwnMetadata, p = a.getOwnMetadata, _ = a.getOwnMetadataKeys, L = a.deleteMetadata, F = new S(), T = {
|
|
728
|
+
isProviderFor: function(v, m) {
|
|
729
|
+
var w = F.get(v);
|
|
730
|
+
return !E(w) && w.has(m) ? !0 : _(v, m).length ? (E(w) && (w = new x(), F.set(v, w)), w.add(m), !0) : !1;
|
|
731
|
+
},
|
|
732
|
+
OrdinaryDefineOwnMetadata: u,
|
|
733
|
+
OrdinaryHasOwnMetadata: l,
|
|
734
|
+
OrdinaryGetOwnMetadata: p,
|
|
735
|
+
OrdinaryOwnMetadataKeys: _,
|
|
736
|
+
OrdinaryDeleteMetadata: L
|
|
737
|
+
};
|
|
738
|
+
return T;
|
|
739
|
+
}
|
|
740
|
+
function pe(a, u, l) {
|
|
741
|
+
var p = q.getProvider(a, u);
|
|
742
|
+
if (!E(p))
|
|
743
|
+
return p;
|
|
744
|
+
if (l) {
|
|
745
|
+
if (q.setProvider(a, u, G))
|
|
746
|
+
return G;
|
|
747
|
+
throw new Error("Illegal state.");
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
function er() {
|
|
751
|
+
var a = {}, u = [], l = (
|
|
752
|
+
/** @class */
|
|
753
|
+
function() {
|
|
754
|
+
function T(v, m, w) {
|
|
755
|
+
this._index = 0, this._keys = v, this._values = m, this._selector = w;
|
|
756
|
+
}
|
|
757
|
+
return T.prototype["@@iterator"] = function() {
|
|
758
|
+
return this;
|
|
759
|
+
}, T.prototype[c] = function() {
|
|
760
|
+
return this;
|
|
761
|
+
}, T.prototype.next = function() {
|
|
762
|
+
var v = this._index;
|
|
763
|
+
if (v >= 0 && v < this._keys.length) {
|
|
764
|
+
var m = this._selector(this._keys[v], this._values[v]);
|
|
765
|
+
return v + 1 >= this._keys.length ? (this._index = -1, this._keys = u, this._values = u) : this._index++, { value: m, done: !1 };
|
|
766
|
+
}
|
|
767
|
+
return { value: void 0, done: !0 };
|
|
768
|
+
}, T.prototype.throw = function(v) {
|
|
769
|
+
throw this._index >= 0 && (this._index = -1, this._keys = u, this._values = u), v;
|
|
770
|
+
}, T.prototype.return = function(v) {
|
|
771
|
+
return this._index >= 0 && (this._index = -1, this._keys = u, this._values = u), { value: v, done: !0 };
|
|
772
|
+
}, T;
|
|
773
|
+
}()
|
|
774
|
+
), p = (
|
|
775
|
+
/** @class */
|
|
776
|
+
function() {
|
|
777
|
+
function T() {
|
|
778
|
+
this._keys = [], this._values = [], this._cacheKey = a, this._cacheIndex = -2;
|
|
779
|
+
}
|
|
780
|
+
return Object.defineProperty(T.prototype, "size", {
|
|
781
|
+
get: function() {
|
|
782
|
+
return this._keys.length;
|
|
783
|
+
},
|
|
784
|
+
enumerable: !0,
|
|
785
|
+
configurable: !0
|
|
786
|
+
}), T.prototype.has = function(v) {
|
|
787
|
+
return this._find(
|
|
788
|
+
v,
|
|
789
|
+
/*insert*/
|
|
790
|
+
!1
|
|
791
|
+
) >= 0;
|
|
792
|
+
}, T.prototype.get = function(v) {
|
|
793
|
+
var m = this._find(
|
|
794
|
+
v,
|
|
795
|
+
/*insert*/
|
|
796
|
+
!1
|
|
797
|
+
);
|
|
798
|
+
return m >= 0 ? this._values[m] : void 0;
|
|
799
|
+
}, T.prototype.set = function(v, m) {
|
|
800
|
+
var w = this._find(
|
|
801
|
+
v,
|
|
802
|
+
/*insert*/
|
|
803
|
+
!0
|
|
804
|
+
);
|
|
805
|
+
return this._values[w] = m, this;
|
|
806
|
+
}, T.prototype.delete = function(v) {
|
|
807
|
+
var m = this._find(
|
|
808
|
+
v,
|
|
809
|
+
/*insert*/
|
|
810
|
+
!1
|
|
811
|
+
);
|
|
812
|
+
if (m >= 0) {
|
|
813
|
+
for (var w = this._keys.length, g = m + 1; g < w; g++)
|
|
814
|
+
this._keys[g - 1] = this._keys[g], this._values[g - 1] = this._values[g];
|
|
815
|
+
return this._keys.length--, this._values.length--, Ce(v, this._cacheKey) && (this._cacheKey = a, this._cacheIndex = -2), !0;
|
|
816
|
+
}
|
|
817
|
+
return !1;
|
|
818
|
+
}, T.prototype.clear = function() {
|
|
819
|
+
this._keys.length = 0, this._values.length = 0, this._cacheKey = a, this._cacheIndex = -2;
|
|
820
|
+
}, T.prototype.keys = function() {
|
|
821
|
+
return new l(this._keys, this._values, _);
|
|
822
|
+
}, T.prototype.values = function() {
|
|
823
|
+
return new l(this._keys, this._values, L);
|
|
824
|
+
}, T.prototype.entries = function() {
|
|
825
|
+
return new l(this._keys, this._values, F);
|
|
826
|
+
}, T.prototype["@@iterator"] = function() {
|
|
827
|
+
return this.entries();
|
|
828
|
+
}, T.prototype[c] = function() {
|
|
829
|
+
return this.entries();
|
|
830
|
+
}, T.prototype._find = function(v, m) {
|
|
831
|
+
if (!Ce(this._cacheKey, v)) {
|
|
832
|
+
this._cacheIndex = -1;
|
|
833
|
+
for (var w = 0; w < this._keys.length; w++)
|
|
834
|
+
if (Ce(this._keys[w], v)) {
|
|
835
|
+
this._cacheIndex = w;
|
|
836
|
+
break;
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
return this._cacheIndex < 0 && m && (this._cacheIndex = this._keys.length, this._keys.push(v), this._values.push(void 0)), this._cacheIndex;
|
|
840
|
+
}, T;
|
|
841
|
+
}()
|
|
842
|
+
);
|
|
843
|
+
return p;
|
|
844
|
+
function _(T, v) {
|
|
845
|
+
return T;
|
|
846
|
+
}
|
|
847
|
+
function L(T, v) {
|
|
848
|
+
return v;
|
|
849
|
+
}
|
|
850
|
+
function F(T, v) {
|
|
851
|
+
return [T, v];
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
function tr() {
|
|
855
|
+
var a = (
|
|
856
|
+
/** @class */
|
|
857
|
+
function() {
|
|
858
|
+
function u() {
|
|
859
|
+
this._map = new O();
|
|
860
|
+
}
|
|
861
|
+
return Object.defineProperty(u.prototype, "size", {
|
|
862
|
+
get: function() {
|
|
863
|
+
return this._map.size;
|
|
864
|
+
},
|
|
865
|
+
enumerable: !0,
|
|
866
|
+
configurable: !0
|
|
867
|
+
}), u.prototype.has = function(l) {
|
|
868
|
+
return this._map.has(l);
|
|
869
|
+
}, u.prototype.add = function(l) {
|
|
870
|
+
return this._map.set(l, l), this;
|
|
871
|
+
}, u.prototype.delete = function(l) {
|
|
872
|
+
return this._map.delete(l);
|
|
873
|
+
}, u.prototype.clear = function() {
|
|
874
|
+
this._map.clear();
|
|
875
|
+
}, u.prototype.keys = function() {
|
|
876
|
+
return this._map.keys();
|
|
877
|
+
}, u.prototype.values = function() {
|
|
878
|
+
return this._map.keys();
|
|
879
|
+
}, u.prototype.entries = function() {
|
|
880
|
+
return this._map.entries();
|
|
881
|
+
}, u.prototype["@@iterator"] = function() {
|
|
882
|
+
return this.keys();
|
|
883
|
+
}, u.prototype[c] = function() {
|
|
884
|
+
return this.keys();
|
|
885
|
+
}, u;
|
|
886
|
+
}()
|
|
887
|
+
);
|
|
888
|
+
return a;
|
|
889
|
+
}
|
|
890
|
+
function rr() {
|
|
891
|
+
var a = 16, u = M.create(), l = p();
|
|
892
|
+
return (
|
|
893
|
+
/** @class */
|
|
894
|
+
function() {
|
|
895
|
+
function v() {
|
|
896
|
+
this._key = p();
|
|
897
|
+
}
|
|
898
|
+
return v.prototype.has = function(m) {
|
|
899
|
+
var w = _(
|
|
900
|
+
m,
|
|
901
|
+
/*create*/
|
|
902
|
+
!1
|
|
903
|
+
);
|
|
904
|
+
return w !== void 0 ? M.has(w, this._key) : !1;
|
|
905
|
+
}, v.prototype.get = function(m) {
|
|
906
|
+
var w = _(
|
|
907
|
+
m,
|
|
908
|
+
/*create*/
|
|
909
|
+
!1
|
|
910
|
+
);
|
|
911
|
+
return w !== void 0 ? M.get(w, this._key) : void 0;
|
|
912
|
+
}, v.prototype.set = function(m, w) {
|
|
913
|
+
var g = _(
|
|
914
|
+
m,
|
|
915
|
+
/*create*/
|
|
916
|
+
!0
|
|
917
|
+
);
|
|
918
|
+
return g[this._key] = w, this;
|
|
919
|
+
}, v.prototype.delete = function(m) {
|
|
920
|
+
var w = _(
|
|
921
|
+
m,
|
|
922
|
+
/*create*/
|
|
923
|
+
!1
|
|
924
|
+
);
|
|
925
|
+
return w !== void 0 ? delete w[this._key] : !1;
|
|
926
|
+
}, v.prototype.clear = function() {
|
|
927
|
+
this._key = p();
|
|
928
|
+
}, v;
|
|
929
|
+
}()
|
|
930
|
+
);
|
|
931
|
+
function p() {
|
|
932
|
+
var v;
|
|
933
|
+
do
|
|
934
|
+
v = "@@WeakMap@@" + T();
|
|
935
|
+
while (M.has(u, v));
|
|
936
|
+
return u[v] = !0, v;
|
|
937
|
+
}
|
|
938
|
+
function _(v, m) {
|
|
939
|
+
if (!i.call(v, l)) {
|
|
940
|
+
if (!m)
|
|
941
|
+
return;
|
|
942
|
+
Object.defineProperty(v, l, { value: M.create() });
|
|
943
|
+
}
|
|
944
|
+
return v[l];
|
|
945
|
+
}
|
|
946
|
+
function L(v, m) {
|
|
947
|
+
for (var w = 0; w < m; ++w)
|
|
948
|
+
v[w] = Math.random() * 255 | 0;
|
|
949
|
+
return v;
|
|
950
|
+
}
|
|
951
|
+
function F(v) {
|
|
952
|
+
if (typeof Uint8Array == "function") {
|
|
953
|
+
var m = new Uint8Array(v);
|
|
954
|
+
return typeof crypto < "u" ? crypto.getRandomValues(m) : typeof msCrypto < "u" ? msCrypto.getRandomValues(m) : L(m, v), m;
|
|
955
|
+
}
|
|
956
|
+
return L(new Array(v), v);
|
|
957
|
+
}
|
|
958
|
+
function T() {
|
|
959
|
+
var v = F(a);
|
|
960
|
+
v[6] = v[6] & 79 | 64, v[8] = v[8] & 191 | 128;
|
|
961
|
+
for (var m = "", w = 0; w < a; ++w) {
|
|
962
|
+
var g = v[w];
|
|
963
|
+
(w === 4 || w === 6 || w === 8) && (m += "-"), g < 16 && (m += "0"), m += g.toString(16).toLowerCase();
|
|
964
|
+
}
|
|
965
|
+
return m;
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
function De(a) {
|
|
969
|
+
return a.__ = void 0, delete a.__, a;
|
|
970
|
+
}
|
|
971
|
+
});
|
|
972
|
+
}(e || (e = {})), lt;
|
|
973
|
+
}
|
|
974
|
+
vr();
|
|
975
|
+
var yr = Object.defineProperty, br = (e, t, r) => t in e ? yr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ve = (e, t, r) => br(e, typeof t != "symbol" ? t + "" : t, r);
|
|
976
|
+
class Nn extends ar {
|
|
977
|
+
constructor() {
|
|
978
|
+
super(), ve(this, "style", {}), ve(this, "width", 0), ve(this, "height", 0), ve(this, "left", 0), ve(this, "top", 0), this.getRootNode = this.getRootNode.bind(this), this.handleEvent = this.handleEvent.bind(this);
|
|
979
|
+
}
|
|
980
|
+
get clientWidth() {
|
|
981
|
+
return this.width;
|
|
982
|
+
}
|
|
983
|
+
get clientHeight() {
|
|
984
|
+
return this.height;
|
|
985
|
+
}
|
|
986
|
+
setPointerCapture() {
|
|
987
|
+
}
|
|
988
|
+
releasePointerCapture() {
|
|
989
|
+
}
|
|
990
|
+
getRootNode() {
|
|
991
|
+
return this;
|
|
992
|
+
}
|
|
993
|
+
getBoundingClientRect() {
|
|
994
|
+
return {
|
|
995
|
+
left: this.left,
|
|
996
|
+
top: this.top,
|
|
997
|
+
width: this.width,
|
|
998
|
+
height: this.height,
|
|
999
|
+
right: this.left + this.width,
|
|
1000
|
+
bottom: this.top + this.height
|
|
1001
|
+
};
|
|
1002
|
+
}
|
|
1003
|
+
handleEvent(t) {
|
|
1004
|
+
if (t.type === "resize") {
|
|
1005
|
+
this.left = t.left ?? 0, this.top = t.top ?? 0, this.width = t.width ?? 0, this.height = t.height ?? 0;
|
|
1006
|
+
return;
|
|
1007
|
+
}
|
|
1008
|
+
t.preventDefault = () => {
|
|
1009
|
+
}, t.stopPropagation = () => {
|
|
1010
|
+
}, this.dispatchEvent(t);
|
|
1011
|
+
}
|
|
1012
|
+
focus() {
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
const Wn = (e) => e === void 0, Hn = (e) => typeof e == "boolean", Gn = (e) => !!e && typeof e == "function", Bn = (e) => {
|
|
1016
|
+
var t, r;
|
|
1017
|
+
const n = e.toJSON();
|
|
1018
|
+
return JSON.stringify({
|
|
1019
|
+
...n,
|
|
1020
|
+
object: {
|
|
1021
|
+
...n.object,
|
|
1022
|
+
position: ["x", "y", "z"].map(
|
|
1023
|
+
(i) => e.position[i]
|
|
1024
|
+
),
|
|
1025
|
+
rotation: ["x", "y", "z", "order"].map(
|
|
1026
|
+
(i) => e.rotation[i]
|
|
1027
|
+
),
|
|
1028
|
+
children: ((r = (t = n == null ? void 0 : n.object) == null ? void 0 : t.children) == null ? void 0 : r.map((i, o) => ({
|
|
1029
|
+
...typeof i == "object" ? i : typeof i == "string" ? JSON.parse(i) : {},
|
|
1030
|
+
position: ["x", "y", "z"].map(
|
|
1031
|
+
(s) => {
|
|
1032
|
+
var c;
|
|
1033
|
+
return (c = e.children[o]) == null ? void 0 : c.position[s];
|
|
1034
|
+
}
|
|
1035
|
+
),
|
|
1036
|
+
rotation: ["x", "y", "z", "order"].map(
|
|
1037
|
+
(s) => {
|
|
1038
|
+
var c;
|
|
1039
|
+
return (c = e.children[o]) == null ? void 0 : c.rotation[s];
|
|
1040
|
+
}
|
|
1041
|
+
)
|
|
1042
|
+
}))) ?? []
|
|
1043
|
+
},
|
|
1044
|
+
isSerialized: !0
|
|
1045
|
+
});
|
|
1046
|
+
}, Un = (e, t = new ur()) => {
|
|
1047
|
+
const r = JSON.parse(e);
|
|
1048
|
+
if (r != null && r.metadata && r.object && r.isSerialized) {
|
|
1049
|
+
const n = t.parse(r);
|
|
1050
|
+
return n.position.set(
|
|
1051
|
+
...r.object.position
|
|
1052
|
+
), n.rotation.set(
|
|
1053
|
+
...r.object.rotation
|
|
1054
|
+
), n.children.map((i, o) => {
|
|
1055
|
+
i.position.set(
|
|
1056
|
+
...r.object.children[o].position
|
|
1057
|
+
);
|
|
1058
|
+
}), n.children.map((i, o) => {
|
|
1059
|
+
i.rotation.set(
|
|
1060
|
+
...r.object.children[o].rotation
|
|
1061
|
+
);
|
|
1062
|
+
}), n;
|
|
1063
|
+
}
|
|
1064
|
+
return r;
|
|
1065
|
+
}, Vn = (e, t) => {
|
|
1066
|
+
const r = {
|
|
1067
|
+
type: e == null ? void 0 : e.type
|
|
1068
|
+
};
|
|
1069
|
+
for (const n of t)
|
|
1070
|
+
e[n] !== void 0 && (r[n] = e[n]);
|
|
1071
|
+
return r;
|
|
1072
|
+
}, Jn = (e, t) => {
|
|
1073
|
+
const r = {
|
|
1074
|
+
type: e == null ? void 0 : e.type
|
|
1075
|
+
};
|
|
1076
|
+
for (const [n, i] of Object.entries(e))
|
|
1077
|
+
t.includes(n) || (r[n] = i);
|
|
1078
|
+
return r;
|
|
1079
|
+
};
|
|
1080
|
+
var He;
|
|
1081
|
+
(function(e) {
|
|
1082
|
+
e[e.Transient = 0] = "Transient", e[e.Singleton = 1] = "Singleton", e[e.ResolutionScoped = 2] = "ResolutionScoped", e[e.ContainerScoped = 3] = "ContainerScoped";
|
|
1083
|
+
})(He || (He = {}));
|
|
1084
|
+
const W = He;
|
|
1085
|
+
/*! *****************************************************************************
|
|
1086
|
+
Copyright (c) Microsoft Corporation.
|
|
1087
|
+
|
|
1088
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
1089
|
+
purpose with or without fee is hereby granted.
|
|
1090
|
+
|
|
1091
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
1092
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
1093
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
1094
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
1095
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
1096
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1097
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
1098
|
+
***************************************************************************** */
|
|
1099
|
+
var Ge = function(e, t) {
|
|
1100
|
+
return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1101
|
+
r.__proto__ = n;
|
|
1102
|
+
} || function(r, n) {
|
|
1103
|
+
for (var i in n) n.hasOwnProperty(i) && (r[i] = n[i]);
|
|
1104
|
+
}, Ge(e, t);
|
|
1105
|
+
};
|
|
1106
|
+
function Ze(e, t) {
|
|
1107
|
+
Ge(e, t);
|
|
1108
|
+
function r() {
|
|
1109
|
+
this.constructor = e;
|
|
1110
|
+
}
|
|
1111
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1112
|
+
}
|
|
1113
|
+
function mr(e, t, r, n) {
|
|
1114
|
+
function i(o) {
|
|
1115
|
+
return o instanceof r ? o : new r(function(s) {
|
|
1116
|
+
s(o);
|
|
1117
|
+
});
|
|
1118
|
+
}
|
|
1119
|
+
return new (r || (r = Promise))(function(o, s) {
|
|
1120
|
+
function c(b) {
|
|
1121
|
+
try {
|
|
1122
|
+
f(n.next(b));
|
|
1123
|
+
} catch (M) {
|
|
1124
|
+
s(M);
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
function d(b) {
|
|
1128
|
+
try {
|
|
1129
|
+
f(n.throw(b));
|
|
1130
|
+
} catch (M) {
|
|
1131
|
+
s(M);
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
function f(b) {
|
|
1135
|
+
b.done ? o(b.value) : i(b.value).then(c, d);
|
|
1136
|
+
}
|
|
1137
|
+
f((n = n.apply(e, [])).next());
|
|
1138
|
+
});
|
|
1139
|
+
}
|
|
1140
|
+
function wr(e, t) {
|
|
1141
|
+
var r = { label: 0, sent: function() {
|
|
1142
|
+
if (o[0] & 1) throw o[1];
|
|
1143
|
+
return o[1];
|
|
1144
|
+
}, trys: [], ops: [] }, n, i, o, s;
|
|
1145
|
+
return s = { next: c(0), throw: c(1), return: c(2) }, typeof Symbol == "function" && (s[Symbol.iterator] = function() {
|
|
1146
|
+
return this;
|
|
1147
|
+
}), s;
|
|
1148
|
+
function c(f) {
|
|
1149
|
+
return function(b) {
|
|
1150
|
+
return d([f, b]);
|
|
1151
|
+
};
|
|
1152
|
+
}
|
|
1153
|
+
function d(f) {
|
|
1154
|
+
if (n) throw new TypeError("Generator is already executing.");
|
|
1155
|
+
for (; r; ) try {
|
|
1156
|
+
if (n = 1, i && (o = f[0] & 2 ? i.return : f[0] ? i.throw || ((o = i.return) && o.call(i), 0) : i.next) && !(o = o.call(i, f[1])).done) return o;
|
|
1157
|
+
switch (i = 0, o && (f = [f[0] & 2, o.value]), f[0]) {
|
|
1158
|
+
case 0:
|
|
1159
|
+
case 1:
|
|
1160
|
+
o = f;
|
|
1161
|
+
break;
|
|
1162
|
+
case 4:
|
|
1163
|
+
return r.label++, { value: f[1], done: !1 };
|
|
1164
|
+
case 5:
|
|
1165
|
+
r.label++, i = f[1], f = [0];
|
|
1166
|
+
continue;
|
|
1167
|
+
case 7:
|
|
1168
|
+
f = r.ops.pop(), r.trys.pop();
|
|
1169
|
+
continue;
|
|
1170
|
+
default:
|
|
1171
|
+
if (o = r.trys, !(o = o.length > 0 && o[o.length - 1]) && (f[0] === 6 || f[0] === 2)) {
|
|
1172
|
+
r = 0;
|
|
1173
|
+
continue;
|
|
1174
|
+
}
|
|
1175
|
+
if (f[0] === 3 && (!o || f[1] > o[0] && f[1] < o[3])) {
|
|
1176
|
+
r.label = f[1];
|
|
1177
|
+
break;
|
|
1178
|
+
}
|
|
1179
|
+
if (f[0] === 6 && r.label < o[1]) {
|
|
1180
|
+
r.label = o[1], o = f;
|
|
1181
|
+
break;
|
|
1182
|
+
}
|
|
1183
|
+
if (o && r.label < o[2]) {
|
|
1184
|
+
r.label = o[2], r.ops.push(f);
|
|
1185
|
+
break;
|
|
1186
|
+
}
|
|
1187
|
+
o[2] && r.ops.pop(), r.trys.pop();
|
|
1188
|
+
continue;
|
|
1189
|
+
}
|
|
1190
|
+
f = t.call(e, r);
|
|
1191
|
+
} catch (b) {
|
|
1192
|
+
f = [6, b], i = 0;
|
|
1193
|
+
} finally {
|
|
1194
|
+
n = o = 0;
|
|
1195
|
+
}
|
|
1196
|
+
if (f[0] & 5) throw f[1];
|
|
1197
|
+
return { value: f[0] ? f[1] : void 0, done: !0 };
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
function Me(e) {
|
|
1201
|
+
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
1202
|
+
if (r) return r.call(e);
|
|
1203
|
+
if (e && typeof e.length == "number") return {
|
|
1204
|
+
next: function() {
|
|
1205
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
1206
|
+
}
|
|
1207
|
+
};
|
|
1208
|
+
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
1209
|
+
}
|
|
1210
|
+
function Ie(e, t) {
|
|
1211
|
+
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
1212
|
+
if (!r) return e;
|
|
1213
|
+
var n = r.call(e), i, o = [], s;
|
|
1214
|
+
try {
|
|
1215
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) o.push(i.value);
|
|
1216
|
+
} catch (c) {
|
|
1217
|
+
s = { error: c };
|
|
1218
|
+
} finally {
|
|
1219
|
+
try {
|
|
1220
|
+
i && !i.done && (r = n.return) && r.call(n);
|
|
1221
|
+
} finally {
|
|
1222
|
+
if (s) throw s.error;
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
return o;
|
|
1226
|
+
}
|
|
1227
|
+
function oe() {
|
|
1228
|
+
for (var e = [], t = 0; t < arguments.length; t++)
|
|
1229
|
+
e = e.concat(Ie(arguments[t]));
|
|
1230
|
+
return e;
|
|
1231
|
+
}
|
|
1232
|
+
var Be = "injectionTokens";
|
|
1233
|
+
function gr(e) {
|
|
1234
|
+
var t = Reflect.getMetadata("design:paramtypes", e) || [], r = Reflect.getOwnMetadata(Be, e) || {};
|
|
1235
|
+
return Object.keys(r).forEach(function(n) {
|
|
1236
|
+
t[+n] = r[n];
|
|
1237
|
+
}), t;
|
|
1238
|
+
}
|
|
1239
|
+
function _r(e, t) {
|
|
1240
|
+
return function(r, n, i) {
|
|
1241
|
+
var o = Reflect.getOwnMetadata(Be, r) || {};
|
|
1242
|
+
o[i] = e, Reflect.defineMetadata(Be, o, r);
|
|
1243
|
+
};
|
|
1244
|
+
}
|
|
1245
|
+
function It(e) {
|
|
1246
|
+
return !!e.useClass;
|
|
1247
|
+
}
|
|
1248
|
+
function Ue(e) {
|
|
1249
|
+
return !!e.useFactory;
|
|
1250
|
+
}
|
|
1251
|
+
var xt = function() {
|
|
1252
|
+
function e(t) {
|
|
1253
|
+
this.wrap = t, this.reflectMethods = [
|
|
1254
|
+
"get",
|
|
1255
|
+
"getPrototypeOf",
|
|
1256
|
+
"setPrototypeOf",
|
|
1257
|
+
"getOwnPropertyDescriptor",
|
|
1258
|
+
"defineProperty",
|
|
1259
|
+
"has",
|
|
1260
|
+
"set",
|
|
1261
|
+
"deleteProperty",
|
|
1262
|
+
"apply",
|
|
1263
|
+
"construct",
|
|
1264
|
+
"ownKeys"
|
|
1265
|
+
];
|
|
1266
|
+
}
|
|
1267
|
+
return e.prototype.createProxy = function(t) {
|
|
1268
|
+
var r = this, n = {}, i = !1, o, s = function() {
|
|
1269
|
+
return i || (o = t(r.wrap()), i = !0), o;
|
|
1270
|
+
};
|
|
1271
|
+
return new Proxy(n, this.createHandler(s));
|
|
1272
|
+
}, e.prototype.createHandler = function(t) {
|
|
1273
|
+
var r = {}, n = function(i) {
|
|
1274
|
+
r[i] = function() {
|
|
1275
|
+
for (var o = [], s = 0; s < arguments.length; s++)
|
|
1276
|
+
o[s] = arguments[s];
|
|
1277
|
+
o[0] = t();
|
|
1278
|
+
var c = Reflect[i];
|
|
1279
|
+
return c.apply(void 0, oe(o));
|
|
1280
|
+
};
|
|
1281
|
+
};
|
|
1282
|
+
return this.reflectMethods.forEach(n), r;
|
|
1283
|
+
}, e;
|
|
1284
|
+
}();
|
|
1285
|
+
function ce(e) {
|
|
1286
|
+
return typeof e == "string" || typeof e == "symbol";
|
|
1287
|
+
}
|
|
1288
|
+
function Sr(e) {
|
|
1289
|
+
return typeof e == "object" && "token" in e && "multiple" in e;
|
|
1290
|
+
}
|
|
1291
|
+
function ht(e) {
|
|
1292
|
+
return typeof e == "object" && "token" in e && "transform" in e;
|
|
1293
|
+
}
|
|
1294
|
+
function Mr(e) {
|
|
1295
|
+
return typeof e == "function" || e instanceof xt;
|
|
1296
|
+
}
|
|
1297
|
+
function Re(e) {
|
|
1298
|
+
return !!e.useToken;
|
|
1299
|
+
}
|
|
1300
|
+
function Pe(e) {
|
|
1301
|
+
return e.useValue != null;
|
|
1302
|
+
}
|
|
1303
|
+
function Er(e) {
|
|
1304
|
+
return It(e) || Pe(e) || Re(e) || Ue(e);
|
|
1305
|
+
}
|
|
1306
|
+
var Ye = function() {
|
|
1307
|
+
function e() {
|
|
1308
|
+
this._registryMap = /* @__PURE__ */ new Map();
|
|
1309
|
+
}
|
|
1310
|
+
return e.prototype.entries = function() {
|
|
1311
|
+
return this._registryMap.entries();
|
|
1312
|
+
}, e.prototype.getAll = function(t) {
|
|
1313
|
+
return this.ensure(t), this._registryMap.get(t);
|
|
1314
|
+
}, e.prototype.get = function(t) {
|
|
1315
|
+
this.ensure(t);
|
|
1316
|
+
var r = this._registryMap.get(t);
|
|
1317
|
+
return r[r.length - 1] || null;
|
|
1318
|
+
}, e.prototype.set = function(t, r) {
|
|
1319
|
+
this.ensure(t), this._registryMap.get(t).push(r);
|
|
1320
|
+
}, e.prototype.setAll = function(t, r) {
|
|
1321
|
+
this._registryMap.set(t, r);
|
|
1322
|
+
}, e.prototype.has = function(t) {
|
|
1323
|
+
return this.ensure(t), this._registryMap.get(t).length > 0;
|
|
1324
|
+
}, e.prototype.clear = function() {
|
|
1325
|
+
this._registryMap.clear();
|
|
1326
|
+
}, e.prototype.ensure = function(t) {
|
|
1327
|
+
this._registryMap.has(t) || this._registryMap.set(t, []);
|
|
1328
|
+
}, e;
|
|
1329
|
+
}(), Or = function(e) {
|
|
1330
|
+
Ze(t, e);
|
|
1331
|
+
function t() {
|
|
1332
|
+
return e !== null && e.apply(this, arguments) || this;
|
|
1333
|
+
}
|
|
1334
|
+
return t;
|
|
1335
|
+
}(Ye), Ee = /* @__PURE__ */ function() {
|
|
1336
|
+
function e() {
|
|
1337
|
+
this.scopedResolutions = /* @__PURE__ */ new Map();
|
|
1338
|
+
}
|
|
1339
|
+
return e;
|
|
1340
|
+
}();
|
|
1341
|
+
function Tr(e, t) {
|
|
1342
|
+
if (e === null)
|
|
1343
|
+
return "at position #" + t;
|
|
1344
|
+
var r = e.split(",")[t].trim();
|
|
1345
|
+
return '"' + r + '" at position #' + t;
|
|
1346
|
+
}
|
|
1347
|
+
function Rr(e, t, r) {
|
|
1348
|
+
return r === void 0 && (r = " "), oe([e], t.message.split(`
|
|
1349
|
+
`).map(function(n) {
|
|
1350
|
+
return r + n;
|
|
1351
|
+
})).join(`
|
|
1352
|
+
`);
|
|
1353
|
+
}
|
|
1354
|
+
function Pr(e, t, r) {
|
|
1355
|
+
var n = Ie(e.toString().match(/constructor\(([\w, ]+)\)/) || [], 2), i = n[1], o = i === void 0 ? null : i, s = Tr(o, t);
|
|
1356
|
+
return Rr("Cannot inject the dependency " + s + ' of "' + e.name + '" constructor. Reason:', r);
|
|
1357
|
+
}
|
|
1358
|
+
function kr(e) {
|
|
1359
|
+
if (typeof e.dispose != "function")
|
|
1360
|
+
return !1;
|
|
1361
|
+
var t = e.dispose;
|
|
1362
|
+
return !(t.length > 0);
|
|
1363
|
+
}
|
|
1364
|
+
var Ir = function(e) {
|
|
1365
|
+
Ze(t, e);
|
|
1366
|
+
function t() {
|
|
1367
|
+
return e !== null && e.apply(this, arguments) || this;
|
|
1368
|
+
}
|
|
1369
|
+
return t;
|
|
1370
|
+
}(Ye), xr = function(e) {
|
|
1371
|
+
Ze(t, e);
|
|
1372
|
+
function t() {
|
|
1373
|
+
return e !== null && e.apply(this, arguments) || this;
|
|
1374
|
+
}
|
|
1375
|
+
return t;
|
|
1376
|
+
}(Ye), $r = /* @__PURE__ */ function() {
|
|
1377
|
+
function e() {
|
|
1378
|
+
this.preResolution = new Ir(), this.postResolution = new xr();
|
|
1379
|
+
}
|
|
1380
|
+
return e;
|
|
1381
|
+
}(), $t = /* @__PURE__ */ new Map(), jr = function() {
|
|
1382
|
+
function e(t) {
|
|
1383
|
+
this.parent = t, this._registry = new Or(), this.interceptors = new $r(), this.disposed = !1, this.disposables = /* @__PURE__ */ new Set();
|
|
1384
|
+
}
|
|
1385
|
+
return e.prototype.register = function(t, r, n) {
|
|
1386
|
+
n === void 0 && (n = { lifecycle: W.Transient }), this.ensureNotDisposed();
|
|
1387
|
+
var i;
|
|
1388
|
+
if (Er(r) ? i = r : i = { useClass: r }, Re(i))
|
|
1389
|
+
for (var o = [t], s = i; s != null; ) {
|
|
1390
|
+
var c = s.useToken;
|
|
1391
|
+
if (o.includes(c))
|
|
1392
|
+
throw new Error("Token registration cycle detected! " + oe(o, [c]).join(" -> "));
|
|
1393
|
+
o.push(c);
|
|
1394
|
+
var d = this._registry.get(c);
|
|
1395
|
+
d && Re(d.provider) ? s = d.provider : s = null;
|
|
1396
|
+
}
|
|
1397
|
+
if ((n.lifecycle === W.Singleton || n.lifecycle == W.ContainerScoped || n.lifecycle == W.ResolutionScoped) && (Pe(i) || Ue(i)))
|
|
1398
|
+
throw new Error('Cannot use lifecycle "' + W[n.lifecycle] + '" with ValueProviders or FactoryProviders');
|
|
1399
|
+
return this._registry.set(t, { provider: i, options: n }), this;
|
|
1400
|
+
}, e.prototype.registerType = function(t, r) {
|
|
1401
|
+
return this.ensureNotDisposed(), ce(r) ? this.register(t, {
|
|
1402
|
+
useToken: r
|
|
1403
|
+
}) : this.register(t, {
|
|
1404
|
+
useClass: r
|
|
1405
|
+
});
|
|
1406
|
+
}, e.prototype.registerInstance = function(t, r) {
|
|
1407
|
+
return this.ensureNotDisposed(), this.register(t, {
|
|
1408
|
+
useValue: r
|
|
1409
|
+
});
|
|
1410
|
+
}, e.prototype.registerSingleton = function(t, r) {
|
|
1411
|
+
if (this.ensureNotDisposed(), ce(t)) {
|
|
1412
|
+
if (ce(r))
|
|
1413
|
+
return this.register(t, {
|
|
1414
|
+
useToken: r
|
|
1415
|
+
}, { lifecycle: W.Singleton });
|
|
1416
|
+
if (r)
|
|
1417
|
+
return this.register(t, {
|
|
1418
|
+
useClass: r
|
|
1419
|
+
}, { lifecycle: W.Singleton });
|
|
1420
|
+
throw new Error('Cannot register a type name as a singleton without a "to" token');
|
|
1421
|
+
}
|
|
1422
|
+
var n = t;
|
|
1423
|
+
return r && !ce(r) && (n = r), this.register(t, {
|
|
1424
|
+
useClass: n
|
|
1425
|
+
}, { lifecycle: W.Singleton });
|
|
1426
|
+
}, e.prototype.resolve = function(t, r, n) {
|
|
1427
|
+
r === void 0 && (r = new Ee()), n === void 0 && (n = !1), this.ensureNotDisposed();
|
|
1428
|
+
var i = this.getRegistration(t);
|
|
1429
|
+
if (!i && ce(t)) {
|
|
1430
|
+
if (n)
|
|
1431
|
+
return;
|
|
1432
|
+
throw new Error('Attempted to resolve unregistered dependency token: "' + t.toString() + '"');
|
|
1433
|
+
}
|
|
1434
|
+
if (this.executePreResolutionInterceptor(t, "Single"), i) {
|
|
1435
|
+
var o = this.resolveRegistration(i, r);
|
|
1436
|
+
return this.executePostResolutionInterceptor(t, o, "Single"), o;
|
|
1437
|
+
}
|
|
1438
|
+
if (Mr(t)) {
|
|
1439
|
+
var o = this.construct(t, r);
|
|
1440
|
+
return this.executePostResolutionInterceptor(t, o, "Single"), o;
|
|
1441
|
+
}
|
|
1442
|
+
throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.");
|
|
1443
|
+
}, e.prototype.executePreResolutionInterceptor = function(t, r) {
|
|
1444
|
+
var n, i;
|
|
1445
|
+
if (this.interceptors.preResolution.has(t)) {
|
|
1446
|
+
var o = [];
|
|
1447
|
+
try {
|
|
1448
|
+
for (var s = Me(this.interceptors.preResolution.getAll(t)), c = s.next(); !c.done; c = s.next()) {
|
|
1449
|
+
var d = c.value;
|
|
1450
|
+
d.options.frequency != "Once" && o.push(d), d.callback(t, r);
|
|
1451
|
+
}
|
|
1452
|
+
} catch (f) {
|
|
1453
|
+
n = { error: f };
|
|
1454
|
+
} finally {
|
|
1455
|
+
try {
|
|
1456
|
+
c && !c.done && (i = s.return) && i.call(s);
|
|
1457
|
+
} finally {
|
|
1458
|
+
if (n) throw n.error;
|
|
1459
|
+
}
|
|
1460
|
+
}
|
|
1461
|
+
this.interceptors.preResolution.setAll(t, o);
|
|
1462
|
+
}
|
|
1463
|
+
}, e.prototype.executePostResolutionInterceptor = function(t, r, n) {
|
|
1464
|
+
var i, o;
|
|
1465
|
+
if (this.interceptors.postResolution.has(t)) {
|
|
1466
|
+
var s = [];
|
|
1467
|
+
try {
|
|
1468
|
+
for (var c = Me(this.interceptors.postResolution.getAll(t)), d = c.next(); !d.done; d = c.next()) {
|
|
1469
|
+
var f = d.value;
|
|
1470
|
+
f.options.frequency != "Once" && s.push(f), f.callback(t, r, n);
|
|
1471
|
+
}
|
|
1472
|
+
} catch (b) {
|
|
1473
|
+
i = { error: b };
|
|
1474
|
+
} finally {
|
|
1475
|
+
try {
|
|
1476
|
+
d && !d.done && (o = c.return) && o.call(c);
|
|
1477
|
+
} finally {
|
|
1478
|
+
if (i) throw i.error;
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
this.interceptors.postResolution.setAll(t, s);
|
|
1482
|
+
}
|
|
1483
|
+
}, e.prototype.resolveRegistration = function(t, r) {
|
|
1484
|
+
if (this.ensureNotDisposed(), t.options.lifecycle === W.ResolutionScoped && r.scopedResolutions.has(t))
|
|
1485
|
+
return r.scopedResolutions.get(t);
|
|
1486
|
+
var n = t.options.lifecycle === W.Singleton, i = t.options.lifecycle === W.ContainerScoped, o = n || i, s;
|
|
1487
|
+
return Pe(t.provider) ? s = t.provider.useValue : Re(t.provider) ? s = o ? t.instance || (t.instance = this.resolve(t.provider.useToken, r)) : this.resolve(t.provider.useToken, r) : It(t.provider) ? s = o ? t.instance || (t.instance = this.construct(t.provider.useClass, r)) : this.construct(t.provider.useClass, r) : Ue(t.provider) ? s = t.provider.useFactory(this) : s = this.construct(t.provider, r), t.options.lifecycle === W.ResolutionScoped && r.scopedResolutions.set(t, s), s;
|
|
1488
|
+
}, e.prototype.resolveAll = function(t, r, n) {
|
|
1489
|
+
var i = this;
|
|
1490
|
+
r === void 0 && (r = new Ee()), n === void 0 && (n = !1), this.ensureNotDisposed();
|
|
1491
|
+
var o = this.getAllRegistrations(t);
|
|
1492
|
+
if (!o && ce(t)) {
|
|
1493
|
+
if (n)
|
|
1494
|
+
return [];
|
|
1495
|
+
throw new Error('Attempted to resolve unregistered dependency token: "' + t.toString() + '"');
|
|
1496
|
+
}
|
|
1497
|
+
if (this.executePreResolutionInterceptor(t, "All"), o) {
|
|
1498
|
+
var s = o.map(function(d) {
|
|
1499
|
+
return i.resolveRegistration(d, r);
|
|
1500
|
+
});
|
|
1501
|
+
return this.executePostResolutionInterceptor(t, s, "All"), s;
|
|
1502
|
+
}
|
|
1503
|
+
var c = [this.construct(t, r)];
|
|
1504
|
+
return this.executePostResolutionInterceptor(t, c, "All"), c;
|
|
1505
|
+
}, e.prototype.isRegistered = function(t, r) {
|
|
1506
|
+
return r === void 0 && (r = !1), this.ensureNotDisposed(), this._registry.has(t) || r && (this.parent || !1) && this.parent.isRegistered(t, !0);
|
|
1507
|
+
}, e.prototype.reset = function() {
|
|
1508
|
+
this.ensureNotDisposed(), this._registry.clear(), this.interceptors.preResolution.clear(), this.interceptors.postResolution.clear();
|
|
1509
|
+
}, e.prototype.clearInstances = function() {
|
|
1510
|
+
var t, r;
|
|
1511
|
+
this.ensureNotDisposed();
|
|
1512
|
+
try {
|
|
1513
|
+
for (var n = Me(this._registry.entries()), i = n.next(); !i.done; i = n.next()) {
|
|
1514
|
+
var o = Ie(i.value, 2), s = o[0], c = o[1];
|
|
1515
|
+
this._registry.setAll(s, c.filter(function(d) {
|
|
1516
|
+
return !Pe(d.provider);
|
|
1517
|
+
}).map(function(d) {
|
|
1518
|
+
return d.instance = void 0, d;
|
|
1519
|
+
}));
|
|
1520
|
+
}
|
|
1521
|
+
} catch (d) {
|
|
1522
|
+
t = { error: d };
|
|
1523
|
+
} finally {
|
|
1524
|
+
try {
|
|
1525
|
+
i && !i.done && (r = n.return) && r.call(n);
|
|
1526
|
+
} finally {
|
|
1527
|
+
if (t) throw t.error;
|
|
1528
|
+
}
|
|
1529
|
+
}
|
|
1530
|
+
}, e.prototype.createChildContainer = function() {
|
|
1531
|
+
var t, r;
|
|
1532
|
+
this.ensureNotDisposed();
|
|
1533
|
+
var n = new e(this);
|
|
1534
|
+
try {
|
|
1535
|
+
for (var i = Me(this._registry.entries()), o = i.next(); !o.done; o = i.next()) {
|
|
1536
|
+
var s = Ie(o.value, 2), c = s[0], d = s[1];
|
|
1537
|
+
d.some(function(f) {
|
|
1538
|
+
var b = f.options;
|
|
1539
|
+
return b.lifecycle === W.ContainerScoped;
|
|
1540
|
+
}) && n._registry.setAll(c, d.map(function(f) {
|
|
1541
|
+
return f.options.lifecycle === W.ContainerScoped ? {
|
|
1542
|
+
provider: f.provider,
|
|
1543
|
+
options: f.options
|
|
1544
|
+
} : f;
|
|
1545
|
+
}));
|
|
1546
|
+
}
|
|
1547
|
+
} catch (f) {
|
|
1548
|
+
t = { error: f };
|
|
1549
|
+
} finally {
|
|
1550
|
+
try {
|
|
1551
|
+
o && !o.done && (r = i.return) && r.call(i);
|
|
1552
|
+
} finally {
|
|
1553
|
+
if (t) throw t.error;
|
|
1554
|
+
}
|
|
1555
|
+
}
|
|
1556
|
+
return n;
|
|
1557
|
+
}, e.prototype.beforeResolution = function(t, r, n) {
|
|
1558
|
+
n === void 0 && (n = { frequency: "Always" }), this.interceptors.preResolution.set(t, {
|
|
1559
|
+
callback: r,
|
|
1560
|
+
options: n
|
|
1561
|
+
});
|
|
1562
|
+
}, e.prototype.afterResolution = function(t, r, n) {
|
|
1563
|
+
n === void 0 && (n = { frequency: "Always" }), this.interceptors.postResolution.set(t, {
|
|
1564
|
+
callback: r,
|
|
1565
|
+
options: n
|
|
1566
|
+
});
|
|
1567
|
+
}, e.prototype.dispose = function() {
|
|
1568
|
+
return mr(this, void 0, void 0, function() {
|
|
1569
|
+
var t;
|
|
1570
|
+
return wr(this, function(r) {
|
|
1571
|
+
switch (r.label) {
|
|
1572
|
+
case 0:
|
|
1573
|
+
return this.disposed = !0, t = [], this.disposables.forEach(function(n) {
|
|
1574
|
+
var i = n.dispose();
|
|
1575
|
+
i && t.push(i);
|
|
1576
|
+
}), [4, Promise.all(t)];
|
|
1577
|
+
case 1:
|
|
1578
|
+
return r.sent(), [2];
|
|
1579
|
+
}
|
|
1580
|
+
});
|
|
1581
|
+
});
|
|
1582
|
+
}, e.prototype.getRegistration = function(t) {
|
|
1583
|
+
return this.isRegistered(t) ? this._registry.get(t) : this.parent ? this.parent.getRegistration(t) : null;
|
|
1584
|
+
}, e.prototype.getAllRegistrations = function(t) {
|
|
1585
|
+
return this.isRegistered(t) ? this._registry.getAll(t) : this.parent ? this.parent.getAllRegistrations(t) : null;
|
|
1586
|
+
}, e.prototype.construct = function(t, r) {
|
|
1587
|
+
var n = this;
|
|
1588
|
+
if (t instanceof xt)
|
|
1589
|
+
return t.createProxy(function(o) {
|
|
1590
|
+
return n.resolve(o, r);
|
|
1591
|
+
});
|
|
1592
|
+
var i = function() {
|
|
1593
|
+
var o = $t.get(t);
|
|
1594
|
+
if (!o || o.length === 0) {
|
|
1595
|
+
if (t.length === 0)
|
|
1596
|
+
return new t();
|
|
1597
|
+
throw new Error('TypeInfo not known for "' + t.name + '"');
|
|
1598
|
+
}
|
|
1599
|
+
var s = o.map(n.resolveParams(r, t));
|
|
1600
|
+
return new (t.bind.apply(t, oe([void 0], s)))();
|
|
1601
|
+
}();
|
|
1602
|
+
return kr(i) && this.disposables.add(i), i;
|
|
1603
|
+
}, e.prototype.resolveParams = function(t, r) {
|
|
1604
|
+
var n = this;
|
|
1605
|
+
return function(i, o) {
|
|
1606
|
+
var s, c, d;
|
|
1607
|
+
try {
|
|
1608
|
+
return Sr(i) ? ht(i) ? i.multiple ? (s = n.resolve(i.transform)).transform.apply(s, oe([n.resolveAll(i.token, new Ee(), i.isOptional)], i.transformArgs)) : (c = n.resolve(i.transform)).transform.apply(c, oe([n.resolve(i.token, t, i.isOptional)], i.transformArgs)) : i.multiple ? n.resolveAll(i.token, new Ee(), i.isOptional) : n.resolve(i.token, t, i.isOptional) : ht(i) ? (d = n.resolve(i.transform, t)).transform.apply(d, oe([n.resolve(i.token, t)], i.transformArgs)) : n.resolve(i, t);
|
|
1609
|
+
} catch (f) {
|
|
1610
|
+
throw new Error(Pr(r, o, f));
|
|
1611
|
+
}
|
|
1612
|
+
};
|
|
1613
|
+
}, e.prototype.ensureNotDisposed = function() {
|
|
1614
|
+
if (this.disposed)
|
|
1615
|
+
throw new Error("This container has been disposed, you cannot interact with a disposed container");
|
|
1616
|
+
}, e;
|
|
1617
|
+
}(), Ar = new jr();
|
|
1618
|
+
function Zn(e, t) {
|
|
1619
|
+
var r = {
|
|
1620
|
+
token: e,
|
|
1621
|
+
multiple: !1,
|
|
1622
|
+
isOptional: t
|
|
1623
|
+
};
|
|
1624
|
+
return _r(r);
|
|
1625
|
+
}
|
|
1626
|
+
function Cr(e) {
|
|
1627
|
+
return function(t) {
|
|
1628
|
+
$t.set(t, gr(t));
|
|
1629
|
+
};
|
|
1630
|
+
}
|
|
1631
|
+
function Yn(e, t) {
|
|
1632
|
+
return function(r) {
|
|
1633
|
+
Cr()(r), Ar.register(r, r, {
|
|
1634
|
+
lifecycle: e
|
|
1635
|
+
});
|
|
1636
|
+
};
|
|
1637
|
+
}
|
|
1638
|
+
if (typeof Reflect > "u" || !Reflect.getMetadata)
|
|
1639
|
+
throw new Error(`tsyringe requires a reflect polyfill. Please add 'import "reflect-metadata"' to the top of your entry point.`);
|
|
1640
|
+
var X = {}, re = {}, pt;
|
|
1641
|
+
function zr() {
|
|
1642
|
+
if (pt) return re;
|
|
1643
|
+
pt = 1, Object.defineProperty(re, "__esModule", { value: !0 }), re.DefaultSerializer = re.extendSerializer = void 0;
|
|
1644
|
+
function e(n, i) {
|
|
1645
|
+
const o = n.deserialize.bind(n), s = n.serialize.bind(n);
|
|
1646
|
+
return {
|
|
1647
|
+
deserialize(c) {
|
|
1648
|
+
return i.deserialize(c, o);
|
|
1649
|
+
},
|
|
1650
|
+
serialize(c) {
|
|
1651
|
+
return i.serialize(c, s);
|
|
1652
|
+
}
|
|
1653
|
+
};
|
|
1654
|
+
}
|
|
1655
|
+
re.extendSerializer = e;
|
|
1656
|
+
const t = {
|
|
1657
|
+
deserialize(n) {
|
|
1658
|
+
return Object.assign(Error(n.message), {
|
|
1659
|
+
name: n.name,
|
|
1660
|
+
stack: n.stack
|
|
1661
|
+
});
|
|
1662
|
+
},
|
|
1663
|
+
serialize(n) {
|
|
1664
|
+
return {
|
|
1665
|
+
__error_marker: "$$error",
|
|
1666
|
+
message: n.message,
|
|
1667
|
+
name: n.name,
|
|
1668
|
+
stack: n.stack
|
|
1669
|
+
};
|
|
1670
|
+
}
|
|
1671
|
+
}, r = (n) => n && typeof n == "object" && "__error_marker" in n && n.__error_marker === "$$error";
|
|
1672
|
+
return re.DefaultSerializer = {
|
|
1673
|
+
deserialize(n) {
|
|
1674
|
+
return r(n) ? t.deserialize(n) : n;
|
|
1675
|
+
},
|
|
1676
|
+
serialize(n) {
|
|
1677
|
+
return n instanceof Error ? t.serialize(n) : n;
|
|
1678
|
+
}
|
|
1679
|
+
}, re;
|
|
1680
|
+
}
|
|
1681
|
+
var vt;
|
|
1682
|
+
function yt() {
|
|
1683
|
+
if (vt) return X;
|
|
1684
|
+
vt = 1, Object.defineProperty(X, "__esModule", { value: !0 }), X.serialize = X.deserialize = X.registerSerializer = void 0;
|
|
1685
|
+
const e = /* @__PURE__ */ zr();
|
|
1686
|
+
let t = e.DefaultSerializer;
|
|
1687
|
+
function r(o) {
|
|
1688
|
+
t = e.extendSerializer(t, o);
|
|
1689
|
+
}
|
|
1690
|
+
X.registerSerializer = r;
|
|
1691
|
+
function n(o) {
|
|
1692
|
+
return t.deserialize(o);
|
|
1693
|
+
}
|
|
1694
|
+
X.deserialize = n;
|
|
1695
|
+
function i(o) {
|
|
1696
|
+
return t.serialize(o);
|
|
1697
|
+
}
|
|
1698
|
+
return X.serialize = i, X;
|
|
1699
|
+
}
|
|
1700
|
+
var H = {}, bt;
|
|
1701
|
+
function Dr() {
|
|
1702
|
+
return bt || (bt = 1, Object.defineProperty(H, "__esModule", { value: !0 }), H.$worker = H.$transferable = H.$terminate = H.$events = H.$errors = void 0, H.$errors = Symbol("thread.errors"), H.$events = Symbol("thread.events"), H.$terminate = Symbol("thread.terminate"), H.$transferable = Symbol("thread.transferable"), H.$worker = Symbol("thread.worker")), H;
|
|
1703
|
+
}
|
|
1704
|
+
var ne = {}, mt;
|
|
1705
|
+
function wt() {
|
|
1706
|
+
if (mt) return ne;
|
|
1707
|
+
mt = 1, Object.defineProperty(ne, "__esModule", { value: !0 }), ne.Transfer = ne.isTransferDescriptor = void 0;
|
|
1708
|
+
const e = /* @__PURE__ */ Dr();
|
|
1709
|
+
function t(i) {
|
|
1710
|
+
return !(!i || typeof i != "object");
|
|
1711
|
+
}
|
|
1712
|
+
function r(i) {
|
|
1713
|
+
return i && typeof i == "object" && i[e.$transferable];
|
|
1714
|
+
}
|
|
1715
|
+
ne.isTransferDescriptor = r;
|
|
1716
|
+
function n(i, o) {
|
|
1717
|
+
if (!o) {
|
|
1718
|
+
if (!t(i))
|
|
1719
|
+
throw Error();
|
|
1720
|
+
o = [i];
|
|
1721
|
+
}
|
|
1722
|
+
return {
|
|
1723
|
+
[e.$transferable]: !0,
|
|
1724
|
+
send: i,
|
|
1725
|
+
transferables: o
|
|
1726
|
+
};
|
|
1727
|
+
}
|
|
1728
|
+
return ne.Transfer = n, ne;
|
|
1729
|
+
}
|
|
1730
|
+
var Fe = {}, gt;
|
|
1731
|
+
function Fr() {
|
|
1732
|
+
return gt || (gt = 1, function(e) {
|
|
1733
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.WorkerMessageType = e.MasterMessageType = void 0, function(t) {
|
|
1734
|
+
t.cancel = "cancel", t.run = "run";
|
|
1735
|
+
}(e.MasterMessageType || (e.MasterMessageType = {})), function(t) {
|
|
1736
|
+
t.error = "error", t.init = "init", t.result = "result", t.running = "running", t.uncaughtError = "uncaughtError";
|
|
1737
|
+
}(e.WorkerMessageType || (e.WorkerMessageType = {}));
|
|
1738
|
+
}(Fe)), Fe;
|
|
1739
|
+
}
|
|
1740
|
+
var ie = {}, qe, _t;
|
|
1741
|
+
function qr() {
|
|
1742
|
+
return _t || (_t = 1, qe = (e) => e ? typeof Symbol.observable == "symbol" && typeof e[Symbol.observable] == "function" ? e === e[Symbol.observable]() : typeof e["@@observable"] == "function" ? e === e["@@observable"]() : !1 : !1), qe;
|
|
1743
|
+
}
|
|
1744
|
+
var Oe = {}, St;
|
|
1745
|
+
function Lr() {
|
|
1746
|
+
if (St) return Oe;
|
|
1747
|
+
St = 1, Object.defineProperty(Oe, "__esModule", { value: !0 });
|
|
1748
|
+
const e = function() {
|
|
1749
|
+
const i = typeof self < "u" && typeof Window < "u" && self instanceof Window;
|
|
1750
|
+
return !!(typeof self < "u" && self.postMessage && !i);
|
|
1751
|
+
}, t = function(i, o) {
|
|
1752
|
+
self.postMessage(i, o);
|
|
1753
|
+
}, r = function(i) {
|
|
1754
|
+
const o = (c) => {
|
|
1755
|
+
i(c.data);
|
|
1756
|
+
}, s = () => {
|
|
1757
|
+
self.removeEventListener("message", o);
|
|
1758
|
+
};
|
|
1759
|
+
return self.addEventListener("message", o), s;
|
|
1760
|
+
};
|
|
1761
|
+
return Oe.default = {
|
|
1762
|
+
isWorkerRuntime: e,
|
|
1763
|
+
postMessageToMaster: t,
|
|
1764
|
+
subscribeToMasterMessages: r
|
|
1765
|
+
}, Oe;
|
|
1766
|
+
}
|
|
1767
|
+
var Mt;
|
|
1768
|
+
function Qn() {
|
|
1769
|
+
return Mt || (Mt = 1, function(e) {
|
|
1770
|
+
var t = ie && ie.__awaiter || function(y, k, $, z) {
|
|
1771
|
+
function Q(N) {
|
|
1772
|
+
return N instanceof $ ? N : new $(function(V) {
|
|
1773
|
+
V(N);
|
|
1774
|
+
});
|
|
1775
|
+
}
|
|
1776
|
+
return new ($ || ($ = Promise))(function(N, V) {
|
|
1777
|
+
function he(Z) {
|
|
1778
|
+
try {
|
|
1779
|
+
se(z.next(Z));
|
|
1780
|
+
} catch (ae) {
|
|
1781
|
+
V(ae);
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
function _e(Z) {
|
|
1785
|
+
try {
|
|
1786
|
+
se(z.throw(Z));
|
|
1787
|
+
} catch (ae) {
|
|
1788
|
+
V(ae);
|
|
1789
|
+
}
|
|
1790
|
+
}
|
|
1791
|
+
function se(Z) {
|
|
1792
|
+
Z.done ? N(Z.value) : Q(Z.value).then(he, _e);
|
|
1793
|
+
}
|
|
1794
|
+
se((z = z.apply(y, k || [])).next());
|
|
1795
|
+
});
|
|
1796
|
+
}, r = ie && ie.__importDefault || function(y) {
|
|
1797
|
+
return y && y.__esModule ? y : { default: y };
|
|
1798
|
+
};
|
|
1799
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.expose = e.isWorkerRuntime = e.Transfer = e.registerSerializer = void 0;
|
|
1800
|
+
const n = r(qr()), i = /* @__PURE__ */ yt(), o = /* @__PURE__ */ wt(), s = /* @__PURE__ */ Fr(), c = r(/* @__PURE__ */ Lr());
|
|
1801
|
+
var d = /* @__PURE__ */ yt();
|
|
1802
|
+
Object.defineProperty(e, "registerSerializer", { enumerable: !0, get: function() {
|
|
1803
|
+
return d.registerSerializer;
|
|
1804
|
+
} });
|
|
1805
|
+
var f = /* @__PURE__ */ wt();
|
|
1806
|
+
Object.defineProperty(e, "Transfer", { enumerable: !0, get: function() {
|
|
1807
|
+
return f.Transfer;
|
|
1808
|
+
} }), e.isWorkerRuntime = c.default.isWorkerRuntime;
|
|
1809
|
+
let b = !1;
|
|
1810
|
+
const M = /* @__PURE__ */ new Map(), I = (y) => y && y.type === s.MasterMessageType.cancel, O = (y) => y && y.type === s.MasterMessageType.run, x = (y) => n.default(y) || S(y);
|
|
1811
|
+
function S(y) {
|
|
1812
|
+
return y && typeof y == "object" && typeof y.subscribe == "function";
|
|
1813
|
+
}
|
|
1814
|
+
function R(y) {
|
|
1815
|
+
return o.isTransferDescriptor(y) ? { payload: y.send, transferables: y.transferables } : { payload: y, transferables: void 0 };
|
|
1816
|
+
}
|
|
1817
|
+
function q() {
|
|
1818
|
+
const y = {
|
|
1819
|
+
type: s.WorkerMessageType.init,
|
|
1820
|
+
exposed: {
|
|
1821
|
+
type: "function"
|
|
1822
|
+
}
|
|
1823
|
+
};
|
|
1824
|
+
c.default.postMessageToMaster(y);
|
|
1825
|
+
}
|
|
1826
|
+
function G(y) {
|
|
1827
|
+
const k = {
|
|
1828
|
+
type: s.WorkerMessageType.init,
|
|
1829
|
+
exposed: {
|
|
1830
|
+
type: "module",
|
|
1831
|
+
methods: y
|
|
1832
|
+
}
|
|
1833
|
+
};
|
|
1834
|
+
c.default.postMessageToMaster(k);
|
|
1835
|
+
}
|
|
1836
|
+
function B(y, k) {
|
|
1837
|
+
const { payload: $, transferables: z } = R(k), Q = {
|
|
1838
|
+
type: s.WorkerMessageType.error,
|
|
1839
|
+
uid: y,
|
|
1840
|
+
error: i.serialize($)
|
|
1841
|
+
};
|
|
1842
|
+
c.default.postMessageToMaster(Q, z);
|
|
1843
|
+
}
|
|
1844
|
+
function ee(y, k, $) {
|
|
1845
|
+
const { payload: z, transferables: Q } = R($), N = {
|
|
1846
|
+
type: s.WorkerMessageType.result,
|
|
1847
|
+
uid: y,
|
|
1848
|
+
complete: k ? !0 : void 0,
|
|
1849
|
+
payload: z
|
|
1850
|
+
};
|
|
1851
|
+
c.default.postMessageToMaster(N, Q);
|
|
1852
|
+
}
|
|
1853
|
+
function te(y, k) {
|
|
1854
|
+
const $ = {
|
|
1855
|
+
type: s.WorkerMessageType.running,
|
|
1856
|
+
uid: y,
|
|
1857
|
+
resultType: k
|
|
1858
|
+
};
|
|
1859
|
+
c.default.postMessageToMaster($);
|
|
1860
|
+
}
|
|
1861
|
+
function U(y) {
|
|
1862
|
+
try {
|
|
1863
|
+
const k = {
|
|
1864
|
+
type: s.WorkerMessageType.uncaughtError,
|
|
1865
|
+
error: i.serialize(y)
|
|
1866
|
+
};
|
|
1867
|
+
c.default.postMessageToMaster(k);
|
|
1868
|
+
} catch (k) {
|
|
1869
|
+
console.error(`Not reporting uncaught error back to master thread as it occured while reporting an uncaught error already.
|
|
1870
|
+
Latest error:`, k, `
|
|
1871
|
+
Original error:`, y);
|
|
1872
|
+
}
|
|
1873
|
+
}
|
|
1874
|
+
function ge(y, k, $) {
|
|
1875
|
+
return t(this, void 0, void 0, function* () {
|
|
1876
|
+
let z;
|
|
1877
|
+
try {
|
|
1878
|
+
z = k(...$);
|
|
1879
|
+
} catch (N) {
|
|
1880
|
+
return B(y, N);
|
|
1881
|
+
}
|
|
1882
|
+
const Q = x(z) ? "observable" : "promise";
|
|
1883
|
+
if (te(y, Q), x(z)) {
|
|
1884
|
+
const N = z.subscribe((V) => ee(y, !1, i.serialize(V)), (V) => {
|
|
1885
|
+
B(y, i.serialize(V)), M.delete(y);
|
|
1886
|
+
}, () => {
|
|
1887
|
+
ee(y, !0), M.delete(y);
|
|
1888
|
+
});
|
|
1889
|
+
M.set(y, N);
|
|
1890
|
+
} else
|
|
1891
|
+
try {
|
|
1892
|
+
const N = yield z;
|
|
1893
|
+
ee(y, !0, i.serialize(N));
|
|
1894
|
+
} catch (N) {
|
|
1895
|
+
B(y, i.serialize(N));
|
|
1896
|
+
}
|
|
1897
|
+
});
|
|
1898
|
+
}
|
|
1899
|
+
function Ae(y) {
|
|
1900
|
+
if (!c.default.isWorkerRuntime())
|
|
1901
|
+
throw Error("expose() called in the master thread.");
|
|
1902
|
+
if (b)
|
|
1903
|
+
throw Error("expose() called more than once. This is not possible. Pass an object to expose() if you want to expose multiple functions.");
|
|
1904
|
+
if (b = !0, typeof y == "function")
|
|
1905
|
+
c.default.subscribeToMasterMessages((k) => {
|
|
1906
|
+
O(k) && !k.method && ge(k.uid, y, k.args.map(i.deserialize));
|
|
1907
|
+
}), q();
|
|
1908
|
+
else if (typeof y == "object" && y) {
|
|
1909
|
+
c.default.subscribeToMasterMessages(($) => {
|
|
1910
|
+
O($) && $.method && ge($.uid, y[$.method], $.args.map(i.deserialize));
|
|
1911
|
+
});
|
|
1912
|
+
const k = Object.keys(y).filter(($) => typeof y[$] == "function");
|
|
1913
|
+
G(k);
|
|
1914
|
+
} else
|
|
1915
|
+
throw Error(`Invalid argument passed to expose(). Expected a function or an object, got: ${y}`);
|
|
1916
|
+
c.default.subscribeToMasterMessages((k) => {
|
|
1917
|
+
if (I(k)) {
|
|
1918
|
+
const $ = k.uid, z = M.get($);
|
|
1919
|
+
z && (z.unsubscribe(), M.delete($));
|
|
1920
|
+
}
|
|
1921
|
+
});
|
|
1922
|
+
}
|
|
1923
|
+
e.expose = Ae, typeof self < "u" && typeof self.addEventListener == "function" && c.default.isWorkerRuntime() && (self.addEventListener("error", (y) => {
|
|
1924
|
+
setTimeout(() => U(y.error || y), 250);
|
|
1925
|
+
}), self.addEventListener("unhandledrejection", (y) => {
|
|
1926
|
+
const k = y.reason;
|
|
1927
|
+
k && typeof k.message == "string" && setTimeout(() => U(k), 250);
|
|
1928
|
+
})), typeof process < "u" && typeof process.on == "function" && c.default.isWorkerRuntime() && (process.on("uncaughtException", (y) => {
|
|
1929
|
+
setTimeout(() => U(y), 250);
|
|
1930
|
+
}), process.on("unhandledRejection", (y) => {
|
|
1931
|
+
y && typeof y.message == "string" && setTimeout(() => U(y), 250);
|
|
1932
|
+
}));
|
|
1933
|
+
}(ie)), ie;
|
|
1934
|
+
}
|
|
1935
|
+
var Ve = function(e, t) {
|
|
1936
|
+
return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1937
|
+
r.__proto__ = n;
|
|
1938
|
+
} || function(r, n) {
|
|
1939
|
+
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1940
|
+
}, Ve(e, t);
|
|
1941
|
+
};
|
|
1942
|
+
function me(e, t) {
|
|
1943
|
+
if (typeof t != "function" && t !== null)
|
|
1944
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1945
|
+
Ve(e, t);
|
|
1946
|
+
function r() {
|
|
1947
|
+
this.constructor = e;
|
|
1948
|
+
}
|
|
1949
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1950
|
+
}
|
|
1951
|
+
function Nr(e, t, r, n) {
|
|
1952
|
+
function i(o) {
|
|
1953
|
+
return o instanceof r ? o : new r(function(s) {
|
|
1954
|
+
s(o);
|
|
1955
|
+
});
|
|
1956
|
+
}
|
|
1957
|
+
return new (r || (r = Promise))(function(o, s) {
|
|
1958
|
+
function c(b) {
|
|
1959
|
+
try {
|
|
1960
|
+
f(n.next(b));
|
|
1961
|
+
} catch (M) {
|
|
1962
|
+
s(M);
|
|
1963
|
+
}
|
|
1964
|
+
}
|
|
1965
|
+
function d(b) {
|
|
1966
|
+
try {
|
|
1967
|
+
f(n.throw(b));
|
|
1968
|
+
} catch (M) {
|
|
1969
|
+
s(M);
|
|
1970
|
+
}
|
|
1971
|
+
}
|
|
1972
|
+
function f(b) {
|
|
1973
|
+
b.done ? o(b.value) : i(b.value).then(c, d);
|
|
1974
|
+
}
|
|
1975
|
+
f((n = n.apply(e, t || [])).next());
|
|
1976
|
+
});
|
|
1977
|
+
}
|
|
1978
|
+
function jt(e, t) {
|
|
1979
|
+
var r = { label: 0, sent: function() {
|
|
1980
|
+
if (o[0] & 1) throw o[1];
|
|
1981
|
+
return o[1];
|
|
1982
|
+
}, trys: [], ops: [] }, n, i, o, s = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
|
1983
|
+
return s.next = c(0), s.throw = c(1), s.return = c(2), typeof Symbol == "function" && (s[Symbol.iterator] = function() {
|
|
1984
|
+
return this;
|
|
1985
|
+
}), s;
|
|
1986
|
+
function c(f) {
|
|
1987
|
+
return function(b) {
|
|
1988
|
+
return d([f, b]);
|
|
1989
|
+
};
|
|
1990
|
+
}
|
|
1991
|
+
function d(f) {
|
|
1992
|
+
if (n) throw new TypeError("Generator is already executing.");
|
|
1993
|
+
for (; s && (s = 0, f[0] && (r = 0)), r; ) try {
|
|
1994
|
+
if (n = 1, i && (o = f[0] & 2 ? i.return : f[0] ? i.throw || ((o = i.return) && o.call(i), 0) : i.next) && !(o = o.call(i, f[1])).done) return o;
|
|
1995
|
+
switch (i = 0, o && (f = [f[0] & 2, o.value]), f[0]) {
|
|
1996
|
+
case 0:
|
|
1997
|
+
case 1:
|
|
1998
|
+
o = f;
|
|
1999
|
+
break;
|
|
2000
|
+
case 4:
|
|
2001
|
+
return r.label++, { value: f[1], done: !1 };
|
|
2002
|
+
case 5:
|
|
2003
|
+
r.label++, i = f[1], f = [0];
|
|
2004
|
+
continue;
|
|
2005
|
+
case 7:
|
|
2006
|
+
f = r.ops.pop(), r.trys.pop();
|
|
2007
|
+
continue;
|
|
2008
|
+
default:
|
|
2009
|
+
if (o = r.trys, !(o = o.length > 0 && o[o.length - 1]) && (f[0] === 6 || f[0] === 2)) {
|
|
2010
|
+
r = 0;
|
|
2011
|
+
continue;
|
|
2012
|
+
}
|
|
2013
|
+
if (f[0] === 3 && (!o || f[1] > o[0] && f[1] < o[3])) {
|
|
2014
|
+
r.label = f[1];
|
|
2015
|
+
break;
|
|
2016
|
+
}
|
|
2017
|
+
if (f[0] === 6 && r.label < o[1]) {
|
|
2018
|
+
r.label = o[1], o = f;
|
|
2019
|
+
break;
|
|
2020
|
+
}
|
|
2021
|
+
if (o && r.label < o[2]) {
|
|
2022
|
+
r.label = o[2], r.ops.push(f);
|
|
2023
|
+
break;
|
|
2024
|
+
}
|
|
2025
|
+
o[2] && r.ops.pop(), r.trys.pop();
|
|
2026
|
+
continue;
|
|
2027
|
+
}
|
|
2028
|
+
f = t.call(e, r);
|
|
2029
|
+
} catch (b) {
|
|
2030
|
+
f = [6, b], i = 0;
|
|
2031
|
+
} finally {
|
|
2032
|
+
n = o = 0;
|
|
2033
|
+
}
|
|
2034
|
+
if (f[0] & 5) throw f[1];
|
|
2035
|
+
return { value: f[0] ? f[1] : void 0, done: !0 };
|
|
2036
|
+
}
|
|
2037
|
+
}
|
|
2038
|
+
function le(e) {
|
|
2039
|
+
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
2040
|
+
if (r) return r.call(e);
|
|
2041
|
+
if (e && typeof e.length == "number") return {
|
|
2042
|
+
next: function() {
|
|
2043
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
2044
|
+
}
|
|
2045
|
+
};
|
|
2046
|
+
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
2047
|
+
}
|
|
2048
|
+
function de(e, t) {
|
|
2049
|
+
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
2050
|
+
if (!r) return e;
|
|
2051
|
+
var n = r.call(e), i, o = [], s;
|
|
2052
|
+
try {
|
|
2053
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) o.push(i.value);
|
|
2054
|
+
} catch (c) {
|
|
2055
|
+
s = { error: c };
|
|
2056
|
+
} finally {
|
|
2057
|
+
try {
|
|
2058
|
+
i && !i.done && (r = n.return) && r.call(n);
|
|
2059
|
+
} finally {
|
|
2060
|
+
if (s) throw s.error;
|
|
2061
|
+
}
|
|
2062
|
+
}
|
|
2063
|
+
return o;
|
|
2064
|
+
}
|
|
2065
|
+
function ye(e, t, r) {
|
|
2066
|
+
if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
|
|
2067
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
2068
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
2069
|
+
}
|
|
2070
|
+
function fe(e) {
|
|
2071
|
+
return this instanceof fe ? (this.v = e, this) : new fe(e);
|
|
2072
|
+
}
|
|
2073
|
+
function Wr(e, t, r) {
|
|
2074
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
2075
|
+
var n = r.apply(e, t || []), i, o = [];
|
|
2076
|
+
return i = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), c("next"), c("throw"), c("return", s), i[Symbol.asyncIterator] = function() {
|
|
2077
|
+
return this;
|
|
2078
|
+
}, i;
|
|
2079
|
+
function s(O) {
|
|
2080
|
+
return function(x) {
|
|
2081
|
+
return Promise.resolve(x).then(O, M);
|
|
2082
|
+
};
|
|
2083
|
+
}
|
|
2084
|
+
function c(O, x) {
|
|
2085
|
+
n[O] && (i[O] = function(S) {
|
|
2086
|
+
return new Promise(function(R, q) {
|
|
2087
|
+
o.push([O, S, R, q]) > 1 || d(O, S);
|
|
2088
|
+
});
|
|
2089
|
+
}, x && (i[O] = x(i[O])));
|
|
2090
|
+
}
|
|
2091
|
+
function d(O, x) {
|
|
2092
|
+
try {
|
|
2093
|
+
f(n[O](x));
|
|
2094
|
+
} catch (S) {
|
|
2095
|
+
I(o[0][3], S);
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2098
|
+
function f(O) {
|
|
2099
|
+
O.value instanceof fe ? Promise.resolve(O.value.v).then(b, M) : I(o[0][2], O);
|
|
2100
|
+
}
|
|
2101
|
+
function b(O) {
|
|
2102
|
+
d("next", O);
|
|
2103
|
+
}
|
|
2104
|
+
function M(O) {
|
|
2105
|
+
d("throw", O);
|
|
2106
|
+
}
|
|
2107
|
+
function I(O, x) {
|
|
2108
|
+
O(x), o.shift(), o.length && d(o[0][0], o[0][1]);
|
|
2109
|
+
}
|
|
2110
|
+
}
|
|
2111
|
+
function Hr(e) {
|
|
2112
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
2113
|
+
var t = e[Symbol.asyncIterator], r;
|
|
2114
|
+
return t ? t.call(e) : (e = typeof le == "function" ? le(e) : e[Symbol.iterator](), r = {}, n("next"), n("throw"), n("return"), r[Symbol.asyncIterator] = function() {
|
|
2115
|
+
return this;
|
|
2116
|
+
}, r);
|
|
2117
|
+
function n(o) {
|
|
2118
|
+
r[o] = e[o] && function(s) {
|
|
2119
|
+
return new Promise(function(c, d) {
|
|
2120
|
+
s = e[o](s), i(c, d, s.done, s.value);
|
|
2121
|
+
});
|
|
2122
|
+
};
|
|
2123
|
+
}
|
|
2124
|
+
function i(o, s, c, d) {
|
|
2125
|
+
Promise.resolve(d).then(function(f) {
|
|
2126
|
+
o({ value: f, done: c });
|
|
2127
|
+
}, s);
|
|
2128
|
+
}
|
|
2129
|
+
}
|
|
2130
|
+
function A(e) {
|
|
2131
|
+
return typeof e == "function";
|
|
2132
|
+
}
|
|
2133
|
+
function At(e) {
|
|
2134
|
+
var t = function(n) {
|
|
2135
|
+
Error.call(n), n.stack = new Error().stack;
|
|
2136
|
+
}, r = e(t);
|
|
2137
|
+
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
2138
|
+
}
|
|
2139
|
+
var Le = At(function(e) {
|
|
2140
|
+
return function(r) {
|
|
2141
|
+
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
2142
|
+
` + r.map(function(n, i) {
|
|
2143
|
+
return i + 1 + ") " + n.toString();
|
|
2144
|
+
}).join(`
|
|
2145
|
+
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
2146
|
+
};
|
|
2147
|
+
});
|
|
2148
|
+
function Je(e, t) {
|
|
2149
|
+
if (e) {
|
|
2150
|
+
var r = e.indexOf(t);
|
|
2151
|
+
0 <= r && e.splice(r, 1);
|
|
2152
|
+
}
|
|
2153
|
+
}
|
|
2154
|
+
var $e = function() {
|
|
2155
|
+
function e(t) {
|
|
2156
|
+
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
2157
|
+
}
|
|
2158
|
+
return e.prototype.unsubscribe = function() {
|
|
2159
|
+
var t, r, n, i, o;
|
|
2160
|
+
if (!this.closed) {
|
|
2161
|
+
this.closed = !0;
|
|
2162
|
+
var s = this._parentage;
|
|
2163
|
+
if (s)
|
|
2164
|
+
if (this._parentage = null, Array.isArray(s))
|
|
2165
|
+
try {
|
|
2166
|
+
for (var c = le(s), d = c.next(); !d.done; d = c.next()) {
|
|
2167
|
+
var f = d.value;
|
|
2168
|
+
f.remove(this);
|
|
2169
|
+
}
|
|
2170
|
+
} catch (S) {
|
|
2171
|
+
t = { error: S };
|
|
2172
|
+
} finally {
|
|
2173
|
+
try {
|
|
2174
|
+
d && !d.done && (r = c.return) && r.call(c);
|
|
2175
|
+
} finally {
|
|
2176
|
+
if (t) throw t.error;
|
|
2177
|
+
}
|
|
2178
|
+
}
|
|
2179
|
+
else
|
|
2180
|
+
s.remove(this);
|
|
2181
|
+
var b = this.initialTeardown;
|
|
2182
|
+
if (A(b))
|
|
2183
|
+
try {
|
|
2184
|
+
b();
|
|
2185
|
+
} catch (S) {
|
|
2186
|
+
o = S instanceof Le ? S.errors : [S];
|
|
2187
|
+
}
|
|
2188
|
+
var M = this._finalizers;
|
|
2189
|
+
if (M) {
|
|
2190
|
+
this._finalizers = null;
|
|
2191
|
+
try {
|
|
2192
|
+
for (var I = le(M), O = I.next(); !O.done; O = I.next()) {
|
|
2193
|
+
var x = O.value;
|
|
2194
|
+
try {
|
|
2195
|
+
Et(x);
|
|
2196
|
+
} catch (S) {
|
|
2197
|
+
o = o ?? [], S instanceof Le ? o = ye(ye([], de(o)), de(S.errors)) : o.push(S);
|
|
2198
|
+
}
|
|
2199
|
+
}
|
|
2200
|
+
} catch (S) {
|
|
2201
|
+
n = { error: S };
|
|
2202
|
+
} finally {
|
|
2203
|
+
try {
|
|
2204
|
+
O && !O.done && (i = I.return) && i.call(I);
|
|
2205
|
+
} finally {
|
|
2206
|
+
if (n) throw n.error;
|
|
2207
|
+
}
|
|
2208
|
+
}
|
|
2209
|
+
}
|
|
2210
|
+
if (o)
|
|
2211
|
+
throw new Le(o);
|
|
2212
|
+
}
|
|
2213
|
+
}, e.prototype.add = function(t) {
|
|
2214
|
+
var r;
|
|
2215
|
+
if (t && t !== this)
|
|
2216
|
+
if (this.closed)
|
|
2217
|
+
Et(t);
|
|
2218
|
+
else {
|
|
2219
|
+
if (t instanceof e) {
|
|
2220
|
+
if (t.closed || t._hasParent(this))
|
|
2221
|
+
return;
|
|
2222
|
+
t._addParent(this);
|
|
2223
|
+
}
|
|
2224
|
+
(this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(t);
|
|
2225
|
+
}
|
|
2226
|
+
}, e.prototype._hasParent = function(t) {
|
|
2227
|
+
var r = this._parentage;
|
|
2228
|
+
return r === t || Array.isArray(r) && r.includes(t);
|
|
2229
|
+
}, e.prototype._addParent = function(t) {
|
|
2230
|
+
var r = this._parentage;
|
|
2231
|
+
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
2232
|
+
}, e.prototype._removeParent = function(t) {
|
|
2233
|
+
var r = this._parentage;
|
|
2234
|
+
r === t ? this._parentage = null : Array.isArray(r) && Je(r, t);
|
|
2235
|
+
}, e.prototype.remove = function(t) {
|
|
2236
|
+
var r = this._finalizers;
|
|
2237
|
+
r && Je(r, t), t instanceof e && t._removeParent(this);
|
|
2238
|
+
}, e.EMPTY = function() {
|
|
2239
|
+
var t = new e();
|
|
2240
|
+
return t.closed = !0, t;
|
|
2241
|
+
}(), e;
|
|
2242
|
+
}(), Ct = $e.EMPTY;
|
|
2243
|
+
function zt(e) {
|
|
2244
|
+
return e instanceof $e || e && "closed" in e && A(e.remove) && A(e.add) && A(e.unsubscribe);
|
|
2245
|
+
}
|
|
2246
|
+
function Et(e) {
|
|
2247
|
+
A(e) ? e() : e.unsubscribe();
|
|
2248
|
+
}
|
|
2249
|
+
var Dt = {
|
|
2250
|
+
onUnhandledError: null,
|
|
2251
|
+
onStoppedNotification: null,
|
|
2252
|
+
Promise: void 0,
|
|
2253
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
2254
|
+
useDeprecatedNextContext: !1
|
|
2255
|
+
}, Ft = {
|
|
2256
|
+
setTimeout: function(e, t) {
|
|
2257
|
+
for (var r = [], n = 2; n < arguments.length; n++)
|
|
2258
|
+
r[n - 2] = arguments[n];
|
|
2259
|
+
return setTimeout.apply(void 0, ye([e, t], de(r)));
|
|
2260
|
+
},
|
|
2261
|
+
clearTimeout: function(e) {
|
|
2262
|
+
var t = Ft.delegate;
|
|
2263
|
+
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(e);
|
|
2264
|
+
},
|
|
2265
|
+
delegate: void 0
|
|
2266
|
+
};
|
|
2267
|
+
function qt(e) {
|
|
2268
|
+
Ft.setTimeout(function() {
|
|
2269
|
+
throw e;
|
|
2270
|
+
});
|
|
2271
|
+
}
|
|
2272
|
+
function Ot() {
|
|
2273
|
+
}
|
|
2274
|
+
function ke(e) {
|
|
2275
|
+
e();
|
|
2276
|
+
}
|
|
2277
|
+
var Qe = function(e) {
|
|
2278
|
+
me(t, e);
|
|
2279
|
+
function t(r) {
|
|
2280
|
+
var n = e.call(this) || this;
|
|
2281
|
+
return n.isStopped = !1, r ? (n.destination = r, zt(r) && r.add(n)) : n.destination = Vr, n;
|
|
2282
|
+
}
|
|
2283
|
+
return t.create = function(r, n, i) {
|
|
2284
|
+
return new be(r, n, i);
|
|
2285
|
+
}, t.prototype.next = function(r) {
|
|
2286
|
+
this.isStopped || this._next(r);
|
|
2287
|
+
}, t.prototype.error = function(r) {
|
|
2288
|
+
this.isStopped || (this.isStopped = !0, this._error(r));
|
|
2289
|
+
}, t.prototype.complete = function() {
|
|
2290
|
+
this.isStopped || (this.isStopped = !0, this._complete());
|
|
2291
|
+
}, t.prototype.unsubscribe = function() {
|
|
2292
|
+
this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
|
|
2293
|
+
}, t.prototype._next = function(r) {
|
|
2294
|
+
this.destination.next(r);
|
|
2295
|
+
}, t.prototype._error = function(r) {
|
|
2296
|
+
try {
|
|
2297
|
+
this.destination.error(r);
|
|
2298
|
+
} finally {
|
|
2299
|
+
this.unsubscribe();
|
|
2300
|
+
}
|
|
2301
|
+
}, t.prototype._complete = function() {
|
|
2302
|
+
try {
|
|
2303
|
+
this.destination.complete();
|
|
2304
|
+
} finally {
|
|
2305
|
+
this.unsubscribe();
|
|
2306
|
+
}
|
|
2307
|
+
}, t;
|
|
2308
|
+
}($e), Gr = Function.prototype.bind;
|
|
2309
|
+
function Ne(e, t) {
|
|
2310
|
+
return Gr.call(e, t);
|
|
2311
|
+
}
|
|
2312
|
+
var Br = function() {
|
|
2313
|
+
function e(t) {
|
|
2314
|
+
this.partialObserver = t;
|
|
2315
|
+
}
|
|
2316
|
+
return e.prototype.next = function(t) {
|
|
2317
|
+
var r = this.partialObserver;
|
|
2318
|
+
if (r.next)
|
|
2319
|
+
try {
|
|
2320
|
+
r.next(t);
|
|
2321
|
+
} catch (n) {
|
|
2322
|
+
Te(n);
|
|
2323
|
+
}
|
|
2324
|
+
}, e.prototype.error = function(t) {
|
|
2325
|
+
var r = this.partialObserver;
|
|
2326
|
+
if (r.error)
|
|
2327
|
+
try {
|
|
2328
|
+
r.error(t);
|
|
2329
|
+
} catch (n) {
|
|
2330
|
+
Te(n);
|
|
2331
|
+
}
|
|
2332
|
+
else
|
|
2333
|
+
Te(t);
|
|
2334
|
+
}, e.prototype.complete = function() {
|
|
2335
|
+
var t = this.partialObserver;
|
|
2336
|
+
if (t.complete)
|
|
2337
|
+
try {
|
|
2338
|
+
t.complete();
|
|
2339
|
+
} catch (r) {
|
|
2340
|
+
Te(r);
|
|
2341
|
+
}
|
|
2342
|
+
}, e;
|
|
2343
|
+
}(), be = function(e) {
|
|
2344
|
+
me(t, e);
|
|
2345
|
+
function t(r, n, i) {
|
|
2346
|
+
var o = e.call(this) || this, s;
|
|
2347
|
+
if (A(r) || !r)
|
|
2348
|
+
s = {
|
|
2349
|
+
next: r ?? void 0,
|
|
2350
|
+
error: n ?? void 0,
|
|
2351
|
+
complete: i ?? void 0
|
|
2352
|
+
};
|
|
2353
|
+
else {
|
|
2354
|
+
var c;
|
|
2355
|
+
o && Dt.useDeprecatedNextContext ? (c = Object.create(r), c.unsubscribe = function() {
|
|
2356
|
+
return o.unsubscribe();
|
|
2357
|
+
}, s = {
|
|
2358
|
+
next: r.next && Ne(r.next, c),
|
|
2359
|
+
error: r.error && Ne(r.error, c),
|
|
2360
|
+
complete: r.complete && Ne(r.complete, c)
|
|
2361
|
+
}) : s = r;
|
|
2362
|
+
}
|
|
2363
|
+
return o.destination = new Br(s), o;
|
|
2364
|
+
}
|
|
2365
|
+
return t;
|
|
2366
|
+
}(Qe);
|
|
2367
|
+
function Te(e) {
|
|
2368
|
+
qt(e);
|
|
2369
|
+
}
|
|
2370
|
+
function Ur(e) {
|
|
2371
|
+
throw e;
|
|
2372
|
+
}
|
|
2373
|
+
var Vr = {
|
|
2374
|
+
closed: !0,
|
|
2375
|
+
next: Ot,
|
|
2376
|
+
error: Ur,
|
|
2377
|
+
complete: Ot
|
|
2378
|
+
}, Xe = function() {
|
|
2379
|
+
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
2380
|
+
}();
|
|
2381
|
+
function Jr(e) {
|
|
2382
|
+
return e;
|
|
2383
|
+
}
|
|
2384
|
+
function Zr(e) {
|
|
2385
|
+
return e.length === 0 ? Jr : e.length === 1 ? e[0] : function(r) {
|
|
2386
|
+
return e.reduce(function(n, i) {
|
|
2387
|
+
return i(n);
|
|
2388
|
+
}, r);
|
|
2389
|
+
};
|
|
2390
|
+
}
|
|
2391
|
+
var K = function() {
|
|
2392
|
+
function e(t) {
|
|
2393
|
+
t && (this._subscribe = t);
|
|
2394
|
+
}
|
|
2395
|
+
return e.prototype.lift = function(t) {
|
|
2396
|
+
var r = new e();
|
|
2397
|
+
return r.source = this, r.operator = t, r;
|
|
2398
|
+
}, e.prototype.subscribe = function(t, r, n) {
|
|
2399
|
+
var i = this, o = Qr(t) ? t : new be(t, r, n);
|
|
2400
|
+
return ke(function() {
|
|
2401
|
+
var s = i, c = s.operator, d = s.source;
|
|
2402
|
+
o.add(c ? c.call(o, d) : d ? i._subscribe(o) : i._trySubscribe(o));
|
|
2403
|
+
}), o;
|
|
2404
|
+
}, e.prototype._trySubscribe = function(t) {
|
|
2405
|
+
try {
|
|
2406
|
+
return this._subscribe(t);
|
|
2407
|
+
} catch (r) {
|
|
2408
|
+
t.error(r);
|
|
2409
|
+
}
|
|
2410
|
+
}, e.prototype.forEach = function(t, r) {
|
|
2411
|
+
var n = this;
|
|
2412
|
+
return r = Tt(r), new r(function(i, o) {
|
|
2413
|
+
var s = new be({
|
|
2414
|
+
next: function(c) {
|
|
2415
|
+
try {
|
|
2416
|
+
t(c);
|
|
2417
|
+
} catch (d) {
|
|
2418
|
+
o(d), s.unsubscribe();
|
|
2419
|
+
}
|
|
2420
|
+
},
|
|
2421
|
+
error: o,
|
|
2422
|
+
complete: i
|
|
2423
|
+
});
|
|
2424
|
+
n.subscribe(s);
|
|
2425
|
+
});
|
|
2426
|
+
}, e.prototype._subscribe = function(t) {
|
|
2427
|
+
var r;
|
|
2428
|
+
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
2429
|
+
}, e.prototype[Xe] = function() {
|
|
2430
|
+
return this;
|
|
2431
|
+
}, e.prototype.pipe = function() {
|
|
2432
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2433
|
+
t[r] = arguments[r];
|
|
2434
|
+
return Zr(t)(this);
|
|
2435
|
+
}, e.prototype.toPromise = function(t) {
|
|
2436
|
+
var r = this;
|
|
2437
|
+
return t = Tt(t), new t(function(n, i) {
|
|
2438
|
+
var o;
|
|
2439
|
+
r.subscribe(function(s) {
|
|
2440
|
+
return o = s;
|
|
2441
|
+
}, function(s) {
|
|
2442
|
+
return i(s);
|
|
2443
|
+
}, function() {
|
|
2444
|
+
return n(o);
|
|
2445
|
+
});
|
|
2446
|
+
});
|
|
2447
|
+
}, e.create = function(t) {
|
|
2448
|
+
return new e(t);
|
|
2449
|
+
}, e;
|
|
2450
|
+
}();
|
|
2451
|
+
function Tt(e) {
|
|
2452
|
+
var t;
|
|
2453
|
+
return (t = e ?? Dt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
2454
|
+
}
|
|
2455
|
+
function Yr(e) {
|
|
2456
|
+
return e && A(e.next) && A(e.error) && A(e.complete);
|
|
2457
|
+
}
|
|
2458
|
+
function Qr(e) {
|
|
2459
|
+
return e && e instanceof Qe || Yr(e) && zt(e);
|
|
2460
|
+
}
|
|
2461
|
+
function Xr(e) {
|
|
2462
|
+
return A(e == null ? void 0 : e.lift);
|
|
2463
|
+
}
|
|
2464
|
+
function je(e) {
|
|
2465
|
+
return function(t) {
|
|
2466
|
+
if (Xr(t))
|
|
2467
|
+
return t.lift(function(r) {
|
|
2468
|
+
try {
|
|
2469
|
+
return e(r, this);
|
|
2470
|
+
} catch (n) {
|
|
2471
|
+
this.error(n);
|
|
2472
|
+
}
|
|
2473
|
+
});
|
|
2474
|
+
throw new TypeError("Unable to lift unknown Observable type");
|
|
2475
|
+
};
|
|
2476
|
+
}
|
|
2477
|
+
function xe(e, t, r, n, i) {
|
|
2478
|
+
return new Kr(e, t, r, n, i);
|
|
2479
|
+
}
|
|
2480
|
+
var Kr = function(e) {
|
|
2481
|
+
me(t, e);
|
|
2482
|
+
function t(r, n, i, o, s, c) {
|
|
2483
|
+
var d = e.call(this, r) || this;
|
|
2484
|
+
return d.onFinalize = s, d.shouldUnsubscribe = c, d._next = n ? function(f) {
|
|
2485
|
+
try {
|
|
2486
|
+
n(f);
|
|
2487
|
+
} catch (b) {
|
|
2488
|
+
r.error(b);
|
|
2489
|
+
}
|
|
2490
|
+
} : e.prototype._next, d._error = o ? function(f) {
|
|
2491
|
+
try {
|
|
2492
|
+
o(f);
|
|
2493
|
+
} catch (b) {
|
|
2494
|
+
r.error(b);
|
|
2495
|
+
} finally {
|
|
2496
|
+
this.unsubscribe();
|
|
2497
|
+
}
|
|
2498
|
+
} : e.prototype._error, d._complete = i ? function() {
|
|
2499
|
+
try {
|
|
2500
|
+
i();
|
|
2501
|
+
} catch (f) {
|
|
2502
|
+
r.error(f);
|
|
2503
|
+
} finally {
|
|
2504
|
+
this.unsubscribe();
|
|
2505
|
+
}
|
|
2506
|
+
} : e.prototype._complete, d;
|
|
2507
|
+
}
|
|
2508
|
+
return t.prototype.unsubscribe = function() {
|
|
2509
|
+
var r;
|
|
2510
|
+
if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
|
|
2511
|
+
var n = this.closed;
|
|
2512
|
+
e.prototype.unsubscribe.call(this), !n && ((r = this.onFinalize) === null || r === void 0 || r.call(this));
|
|
2513
|
+
}
|
|
2514
|
+
}, t;
|
|
2515
|
+
}(Qe), en = At(function(e) {
|
|
2516
|
+
return function() {
|
|
2517
|
+
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
2518
|
+
};
|
|
2519
|
+
}), Lt = function(e) {
|
|
2520
|
+
me(t, e);
|
|
2521
|
+
function t() {
|
|
2522
|
+
var r = e.call(this) || this;
|
|
2523
|
+
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
2524
|
+
}
|
|
2525
|
+
return t.prototype.lift = function(r) {
|
|
2526
|
+
var n = new Rt(this, this);
|
|
2527
|
+
return n.operator = r, n;
|
|
2528
|
+
}, t.prototype._throwIfClosed = function() {
|
|
2529
|
+
if (this.closed)
|
|
2530
|
+
throw new en();
|
|
2531
|
+
}, t.prototype.next = function(r) {
|
|
2532
|
+
var n = this;
|
|
2533
|
+
ke(function() {
|
|
2534
|
+
var i, o;
|
|
2535
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
2536
|
+
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
2537
|
+
try {
|
|
2538
|
+
for (var s = le(n.currentObservers), c = s.next(); !c.done; c = s.next()) {
|
|
2539
|
+
var d = c.value;
|
|
2540
|
+
d.next(r);
|
|
2541
|
+
}
|
|
2542
|
+
} catch (f) {
|
|
2543
|
+
i = { error: f };
|
|
2544
|
+
} finally {
|
|
2545
|
+
try {
|
|
2546
|
+
c && !c.done && (o = s.return) && o.call(s);
|
|
2547
|
+
} finally {
|
|
2548
|
+
if (i) throw i.error;
|
|
2549
|
+
}
|
|
2550
|
+
}
|
|
2551
|
+
}
|
|
2552
|
+
});
|
|
2553
|
+
}, t.prototype.error = function(r) {
|
|
2554
|
+
var n = this;
|
|
2555
|
+
ke(function() {
|
|
2556
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
2557
|
+
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
2558
|
+
for (var i = n.observers; i.length; )
|
|
2559
|
+
i.shift().error(r);
|
|
2560
|
+
}
|
|
2561
|
+
});
|
|
2562
|
+
}, t.prototype.complete = function() {
|
|
2563
|
+
var r = this;
|
|
2564
|
+
ke(function() {
|
|
2565
|
+
if (r._throwIfClosed(), !r.isStopped) {
|
|
2566
|
+
r.isStopped = !0;
|
|
2567
|
+
for (var n = r.observers; n.length; )
|
|
2568
|
+
n.shift().complete();
|
|
2569
|
+
}
|
|
2570
|
+
});
|
|
2571
|
+
}, t.prototype.unsubscribe = function() {
|
|
2572
|
+
this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
|
|
2573
|
+
}, Object.defineProperty(t.prototype, "observed", {
|
|
2574
|
+
get: function() {
|
|
2575
|
+
var r;
|
|
2576
|
+
return ((r = this.observers) === null || r === void 0 ? void 0 : r.length) > 0;
|
|
2577
|
+
},
|
|
2578
|
+
enumerable: !1,
|
|
2579
|
+
configurable: !0
|
|
2580
|
+
}), t.prototype._trySubscribe = function(r) {
|
|
2581
|
+
return this._throwIfClosed(), e.prototype._trySubscribe.call(this, r);
|
|
2582
|
+
}, t.prototype._subscribe = function(r) {
|
|
2583
|
+
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
2584
|
+
}, t.prototype._innerSubscribe = function(r) {
|
|
2585
|
+
var n = this, i = this, o = i.hasError, s = i.isStopped, c = i.observers;
|
|
2586
|
+
return o || s ? Ct : (this.currentObservers = null, c.push(r), new $e(function() {
|
|
2587
|
+
n.currentObservers = null, Je(c, r);
|
|
2588
|
+
}));
|
|
2589
|
+
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
2590
|
+
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
2591
|
+
i ? r.error(o) : s && r.complete();
|
|
2592
|
+
}, t.prototype.asObservable = function() {
|
|
2593
|
+
var r = new K();
|
|
2594
|
+
return r.source = this, r;
|
|
2595
|
+
}, t.create = function(r, n) {
|
|
2596
|
+
return new Rt(r, n);
|
|
2597
|
+
}, t;
|
|
2598
|
+
}(K), Rt = function(e) {
|
|
2599
|
+
me(t, e);
|
|
2600
|
+
function t(r, n) {
|
|
2601
|
+
var i = e.call(this) || this;
|
|
2602
|
+
return i.destination = r, i.source = n, i;
|
|
2603
|
+
}
|
|
2604
|
+
return t.prototype.next = function(r) {
|
|
2605
|
+
var n, i;
|
|
2606
|
+
(i = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || i === void 0 || i.call(n, r);
|
|
2607
|
+
}, t.prototype.error = function(r) {
|
|
2608
|
+
var n, i;
|
|
2609
|
+
(i = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || i === void 0 || i.call(n, r);
|
|
2610
|
+
}, t.prototype.complete = function() {
|
|
2611
|
+
var r, n;
|
|
2612
|
+
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
2613
|
+
}, t.prototype._subscribe = function(r) {
|
|
2614
|
+
var n, i;
|
|
2615
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ct;
|
|
2616
|
+
}, t;
|
|
2617
|
+
}(Lt), Nt = function(e) {
|
|
2618
|
+
return e && typeof e.length == "number" && typeof e != "function";
|
|
2619
|
+
};
|
|
2620
|
+
function tn(e) {
|
|
2621
|
+
return A(e == null ? void 0 : e.then);
|
|
2622
|
+
}
|
|
2623
|
+
function rn(e) {
|
|
2624
|
+
return A(e[Xe]);
|
|
2625
|
+
}
|
|
2626
|
+
function nn(e) {
|
|
2627
|
+
return Symbol.asyncIterator && A(e == null ? void 0 : e[Symbol.asyncIterator]);
|
|
2628
|
+
}
|
|
2629
|
+
function on(e) {
|
|
2630
|
+
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.");
|
|
2631
|
+
}
|
|
2632
|
+
function sn() {
|
|
2633
|
+
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
|
2634
|
+
}
|
|
2635
|
+
var an = sn();
|
|
2636
|
+
function un(e) {
|
|
2637
|
+
return A(e == null ? void 0 : e[an]);
|
|
2638
|
+
}
|
|
2639
|
+
function cn(e) {
|
|
2640
|
+
return Wr(this, arguments, function() {
|
|
2641
|
+
var r, n, i, o;
|
|
2642
|
+
return jt(this, function(s) {
|
|
2643
|
+
switch (s.label) {
|
|
2644
|
+
case 0:
|
|
2645
|
+
r = e.getReader(), s.label = 1;
|
|
2646
|
+
case 1:
|
|
2647
|
+
s.trys.push([1, , 9, 10]), s.label = 2;
|
|
2648
|
+
case 2:
|
|
2649
|
+
return [4, fe(r.read())];
|
|
2650
|
+
case 3:
|
|
2651
|
+
return n = s.sent(), i = n.value, o = n.done, o ? [4, fe(void 0)] : [3, 5];
|
|
2652
|
+
case 4:
|
|
2653
|
+
return [2, s.sent()];
|
|
2654
|
+
case 5:
|
|
2655
|
+
return [4, fe(i)];
|
|
2656
|
+
case 6:
|
|
2657
|
+
return [4, s.sent()];
|
|
2658
|
+
case 7:
|
|
2659
|
+
return s.sent(), [3, 2];
|
|
2660
|
+
case 8:
|
|
2661
|
+
return [3, 10];
|
|
2662
|
+
case 9:
|
|
2663
|
+
return r.releaseLock(), [7];
|
|
2664
|
+
case 10:
|
|
2665
|
+
return [2];
|
|
2666
|
+
}
|
|
2667
|
+
});
|
|
2668
|
+
});
|
|
2669
|
+
}
|
|
2670
|
+
function fn(e) {
|
|
2671
|
+
return A(e == null ? void 0 : e.getReader);
|
|
2672
|
+
}
|
|
2673
|
+
function we(e) {
|
|
2674
|
+
if (e instanceof K)
|
|
2675
|
+
return e;
|
|
2676
|
+
if (e != null) {
|
|
2677
|
+
if (rn(e))
|
|
2678
|
+
return ln(e);
|
|
2679
|
+
if (Nt(e))
|
|
2680
|
+
return dn(e);
|
|
2681
|
+
if (tn(e))
|
|
2682
|
+
return hn(e);
|
|
2683
|
+
if (nn(e))
|
|
2684
|
+
return Wt(e);
|
|
2685
|
+
if (un(e))
|
|
2686
|
+
return pn(e);
|
|
2687
|
+
if (fn(e))
|
|
2688
|
+
return vn(e);
|
|
2689
|
+
}
|
|
2690
|
+
throw on(e);
|
|
2691
|
+
}
|
|
2692
|
+
function ln(e) {
|
|
2693
|
+
return new K(function(t) {
|
|
2694
|
+
var r = e[Xe]();
|
|
2695
|
+
if (A(r.subscribe))
|
|
2696
|
+
return r.subscribe(t);
|
|
2697
|
+
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
2698
|
+
});
|
|
2699
|
+
}
|
|
2700
|
+
function dn(e) {
|
|
2701
|
+
return new K(function(t) {
|
|
2702
|
+
for (var r = 0; r < e.length && !t.closed; r++)
|
|
2703
|
+
t.next(e[r]);
|
|
2704
|
+
t.complete();
|
|
2705
|
+
});
|
|
2706
|
+
}
|
|
2707
|
+
function hn(e) {
|
|
2708
|
+
return new K(function(t) {
|
|
2709
|
+
e.then(function(r) {
|
|
2710
|
+
t.closed || (t.next(r), t.complete());
|
|
2711
|
+
}, function(r) {
|
|
2712
|
+
return t.error(r);
|
|
2713
|
+
}).then(null, qt);
|
|
2714
|
+
});
|
|
2715
|
+
}
|
|
2716
|
+
function pn(e) {
|
|
2717
|
+
return new K(function(t) {
|
|
2718
|
+
var r, n;
|
|
2719
|
+
try {
|
|
2720
|
+
for (var i = le(e), o = i.next(); !o.done; o = i.next()) {
|
|
2721
|
+
var s = o.value;
|
|
2722
|
+
if (t.next(s), t.closed)
|
|
2723
|
+
return;
|
|
2724
|
+
}
|
|
2725
|
+
} catch (c) {
|
|
2726
|
+
r = { error: c };
|
|
2727
|
+
} finally {
|
|
2728
|
+
try {
|
|
2729
|
+
o && !o.done && (n = i.return) && n.call(i);
|
|
2730
|
+
} finally {
|
|
2731
|
+
if (r) throw r.error;
|
|
2732
|
+
}
|
|
2733
|
+
}
|
|
2734
|
+
t.complete();
|
|
2735
|
+
});
|
|
2736
|
+
}
|
|
2737
|
+
function Wt(e) {
|
|
2738
|
+
return new K(function(t) {
|
|
2739
|
+
yn(e, t).catch(function(r) {
|
|
2740
|
+
return t.error(r);
|
|
2741
|
+
});
|
|
2742
|
+
});
|
|
2743
|
+
}
|
|
2744
|
+
function vn(e) {
|
|
2745
|
+
return Wt(cn(e));
|
|
2746
|
+
}
|
|
2747
|
+
function yn(e, t) {
|
|
2748
|
+
var r, n, i, o;
|
|
2749
|
+
return Nr(this, void 0, void 0, function() {
|
|
2750
|
+
var s, c;
|
|
2751
|
+
return jt(this, function(d) {
|
|
2752
|
+
switch (d.label) {
|
|
2753
|
+
case 0:
|
|
2754
|
+
d.trys.push([0, 5, 6, 11]), r = Hr(e), d.label = 1;
|
|
2755
|
+
case 1:
|
|
2756
|
+
return [4, r.next()];
|
|
2757
|
+
case 2:
|
|
2758
|
+
if (n = d.sent(), !!n.done) return [3, 4];
|
|
2759
|
+
if (s = n.value, t.next(s), t.closed)
|
|
2760
|
+
return [2];
|
|
2761
|
+
d.label = 3;
|
|
2762
|
+
case 3:
|
|
2763
|
+
return [3, 1];
|
|
2764
|
+
case 4:
|
|
2765
|
+
return [3, 11];
|
|
2766
|
+
case 5:
|
|
2767
|
+
return c = d.sent(), i = { error: c }, [3, 11];
|
|
2768
|
+
case 6:
|
|
2769
|
+
return d.trys.push([6, , 9, 10]), n && !n.done && (o = r.return) ? [4, o.call(r)] : [3, 8];
|
|
2770
|
+
case 7:
|
|
2771
|
+
d.sent(), d.label = 8;
|
|
2772
|
+
case 8:
|
|
2773
|
+
return [3, 10];
|
|
2774
|
+
case 9:
|
|
2775
|
+
if (i) throw i.error;
|
|
2776
|
+
return [7];
|
|
2777
|
+
case 10:
|
|
2778
|
+
return [7];
|
|
2779
|
+
case 11:
|
|
2780
|
+
return t.complete(), [2];
|
|
2781
|
+
}
|
|
2782
|
+
});
|
|
2783
|
+
});
|
|
2784
|
+
}
|
|
2785
|
+
function Ht(e, t) {
|
|
2786
|
+
return je(function(r, n) {
|
|
2787
|
+
var i = 0;
|
|
2788
|
+
r.subscribe(xe(n, function(o) {
|
|
2789
|
+
n.next(e.call(t, o, i++));
|
|
2790
|
+
}));
|
|
2791
|
+
});
|
|
2792
|
+
}
|
|
2793
|
+
var bn = Array.isArray;
|
|
2794
|
+
function mn(e, t) {
|
|
2795
|
+
return bn(t) ? e.apply(void 0, ye([], de(t))) : e(t);
|
|
2796
|
+
}
|
|
2797
|
+
function wn(e) {
|
|
2798
|
+
return Ht(function(t) {
|
|
2799
|
+
return mn(e, t);
|
|
2800
|
+
});
|
|
2801
|
+
}
|
|
2802
|
+
function gn(e, t, r, n, i, o, s, c) {
|
|
2803
|
+
var d = [], f = 0, b = 0, M = !1, I = function() {
|
|
2804
|
+
M && !d.length && !f && t.complete();
|
|
2805
|
+
}, O = function(S) {
|
|
2806
|
+
return f < n ? x(S) : d.push(S);
|
|
2807
|
+
}, x = function(S) {
|
|
2808
|
+
f++;
|
|
2809
|
+
var R = !1;
|
|
2810
|
+
we(r(S, b++)).subscribe(xe(t, function(q) {
|
|
2811
|
+
t.next(q);
|
|
2812
|
+
}, function() {
|
|
2813
|
+
R = !0;
|
|
2814
|
+
}, void 0, function() {
|
|
2815
|
+
if (R)
|
|
2816
|
+
try {
|
|
2817
|
+
f--;
|
|
2818
|
+
for (var q = function() {
|
|
2819
|
+
var G = d.shift();
|
|
2820
|
+
s || x(G);
|
|
2821
|
+
}; d.length && f < n; )
|
|
2822
|
+
q();
|
|
2823
|
+
I();
|
|
2824
|
+
} catch (G) {
|
|
2825
|
+
t.error(G);
|
|
2826
|
+
}
|
|
2827
|
+
}));
|
|
2828
|
+
};
|
|
2829
|
+
return e.subscribe(xe(t, O, function() {
|
|
2830
|
+
M = !0, I();
|
|
2831
|
+
})), function() {
|
|
2832
|
+
};
|
|
2833
|
+
}
|
|
2834
|
+
function Gt(e, t, r) {
|
|
2835
|
+
return r === void 0 && (r = 1 / 0), A(t) ? Gt(function(n, i) {
|
|
2836
|
+
return Ht(function(o, s) {
|
|
2837
|
+
return t(n, o, i, s);
|
|
2838
|
+
})(we(e(n, i)));
|
|
2839
|
+
}, r) : (typeof t == "number" && (r = t), je(function(n, i) {
|
|
2840
|
+
return gn(n, i, e, r);
|
|
2841
|
+
}));
|
|
2842
|
+
}
|
|
2843
|
+
var _n = ["addListener", "removeListener"], Sn = ["addEventListener", "removeEventListener"], Mn = ["on", "off"];
|
|
2844
|
+
function Pt(e, t, r, n) {
|
|
2845
|
+
if (A(r) && (n = r, r = void 0), n)
|
|
2846
|
+
return Pt(e, t, r).pipe(wn(n));
|
|
2847
|
+
var i = de(Tn(e) ? Sn.map(function(c) {
|
|
2848
|
+
return function(d) {
|
|
2849
|
+
return e[c](t, d, r);
|
|
2850
|
+
};
|
|
2851
|
+
}) : En(e) ? _n.map(kt(e, t)) : On(e) ? Mn.map(kt(e, t)) : [], 2), o = i[0], s = i[1];
|
|
2852
|
+
if (!o && Nt(e))
|
|
2853
|
+
return Gt(function(c) {
|
|
2854
|
+
return Pt(c, t, r);
|
|
2855
|
+
})(we(e));
|
|
2856
|
+
if (!o)
|
|
2857
|
+
throw new TypeError("Invalid event target");
|
|
2858
|
+
return new K(function(c) {
|
|
2859
|
+
var d = function() {
|
|
2860
|
+
for (var f = [], b = 0; b < arguments.length; b++)
|
|
2861
|
+
f[b] = arguments[b];
|
|
2862
|
+
return c.next(1 < f.length ? f : f[0]);
|
|
2863
|
+
};
|
|
2864
|
+
return o(d), function() {
|
|
2865
|
+
return s(d);
|
|
2866
|
+
};
|
|
2867
|
+
});
|
|
2868
|
+
}
|
|
2869
|
+
function kt(e, t) {
|
|
2870
|
+
return function(r) {
|
|
2871
|
+
return function(n) {
|
|
2872
|
+
return e[r](t, n);
|
|
2873
|
+
};
|
|
2874
|
+
};
|
|
2875
|
+
}
|
|
2876
|
+
function En(e) {
|
|
2877
|
+
return A(e.addListener) && A(e.removeListener);
|
|
2878
|
+
}
|
|
2879
|
+
function On(e) {
|
|
2880
|
+
return A(e.on) && A(e.off);
|
|
2881
|
+
}
|
|
2882
|
+
function Tn(e) {
|
|
2883
|
+
return A(e.addEventListener) && A(e.removeEventListener);
|
|
2884
|
+
}
|
|
2885
|
+
function Xn(e, t) {
|
|
2886
|
+
return je(function(r, n) {
|
|
2887
|
+
var i = 0;
|
|
2888
|
+
r.subscribe(xe(n, function(o) {
|
|
2889
|
+
return e.call(t, o, i++) && n.next(o);
|
|
2890
|
+
}));
|
|
2891
|
+
});
|
|
2892
|
+
}
|
|
2893
|
+
function Kn(e) {
|
|
2894
|
+
e === void 0 && (e = {});
|
|
2895
|
+
var t = e.connector, r = t === void 0 ? function() {
|
|
2896
|
+
return new Lt();
|
|
2897
|
+
} : t, n = e.resetOnError, i = n === void 0 ? !0 : n, o = e.resetOnComplete, s = o === void 0 ? !0 : o, c = e.resetOnRefCountZero, d = c === void 0 ? !0 : c;
|
|
2898
|
+
return function(f) {
|
|
2899
|
+
var b, M, I, O = 0, x = !1, S = !1, R = function() {
|
|
2900
|
+
M == null || M.unsubscribe(), M = void 0;
|
|
2901
|
+
}, q = function() {
|
|
2902
|
+
R(), b = I = void 0, x = S = !1;
|
|
2903
|
+
}, G = function() {
|
|
2904
|
+
var B = b;
|
|
2905
|
+
q(), B == null || B.unsubscribe();
|
|
2906
|
+
};
|
|
2907
|
+
return je(function(B, ee) {
|
|
2908
|
+
O++, !S && !x && R();
|
|
2909
|
+
var te = I = I ?? r();
|
|
2910
|
+
ee.add(function() {
|
|
2911
|
+
O--, O === 0 && !S && !x && (M = We(G, d));
|
|
2912
|
+
}), te.subscribe(ee), !b && O > 0 && (b = new be({
|
|
2913
|
+
next: function(U) {
|
|
2914
|
+
return te.next(U);
|
|
2915
|
+
},
|
|
2916
|
+
error: function(U) {
|
|
2917
|
+
S = !0, R(), M = We(q, i, U), te.error(U);
|
|
2918
|
+
},
|
|
2919
|
+
complete: function() {
|
|
2920
|
+
x = !0, R(), M = We(q, s), te.complete();
|
|
2921
|
+
}
|
|
2922
|
+
}), we(B).subscribe(b));
|
|
2923
|
+
})(f);
|
|
2924
|
+
};
|
|
2925
|
+
}
|
|
2926
|
+
function We(e, t) {
|
|
2927
|
+
for (var r = [], n = 2; n < arguments.length; n++)
|
|
2928
|
+
r[n - 2] = arguments[n];
|
|
2929
|
+
if (t === !0) {
|
|
2930
|
+
e();
|
|
2931
|
+
return;
|
|
2932
|
+
}
|
|
2933
|
+
if (t !== !1) {
|
|
2934
|
+
var i = new be({
|
|
2935
|
+
next: function() {
|
|
2936
|
+
i.unsubscribe(), e();
|
|
2937
|
+
}
|
|
2938
|
+
});
|
|
2939
|
+
return we(t.apply(void 0, ye([], de(r)))).subscribe(i);
|
|
2940
|
+
}
|
|
2941
|
+
}
|
|
2942
|
+
class ei extends cr {
|
|
2943
|
+
constructor(t) {
|
|
2944
|
+
super(t);
|
|
2945
|
+
}
|
|
2946
|
+
load(t, r, n, i) {
|
|
2947
|
+
const o = this, s = new fr(this.manager);
|
|
2948
|
+
s.setPath(this.path), s.setRequestHeader(this.requestHeader), s.setWithCredentials(this.withCredentials), s.load(t, function(c) {
|
|
2949
|
+
const d = o.parse(JSON.parse(c));
|
|
2950
|
+
r && r(d);
|
|
2951
|
+
}, n, i);
|
|
2952
|
+
}
|
|
2953
|
+
parse(t) {
|
|
2954
|
+
return new Rn(t);
|
|
2955
|
+
}
|
|
2956
|
+
}
|
|
2957
|
+
class Rn {
|
|
2958
|
+
constructor(t) {
|
|
2959
|
+
this.isFont = !0, this.type = "Font", this.data = t;
|
|
2960
|
+
}
|
|
2961
|
+
generateShapes(t, r = 100) {
|
|
2962
|
+
const n = [], i = Pn(t, r, this.data);
|
|
2963
|
+
for (let o = 0, s = i.length; o < s; o++)
|
|
2964
|
+
n.push(...i[o].toShapes());
|
|
2965
|
+
return n;
|
|
2966
|
+
}
|
|
2967
|
+
}
|
|
2968
|
+
function Pn(e, t, r) {
|
|
2969
|
+
const n = Array.from(e), i = t / r.resolution, o = (r.boundingBox.yMax - r.boundingBox.yMin + r.underlineThickness) * i, s = [];
|
|
2970
|
+
let c = 0, d = 0;
|
|
2971
|
+
for (let f = 0; f < n.length; f++) {
|
|
2972
|
+
const b = n[f];
|
|
2973
|
+
if (b === `
|
|
2974
|
+
`)
|
|
2975
|
+
c = 0, d -= o;
|
|
2976
|
+
else {
|
|
2977
|
+
const M = kn(b, i, c, d, r);
|
|
2978
|
+
c += M.offsetX, s.push(M.path);
|
|
2979
|
+
}
|
|
2980
|
+
}
|
|
2981
|
+
return s;
|
|
2982
|
+
}
|
|
2983
|
+
function kn(e, t, r, n, i) {
|
|
2984
|
+
const o = i.glyphs[e] || i.glyphs["?"];
|
|
2985
|
+
if (!o) {
|
|
2986
|
+
console.error('THREE.Font: character "' + e + '" does not exists in font family ' + i.familyName + ".");
|
|
2987
|
+
return;
|
|
2988
|
+
}
|
|
2989
|
+
const s = new lr();
|
|
2990
|
+
let c, d, f, b, M, I, O, x;
|
|
2991
|
+
if (o.o) {
|
|
2992
|
+
const S = o._cachedOutline || (o._cachedOutline = o.o.split(" "));
|
|
2993
|
+
for (let R = 0, q = S.length; R < q; )
|
|
2994
|
+
switch (S[R++]) {
|
|
2995
|
+
case "m":
|
|
2996
|
+
c = S[R++] * t + r, d = S[R++] * t + n, s.moveTo(c, d);
|
|
2997
|
+
break;
|
|
2998
|
+
case "l":
|
|
2999
|
+
c = S[R++] * t + r, d = S[R++] * t + n, s.lineTo(c, d);
|
|
3000
|
+
break;
|
|
3001
|
+
case "q":
|
|
3002
|
+
f = S[R++] * t + r, b = S[R++] * t + n, M = S[R++] * t + r, I = S[R++] * t + n, s.quadraticCurveTo(M, I, f, b);
|
|
3003
|
+
break;
|
|
3004
|
+
case "b":
|
|
3005
|
+
f = S[R++] * t + r, b = S[R++] * t + n, M = S[R++] * t + r, I = S[R++] * t + n, O = S[R++] * t + r, x = S[R++] * t + n, s.bezierCurveTo(M, I, O, x, f, b);
|
|
3006
|
+
break;
|
|
3007
|
+
}
|
|
3008
|
+
}
|
|
3009
|
+
return { offsetX: o.ha * t, path: s };
|
|
3010
|
+
}
|
|
3011
|
+
export {
|
|
3012
|
+
Cn as A,
|
|
3013
|
+
xe as B,
|
|
3014
|
+
Dn as C,
|
|
3015
|
+
dr as D,
|
|
3016
|
+
Jn as E,
|
|
3017
|
+
ei as F,
|
|
3018
|
+
Jr as G,
|
|
3019
|
+
A as H,
|
|
3020
|
+
Nn as I,
|
|
3021
|
+
Un as J,
|
|
3022
|
+
$n as K,
|
|
3023
|
+
W as L,
|
|
3024
|
+
Rn as M,
|
|
3025
|
+
Hn as N,
|
|
3026
|
+
K as O,
|
|
3027
|
+
An as P,
|
|
3028
|
+
Vn as R,
|
|
3029
|
+
Lt as S,
|
|
3030
|
+
ye as _,
|
|
3031
|
+
Fr as a,
|
|
3032
|
+
yt as b,
|
|
3033
|
+
wt as c,
|
|
3034
|
+
Qn as d,
|
|
3035
|
+
zr as e,
|
|
3036
|
+
qn as f,
|
|
3037
|
+
Ln as g,
|
|
3038
|
+
jn as h,
|
|
3039
|
+
Zn as i,
|
|
3040
|
+
Pt as j,
|
|
3041
|
+
Xn as k,
|
|
3042
|
+
Kn as l,
|
|
3043
|
+
Ht as m,
|
|
3044
|
+
Bn as n,
|
|
3045
|
+
zn as o,
|
|
3046
|
+
Fn as p,
|
|
3047
|
+
Ar as q,
|
|
3048
|
+
Dr as r,
|
|
3049
|
+
Yn as s,
|
|
3050
|
+
Gn as t,
|
|
3051
|
+
hr as u,
|
|
3052
|
+
pr as v,
|
|
3053
|
+
$e as w,
|
|
3054
|
+
Wn as x,
|
|
3055
|
+
de as y,
|
|
3056
|
+
je as z
|
|
3057
|
+
};
|