@quick-threejs/reactive 0.1.17 → 0.1.18
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/main.d.mts +2 -3
- package/dist/main.d.ts +2 -3
- package/dist/main.js +1312 -628
- package/dist/main.js.map +1 -1
- package/dist/main.mjs +1317 -652
- package/dist/main.mjs.map +1 -1
- package/dist/{main.worker-WTRf-uyZ.d.mts → main.worker-Dms3WqJl.d.mts} +3 -4
- package/dist/{main.worker-WTRf-uyZ.d.ts → main.worker-Dms3WqJl.d.ts} +3 -4
- package/dist/main.worker.d.mts +1 -2
- package/dist/main.worker.d.ts +1 -2
- package/dist/main.worker.js +1064 -460
- package/dist/main.worker.js.map +1 -1
- package/dist/main.worker.mjs +1067 -476
- package/dist/main.worker.mjs.map +1 -1
- package/package.json +3 -4
package/dist/main.worker.mjs
CHANGED
|
@@ -4,7 +4,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var
|
|
7
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
8
8
|
var __commonJS = (cb, mod) => function __require() {
|
|
9
9
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
10
|
};
|
|
@@ -24,16 +24,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
25
|
mod
|
|
26
26
|
));
|
|
27
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
28
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
29
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
30
|
-
if (decorator = decorators[i])
|
|
31
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
32
|
-
if (kind && result) __defProp(target, key, result);
|
|
33
|
-
return result;
|
|
34
|
-
};
|
|
35
|
-
var __decorateParam = (index, decorator) => (target, key) => decorator(target, key, index);
|
|
36
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
37
27
|
|
|
38
28
|
// ../../node_modules/.pnpm/reflect-metadata@0.2.2/node_modules/reflect-metadata/Reflect.js
|
|
39
29
|
var require_Reflect = __commonJS({
|
|
@@ -53,40 +43,51 @@ var require_Reflect = __commonJS({
|
|
|
53
43
|
}
|
|
54
44
|
function makeExporter(target, previous) {
|
|
55
45
|
return function(key, value) {
|
|
56
|
-
Object.defineProperty(target, key, {
|
|
57
|
-
|
|
58
|
-
|
|
46
|
+
Object.defineProperty(target, key, {
|
|
47
|
+
configurable: true,
|
|
48
|
+
writable: true,
|
|
49
|
+
value
|
|
50
|
+
});
|
|
51
|
+
if (previous) previous(key, value);
|
|
59
52
|
};
|
|
60
53
|
}
|
|
54
|
+
__name(makeExporter, "makeExporter");
|
|
61
55
|
function functionThis() {
|
|
62
56
|
try {
|
|
63
57
|
return Function("return this;")();
|
|
64
58
|
} catch (_) {
|
|
65
59
|
}
|
|
66
60
|
}
|
|
61
|
+
__name(functionThis, "functionThis");
|
|
67
62
|
function indirectEvalThis() {
|
|
68
63
|
try {
|
|
69
|
-
return (
|
|
64
|
+
return (0, eval)("(function() { return this; })()");
|
|
70
65
|
} catch (_) {
|
|
71
66
|
}
|
|
72
67
|
}
|
|
68
|
+
__name(indirectEvalThis, "indirectEvalThis");
|
|
73
69
|
function sloppyModeThis() {
|
|
74
70
|
return functionThis() || indirectEvalThis();
|
|
75
71
|
}
|
|
72
|
+
__name(sloppyModeThis, "sloppyModeThis");
|
|
76
73
|
})(function(exporter, root) {
|
|
77
74
|
var hasOwn = Object.prototype.hasOwnProperty;
|
|
78
75
|
var supportsSymbol = typeof Symbol === "function";
|
|
79
76
|
var toPrimitiveSymbol = supportsSymbol && typeof Symbol.toPrimitive !== "undefined" ? Symbol.toPrimitive : "@@toPrimitive";
|
|
80
77
|
var iteratorSymbol = supportsSymbol && typeof Symbol.iterator !== "undefined" ? Symbol.iterator : "@@iterator";
|
|
81
78
|
var supportsCreate = typeof Object.create === "function";
|
|
82
|
-
var supportsProto = {
|
|
79
|
+
var supportsProto = {
|
|
80
|
+
__proto__: []
|
|
81
|
+
} instanceof Array;
|
|
83
82
|
var downLevel = !supportsCreate && !supportsProto;
|
|
84
83
|
var HashMap = {
|
|
85
84
|
// create an object in dictionary mode (a.k.a. "slow" mode in v8)
|
|
86
85
|
create: supportsCreate ? function() {
|
|
87
86
|
return MakeDictionary(/* @__PURE__ */ Object.create(null));
|
|
88
87
|
} : supportsProto ? function() {
|
|
89
|
-
return MakeDictionary({
|
|
88
|
+
return MakeDictionary({
|
|
89
|
+
__proto__: null
|
|
90
|
+
});
|
|
90
91
|
} : function() {
|
|
91
92
|
return MakeDictionary({});
|
|
92
93
|
},
|
|
@@ -110,145 +111,128 @@ var require_Reflect = __commonJS({
|
|
|
110
111
|
var metadataProvider = CreateMetadataProvider(metadataRegistry);
|
|
111
112
|
function decorate(decorators, target, propertyKey, attributes) {
|
|
112
113
|
if (!IsUndefined(propertyKey)) {
|
|
113
|
-
if (!IsArray(decorators))
|
|
114
|
-
|
|
115
|
-
if (!IsObject(
|
|
116
|
-
|
|
117
|
-
if (!IsObject(attributes) && !IsUndefined(attributes) && !IsNull(attributes))
|
|
118
|
-
throw new TypeError();
|
|
119
|
-
if (IsNull(attributes))
|
|
120
|
-
attributes = void 0;
|
|
114
|
+
if (!IsArray(decorators)) throw new TypeError();
|
|
115
|
+
if (!IsObject(target)) throw new TypeError();
|
|
116
|
+
if (!IsObject(attributes) && !IsUndefined(attributes) && !IsNull(attributes)) throw new TypeError();
|
|
117
|
+
if (IsNull(attributes)) attributes = void 0;
|
|
121
118
|
propertyKey = ToPropertyKey(propertyKey);
|
|
122
119
|
return DecorateProperty(decorators, target, propertyKey, attributes);
|
|
123
120
|
} else {
|
|
124
|
-
if (!IsArray(decorators))
|
|
125
|
-
|
|
126
|
-
if (!IsConstructor(target))
|
|
127
|
-
throw new TypeError();
|
|
121
|
+
if (!IsArray(decorators)) throw new TypeError();
|
|
122
|
+
if (!IsConstructor(target)) throw new TypeError();
|
|
128
123
|
return DecorateConstructor(decorators, target);
|
|
129
124
|
}
|
|
130
125
|
}
|
|
126
|
+
__name(decorate, "decorate");
|
|
131
127
|
exporter("decorate", decorate);
|
|
132
128
|
function metadata(metadataKey, metadataValue) {
|
|
133
129
|
function decorator(target, propertyKey) {
|
|
134
|
-
if (!IsObject(target))
|
|
135
|
-
|
|
136
|
-
if (!IsUndefined(propertyKey) && !IsPropertyKey(propertyKey))
|
|
137
|
-
throw new TypeError();
|
|
130
|
+
if (!IsObject(target)) throw new TypeError();
|
|
131
|
+
if (!IsUndefined(propertyKey) && !IsPropertyKey(propertyKey)) throw new TypeError();
|
|
138
132
|
OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);
|
|
139
133
|
}
|
|
134
|
+
__name(decorator, "decorator");
|
|
140
135
|
return decorator;
|
|
141
136
|
}
|
|
137
|
+
__name(metadata, "metadata");
|
|
142
138
|
exporter("metadata", metadata);
|
|
143
139
|
function defineMetadata(metadataKey, metadataValue, target, propertyKey) {
|
|
144
|
-
if (!IsObject(target))
|
|
145
|
-
|
|
146
|
-
if (!IsUndefined(propertyKey))
|
|
147
|
-
propertyKey = ToPropertyKey(propertyKey);
|
|
140
|
+
if (!IsObject(target)) throw new TypeError();
|
|
141
|
+
if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey);
|
|
148
142
|
return OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);
|
|
149
143
|
}
|
|
144
|
+
__name(defineMetadata, "defineMetadata");
|
|
150
145
|
exporter("defineMetadata", defineMetadata);
|
|
151
146
|
function hasMetadata(metadataKey, target, propertyKey) {
|
|
152
|
-
if (!IsObject(target))
|
|
153
|
-
|
|
154
|
-
if (!IsUndefined(propertyKey))
|
|
155
|
-
propertyKey = ToPropertyKey(propertyKey);
|
|
147
|
+
if (!IsObject(target)) throw new TypeError();
|
|
148
|
+
if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey);
|
|
156
149
|
return OrdinaryHasMetadata(metadataKey, target, propertyKey);
|
|
157
150
|
}
|
|
151
|
+
__name(hasMetadata, "hasMetadata");
|
|
158
152
|
exporter("hasMetadata", hasMetadata);
|
|
159
153
|
function hasOwnMetadata(metadataKey, target, propertyKey) {
|
|
160
|
-
if (!IsObject(target))
|
|
161
|
-
|
|
162
|
-
if (!IsUndefined(propertyKey))
|
|
163
|
-
propertyKey = ToPropertyKey(propertyKey);
|
|
154
|
+
if (!IsObject(target)) throw new TypeError();
|
|
155
|
+
if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey);
|
|
164
156
|
return OrdinaryHasOwnMetadata(metadataKey, target, propertyKey);
|
|
165
157
|
}
|
|
158
|
+
__name(hasOwnMetadata, "hasOwnMetadata");
|
|
166
159
|
exporter("hasOwnMetadata", hasOwnMetadata);
|
|
167
160
|
function getMetadata(metadataKey, target, propertyKey) {
|
|
168
|
-
if (!IsObject(target))
|
|
169
|
-
|
|
170
|
-
if (!IsUndefined(propertyKey))
|
|
171
|
-
propertyKey = ToPropertyKey(propertyKey);
|
|
161
|
+
if (!IsObject(target)) throw new TypeError();
|
|
162
|
+
if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey);
|
|
172
163
|
return OrdinaryGetMetadata(metadataKey, target, propertyKey);
|
|
173
164
|
}
|
|
165
|
+
__name(getMetadata, "getMetadata");
|
|
174
166
|
exporter("getMetadata", getMetadata);
|
|
175
167
|
function getOwnMetadata(metadataKey, target, propertyKey) {
|
|
176
|
-
if (!IsObject(target))
|
|
177
|
-
|
|
178
|
-
if (!IsUndefined(propertyKey))
|
|
179
|
-
propertyKey = ToPropertyKey(propertyKey);
|
|
168
|
+
if (!IsObject(target)) throw new TypeError();
|
|
169
|
+
if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey);
|
|
180
170
|
return OrdinaryGetOwnMetadata(metadataKey, target, propertyKey);
|
|
181
171
|
}
|
|
172
|
+
__name(getOwnMetadata, "getOwnMetadata");
|
|
182
173
|
exporter("getOwnMetadata", getOwnMetadata);
|
|
183
174
|
function getMetadataKeys(target, propertyKey) {
|
|
184
|
-
if (!IsObject(target))
|
|
185
|
-
|
|
186
|
-
if (!IsUndefined(propertyKey))
|
|
187
|
-
propertyKey = ToPropertyKey(propertyKey);
|
|
175
|
+
if (!IsObject(target)) throw new TypeError();
|
|
176
|
+
if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey);
|
|
188
177
|
return OrdinaryMetadataKeys(target, propertyKey);
|
|
189
178
|
}
|
|
179
|
+
__name(getMetadataKeys, "getMetadataKeys");
|
|
190
180
|
exporter("getMetadataKeys", getMetadataKeys);
|
|
191
181
|
function getOwnMetadataKeys(target, propertyKey) {
|
|
192
|
-
if (!IsObject(target))
|
|
193
|
-
|
|
194
|
-
if (!IsUndefined(propertyKey))
|
|
195
|
-
propertyKey = ToPropertyKey(propertyKey);
|
|
182
|
+
if (!IsObject(target)) throw new TypeError();
|
|
183
|
+
if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey);
|
|
196
184
|
return OrdinaryOwnMetadataKeys(target, propertyKey);
|
|
197
185
|
}
|
|
186
|
+
__name(getOwnMetadataKeys, "getOwnMetadataKeys");
|
|
198
187
|
exporter("getOwnMetadataKeys", getOwnMetadataKeys);
|
|
199
188
|
function deleteMetadata(metadataKey, target, propertyKey) {
|
|
200
|
-
if (!IsObject(target))
|
|
201
|
-
|
|
202
|
-
if (!
|
|
203
|
-
|
|
204
|
-
if (!IsObject(target))
|
|
205
|
-
throw new TypeError();
|
|
206
|
-
if (!IsUndefined(propertyKey))
|
|
207
|
-
propertyKey = ToPropertyKey(propertyKey);
|
|
189
|
+
if (!IsObject(target)) throw new TypeError();
|
|
190
|
+
if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey);
|
|
191
|
+
if (!IsObject(target)) throw new TypeError();
|
|
192
|
+
if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey);
|
|
208
193
|
var provider = GetMetadataProvider(
|
|
209
194
|
target,
|
|
210
195
|
propertyKey,
|
|
211
196
|
/*Create*/
|
|
212
197
|
false
|
|
213
198
|
);
|
|
214
|
-
if (IsUndefined(provider))
|
|
215
|
-
return false;
|
|
199
|
+
if (IsUndefined(provider)) return false;
|
|
216
200
|
return provider.OrdinaryDeleteMetadata(metadataKey, target, propertyKey);
|
|
217
201
|
}
|
|
202
|
+
__name(deleteMetadata, "deleteMetadata");
|
|
218
203
|
exporter("deleteMetadata", deleteMetadata);
|
|
219
204
|
function DecorateConstructor(decorators, target) {
|
|
220
205
|
for (var i = decorators.length - 1; i >= 0; --i) {
|
|
221
206
|
var decorator = decorators[i];
|
|
222
207
|
var decorated = decorator(target);
|
|
223
208
|
if (!IsUndefined(decorated) && !IsNull(decorated)) {
|
|
224
|
-
if (!IsConstructor(decorated))
|
|
225
|
-
throw new TypeError();
|
|
209
|
+
if (!IsConstructor(decorated)) throw new TypeError();
|
|
226
210
|
target = decorated;
|
|
227
211
|
}
|
|
228
212
|
}
|
|
229
213
|
return target;
|
|
230
214
|
}
|
|
215
|
+
__name(DecorateConstructor, "DecorateConstructor");
|
|
231
216
|
function DecorateProperty(decorators, target, propertyKey, descriptor) {
|
|
232
217
|
for (var i = decorators.length - 1; i >= 0; --i) {
|
|
233
218
|
var decorator = decorators[i];
|
|
234
219
|
var decorated = decorator(target, propertyKey, descriptor);
|
|
235
220
|
if (!IsUndefined(decorated) && !IsNull(decorated)) {
|
|
236
|
-
if (!IsObject(decorated))
|
|
237
|
-
throw new TypeError();
|
|
221
|
+
if (!IsObject(decorated)) throw new TypeError();
|
|
238
222
|
descriptor = decorated;
|
|
239
223
|
}
|
|
240
224
|
}
|
|
241
225
|
return descriptor;
|
|
242
226
|
}
|
|
227
|
+
__name(DecorateProperty, "DecorateProperty");
|
|
243
228
|
function OrdinaryHasMetadata(MetadataKey, O, P) {
|
|
244
229
|
var hasOwn2 = OrdinaryHasOwnMetadata(MetadataKey, O, P);
|
|
245
|
-
if (hasOwn2)
|
|
246
|
-
return true;
|
|
230
|
+
if (hasOwn2) return true;
|
|
247
231
|
var parent = OrdinaryGetPrototypeOf(O);
|
|
248
|
-
if (!IsNull(parent))
|
|
249
|
-
return OrdinaryHasMetadata(MetadataKey, parent, P);
|
|
232
|
+
if (!IsNull(parent)) return OrdinaryHasMetadata(MetadataKey, parent, P);
|
|
250
233
|
return false;
|
|
251
234
|
}
|
|
235
|
+
__name(OrdinaryHasMetadata, "OrdinaryHasMetadata");
|
|
252
236
|
function OrdinaryHasOwnMetadata(MetadataKey, O, P) {
|
|
253
237
|
var provider = GetMetadataProvider(
|
|
254
238
|
O,
|
|
@@ -256,19 +240,18 @@ var require_Reflect = __commonJS({
|
|
|
256
240
|
/*Create*/
|
|
257
241
|
false
|
|
258
242
|
);
|
|
259
|
-
if (IsUndefined(provider))
|
|
260
|
-
return false;
|
|
243
|
+
if (IsUndefined(provider)) return false;
|
|
261
244
|
return ToBoolean(provider.OrdinaryHasOwnMetadata(MetadataKey, O, P));
|
|
262
245
|
}
|
|
246
|
+
__name(OrdinaryHasOwnMetadata, "OrdinaryHasOwnMetadata");
|
|
263
247
|
function OrdinaryGetMetadata(MetadataKey, O, P) {
|
|
264
248
|
var hasOwn2 = OrdinaryHasOwnMetadata(MetadataKey, O, P);
|
|
265
|
-
if (hasOwn2)
|
|
266
|
-
return OrdinaryGetOwnMetadata(MetadataKey, O, P);
|
|
249
|
+
if (hasOwn2) return OrdinaryGetOwnMetadata(MetadataKey, O, P);
|
|
267
250
|
var parent = OrdinaryGetPrototypeOf(O);
|
|
268
|
-
if (!IsNull(parent))
|
|
269
|
-
return OrdinaryGetMetadata(MetadataKey, parent, P);
|
|
251
|
+
if (!IsNull(parent)) return OrdinaryGetMetadata(MetadataKey, parent, P);
|
|
270
252
|
return void 0;
|
|
271
253
|
}
|
|
254
|
+
__name(OrdinaryGetMetadata, "OrdinaryGetMetadata");
|
|
272
255
|
function OrdinaryGetOwnMetadata(MetadataKey, O, P) {
|
|
273
256
|
var provider = GetMetadataProvider(
|
|
274
257
|
O,
|
|
@@ -276,10 +259,10 @@ var require_Reflect = __commonJS({
|
|
|
276
259
|
/*Create*/
|
|
277
260
|
false
|
|
278
261
|
);
|
|
279
|
-
if (IsUndefined(provider))
|
|
280
|
-
return;
|
|
262
|
+
if (IsUndefined(provider)) return;
|
|
281
263
|
return provider.OrdinaryGetOwnMetadata(MetadataKey, O, P);
|
|
282
264
|
}
|
|
265
|
+
__name(OrdinaryGetOwnMetadata, "OrdinaryGetOwnMetadata");
|
|
283
266
|
function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {
|
|
284
267
|
var provider = GetMetadataProvider(
|
|
285
268
|
O,
|
|
@@ -289,16 +272,14 @@ var require_Reflect = __commonJS({
|
|
|
289
272
|
);
|
|
290
273
|
provider.OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P);
|
|
291
274
|
}
|
|
275
|
+
__name(OrdinaryDefineOwnMetadata, "OrdinaryDefineOwnMetadata");
|
|
292
276
|
function OrdinaryMetadataKeys(O, P) {
|
|
293
277
|
var ownKeys = OrdinaryOwnMetadataKeys(O, P);
|
|
294
278
|
var parent = OrdinaryGetPrototypeOf(O);
|
|
295
|
-
if (parent === null)
|
|
296
|
-
return ownKeys;
|
|
279
|
+
if (parent === null) return ownKeys;
|
|
297
280
|
var parentKeys = OrdinaryMetadataKeys(parent, P);
|
|
298
|
-
if (parentKeys.length <= 0)
|
|
299
|
-
|
|
300
|
-
if (ownKeys.length <= 0)
|
|
301
|
-
return parentKeys;
|
|
281
|
+
if (parentKeys.length <= 0) return ownKeys;
|
|
282
|
+
if (ownKeys.length <= 0) return parentKeys;
|
|
302
283
|
var set = new _Set();
|
|
303
284
|
var keys = [];
|
|
304
285
|
for (var _i = 0, ownKeys_1 = ownKeys; _i < ownKeys_1.length; _i++) {
|
|
@@ -319,6 +300,7 @@ var require_Reflect = __commonJS({
|
|
|
319
300
|
}
|
|
320
301
|
return keys;
|
|
321
302
|
}
|
|
303
|
+
__name(OrdinaryMetadataKeys, "OrdinaryMetadataKeys");
|
|
322
304
|
function OrdinaryOwnMetadataKeys(O, P) {
|
|
323
305
|
var provider = GetMetadataProvider(
|
|
324
306
|
O,
|
|
@@ -331,9 +313,9 @@ var require_Reflect = __commonJS({
|
|
|
331
313
|
}
|
|
332
314
|
return provider.OrdinaryOwnMetadataKeys(O, P);
|
|
333
315
|
}
|
|
316
|
+
__name(OrdinaryOwnMetadataKeys, "OrdinaryOwnMetadataKeys");
|
|
334
317
|
function Type(x) {
|
|
335
|
-
if (x === null)
|
|
336
|
-
return 1;
|
|
318
|
+
if (x === null) return 1;
|
|
337
319
|
switch (typeof x) {
|
|
338
320
|
case "undefined":
|
|
339
321
|
return 0;
|
|
@@ -351,18 +333,23 @@ var require_Reflect = __commonJS({
|
|
|
351
333
|
return 6;
|
|
352
334
|
}
|
|
353
335
|
}
|
|
336
|
+
__name(Type, "Type");
|
|
354
337
|
function IsUndefined(x) {
|
|
355
338
|
return x === void 0;
|
|
356
339
|
}
|
|
340
|
+
__name(IsUndefined, "IsUndefined");
|
|
357
341
|
function IsNull(x) {
|
|
358
342
|
return x === null;
|
|
359
343
|
}
|
|
344
|
+
__name(IsNull, "IsNull");
|
|
360
345
|
function IsSymbol(x) {
|
|
361
346
|
return typeof x === "symbol";
|
|
362
347
|
}
|
|
348
|
+
__name(IsSymbol, "IsSymbol");
|
|
363
349
|
function IsObject(x) {
|
|
364
350
|
return typeof x === "object" ? x !== null : typeof x === "function";
|
|
365
351
|
}
|
|
352
|
+
__name(IsObject, "IsObject");
|
|
366
353
|
function ToPrimitive(input, PreferredType) {
|
|
367
354
|
switch (Type(input)) {
|
|
368
355
|
case 0:
|
|
@@ -382,67 +369,69 @@ var require_Reflect = __commonJS({
|
|
|
382
369
|
var exoticToPrim = GetMethod(input, toPrimitiveSymbol);
|
|
383
370
|
if (exoticToPrim !== void 0) {
|
|
384
371
|
var result = exoticToPrim.call(input, hint);
|
|
385
|
-
if (IsObject(result))
|
|
386
|
-
throw new TypeError();
|
|
372
|
+
if (IsObject(result)) throw new TypeError();
|
|
387
373
|
return result;
|
|
388
374
|
}
|
|
389
375
|
return OrdinaryToPrimitive(input, hint === "default" ? "number" : hint);
|
|
390
376
|
}
|
|
377
|
+
__name(ToPrimitive, "ToPrimitive");
|
|
391
378
|
function OrdinaryToPrimitive(O, hint) {
|
|
392
379
|
if (hint === "string") {
|
|
393
380
|
var toString_1 = O.toString;
|
|
394
381
|
if (IsCallable(toString_1)) {
|
|
395
382
|
var result = toString_1.call(O);
|
|
396
|
-
if (!IsObject(result))
|
|
397
|
-
return result;
|
|
383
|
+
if (!IsObject(result)) return result;
|
|
398
384
|
}
|
|
399
385
|
var valueOf = O.valueOf;
|
|
400
386
|
if (IsCallable(valueOf)) {
|
|
401
387
|
var result = valueOf.call(O);
|
|
402
|
-
if (!IsObject(result))
|
|
403
|
-
return result;
|
|
388
|
+
if (!IsObject(result)) return result;
|
|
404
389
|
}
|
|
405
390
|
} else {
|
|
406
391
|
var valueOf = O.valueOf;
|
|
407
392
|
if (IsCallable(valueOf)) {
|
|
408
393
|
var result = valueOf.call(O);
|
|
409
|
-
if (!IsObject(result))
|
|
410
|
-
return result;
|
|
394
|
+
if (!IsObject(result)) return result;
|
|
411
395
|
}
|
|
412
396
|
var toString_2 = O.toString;
|
|
413
397
|
if (IsCallable(toString_2)) {
|
|
414
398
|
var result = toString_2.call(O);
|
|
415
|
-
if (!IsObject(result))
|
|
416
|
-
return result;
|
|
399
|
+
if (!IsObject(result)) return result;
|
|
417
400
|
}
|
|
418
401
|
}
|
|
419
402
|
throw new TypeError();
|
|
420
403
|
}
|
|
404
|
+
__name(OrdinaryToPrimitive, "OrdinaryToPrimitive");
|
|
421
405
|
function ToBoolean(argument) {
|
|
422
406
|
return !!argument;
|
|
423
407
|
}
|
|
408
|
+
__name(ToBoolean, "ToBoolean");
|
|
424
409
|
function ToString(argument) {
|
|
425
410
|
return "" + argument;
|
|
426
411
|
}
|
|
412
|
+
__name(ToString, "ToString");
|
|
427
413
|
function ToPropertyKey(argument) {
|
|
428
414
|
var key = ToPrimitive(
|
|
429
415
|
argument,
|
|
430
416
|
3
|
|
431
417
|
/* String */
|
|
432
418
|
);
|
|
433
|
-
if (IsSymbol(key))
|
|
434
|
-
return key;
|
|
419
|
+
if (IsSymbol(key)) return key;
|
|
435
420
|
return ToString(key);
|
|
436
421
|
}
|
|
422
|
+
__name(ToPropertyKey, "ToPropertyKey");
|
|
437
423
|
function IsArray(argument) {
|
|
438
424
|
return Array.isArray ? Array.isArray(argument) : argument instanceof Object ? argument instanceof Array : Object.prototype.toString.call(argument) === "[object Array]";
|
|
439
425
|
}
|
|
426
|
+
__name(IsArray, "IsArray");
|
|
440
427
|
function IsCallable(argument) {
|
|
441
428
|
return typeof argument === "function";
|
|
442
429
|
}
|
|
430
|
+
__name(IsCallable, "IsCallable");
|
|
443
431
|
function IsConstructor(argument) {
|
|
444
432
|
return typeof argument === "function";
|
|
445
433
|
}
|
|
434
|
+
__name(IsConstructor, "IsConstructor");
|
|
446
435
|
function IsPropertyKey(argument) {
|
|
447
436
|
switch (Type(argument)) {
|
|
448
437
|
case 3:
|
|
@@ -453,55 +442,53 @@ var require_Reflect = __commonJS({
|
|
|
453
442
|
return false;
|
|
454
443
|
}
|
|
455
444
|
}
|
|
445
|
+
__name(IsPropertyKey, "IsPropertyKey");
|
|
456
446
|
function SameValueZero(x, y) {
|
|
457
447
|
return x === y || x !== x && y !== y;
|
|
458
448
|
}
|
|
449
|
+
__name(SameValueZero, "SameValueZero");
|
|
459
450
|
function GetMethod(V, P) {
|
|
460
451
|
var func = V[P];
|
|
461
|
-
if (func === void 0 || func === null)
|
|
462
|
-
|
|
463
|
-
if (!IsCallable(func))
|
|
464
|
-
throw new TypeError();
|
|
452
|
+
if (func === void 0 || func === null) return void 0;
|
|
453
|
+
if (!IsCallable(func)) throw new TypeError();
|
|
465
454
|
return func;
|
|
466
455
|
}
|
|
456
|
+
__name(GetMethod, "GetMethod");
|
|
467
457
|
function GetIterator(obj) {
|
|
468
458
|
var method = GetMethod(obj, iteratorSymbol);
|
|
469
|
-
if (!IsCallable(method))
|
|
470
|
-
throw new TypeError();
|
|
459
|
+
if (!IsCallable(method)) throw new TypeError();
|
|
471
460
|
var iterator = method.call(obj);
|
|
472
|
-
if (!IsObject(iterator))
|
|
473
|
-
throw new TypeError();
|
|
461
|
+
if (!IsObject(iterator)) throw new TypeError();
|
|
474
462
|
return iterator;
|
|
475
463
|
}
|
|
464
|
+
__name(GetIterator, "GetIterator");
|
|
476
465
|
function IteratorValue(iterResult) {
|
|
477
466
|
return iterResult.value;
|
|
478
467
|
}
|
|
468
|
+
__name(IteratorValue, "IteratorValue");
|
|
479
469
|
function IteratorStep(iterator) {
|
|
480
470
|
var result = iterator.next();
|
|
481
471
|
return result.done ? false : result;
|
|
482
472
|
}
|
|
473
|
+
__name(IteratorStep, "IteratorStep");
|
|
483
474
|
function IteratorClose(iterator) {
|
|
484
475
|
var f = iterator["return"];
|
|
485
|
-
if (f)
|
|
486
|
-
f.call(iterator);
|
|
476
|
+
if (f) f.call(iterator);
|
|
487
477
|
}
|
|
478
|
+
__name(IteratorClose, "IteratorClose");
|
|
488
479
|
function OrdinaryGetPrototypeOf(O) {
|
|
489
480
|
var proto = Object.getPrototypeOf(O);
|
|
490
|
-
if (typeof O !== "function" || O === functionPrototype)
|
|
491
|
-
|
|
492
|
-
if (proto !== functionPrototype)
|
|
493
|
-
return proto;
|
|
481
|
+
if (typeof O !== "function" || O === functionPrototype) return proto;
|
|
482
|
+
if (proto !== functionPrototype) return proto;
|
|
494
483
|
var prototype = O.prototype;
|
|
495
484
|
var prototypeProto = prototype && Object.getPrototypeOf(prototype);
|
|
496
|
-
if (prototypeProto == null || prototypeProto === Object.prototype)
|
|
497
|
-
return proto;
|
|
485
|
+
if (prototypeProto == null || prototypeProto === Object.prototype) return proto;
|
|
498
486
|
var constructor = prototypeProto.constructor;
|
|
499
|
-
if (typeof constructor !== "function")
|
|
500
|
-
|
|
501
|
-
if (constructor === O)
|
|
502
|
-
return proto;
|
|
487
|
+
if (typeof constructor !== "function") return proto;
|
|
488
|
+
if (constructor === O) return proto;
|
|
503
489
|
return constructor;
|
|
504
490
|
}
|
|
491
|
+
__name(OrdinaryGetPrototypeOf, "OrdinaryGetPrototypeOf");
|
|
505
492
|
function CreateMetadataRegistry() {
|
|
506
493
|
var fallback;
|
|
507
494
|
if (!IsUndefined(registrySymbol) && typeof root.Reflect !== "undefined" && !(registrySymbol in root.Reflect) && typeof root.Reflect.defineMetadata === "function") {
|
|
@@ -535,19 +522,17 @@ var require_Reflect = __commonJS({
|
|
|
535
522
|
case second === provider:
|
|
536
523
|
break;
|
|
537
524
|
default:
|
|
538
|
-
if (rest === void 0)
|
|
539
|
-
rest = new _Set();
|
|
525
|
+
if (rest === void 0) rest = new _Set();
|
|
540
526
|
rest.add(provider);
|
|
541
527
|
break;
|
|
542
528
|
}
|
|
543
529
|
}
|
|
530
|
+
__name(registerProvider, "registerProvider");
|
|
544
531
|
function getProviderNoCache(O, P) {
|
|
545
532
|
if (!IsUndefined(first)) {
|
|
546
|
-
if (first.isProviderFor(O, P))
|
|
547
|
-
return first;
|
|
533
|
+
if (first.isProviderFor(O, P)) return first;
|
|
548
534
|
if (!IsUndefined(second)) {
|
|
549
|
-
if (second.isProviderFor(O, P))
|
|
550
|
-
return first;
|
|
535
|
+
if (second.isProviderFor(O, P)) return first;
|
|
551
536
|
if (!IsUndefined(rest)) {
|
|
552
537
|
var iterator = GetIterator(rest);
|
|
553
538
|
while (true) {
|
|
@@ -569,6 +554,7 @@ var require_Reflect = __commonJS({
|
|
|
569
554
|
}
|
|
570
555
|
return void 0;
|
|
571
556
|
}
|
|
557
|
+
__name(getProviderNoCache, "getProviderNoCache");
|
|
572
558
|
function getProvider(O, P) {
|
|
573
559
|
var providerMap = targetProviderMap.get(O);
|
|
574
560
|
var provider;
|
|
@@ -588,11 +574,12 @@ var require_Reflect = __commonJS({
|
|
|
588
574
|
}
|
|
589
575
|
return provider;
|
|
590
576
|
}
|
|
577
|
+
__name(getProvider, "getProvider");
|
|
591
578
|
function hasProvider(provider) {
|
|
592
|
-
if (IsUndefined(provider))
|
|
593
|
-
throw new TypeError();
|
|
579
|
+
if (IsUndefined(provider)) throw new TypeError();
|
|
594
580
|
return first === provider || second === provider || !IsUndefined(rest) && rest.has(provider);
|
|
595
581
|
}
|
|
582
|
+
__name(hasProvider, "hasProvider");
|
|
596
583
|
function setProvider(O, P, provider) {
|
|
597
584
|
if (!hasProvider(provider)) {
|
|
598
585
|
throw new Error("Metadata provider not registered.");
|
|
@@ -611,7 +598,9 @@ var require_Reflect = __commonJS({
|
|
|
611
598
|
}
|
|
612
599
|
return true;
|
|
613
600
|
}
|
|
601
|
+
__name(setProvider, "setProvider");
|
|
614
602
|
}
|
|
603
|
+
__name(CreateMetadataRegistry, "CreateMetadataRegistry");
|
|
615
604
|
function GetOrCreateMetadataRegistry() {
|
|
616
605
|
var metadataRegistry2;
|
|
617
606
|
if (!IsUndefined(registrySymbol) && IsObject(root.Reflect) && Object.isExtensible(root.Reflect)) {
|
|
@@ -630,15 +619,15 @@ var require_Reflect = __commonJS({
|
|
|
630
619
|
}
|
|
631
620
|
return metadataRegistry2;
|
|
632
621
|
}
|
|
622
|
+
__name(GetOrCreateMetadataRegistry, "GetOrCreateMetadataRegistry");
|
|
633
623
|
function CreateMetadataProvider(registry) {
|
|
634
624
|
var metadata2 = new _WeakMap();
|
|
635
625
|
var provider = {
|
|
636
|
-
isProviderFor: function(O, P) {
|
|
626
|
+
isProviderFor: /* @__PURE__ */ __name(function(O, P) {
|
|
637
627
|
var targetMetadata = metadata2.get(O);
|
|
638
|
-
if (IsUndefined(targetMetadata))
|
|
639
|
-
return false;
|
|
628
|
+
if (IsUndefined(targetMetadata)) return false;
|
|
640
629
|
return targetMetadata.has(P);
|
|
641
|
-
},
|
|
630
|
+
}, "isProviderFor"),
|
|
642
631
|
OrdinaryDefineOwnMetadata: OrdinaryDefineOwnMetadata2,
|
|
643
632
|
OrdinaryHasOwnMetadata: OrdinaryHasOwnMetadata2,
|
|
644
633
|
OrdinaryGetOwnMetadata: OrdinaryGetOwnMetadata2,
|
|
@@ -651,16 +640,14 @@ var require_Reflect = __commonJS({
|
|
|
651
640
|
var targetMetadata = metadata2.get(O);
|
|
652
641
|
var createdTargetMetadata = false;
|
|
653
642
|
if (IsUndefined(targetMetadata)) {
|
|
654
|
-
if (!Create)
|
|
655
|
-
return void 0;
|
|
643
|
+
if (!Create) return void 0;
|
|
656
644
|
targetMetadata = new _Map();
|
|
657
645
|
metadata2.set(O, targetMetadata);
|
|
658
646
|
createdTargetMetadata = true;
|
|
659
647
|
}
|
|
660
648
|
var metadataMap = targetMetadata.get(P);
|
|
661
649
|
if (IsUndefined(metadataMap)) {
|
|
662
|
-
if (!Create)
|
|
663
|
-
return void 0;
|
|
650
|
+
if (!Create) return void 0;
|
|
664
651
|
metadataMap = new _Map();
|
|
665
652
|
targetMetadata.set(P, metadataMap);
|
|
666
653
|
if (!registry.setProvider(O, P, provider)) {
|
|
@@ -673,6 +660,7 @@ var require_Reflect = __commonJS({
|
|
|
673
660
|
}
|
|
674
661
|
return metadataMap;
|
|
675
662
|
}
|
|
663
|
+
__name(GetOrCreateMetadataMap, "GetOrCreateMetadataMap");
|
|
676
664
|
function OrdinaryHasOwnMetadata2(MetadataKey, O, P) {
|
|
677
665
|
var metadataMap = GetOrCreateMetadataMap(
|
|
678
666
|
O,
|
|
@@ -680,10 +668,10 @@ var require_Reflect = __commonJS({
|
|
|
680
668
|
/*Create*/
|
|
681
669
|
false
|
|
682
670
|
);
|
|
683
|
-
if (IsUndefined(metadataMap))
|
|
684
|
-
return false;
|
|
671
|
+
if (IsUndefined(metadataMap)) return false;
|
|
685
672
|
return ToBoolean(metadataMap.has(MetadataKey));
|
|
686
673
|
}
|
|
674
|
+
__name(OrdinaryHasOwnMetadata2, "OrdinaryHasOwnMetadata");
|
|
687
675
|
function OrdinaryGetOwnMetadata2(MetadataKey, O, P) {
|
|
688
676
|
var metadataMap = GetOrCreateMetadataMap(
|
|
689
677
|
O,
|
|
@@ -691,10 +679,10 @@ var require_Reflect = __commonJS({
|
|
|
691
679
|
/*Create*/
|
|
692
680
|
false
|
|
693
681
|
);
|
|
694
|
-
if (IsUndefined(metadataMap))
|
|
695
|
-
return void 0;
|
|
682
|
+
if (IsUndefined(metadataMap)) return void 0;
|
|
696
683
|
return metadataMap.get(MetadataKey);
|
|
697
684
|
}
|
|
685
|
+
__name(OrdinaryGetOwnMetadata2, "OrdinaryGetOwnMetadata");
|
|
698
686
|
function OrdinaryDefineOwnMetadata2(MetadataKey, MetadataValue, O, P) {
|
|
699
687
|
var metadataMap = GetOrCreateMetadataMap(
|
|
700
688
|
O,
|
|
@@ -704,6 +692,7 @@ var require_Reflect = __commonJS({
|
|
|
704
692
|
);
|
|
705
693
|
metadataMap.set(MetadataKey, MetadataValue);
|
|
706
694
|
}
|
|
695
|
+
__name(OrdinaryDefineOwnMetadata2, "OrdinaryDefineOwnMetadata");
|
|
707
696
|
function OrdinaryOwnMetadataKeys2(O, P) {
|
|
708
697
|
var keys = [];
|
|
709
698
|
var metadataMap = GetOrCreateMetadataMap(
|
|
@@ -712,8 +701,7 @@ var require_Reflect = __commonJS({
|
|
|
712
701
|
/*Create*/
|
|
713
702
|
false
|
|
714
703
|
);
|
|
715
|
-
if (IsUndefined(metadataMap))
|
|
716
|
-
return keys;
|
|
704
|
+
if (IsUndefined(metadataMap)) return keys;
|
|
717
705
|
var keysObj = metadataMap.keys();
|
|
718
706
|
var iterator = GetIterator(keysObj);
|
|
719
707
|
var k = 0;
|
|
@@ -736,6 +724,7 @@ var require_Reflect = __commonJS({
|
|
|
736
724
|
k++;
|
|
737
725
|
}
|
|
738
726
|
}
|
|
727
|
+
__name(OrdinaryOwnMetadataKeys2, "OrdinaryOwnMetadataKeys");
|
|
739
728
|
function OrdinaryDeleteMetadata(MetadataKey, O, P) {
|
|
740
729
|
var metadataMap = GetOrCreateMetadataMap(
|
|
741
730
|
O,
|
|
@@ -743,10 +732,8 @@ var require_Reflect = __commonJS({
|
|
|
743
732
|
/*Create*/
|
|
744
733
|
false
|
|
745
734
|
);
|
|
746
|
-
if (IsUndefined(metadataMap))
|
|
747
|
-
|
|
748
|
-
if (!metadataMap.delete(MetadataKey))
|
|
749
|
-
return false;
|
|
735
|
+
if (IsUndefined(metadataMap)) return false;
|
|
736
|
+
if (!metadataMap.delete(MetadataKey)) return false;
|
|
750
737
|
if (metadataMap.size === 0) {
|
|
751
738
|
var targetMetadata = metadata2.get(O);
|
|
752
739
|
if (!IsUndefined(targetMetadata)) {
|
|
@@ -758,12 +745,14 @@ var require_Reflect = __commonJS({
|
|
|
758
745
|
}
|
|
759
746
|
return true;
|
|
760
747
|
}
|
|
748
|
+
__name(OrdinaryDeleteMetadata, "OrdinaryDeleteMetadata");
|
|
761
749
|
}
|
|
750
|
+
__name(CreateMetadataProvider, "CreateMetadataProvider");
|
|
762
751
|
function CreateFallbackProvider(reflect) {
|
|
763
752
|
var defineMetadata2 = reflect.defineMetadata, hasOwnMetadata2 = reflect.hasOwnMetadata, getOwnMetadata2 = reflect.getOwnMetadata, getOwnMetadataKeys2 = reflect.getOwnMetadataKeys, deleteMetadata2 = reflect.deleteMetadata;
|
|
764
753
|
var metadataOwner = new _WeakMap();
|
|
765
754
|
var provider = {
|
|
766
|
-
isProviderFor: function(O, P) {
|
|
755
|
+
isProviderFor: /* @__PURE__ */ __name(function(O, P) {
|
|
767
756
|
var metadataPropertySet = metadataOwner.get(O);
|
|
768
757
|
if (!IsUndefined(metadataPropertySet) && metadataPropertySet.has(P)) {
|
|
769
758
|
return true;
|
|
@@ -777,7 +766,7 @@ var require_Reflect = __commonJS({
|
|
|
777
766
|
return true;
|
|
778
767
|
}
|
|
779
768
|
return false;
|
|
780
|
-
},
|
|
769
|
+
}, "isProviderFor"),
|
|
781
770
|
OrdinaryDefineOwnMetadata: defineMetadata2,
|
|
782
771
|
OrdinaryHasOwnMetadata: hasOwnMetadata2,
|
|
783
772
|
OrdinaryGetOwnMetadata: getOwnMetadata2,
|
|
@@ -786,6 +775,7 @@ var require_Reflect = __commonJS({
|
|
|
786
775
|
};
|
|
787
776
|
return provider;
|
|
788
777
|
}
|
|
778
|
+
__name(CreateFallbackProvider, "CreateFallbackProvider");
|
|
789
779
|
function GetMetadataProvider(O, P, Create) {
|
|
790
780
|
var registeredProvider = metadataRegistry.getProvider(O, P);
|
|
791
781
|
if (!IsUndefined(registeredProvider)) {
|
|
@@ -799,6 +789,7 @@ var require_Reflect = __commonJS({
|
|
|
799
789
|
}
|
|
800
790
|
return void 0;
|
|
801
791
|
}
|
|
792
|
+
__name(GetMetadataProvider, "GetMetadataProvider");
|
|
802
793
|
function CreateMapPolyfill() {
|
|
803
794
|
var cacheSentinel = {};
|
|
804
795
|
var arraySentinel = [];
|
|
@@ -811,6 +802,7 @@ var require_Reflect = __commonJS({
|
|
|
811
802
|
this._values = values;
|
|
812
803
|
this._selector = selector;
|
|
813
804
|
}
|
|
805
|
+
__name(MapIterator2, "MapIterator");
|
|
814
806
|
MapIterator2.prototype["@@iterator"] = function() {
|
|
815
807
|
return this;
|
|
816
808
|
};
|
|
@@ -828,9 +820,15 @@ var require_Reflect = __commonJS({
|
|
|
828
820
|
} else {
|
|
829
821
|
this._index++;
|
|
830
822
|
}
|
|
831
|
-
return {
|
|
823
|
+
return {
|
|
824
|
+
value: result,
|
|
825
|
+
done: false
|
|
826
|
+
};
|
|
832
827
|
}
|
|
833
|
-
return {
|
|
828
|
+
return {
|
|
829
|
+
value: void 0,
|
|
830
|
+
done: true
|
|
831
|
+
};
|
|
834
832
|
};
|
|
835
833
|
MapIterator2.prototype.throw = function(error) {
|
|
836
834
|
if (this._index >= 0) {
|
|
@@ -846,35 +844,39 @@ var require_Reflect = __commonJS({
|
|
|
846
844
|
this._keys = arraySentinel;
|
|
847
845
|
this._values = arraySentinel;
|
|
848
846
|
}
|
|
849
|
-
return {
|
|
847
|
+
return {
|
|
848
|
+
value,
|
|
849
|
+
done: true
|
|
850
|
+
};
|
|
850
851
|
};
|
|
851
852
|
return MapIterator2;
|
|
852
853
|
}()
|
|
853
854
|
);
|
|
854
|
-
var
|
|
855
|
+
var Map1 = (
|
|
855
856
|
/** @class */
|
|
856
857
|
function() {
|
|
857
|
-
function
|
|
858
|
+
function Map12() {
|
|
858
859
|
this._keys = [];
|
|
859
860
|
this._values = [];
|
|
860
861
|
this._cacheKey = cacheSentinel;
|
|
861
862
|
this._cacheIndex = -2;
|
|
862
863
|
}
|
|
863
|
-
|
|
864
|
-
|
|
864
|
+
__name(Map12, "Map1");
|
|
865
|
+
Object.defineProperty(Map12.prototype, "size", {
|
|
866
|
+
get: /* @__PURE__ */ __name(function() {
|
|
865
867
|
return this._keys.length;
|
|
866
|
-
},
|
|
868
|
+
}, "get"),
|
|
867
869
|
enumerable: true,
|
|
868
870
|
configurable: true
|
|
869
871
|
});
|
|
870
|
-
|
|
872
|
+
Map12.prototype.has = function(key) {
|
|
871
873
|
return this._find(
|
|
872
874
|
key,
|
|
873
875
|
/*insert*/
|
|
874
876
|
false
|
|
875
877
|
) >= 0;
|
|
876
878
|
};
|
|
877
|
-
|
|
879
|
+
Map12.prototype.get = function(key) {
|
|
878
880
|
var index = this._find(
|
|
879
881
|
key,
|
|
880
882
|
/*insert*/
|
|
@@ -882,7 +884,7 @@ var require_Reflect = __commonJS({
|
|
|
882
884
|
);
|
|
883
885
|
return index >= 0 ? this._values[index] : void 0;
|
|
884
886
|
};
|
|
885
|
-
|
|
887
|
+
Map12.prototype.set = function(key, value) {
|
|
886
888
|
var index = this._find(
|
|
887
889
|
key,
|
|
888
890
|
/*insert*/
|
|
@@ -891,7 +893,7 @@ var require_Reflect = __commonJS({
|
|
|
891
893
|
this._values[index] = value;
|
|
892
894
|
return this;
|
|
893
895
|
};
|
|
894
|
-
|
|
896
|
+
Map12.prototype.delete = function(key) {
|
|
895
897
|
var index = this._find(
|
|
896
898
|
key,
|
|
897
899
|
/*insert*/
|
|
@@ -913,28 +915,28 @@ var require_Reflect = __commonJS({
|
|
|
913
915
|
}
|
|
914
916
|
return false;
|
|
915
917
|
};
|
|
916
|
-
|
|
918
|
+
Map12.prototype.clear = function() {
|
|
917
919
|
this._keys.length = 0;
|
|
918
920
|
this._values.length = 0;
|
|
919
921
|
this._cacheKey = cacheSentinel;
|
|
920
922
|
this._cacheIndex = -2;
|
|
921
923
|
};
|
|
922
|
-
|
|
924
|
+
Map12.prototype.keys = function() {
|
|
923
925
|
return new MapIterator(this._keys, this._values, getKey);
|
|
924
926
|
};
|
|
925
|
-
|
|
927
|
+
Map12.prototype.values = function() {
|
|
926
928
|
return new MapIterator(this._keys, this._values, getValue);
|
|
927
929
|
};
|
|
928
|
-
|
|
930
|
+
Map12.prototype.entries = function() {
|
|
929
931
|
return new MapIterator(this._keys, this._values, getEntry);
|
|
930
932
|
};
|
|
931
|
-
|
|
933
|
+
Map12.prototype["@@iterator"] = function() {
|
|
932
934
|
return this.entries();
|
|
933
935
|
};
|
|
934
|
-
|
|
936
|
+
Map12.prototype[iteratorSymbol] = function() {
|
|
935
937
|
return this.entries();
|
|
936
938
|
};
|
|
937
|
-
|
|
939
|
+
Map12.prototype._find = function(key, insert) {
|
|
938
940
|
if (!SameValueZero(this._cacheKey, key)) {
|
|
939
941
|
this._cacheIndex = -1;
|
|
940
942
|
for (var i = 0; i < this._keys.length; i++) {
|
|
@@ -951,66 +953,75 @@ var require_Reflect = __commonJS({
|
|
|
951
953
|
}
|
|
952
954
|
return this._cacheIndex;
|
|
953
955
|
};
|
|
954
|
-
return
|
|
956
|
+
return Map12;
|
|
955
957
|
}()
|
|
956
958
|
);
|
|
957
|
-
return
|
|
959
|
+
return Map1;
|
|
958
960
|
function getKey(key, _) {
|
|
959
961
|
return key;
|
|
960
962
|
}
|
|
963
|
+
__name(getKey, "getKey");
|
|
961
964
|
function getValue(_, value) {
|
|
962
965
|
return value;
|
|
963
966
|
}
|
|
967
|
+
__name(getValue, "getValue");
|
|
964
968
|
function getEntry(key, value) {
|
|
965
|
-
return [
|
|
969
|
+
return [
|
|
970
|
+
key,
|
|
971
|
+
value
|
|
972
|
+
];
|
|
966
973
|
}
|
|
974
|
+
__name(getEntry, "getEntry");
|
|
967
975
|
}
|
|
976
|
+
__name(CreateMapPolyfill, "CreateMapPolyfill");
|
|
968
977
|
function CreateSetPolyfill() {
|
|
969
|
-
var
|
|
978
|
+
var Set1 = (
|
|
970
979
|
/** @class */
|
|
971
980
|
function() {
|
|
972
|
-
function
|
|
981
|
+
function Set12() {
|
|
973
982
|
this._map = new _Map();
|
|
974
983
|
}
|
|
975
|
-
|
|
976
|
-
|
|
984
|
+
__name(Set12, "Set1");
|
|
985
|
+
Object.defineProperty(Set12.prototype, "size", {
|
|
986
|
+
get: /* @__PURE__ */ __name(function() {
|
|
977
987
|
return this._map.size;
|
|
978
|
-
},
|
|
988
|
+
}, "get"),
|
|
979
989
|
enumerable: true,
|
|
980
990
|
configurable: true
|
|
981
991
|
});
|
|
982
|
-
|
|
992
|
+
Set12.prototype.has = function(value) {
|
|
983
993
|
return this._map.has(value);
|
|
984
994
|
};
|
|
985
|
-
|
|
995
|
+
Set12.prototype.add = function(value) {
|
|
986
996
|
return this._map.set(value, value), this;
|
|
987
997
|
};
|
|
988
|
-
|
|
998
|
+
Set12.prototype.delete = function(value) {
|
|
989
999
|
return this._map.delete(value);
|
|
990
1000
|
};
|
|
991
|
-
|
|
1001
|
+
Set12.prototype.clear = function() {
|
|
992
1002
|
this._map.clear();
|
|
993
1003
|
};
|
|
994
|
-
|
|
1004
|
+
Set12.prototype.keys = function() {
|
|
995
1005
|
return this._map.keys();
|
|
996
1006
|
};
|
|
997
|
-
|
|
1007
|
+
Set12.prototype.values = function() {
|
|
998
1008
|
return this._map.keys();
|
|
999
1009
|
};
|
|
1000
|
-
|
|
1010
|
+
Set12.prototype.entries = function() {
|
|
1001
1011
|
return this._map.entries();
|
|
1002
1012
|
};
|
|
1003
|
-
|
|
1013
|
+
Set12.prototype["@@iterator"] = function() {
|
|
1004
1014
|
return this.keys();
|
|
1005
1015
|
};
|
|
1006
|
-
|
|
1016
|
+
Set12.prototype[iteratorSymbol] = function() {
|
|
1007
1017
|
return this.keys();
|
|
1008
1018
|
};
|
|
1009
|
-
return
|
|
1019
|
+
return Set12;
|
|
1010
1020
|
}()
|
|
1011
1021
|
);
|
|
1012
|
-
return
|
|
1022
|
+
return Set1;
|
|
1013
1023
|
}
|
|
1024
|
+
__name(CreateSetPolyfill, "CreateSetPolyfill");
|
|
1014
1025
|
function CreateWeakMapPolyfill() {
|
|
1015
1026
|
var UUID_SIZE = 16;
|
|
1016
1027
|
var keys = HashMap.create();
|
|
@@ -1018,10 +1029,11 @@ var require_Reflect = __commonJS({
|
|
|
1018
1029
|
return (
|
|
1019
1030
|
/** @class */
|
|
1020
1031
|
function() {
|
|
1021
|
-
function
|
|
1032
|
+
function WeakMap1() {
|
|
1022
1033
|
this._key = CreateUniqueKey();
|
|
1023
1034
|
}
|
|
1024
|
-
|
|
1035
|
+
__name(WeakMap1, "WeakMap1");
|
|
1036
|
+
WeakMap1.prototype.has = function(target) {
|
|
1025
1037
|
var table = GetOrCreateWeakMapTable(
|
|
1026
1038
|
target,
|
|
1027
1039
|
/*create*/
|
|
@@ -1029,7 +1041,7 @@ var require_Reflect = __commonJS({
|
|
|
1029
1041
|
);
|
|
1030
1042
|
return table !== void 0 ? HashMap.has(table, this._key) : false;
|
|
1031
1043
|
};
|
|
1032
|
-
|
|
1044
|
+
WeakMap1.prototype.get = function(target) {
|
|
1033
1045
|
var table = GetOrCreateWeakMapTable(
|
|
1034
1046
|
target,
|
|
1035
1047
|
/*create*/
|
|
@@ -1037,7 +1049,7 @@ var require_Reflect = __commonJS({
|
|
|
1037
1049
|
);
|
|
1038
1050
|
return table !== void 0 ? HashMap.get(table, this._key) : void 0;
|
|
1039
1051
|
};
|
|
1040
|
-
|
|
1052
|
+
WeakMap1.prototype.set = function(target, value) {
|
|
1041
1053
|
var table = GetOrCreateWeakMapTable(
|
|
1042
1054
|
target,
|
|
1043
1055
|
/*create*/
|
|
@@ -1046,7 +1058,7 @@ var require_Reflect = __commonJS({
|
|
|
1046
1058
|
table[this._key] = value;
|
|
1047
1059
|
return this;
|
|
1048
1060
|
};
|
|
1049
|
-
|
|
1061
|
+
WeakMap1.prototype.delete = function(target) {
|
|
1050
1062
|
var table = GetOrCreateWeakMapTable(
|
|
1051
1063
|
target,
|
|
1052
1064
|
/*create*/
|
|
@@ -1054,10 +1066,10 @@ var require_Reflect = __commonJS({
|
|
|
1054
1066
|
);
|
|
1055
1067
|
return table !== void 0 ? delete table[this._key] : false;
|
|
1056
1068
|
};
|
|
1057
|
-
|
|
1069
|
+
WeakMap1.prototype.clear = function() {
|
|
1058
1070
|
this._key = CreateUniqueKey();
|
|
1059
1071
|
};
|
|
1060
|
-
return
|
|
1072
|
+
return WeakMap1;
|
|
1061
1073
|
}()
|
|
1062
1074
|
);
|
|
1063
1075
|
function CreateUniqueKey() {
|
|
@@ -1068,19 +1080,22 @@ var require_Reflect = __commonJS({
|
|
|
1068
1080
|
keys[key] = true;
|
|
1069
1081
|
return key;
|
|
1070
1082
|
}
|
|
1083
|
+
__name(CreateUniqueKey, "CreateUniqueKey");
|
|
1071
1084
|
function GetOrCreateWeakMapTable(target, create) {
|
|
1072
1085
|
if (!hasOwn.call(target, rootKey)) {
|
|
1073
|
-
if (!create)
|
|
1074
|
-
|
|
1075
|
-
|
|
1086
|
+
if (!create) return void 0;
|
|
1087
|
+
Object.defineProperty(target, rootKey, {
|
|
1088
|
+
value: HashMap.create()
|
|
1089
|
+
});
|
|
1076
1090
|
}
|
|
1077
1091
|
return target[rootKey];
|
|
1078
1092
|
}
|
|
1093
|
+
__name(GetOrCreateWeakMapTable, "GetOrCreateWeakMapTable");
|
|
1079
1094
|
function FillRandomBytes(buffer, size) {
|
|
1080
|
-
for (var i = 0; i < size; ++i)
|
|
1081
|
-
buffer[i] = Math.random() * 255 | 0;
|
|
1095
|
+
for (var i = 0; i < size; ++i) buffer[i] = Math.random() * 255 | 0;
|
|
1082
1096
|
return buffer;
|
|
1083
1097
|
}
|
|
1098
|
+
__name(FillRandomBytes, "FillRandomBytes");
|
|
1084
1099
|
function GenRandomBytes(size) {
|
|
1085
1100
|
if (typeof Uint8Array === "function") {
|
|
1086
1101
|
var array = new Uint8Array(size);
|
|
@@ -1095,6 +1110,7 @@ var require_Reflect = __commonJS({
|
|
|
1095
1110
|
}
|
|
1096
1111
|
return FillRandomBytes(new Array(size), size);
|
|
1097
1112
|
}
|
|
1113
|
+
__name(GenRandomBytes, "GenRandomBytes");
|
|
1098
1114
|
function CreateUUID() {
|
|
1099
1115
|
var data = GenRandomBytes(UUID_SIZE);
|
|
1100
1116
|
data[6] = data[6] & 79 | 64;
|
|
@@ -1102,20 +1118,21 @@ var require_Reflect = __commonJS({
|
|
|
1102
1118
|
var result = "";
|
|
1103
1119
|
for (var offset = 0; offset < UUID_SIZE; ++offset) {
|
|
1104
1120
|
var byte = data[offset];
|
|
1105
|
-
if (offset === 4 || offset === 6 || offset === 8)
|
|
1106
|
-
|
|
1107
|
-
if (byte < 16)
|
|
1108
|
-
result += "0";
|
|
1121
|
+
if (offset === 4 || offset === 6 || offset === 8) result += "-";
|
|
1122
|
+
if (byte < 16) result += "0";
|
|
1109
1123
|
result += byte.toString(16).toLowerCase();
|
|
1110
1124
|
}
|
|
1111
1125
|
return result;
|
|
1112
1126
|
}
|
|
1127
|
+
__name(CreateUUID, "CreateUUID");
|
|
1113
1128
|
}
|
|
1129
|
+
__name(CreateWeakMapPolyfill, "CreateWeakMapPolyfill");
|
|
1114
1130
|
function MakeDictionary(obj) {
|
|
1115
1131
|
obj.__ = void 0;
|
|
1116
1132
|
delete obj.__;
|
|
1117
1133
|
return obj;
|
|
1118
1134
|
}
|
|
1135
|
+
__name(MakeDictionary, "MakeDictionary");
|
|
1119
1136
|
});
|
|
1120
1137
|
})(Reflect2 || (Reflect2 = {}));
|
|
1121
1138
|
}
|
|
@@ -1138,27 +1155,32 @@ var Lifecycle;
|
|
|
1138
1155
|
var lifecycle_default = Lifecycle;
|
|
1139
1156
|
|
|
1140
1157
|
// ../../node_modules/.pnpm/tslib@1.14.1/node_modules/tslib/tslib.es6.js
|
|
1141
|
-
var extendStatics = function(d, b) {
|
|
1142
|
-
extendStatics = Object.setPrototypeOf || {
|
|
1158
|
+
var extendStatics = /* @__PURE__ */ __name(function(d, b) {
|
|
1159
|
+
extendStatics = Object.setPrototypeOf || {
|
|
1160
|
+
__proto__: []
|
|
1161
|
+
} instanceof Array && function(d2, b2) {
|
|
1143
1162
|
d2.__proto__ = b2;
|
|
1144
1163
|
} || function(d2, b2) {
|
|
1145
1164
|
for (var p in b2) if (b2.hasOwnProperty(p)) d2[p] = b2[p];
|
|
1146
1165
|
};
|
|
1147
1166
|
return extendStatics(d, b);
|
|
1148
|
-
};
|
|
1167
|
+
}, "extendStatics");
|
|
1149
1168
|
function __extends(d, b) {
|
|
1150
1169
|
extendStatics(d, b);
|
|
1151
1170
|
function __() {
|
|
1152
1171
|
this.constructor = d;
|
|
1153
1172
|
}
|
|
1173
|
+
__name(__, "__");
|
|
1154
1174
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1155
1175
|
}
|
|
1176
|
+
__name(__extends, "__extends");
|
|
1156
1177
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
1157
1178
|
function adopt(value) {
|
|
1158
1179
|
return value instanceof P ? value : new P(function(resolve) {
|
|
1159
1180
|
resolve(value);
|
|
1160
1181
|
});
|
|
1161
1182
|
}
|
|
1183
|
+
__name(adopt, "adopt");
|
|
1162
1184
|
return new (P || (P = Promise))(function(resolve, reject) {
|
|
1163
1185
|
function fulfilled(value) {
|
|
1164
1186
|
try {
|
|
@@ -1167,6 +1189,7 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
1167
1189
|
reject(e);
|
|
1168
1190
|
}
|
|
1169
1191
|
}
|
|
1192
|
+
__name(fulfilled, "fulfilled");
|
|
1170
1193
|
function rejected(value) {
|
|
1171
1194
|
try {
|
|
1172
1195
|
step(generator["throw"](value));
|
|
@@ -1174,30 +1197,49 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
1174
1197
|
reject(e);
|
|
1175
1198
|
}
|
|
1176
1199
|
}
|
|
1200
|
+
__name(rejected, "rejected");
|
|
1177
1201
|
function step(result) {
|
|
1178
1202
|
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
1179
1203
|
}
|
|
1204
|
+
__name(step, "step");
|
|
1180
1205
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1181
1206
|
});
|
|
1182
1207
|
}
|
|
1208
|
+
__name(__awaiter, "__awaiter");
|
|
1183
1209
|
function __generator(thisArg, body) {
|
|
1184
|
-
var _ = {
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1210
|
+
var _ = {
|
|
1211
|
+
label: 0,
|
|
1212
|
+
sent: /* @__PURE__ */ __name(function() {
|
|
1213
|
+
if (t[0] & 1) throw t[1];
|
|
1214
|
+
return t[1];
|
|
1215
|
+
}, "sent"),
|
|
1216
|
+
trys: [],
|
|
1217
|
+
ops: []
|
|
1218
|
+
}, f, y, t, g;
|
|
1219
|
+
return g = {
|
|
1220
|
+
next: verb(0),
|
|
1221
|
+
"throw": verb(1),
|
|
1222
|
+
"return": verb(2)
|
|
1223
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
1189
1224
|
return this;
|
|
1190
1225
|
}), g;
|
|
1191
1226
|
function verb(n) {
|
|
1192
1227
|
return function(v) {
|
|
1193
|
-
return step([
|
|
1228
|
+
return step([
|
|
1229
|
+
n,
|
|
1230
|
+
v
|
|
1231
|
+
]);
|
|
1194
1232
|
};
|
|
1195
1233
|
}
|
|
1234
|
+
__name(verb, "verb");
|
|
1196
1235
|
function step(op) {
|
|
1197
1236
|
if (f) throw new TypeError("Generator is already executing.");
|
|
1198
1237
|
while (_) try {
|
|
1199
1238
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
1200
|
-
if (y = 0, t) op = [
|
|
1239
|
+
if (y = 0, t) op = [
|
|
1240
|
+
op[0] & 2,
|
|
1241
|
+
t.value
|
|
1242
|
+
];
|
|
1201
1243
|
switch (op[0]) {
|
|
1202
1244
|
case 0:
|
|
1203
1245
|
case 1:
|
|
@@ -1205,11 +1247,16 @@ function __generator(thisArg, body) {
|
|
|
1205
1247
|
break;
|
|
1206
1248
|
case 4:
|
|
1207
1249
|
_.label++;
|
|
1208
|
-
return {
|
|
1250
|
+
return {
|
|
1251
|
+
value: op[1],
|
|
1252
|
+
done: false
|
|
1253
|
+
};
|
|
1209
1254
|
case 5:
|
|
1210
1255
|
_.label++;
|
|
1211
1256
|
y = op[1];
|
|
1212
|
-
op = [
|
|
1257
|
+
op = [
|
|
1258
|
+
0
|
|
1259
|
+
];
|
|
1213
1260
|
continue;
|
|
1214
1261
|
case 7:
|
|
1215
1262
|
op = _.ops.pop();
|
|
@@ -1240,26 +1287,38 @@ function __generator(thisArg, body) {
|
|
|
1240
1287
|
}
|
|
1241
1288
|
op = body.call(thisArg, _);
|
|
1242
1289
|
} catch (e) {
|
|
1243
|
-
op = [
|
|
1290
|
+
op = [
|
|
1291
|
+
6,
|
|
1292
|
+
e
|
|
1293
|
+
];
|
|
1244
1294
|
y = 0;
|
|
1245
1295
|
} finally {
|
|
1246
1296
|
f = t = 0;
|
|
1247
1297
|
}
|
|
1248
1298
|
if (op[0] & 5) throw op[1];
|
|
1249
|
-
return {
|
|
1299
|
+
return {
|
|
1300
|
+
value: op[0] ? op[1] : void 0,
|
|
1301
|
+
done: true
|
|
1302
|
+
};
|
|
1250
1303
|
}
|
|
1304
|
+
__name(step, "step");
|
|
1251
1305
|
}
|
|
1306
|
+
__name(__generator, "__generator");
|
|
1252
1307
|
function __values(o) {
|
|
1253
1308
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
1254
1309
|
if (m) return m.call(o);
|
|
1255
1310
|
if (o && typeof o.length === "number") return {
|
|
1256
|
-
next: function() {
|
|
1311
|
+
next: /* @__PURE__ */ __name(function() {
|
|
1257
1312
|
if (o && i >= o.length) o = void 0;
|
|
1258
|
-
return {
|
|
1259
|
-
|
|
1313
|
+
return {
|
|
1314
|
+
value: o && o[i++],
|
|
1315
|
+
done: !o
|
|
1316
|
+
};
|
|
1317
|
+
}, "next")
|
|
1260
1318
|
};
|
|
1261
1319
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
1262
1320
|
}
|
|
1321
|
+
__name(__values, "__values");
|
|
1263
1322
|
function __read(o, n) {
|
|
1264
1323
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
1265
1324
|
if (!m) return o;
|
|
@@ -1267,7 +1326,9 @@ function __read(o, n) {
|
|
|
1267
1326
|
try {
|
|
1268
1327
|
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
1269
1328
|
} catch (error) {
|
|
1270
|
-
e = {
|
|
1329
|
+
e = {
|
|
1330
|
+
error
|
|
1331
|
+
};
|
|
1271
1332
|
} finally {
|
|
1272
1333
|
try {
|
|
1273
1334
|
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
@@ -1277,11 +1338,12 @@ function __read(o, n) {
|
|
|
1277
1338
|
}
|
|
1278
1339
|
return ar;
|
|
1279
1340
|
}
|
|
1341
|
+
__name(__read, "__read");
|
|
1280
1342
|
function __spread() {
|
|
1281
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
1282
|
-
ar = ar.concat(__read(arguments[i]));
|
|
1343
|
+
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
|
|
1283
1344
|
return ar;
|
|
1284
1345
|
}
|
|
1346
|
+
__name(__spread, "__spread");
|
|
1285
1347
|
|
|
1286
1348
|
// ../../node_modules/.pnpm/tsyringe@4.8.0/node_modules/tsyringe/dist/esm5/reflection-helpers.js
|
|
1287
1349
|
var INJECTION_TOKEN_METADATA_KEY = "injectionTokens";
|
|
@@ -1293,6 +1355,7 @@ function getParamInfo(target) {
|
|
|
1293
1355
|
});
|
|
1294
1356
|
return params;
|
|
1295
1357
|
}
|
|
1358
|
+
__name(getParamInfo, "getParamInfo");
|
|
1296
1359
|
function defineInjectionTokenMetadata(data, transform) {
|
|
1297
1360
|
return function(target, _propertyKey, parameterIndex) {
|
|
1298
1361
|
var descriptors = Reflect.getOwnMetadata(INJECTION_TOKEN_METADATA_KEY, target) || {};
|
|
@@ -1304,16 +1367,19 @@ function defineInjectionTokenMetadata(data, transform) {
|
|
|
1304
1367
|
Reflect.defineMetadata(INJECTION_TOKEN_METADATA_KEY, descriptors, target);
|
|
1305
1368
|
};
|
|
1306
1369
|
}
|
|
1370
|
+
__name(defineInjectionTokenMetadata, "defineInjectionTokenMetadata");
|
|
1307
1371
|
|
|
1308
1372
|
// ../../node_modules/.pnpm/tsyringe@4.8.0/node_modules/tsyringe/dist/esm5/providers/class-provider.js
|
|
1309
1373
|
function isClassProvider(provider) {
|
|
1310
1374
|
return !!provider.useClass;
|
|
1311
1375
|
}
|
|
1376
|
+
__name(isClassProvider, "isClassProvider");
|
|
1312
1377
|
|
|
1313
1378
|
// ../../node_modules/.pnpm/tsyringe@4.8.0/node_modules/tsyringe/dist/esm5/providers/factory-provider.js
|
|
1314
1379
|
function isFactoryProvider(provider) {
|
|
1315
1380
|
return !!provider.useFactory;
|
|
1316
1381
|
}
|
|
1382
|
+
__name(isFactoryProvider, "isFactoryProvider");
|
|
1317
1383
|
|
|
1318
1384
|
// ../../node_modules/.pnpm/tsyringe@4.8.0/node_modules/tsyringe/dist/esm5/lazy-helpers.js
|
|
1319
1385
|
var DelayedConstructor = function() {
|
|
@@ -1333,23 +1399,24 @@ var DelayedConstructor = function() {
|
|
|
1333
1399
|
"ownKeys"
|
|
1334
1400
|
];
|
|
1335
1401
|
}
|
|
1402
|
+
__name(DelayedConstructor2, "DelayedConstructor");
|
|
1336
1403
|
DelayedConstructor2.prototype.createProxy = function(createObject) {
|
|
1337
1404
|
var _this = this;
|
|
1338
1405
|
var target = {};
|
|
1339
1406
|
var init = false;
|
|
1340
1407
|
var value;
|
|
1341
|
-
var delayedObject = function() {
|
|
1408
|
+
var delayedObject = /* @__PURE__ */ __name(function() {
|
|
1342
1409
|
if (!init) {
|
|
1343
1410
|
value = createObject(_this.wrap());
|
|
1344
1411
|
init = true;
|
|
1345
1412
|
}
|
|
1346
1413
|
return value;
|
|
1347
|
-
};
|
|
1414
|
+
}, "delayedObject");
|
|
1348
1415
|
return new Proxy(target, this.createHandler(delayedObject));
|
|
1349
1416
|
};
|
|
1350
1417
|
DelayedConstructor2.prototype.createHandler = function(delayedObject) {
|
|
1351
1418
|
var handler = {};
|
|
1352
|
-
var install = function(name) {
|
|
1419
|
+
var install = /* @__PURE__ */ __name(function(name) {
|
|
1353
1420
|
handler[name] = function() {
|
|
1354
1421
|
var args = [];
|
|
1355
1422
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
@@ -1359,7 +1426,7 @@ var DelayedConstructor = function() {
|
|
|
1359
1426
|
var method = Reflect[name];
|
|
1360
1427
|
return method.apply(void 0, __spread(args));
|
|
1361
1428
|
};
|
|
1362
|
-
};
|
|
1429
|
+
}, "install");
|
|
1363
1430
|
this.reflectMethods.forEach(install);
|
|
1364
1431
|
return handler;
|
|
1365
1432
|
};
|
|
@@ -1370,36 +1437,44 @@ var DelayedConstructor = function() {
|
|
|
1370
1437
|
function isNormalToken(token) {
|
|
1371
1438
|
return typeof token === "string" || typeof token === "symbol";
|
|
1372
1439
|
}
|
|
1440
|
+
__name(isNormalToken, "isNormalToken");
|
|
1373
1441
|
function isTokenDescriptor(descriptor) {
|
|
1374
1442
|
return typeof descriptor === "object" && "token" in descriptor && "multiple" in descriptor;
|
|
1375
1443
|
}
|
|
1444
|
+
__name(isTokenDescriptor, "isTokenDescriptor");
|
|
1376
1445
|
function isTransformDescriptor(descriptor) {
|
|
1377
1446
|
return typeof descriptor === "object" && "token" in descriptor && "transform" in descriptor;
|
|
1378
1447
|
}
|
|
1448
|
+
__name(isTransformDescriptor, "isTransformDescriptor");
|
|
1379
1449
|
function isConstructorToken(token) {
|
|
1380
1450
|
return typeof token === "function" || token instanceof DelayedConstructor;
|
|
1381
1451
|
}
|
|
1452
|
+
__name(isConstructorToken, "isConstructorToken");
|
|
1382
1453
|
|
|
1383
1454
|
// ../../node_modules/.pnpm/tsyringe@4.8.0/node_modules/tsyringe/dist/esm5/providers/token-provider.js
|
|
1384
1455
|
function isTokenProvider(provider) {
|
|
1385
1456
|
return !!provider.useToken;
|
|
1386
1457
|
}
|
|
1458
|
+
__name(isTokenProvider, "isTokenProvider");
|
|
1387
1459
|
|
|
1388
1460
|
// ../../node_modules/.pnpm/tsyringe@4.8.0/node_modules/tsyringe/dist/esm5/providers/value-provider.js
|
|
1389
1461
|
function isValueProvider(provider) {
|
|
1390
1462
|
return provider.useValue != void 0;
|
|
1391
1463
|
}
|
|
1464
|
+
__name(isValueProvider, "isValueProvider");
|
|
1392
1465
|
|
|
1393
1466
|
// ../../node_modules/.pnpm/tsyringe@4.8.0/node_modules/tsyringe/dist/esm5/providers/provider.js
|
|
1394
1467
|
function isProvider(provider) {
|
|
1395
1468
|
return isClassProvider(provider) || isValueProvider(provider) || isTokenProvider(provider) || isFactoryProvider(provider);
|
|
1396
1469
|
}
|
|
1470
|
+
__name(isProvider, "isProvider");
|
|
1397
1471
|
|
|
1398
1472
|
// ../../node_modules/.pnpm/tsyringe@4.8.0/node_modules/tsyringe/dist/esm5/registry-base.js
|
|
1399
1473
|
var RegistryBase = function() {
|
|
1400
1474
|
function RegistryBase2() {
|
|
1401
1475
|
this._registryMap = /* @__PURE__ */ new Map();
|
|
1402
1476
|
}
|
|
1477
|
+
__name(RegistryBase2, "RegistryBase");
|
|
1403
1478
|
RegistryBase2.prototype.entries = function() {
|
|
1404
1479
|
return this._registryMap.entries();
|
|
1405
1480
|
};
|
|
@@ -1441,6 +1516,7 @@ var Registry = function(_super) {
|
|
|
1441
1516
|
function Registry2() {
|
|
1442
1517
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1443
1518
|
}
|
|
1519
|
+
__name(Registry2, "Registry");
|
|
1444
1520
|
return Registry2;
|
|
1445
1521
|
}(registry_base_default);
|
|
1446
1522
|
var registry_default = Registry;
|
|
@@ -1450,6 +1526,7 @@ var ResolutionContext = /* @__PURE__ */ function() {
|
|
|
1450
1526
|
function ResolutionContext2() {
|
|
1451
1527
|
this.scopedResolutions = /* @__PURE__ */ new Map();
|
|
1452
1528
|
}
|
|
1529
|
+
__name(ResolutionContext2, "ResolutionContext");
|
|
1453
1530
|
return ResolutionContext2;
|
|
1454
1531
|
}();
|
|
1455
1532
|
var resolution_context_default = ResolutionContext;
|
|
@@ -1462,30 +1539,35 @@ function formatDependency(params, idx) {
|
|
|
1462
1539
|
var argName = params.split(",")[idx].trim();
|
|
1463
1540
|
return '"' + argName + '" at position #' + idx;
|
|
1464
1541
|
}
|
|
1542
|
+
__name(formatDependency, "formatDependency");
|
|
1465
1543
|
function composeErrorMessage(msg, e, indent) {
|
|
1466
1544
|
if (indent === void 0) {
|
|
1467
1545
|
indent = " ";
|
|
1468
1546
|
}
|
|
1469
|
-
return __spread([
|
|
1547
|
+
return __spread([
|
|
1548
|
+
msg
|
|
1549
|
+
], e.message.split("\n").map(function(l) {
|
|
1470
1550
|
return indent + l;
|
|
1471
1551
|
})).join("\n");
|
|
1472
1552
|
}
|
|
1553
|
+
__name(composeErrorMessage, "composeErrorMessage");
|
|
1473
1554
|
function formatErrorCtor(ctor, paramIdx, error) {
|
|
1474
1555
|
var _a = __read(ctor.toString().match(/constructor\(([\w, ]+)\)/) || [], 2), _b = _a[1], params = _b === void 0 ? null : _b;
|
|
1475
1556
|
var dep = formatDependency(params, paramIdx);
|
|
1476
1557
|
return composeErrorMessage("Cannot inject the dependency " + dep + ' of "' + ctor.name + '" constructor. Reason:', error);
|
|
1477
1558
|
}
|
|
1559
|
+
__name(formatErrorCtor, "formatErrorCtor");
|
|
1478
1560
|
|
|
1479
1561
|
// ../../node_modules/.pnpm/tsyringe@4.8.0/node_modules/tsyringe/dist/esm5/types/disposable.js
|
|
1480
1562
|
function isDisposable(value) {
|
|
1481
|
-
if (typeof value.dispose !== "function")
|
|
1482
|
-
return false;
|
|
1563
|
+
if (typeof value.dispose !== "function") return false;
|
|
1483
1564
|
var disposeFun = value.dispose;
|
|
1484
1565
|
if (disposeFun.length > 0) {
|
|
1485
1566
|
return false;
|
|
1486
1567
|
}
|
|
1487
1568
|
return true;
|
|
1488
1569
|
}
|
|
1570
|
+
__name(isDisposable, "isDisposable");
|
|
1489
1571
|
|
|
1490
1572
|
// ../../node_modules/.pnpm/tsyringe@4.8.0/node_modules/tsyringe/dist/esm5/interceptors.js
|
|
1491
1573
|
var PreResolutionInterceptors = function(_super) {
|
|
@@ -1493,6 +1575,7 @@ var PreResolutionInterceptors = function(_super) {
|
|
|
1493
1575
|
function PreResolutionInterceptors2() {
|
|
1494
1576
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1495
1577
|
}
|
|
1578
|
+
__name(PreResolutionInterceptors2, "PreResolutionInterceptors");
|
|
1496
1579
|
return PreResolutionInterceptors2;
|
|
1497
1580
|
}(registry_base_default);
|
|
1498
1581
|
var PostResolutionInterceptors = function(_super) {
|
|
@@ -1500,6 +1583,7 @@ var PostResolutionInterceptors = function(_super) {
|
|
|
1500
1583
|
function PostResolutionInterceptors2() {
|
|
1501
1584
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1502
1585
|
}
|
|
1586
|
+
__name(PostResolutionInterceptors2, "PostResolutionInterceptors");
|
|
1503
1587
|
return PostResolutionInterceptors2;
|
|
1504
1588
|
}(registry_base_default);
|
|
1505
1589
|
var Interceptors = /* @__PURE__ */ function() {
|
|
@@ -1507,6 +1591,7 @@ var Interceptors = /* @__PURE__ */ function() {
|
|
|
1507
1591
|
this.preResolution = new PreResolutionInterceptors();
|
|
1508
1592
|
this.postResolution = new PostResolutionInterceptors();
|
|
1509
1593
|
}
|
|
1594
|
+
__name(Interceptors2, "Interceptors");
|
|
1510
1595
|
return Interceptors2;
|
|
1511
1596
|
}();
|
|
1512
1597
|
var interceptors_default = Interceptors;
|
|
@@ -1521,24 +1606,33 @@ var InternalDependencyContainer = function() {
|
|
|
1521
1606
|
this.disposed = false;
|
|
1522
1607
|
this.disposables = /* @__PURE__ */ new Set();
|
|
1523
1608
|
}
|
|
1609
|
+
__name(InternalDependencyContainer2, "InternalDependencyContainer");
|
|
1524
1610
|
InternalDependencyContainer2.prototype.register = function(token, providerOrConstructor, options) {
|
|
1525
1611
|
if (options === void 0) {
|
|
1526
|
-
options = {
|
|
1612
|
+
options = {
|
|
1613
|
+
lifecycle: lifecycle_default.Transient
|
|
1614
|
+
};
|
|
1527
1615
|
}
|
|
1528
1616
|
this.ensureNotDisposed();
|
|
1529
1617
|
var provider;
|
|
1530
1618
|
if (!isProvider(providerOrConstructor)) {
|
|
1531
|
-
provider = {
|
|
1619
|
+
provider = {
|
|
1620
|
+
useClass: providerOrConstructor
|
|
1621
|
+
};
|
|
1532
1622
|
} else {
|
|
1533
1623
|
provider = providerOrConstructor;
|
|
1534
1624
|
}
|
|
1535
1625
|
if (isTokenProvider(provider)) {
|
|
1536
|
-
var path = [
|
|
1626
|
+
var path = [
|
|
1627
|
+
token
|
|
1628
|
+
];
|
|
1537
1629
|
var tokenProvider = provider;
|
|
1538
1630
|
while (tokenProvider != null) {
|
|
1539
1631
|
var currentToken = tokenProvider.useToken;
|
|
1540
1632
|
if (path.includes(currentToken)) {
|
|
1541
|
-
throw new Error("Token registration cycle detected! " + __spread(path, [
|
|
1633
|
+
throw new Error("Token registration cycle detected! " + __spread(path, [
|
|
1634
|
+
currentToken
|
|
1635
|
+
]).join(" -> "));
|
|
1542
1636
|
}
|
|
1543
1637
|
path.push(currentToken);
|
|
1544
1638
|
var registration = this._registry.get(currentToken);
|
|
@@ -1554,7 +1648,10 @@ var InternalDependencyContainer = function() {
|
|
|
1554
1648
|
throw new Error('Cannot use lifecycle "' + lifecycle_default[options.lifecycle] + '" with ValueProviders or FactoryProviders');
|
|
1555
1649
|
}
|
|
1556
1650
|
}
|
|
1557
|
-
this._registry.set(token, {
|
|
1651
|
+
this._registry.set(token, {
|
|
1652
|
+
provider,
|
|
1653
|
+
options
|
|
1654
|
+
});
|
|
1558
1655
|
return this;
|
|
1559
1656
|
};
|
|
1560
1657
|
InternalDependencyContainer2.prototype.registerType = function(from, to) {
|
|
@@ -1580,11 +1677,15 @@ var InternalDependencyContainer = function() {
|
|
|
1580
1677
|
if (isNormalToken(to)) {
|
|
1581
1678
|
return this.register(from, {
|
|
1582
1679
|
useToken: to
|
|
1583
|
-
}, {
|
|
1680
|
+
}, {
|
|
1681
|
+
lifecycle: lifecycle_default.Singleton
|
|
1682
|
+
});
|
|
1584
1683
|
} else if (to) {
|
|
1585
1684
|
return this.register(from, {
|
|
1586
1685
|
useClass: to
|
|
1587
|
-
}, {
|
|
1686
|
+
}, {
|
|
1687
|
+
lifecycle: lifecycle_default.Singleton
|
|
1688
|
+
});
|
|
1588
1689
|
}
|
|
1589
1690
|
throw new Error('Cannot register a type name as a singleton without a "to" token');
|
|
1590
1691
|
}
|
|
@@ -1594,7 +1695,9 @@ var InternalDependencyContainer = function() {
|
|
|
1594
1695
|
}
|
|
1595
1696
|
return this.register(from, {
|
|
1596
1697
|
useClass
|
|
1597
|
-
}, {
|
|
1698
|
+
}, {
|
|
1699
|
+
lifecycle: lifecycle_default.Singleton
|
|
1700
|
+
});
|
|
1598
1701
|
};
|
|
1599
1702
|
InternalDependencyContainer2.prototype.resolve = function(token, context) {
|
|
1600
1703
|
if (context === void 0) {
|
|
@@ -1631,7 +1734,9 @@ var InternalDependencyContainer = function() {
|
|
|
1631
1734
|
interceptor.callback(token, resolutionType);
|
|
1632
1735
|
}
|
|
1633
1736
|
} catch (e_1_1) {
|
|
1634
|
-
e_1 = {
|
|
1737
|
+
e_1 = {
|
|
1738
|
+
error: e_1_1
|
|
1739
|
+
};
|
|
1635
1740
|
} finally {
|
|
1636
1741
|
try {
|
|
1637
1742
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
@@ -1655,7 +1760,9 @@ var InternalDependencyContainer = function() {
|
|
|
1655
1760
|
interceptor.callback(token, result, resolutionType);
|
|
1656
1761
|
}
|
|
1657
1762
|
} catch (e_2_1) {
|
|
1658
|
-
e_2 = {
|
|
1763
|
+
e_2 = {
|
|
1764
|
+
error: e_2_1
|
|
1765
|
+
};
|
|
1659
1766
|
} finally {
|
|
1660
1767
|
try {
|
|
1661
1768
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
@@ -1709,7 +1816,9 @@ var InternalDependencyContainer = function() {
|
|
|
1709
1816
|
this.executePostResolutionInterceptor(token, result_1, "All");
|
|
1710
1817
|
return result_1;
|
|
1711
1818
|
}
|
|
1712
|
-
var result = [
|
|
1819
|
+
var result = [
|
|
1820
|
+
this.construct(token, context)
|
|
1821
|
+
];
|
|
1713
1822
|
this.executePostResolutionInterceptor(token, result, "All");
|
|
1714
1823
|
return result;
|
|
1715
1824
|
};
|
|
@@ -1740,7 +1849,9 @@ var InternalDependencyContainer = function() {
|
|
|
1740
1849
|
}));
|
|
1741
1850
|
}
|
|
1742
1851
|
} catch (e_3_1) {
|
|
1743
|
-
e_3 = {
|
|
1852
|
+
e_3 = {
|
|
1853
|
+
error: e_3_1
|
|
1854
|
+
};
|
|
1744
1855
|
} finally {
|
|
1745
1856
|
try {
|
|
1746
1857
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
@@ -1772,7 +1883,9 @@ var InternalDependencyContainer = function() {
|
|
|
1772
1883
|
}
|
|
1773
1884
|
}
|
|
1774
1885
|
} catch (e_4_1) {
|
|
1775
|
-
e_4 = {
|
|
1886
|
+
e_4 = {
|
|
1887
|
+
error: e_4_1
|
|
1888
|
+
};
|
|
1776
1889
|
} finally {
|
|
1777
1890
|
try {
|
|
1778
1891
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
@@ -1784,7 +1897,9 @@ var InternalDependencyContainer = function() {
|
|
|
1784
1897
|
};
|
|
1785
1898
|
InternalDependencyContainer2.prototype.beforeResolution = function(token, callback, options) {
|
|
1786
1899
|
if (options === void 0) {
|
|
1787
|
-
options = {
|
|
1900
|
+
options = {
|
|
1901
|
+
frequency: "Always"
|
|
1902
|
+
};
|
|
1788
1903
|
}
|
|
1789
1904
|
this.interceptors.preResolution.set(token, {
|
|
1790
1905
|
callback,
|
|
@@ -1793,7 +1908,9 @@ var InternalDependencyContainer = function() {
|
|
|
1793
1908
|
};
|
|
1794
1909
|
InternalDependencyContainer2.prototype.afterResolution = function(token, callback, options) {
|
|
1795
1910
|
if (options === void 0) {
|
|
1796
|
-
options = {
|
|
1911
|
+
options = {
|
|
1912
|
+
frequency: "Always"
|
|
1913
|
+
};
|
|
1797
1914
|
}
|
|
1798
1915
|
this.interceptors.postResolution.set(token, {
|
|
1799
1916
|
callback,
|
|
@@ -1814,10 +1931,15 @@ var InternalDependencyContainer = function() {
|
|
|
1814
1931
|
promises.push(maybePromise);
|
|
1815
1932
|
}
|
|
1816
1933
|
});
|
|
1817
|
-
return [
|
|
1934
|
+
return [
|
|
1935
|
+
4,
|
|
1936
|
+
Promise.all(promises)
|
|
1937
|
+
];
|
|
1818
1938
|
case 1:
|
|
1819
1939
|
_a.sent();
|
|
1820
|
-
return [
|
|
1940
|
+
return [
|
|
1941
|
+
2
|
|
1942
|
+
];
|
|
1821
1943
|
}
|
|
1822
1944
|
});
|
|
1823
1945
|
});
|
|
@@ -1857,7 +1979,9 @@ var InternalDependencyContainer = function() {
|
|
|
1857
1979
|
}
|
|
1858
1980
|
}
|
|
1859
1981
|
var params = paramInfo.map(_this.resolveParams(context, ctor));
|
|
1860
|
-
return new (ctor.bind.apply(ctor, __spread([
|
|
1982
|
+
return new (ctor.bind.apply(ctor, __spread([
|
|
1983
|
+
void 0
|
|
1984
|
+
], params)))();
|
|
1861
1985
|
}();
|
|
1862
1986
|
if (isDisposable(instance2)) {
|
|
1863
1987
|
this.disposables.add(instance2);
|
|
@@ -1871,12 +1995,18 @@ var InternalDependencyContainer = function() {
|
|
|
1871
1995
|
try {
|
|
1872
1996
|
if (isTokenDescriptor(param)) {
|
|
1873
1997
|
if (isTransformDescriptor(param)) {
|
|
1874
|
-
return param.multiple ? (_a = _this.resolve(param.transform)).transform.apply(_a, __spread([
|
|
1998
|
+
return param.multiple ? (_a = _this.resolve(param.transform)).transform.apply(_a, __spread([
|
|
1999
|
+
_this.resolveAll(param.token)
|
|
2000
|
+
], param.transformArgs)) : (_b = _this.resolve(param.transform)).transform.apply(_b, __spread([
|
|
2001
|
+
_this.resolve(param.token, context)
|
|
2002
|
+
], param.transformArgs));
|
|
1875
2003
|
} else {
|
|
1876
2004
|
return param.multiple ? _this.resolveAll(param.token) : _this.resolve(param.token, context);
|
|
1877
2005
|
}
|
|
1878
2006
|
} else if (isTransformDescriptor(param)) {
|
|
1879
|
-
return (_c = _this.resolve(param.transform, context)).transform.apply(_c, __spread([
|
|
2007
|
+
return (_c = _this.resolve(param.transform, context)).transform.apply(_c, __spread([
|
|
2008
|
+
_this.resolve(param.token, context)
|
|
2009
|
+
], param.transformArgs));
|
|
1880
2010
|
}
|
|
1881
2011
|
return _this.resolve(param, context);
|
|
1882
2012
|
} catch (e) {
|
|
@@ -1897,6 +2027,7 @@ var instance = new InternalDependencyContainer();
|
|
|
1897
2027
|
function inject(token) {
|
|
1898
2028
|
return defineInjectionTokenMetadata(token);
|
|
1899
2029
|
}
|
|
2030
|
+
__name(inject, "inject");
|
|
1900
2031
|
var inject_default = inject;
|
|
1901
2032
|
|
|
1902
2033
|
// ../../node_modules/.pnpm/tsyringe@4.8.0/node_modules/tsyringe/dist/esm5/decorators/injectable.js
|
|
@@ -1905,6 +2036,7 @@ function injectable() {
|
|
|
1905
2036
|
typeInfo.set(target, getParamInfo(target));
|
|
1906
2037
|
};
|
|
1907
2038
|
}
|
|
2039
|
+
__name(injectable, "injectable");
|
|
1908
2040
|
var injectable_default = injectable;
|
|
1909
2041
|
|
|
1910
2042
|
// ../../node_modules/.pnpm/tsyringe@4.8.0/node_modules/tsyringe/dist/esm5/decorators/singleton.js
|
|
@@ -1914,6 +2046,7 @@ function singleton() {
|
|
|
1914
2046
|
instance.registerSingleton(target);
|
|
1915
2047
|
};
|
|
1916
2048
|
}
|
|
2049
|
+
__name(singleton, "singleton");
|
|
1917
2050
|
var singleton_default = singleton;
|
|
1918
2051
|
|
|
1919
2052
|
// ../../node_modules/.pnpm/tsyringe@4.8.0/node_modules/tsyringe/dist/esm5/index.js
|
|
@@ -1926,17 +2059,30 @@ import { Subject } from "rxjs";
|
|
|
1926
2059
|
|
|
1927
2060
|
// src/core/app/app.component.ts
|
|
1928
2061
|
import { ProxyReceiver } from "@quick-threejs/utils";
|
|
2062
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
2063
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2064
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2065
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2066
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2067
|
+
}
|
|
2068
|
+
__name(_ts_decorate, "_ts_decorate");
|
|
1929
2069
|
var AppComponent = class {
|
|
2070
|
+
static {
|
|
2071
|
+
__name(this, "AppComponent");
|
|
2072
|
+
}
|
|
1930
2073
|
proxyReceiver = new ProxyReceiver();
|
|
1931
2074
|
initialized = false;
|
|
1932
2075
|
canvas;
|
|
1933
2076
|
};
|
|
1934
|
-
AppComponent =
|
|
2077
|
+
AppComponent = _ts_decorate([
|
|
1935
2078
|
singleton_default()
|
|
1936
2079
|
], AppComponent);
|
|
1937
2080
|
|
|
1938
2081
|
// src/common/models/proxy-event-subjects.models.ts
|
|
1939
2082
|
var ProxyEventSubjectsModel = class {
|
|
2083
|
+
static {
|
|
2084
|
+
__name(this, "ProxyEventSubjectsModel");
|
|
2085
|
+
}
|
|
1940
2086
|
contextmenu$$;
|
|
1941
2087
|
resize$$;
|
|
1942
2088
|
mousedown$$;
|
|
@@ -1955,6 +2101,9 @@ var ProxyEventSubjectsModel = class {
|
|
|
1955
2101
|
|
|
1956
2102
|
// src/common/models/proxy-event-observables.model.ts
|
|
1957
2103
|
var ProxyEventObservablesModel = class extends ProxyEventSubjectsModel {
|
|
2104
|
+
static {
|
|
2105
|
+
__name(this, "ProxyEventObservablesModel");
|
|
2106
|
+
}
|
|
1958
2107
|
contextmenu$;
|
|
1959
2108
|
resize$;
|
|
1960
2109
|
mousedown$;
|
|
@@ -1973,6 +2122,9 @@ var ProxyEventObservablesModel = class extends ProxyEventSubjectsModel {
|
|
|
1973
2122
|
|
|
1974
2123
|
// src/common/models/proxy-event-handler.model.ts
|
|
1975
2124
|
var ProxyEventHandlersModel = class extends ProxyEventObservablesModel {
|
|
2125
|
+
static {
|
|
2126
|
+
__name(this, "ProxyEventHandlersModel");
|
|
2127
|
+
}
|
|
1976
2128
|
contextmenu;
|
|
1977
2129
|
resize;
|
|
1978
2130
|
mousedown;
|
|
@@ -2008,10 +2160,32 @@ var PROXY_EVENT_LISTENERS = [
|
|
|
2008
2160
|
];
|
|
2009
2161
|
|
|
2010
2162
|
// src/core/app/app.controller.ts
|
|
2163
|
+
function _ts_decorate2(decorators, target, key, desc) {
|
|
2164
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2165
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2166
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2167
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2168
|
+
}
|
|
2169
|
+
__name(_ts_decorate2, "_ts_decorate");
|
|
2170
|
+
function _ts_metadata(k, v) {
|
|
2171
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2172
|
+
}
|
|
2173
|
+
__name(_ts_metadata, "_ts_metadata");
|
|
2174
|
+
function _ts_param(paramIndex, decorator) {
|
|
2175
|
+
return function(target, key) {
|
|
2176
|
+
decorator(target, key, paramIndex);
|
|
2177
|
+
};
|
|
2178
|
+
}
|
|
2179
|
+
__name(_ts_param, "_ts_param");
|
|
2011
2180
|
var AppController = class extends ProxyEventHandlersModel {
|
|
2181
|
+
static {
|
|
2182
|
+
__name(this, "AppController");
|
|
2183
|
+
}
|
|
2184
|
+
component;
|
|
2185
|
+
lifecycle$$;
|
|
2186
|
+
lifecycle$;
|
|
2012
2187
|
constructor(component) {
|
|
2013
|
-
super();
|
|
2014
|
-
this.component = component;
|
|
2188
|
+
super(), this.component = component, this.lifecycle$$ = new Subject(), this.lifecycle$ = this.lifecycle$$.pipe();
|
|
2015
2189
|
for (const eventType of PROXY_EVENT_LISTENERS) {
|
|
2016
2190
|
this[`${eventType}$$`] = new Subject();
|
|
2017
2191
|
this[`${eventType}$`] = this[`${eventType}$$`].pipe();
|
|
@@ -2024,55 +2198,77 @@ var AppController = class extends ProxyEventHandlersModel {
|
|
|
2024
2198
|
};
|
|
2025
2199
|
}
|
|
2026
2200
|
}
|
|
2027
|
-
lifecycle$$ = new Subject();
|
|
2028
|
-
lifecycle$ = this.lifecycle$$.pipe();
|
|
2029
2201
|
};
|
|
2030
|
-
AppController =
|
|
2202
|
+
AppController = _ts_decorate2([
|
|
2031
2203
|
singleton_default(),
|
|
2032
|
-
|
|
2204
|
+
_ts_param(0, inject_default(AppComponent)),
|
|
2205
|
+
_ts_metadata("design:type", Function),
|
|
2206
|
+
_ts_metadata("design:paramtypes", [
|
|
2207
|
+
typeof AppComponent === "undefined" ? Object : AppComponent
|
|
2208
|
+
])
|
|
2033
2209
|
], AppController);
|
|
2034
2210
|
|
|
2035
2211
|
// src/core/app/timer/timer.component.ts
|
|
2036
2212
|
import { Clock } from "three";
|
|
2213
|
+
function _ts_decorate3(decorators, target, key, desc) {
|
|
2214
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2215
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2216
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2217
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2218
|
+
}
|
|
2219
|
+
__name(_ts_decorate3, "_ts_decorate");
|
|
2037
2220
|
var TimerComponent = class {
|
|
2221
|
+
static {
|
|
2222
|
+
__name(this, "TimerComponent");
|
|
2223
|
+
}
|
|
2038
2224
|
clock = new Clock();
|
|
2039
2225
|
frame = 1e3 / 60;
|
|
2040
2226
|
delta = 0;
|
|
2041
2227
|
deltaRatio = 0;
|
|
2042
2228
|
enabled = false;
|
|
2043
2229
|
};
|
|
2044
|
-
TimerComponent =
|
|
2230
|
+
TimerComponent = _ts_decorate3([
|
|
2045
2231
|
singleton_default()
|
|
2046
2232
|
], TimerComponent);
|
|
2047
2233
|
|
|
2048
2234
|
// src/core/app/renderer/renderer.component.ts
|
|
2049
|
-
import {
|
|
2050
|
-
Camera as Camera3,
|
|
2051
|
-
CineonToneMapping,
|
|
2052
|
-
PCFSoftShadowMap,
|
|
2053
|
-
SRGBColorSpace,
|
|
2054
|
-
WebGLRenderer
|
|
2055
|
-
} from "three";
|
|
2235
|
+
import { Camera as Camera3, CineonToneMapping, PCFSoftShadowMap, SRGBColorSpace, WebGLRenderer } from "three";
|
|
2056
2236
|
|
|
2057
2237
|
// src/core/app/world/world.component.ts
|
|
2058
2238
|
import { Scene } from "three";
|
|
2239
|
+
function _ts_decorate4(decorators, target, key, desc) {
|
|
2240
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2241
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2242
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2243
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2244
|
+
}
|
|
2245
|
+
__name(_ts_decorate4, "_ts_decorate");
|
|
2059
2246
|
var WorldComponent = class {
|
|
2247
|
+
static {
|
|
2248
|
+
__name(this, "WorldComponent");
|
|
2249
|
+
}
|
|
2060
2250
|
scene = new Scene();
|
|
2061
2251
|
enabled = true;
|
|
2062
2252
|
};
|
|
2063
|
-
WorldComponent =
|
|
2253
|
+
WorldComponent = _ts_decorate4([
|
|
2064
2254
|
singleton_default()
|
|
2065
2255
|
], WorldComponent);
|
|
2066
2256
|
|
|
2067
2257
|
// src/core/app/camera/camera.component.ts
|
|
2068
|
-
import {
|
|
2069
|
-
Camera,
|
|
2070
|
-
OrthographicCamera,
|
|
2071
|
-
PerspectiveCamera
|
|
2072
|
-
} from "three";
|
|
2258
|
+
import { Camera, OrthographicCamera, PerspectiveCamera } from "three";
|
|
2073
2259
|
|
|
2074
2260
|
// src/core/app/sizes/sizes.component.ts
|
|
2261
|
+
function _ts_decorate5(decorators, target, key, desc) {
|
|
2262
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2263
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2264
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2265
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2266
|
+
}
|
|
2267
|
+
__name(_ts_decorate5, "_ts_decorate");
|
|
2075
2268
|
var SizesComponent = class {
|
|
2269
|
+
static {
|
|
2270
|
+
__name(this, "SizesComponent");
|
|
2271
|
+
}
|
|
2076
2272
|
width = 0;
|
|
2077
2273
|
height = 0;
|
|
2078
2274
|
aspect = 0;
|
|
@@ -2086,23 +2282,50 @@ var SizesComponent = class {
|
|
|
2086
2282
|
this.enabled = enabled === void 0 ? true : !!enabled;
|
|
2087
2283
|
}
|
|
2088
2284
|
};
|
|
2089
|
-
SizesComponent =
|
|
2285
|
+
SizesComponent = _ts_decorate5([
|
|
2090
2286
|
singleton_default()
|
|
2091
2287
|
], SizesComponent);
|
|
2092
2288
|
|
|
2289
|
+
// src/common/enums/camera.enum.ts
|
|
2290
|
+
var DefaultCameraType = /* @__PURE__ */ function(DefaultCameraType2) {
|
|
2291
|
+
DefaultCameraType2[DefaultCameraType2["PERSPECTIVE"] = 0] = "PERSPECTIVE";
|
|
2292
|
+
DefaultCameraType2[DefaultCameraType2["ORTHOGRAPHIC"] = 1] = "ORTHOGRAPHIC";
|
|
2293
|
+
return DefaultCameraType2;
|
|
2294
|
+
}({});
|
|
2295
|
+
|
|
2093
2296
|
// src/core/app/camera/camera.component.ts
|
|
2297
|
+
function _ts_decorate6(decorators, target, key, desc) {
|
|
2298
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2299
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2300
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2301
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2302
|
+
}
|
|
2303
|
+
__name(_ts_decorate6, "_ts_decorate");
|
|
2304
|
+
function _ts_metadata2(k, v) {
|
|
2305
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2306
|
+
}
|
|
2307
|
+
__name(_ts_metadata2, "_ts_metadata");
|
|
2308
|
+
function _ts_param2(paramIndex, decorator) {
|
|
2309
|
+
return function(target, key) {
|
|
2310
|
+
decorator(target, key, paramIndex);
|
|
2311
|
+
};
|
|
2312
|
+
}
|
|
2313
|
+
__name(_ts_param2, "_ts_param");
|
|
2094
2314
|
var CameraComponent = class {
|
|
2095
|
-
|
|
2096
|
-
this
|
|
2315
|
+
static {
|
|
2316
|
+
__name(this, "CameraComponent");
|
|
2097
2317
|
}
|
|
2318
|
+
sizesComponent;
|
|
2098
2319
|
instance;
|
|
2099
2320
|
miniCamera;
|
|
2100
|
-
enabled
|
|
2321
|
+
enabled;
|
|
2322
|
+
constructor(sizesComponent) {
|
|
2323
|
+
this.sizesComponent = sizesComponent;
|
|
2324
|
+
this.enabled = true;
|
|
2325
|
+
}
|
|
2101
2326
|
set aspectRatio(ratio) {
|
|
2102
|
-
if (this.instance instanceof PerspectiveCamera)
|
|
2103
|
-
|
|
2104
|
-
if (this.instance instanceof PerspectiveCamera || this.instance instanceof OrthographicCamera)
|
|
2105
|
-
this.instance?.updateProjectionMatrix();
|
|
2327
|
+
if (this.instance instanceof PerspectiveCamera) this.instance.aspect = ratio;
|
|
2328
|
+
if (this.instance instanceof PerspectiveCamera || this.instance instanceof OrthographicCamera) this.instance?.updateProjectionMatrix();
|
|
2106
2329
|
}
|
|
2107
2330
|
set quaternion(quaternion) {
|
|
2108
2331
|
this.instance?.quaternion.copy(quaternion);
|
|
@@ -2115,42 +2338,24 @@ var CameraComponent = class {
|
|
|
2115
2338
|
}
|
|
2116
2339
|
initDefaultCamera(cameraType) {
|
|
2117
2340
|
this.removeCamera();
|
|
2118
|
-
if (cameraType ===
|
|
2119
|
-
this.instance = new PerspectiveCamera(
|
|
2120
|
-
70,
|
|
2121
|
-
this.sizesComponent.width / this.sizesComponent.height,
|
|
2122
|
-
1e-4,
|
|
2123
|
-
100
|
|
2124
|
-
);
|
|
2341
|
+
if (cameraType === DefaultCameraType.PERSPECTIVE || cameraType === void 0) {
|
|
2342
|
+
this.instance = new PerspectiveCamera(70, this.sizesComponent.width / this.sizesComponent.height, 1e-4, 100);
|
|
2125
2343
|
this.instance.position.z = 8;
|
|
2126
2344
|
return;
|
|
2127
2345
|
}
|
|
2128
|
-
if (cameraType ===
|
|
2129
|
-
this.instance = new OrthographicCamera(
|
|
2130
|
-
-this.sizesComponent.aspect * this.sizesComponent.frustrum / 2,
|
|
2131
|
-
this.sizesComponent.aspect * this.sizesComponent.frustrum / 2,
|
|
2132
|
-
this.sizesComponent.frustrum / 2,
|
|
2133
|
-
-this.sizesComponent.frustrum / 2,
|
|
2134
|
-
-50,
|
|
2135
|
-
50
|
|
2136
|
-
);
|
|
2346
|
+
if (cameraType === DefaultCameraType.ORTHOGRAPHIC) {
|
|
2347
|
+
this.instance = new OrthographicCamera(-this.sizesComponent.aspect * this.sizesComponent.frustrum / 2, this.sizesComponent.aspect * this.sizesComponent.frustrum / 2, this.sizesComponent.frustrum / 2, -this.sizesComponent.frustrum / 2, -50, 50);
|
|
2137
2348
|
}
|
|
2138
2349
|
}
|
|
2139
2350
|
setMiniCamera() {
|
|
2140
2351
|
this.removeMiniCamera();
|
|
2141
|
-
this.miniCamera = new PerspectiveCamera(
|
|
2142
|
-
75,
|
|
2143
|
-
this.sizesComponent.width / this.sizesComponent.height,
|
|
2144
|
-
0.1,
|
|
2145
|
-
500
|
|
2146
|
-
);
|
|
2352
|
+
this.miniCamera = new PerspectiveCamera(75, this.sizesComponent.width / this.sizesComponent.height, 0.1, 500);
|
|
2147
2353
|
this.miniCamera.position.z = 10;
|
|
2148
2354
|
this.miniCamera.position.x = -5;
|
|
2149
2355
|
}
|
|
2150
2356
|
removeCamera() {
|
|
2151
2357
|
if (!(this.instance instanceof Camera)) return;
|
|
2152
|
-
if (this.instance instanceof PerspectiveCamera || this.instance instanceof OrthographicCamera)
|
|
2153
|
-
this.instance.clearViewOffset();
|
|
2358
|
+
if (this.instance instanceof PerspectiveCamera || this.instance instanceof OrthographicCamera) this.instance.clearViewOffset();
|
|
2154
2359
|
this.instance.clear();
|
|
2155
2360
|
this.instance = void 0;
|
|
2156
2361
|
}
|
|
@@ -2161,38 +2366,62 @@ var CameraComponent = class {
|
|
|
2161
2366
|
this.miniCamera = void 0;
|
|
2162
2367
|
}
|
|
2163
2368
|
};
|
|
2164
|
-
CameraComponent =
|
|
2369
|
+
CameraComponent = _ts_decorate6([
|
|
2165
2370
|
singleton_default(),
|
|
2166
|
-
|
|
2371
|
+
_ts_param2(0, inject_default(SizesComponent)),
|
|
2372
|
+
_ts_metadata2("design:type", Function),
|
|
2373
|
+
_ts_metadata2("design:paramtypes", [
|
|
2374
|
+
typeof SizesComponent === "undefined" ? Object : SizesComponent
|
|
2375
|
+
])
|
|
2167
2376
|
], CameraComponent);
|
|
2168
2377
|
|
|
2169
2378
|
// src/core/app/debug/debug.component.ts
|
|
2170
2379
|
import { AxesHelper, Camera as Camera2, CameraHelper, GridHelper } from "three";
|
|
2171
2380
|
import { OrbitControls } from "three/examples/jsm/Addons";
|
|
2381
|
+
function _ts_decorate7(decorators, target, key, desc) {
|
|
2382
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2383
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2384
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2385
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2386
|
+
}
|
|
2387
|
+
__name(_ts_decorate7, "_ts_decorate");
|
|
2388
|
+
function _ts_metadata3(k, v) {
|
|
2389
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2390
|
+
}
|
|
2391
|
+
__name(_ts_metadata3, "_ts_metadata");
|
|
2392
|
+
function _ts_param3(paramIndex, decorator) {
|
|
2393
|
+
return function(target, key) {
|
|
2394
|
+
decorator(target, key, paramIndex);
|
|
2395
|
+
};
|
|
2396
|
+
}
|
|
2397
|
+
__name(_ts_param3, "_ts_param");
|
|
2172
2398
|
var DebugComponent = class {
|
|
2173
|
-
|
|
2174
|
-
this
|
|
2175
|
-
this.cameraComponent = cameraComponent;
|
|
2176
|
-
this.worldComponent = worldComponent;
|
|
2399
|
+
static {
|
|
2400
|
+
__name(this, "DebugComponent");
|
|
2177
2401
|
}
|
|
2178
|
-
|
|
2402
|
+
appComponent;
|
|
2403
|
+
cameraComponent;
|
|
2404
|
+
worldComponent;
|
|
2405
|
+
enabled;
|
|
2179
2406
|
cameraControls;
|
|
2180
2407
|
miniCameraControls;
|
|
2181
2408
|
cameraHelper;
|
|
2182
2409
|
axesHelper;
|
|
2183
2410
|
gridHelper;
|
|
2411
|
+
constructor(appComponent, cameraComponent, worldComponent) {
|
|
2412
|
+
this.appComponent = appComponent;
|
|
2413
|
+
this.cameraComponent = cameraComponent;
|
|
2414
|
+
this.worldComponent = worldComponent;
|
|
2415
|
+
this.enabled = true;
|
|
2416
|
+
}
|
|
2184
2417
|
_setCameraOrbitControl() {
|
|
2185
2418
|
if (this.cameraControls) {
|
|
2186
2419
|
this.cameraControls?.dispose();
|
|
2187
2420
|
this.cameraControls = void 0;
|
|
2188
2421
|
}
|
|
2189
|
-
if (!this.enabled || !(this.cameraComponent.instance instanceof Camera2))
|
|
2190
|
-
return;
|
|
2422
|
+
if (!this.enabled || !(this.cameraComponent.instance instanceof Camera2)) return;
|
|
2191
2423
|
if (this.cameraComponent.instance instanceof Camera2) {
|
|
2192
|
-
this.cameraControls = new OrbitControls(
|
|
2193
|
-
this.cameraComponent.instance,
|
|
2194
|
-
this.appComponent.proxyReceiver
|
|
2195
|
-
);
|
|
2424
|
+
this.cameraControls = new OrbitControls(this.cameraComponent.instance, this.appComponent.proxyReceiver);
|
|
2196
2425
|
if (this.cameraControls) this.cameraControls.enableDamping = true;
|
|
2197
2426
|
}
|
|
2198
2427
|
}
|
|
@@ -2203,10 +2432,7 @@ var DebugComponent = class {
|
|
|
2203
2432
|
}
|
|
2204
2433
|
if (!this.enabled) return;
|
|
2205
2434
|
if (this.cameraComponent.miniCamera) {
|
|
2206
|
-
this.miniCameraControls = new OrbitControls(
|
|
2207
|
-
this.cameraComponent.miniCamera,
|
|
2208
|
-
this.appComponent.proxyReceiver
|
|
2209
|
-
);
|
|
2435
|
+
this.miniCameraControls = new OrbitControls(this.cameraComponent.miniCamera, this.appComponent.proxyReceiver);
|
|
2210
2436
|
this.miniCameraControls.enableDamping = true;
|
|
2211
2437
|
}
|
|
2212
2438
|
}
|
|
@@ -2233,10 +2459,8 @@ var DebugComponent = class {
|
|
|
2233
2459
|
this._setCameraOrbitControl();
|
|
2234
2460
|
this._setMiniCameraOrbitControls();
|
|
2235
2461
|
this._setCameraHelper();
|
|
2236
|
-
if (typeof props?.axesSizes === "number")
|
|
2237
|
-
|
|
2238
|
-
if (typeof props?.gridSizes === "number")
|
|
2239
|
-
this._setGridHelper(props.gridSizes);
|
|
2462
|
+
if (typeof props?.axesSizes === "number") this._setAxesHelper(props.axesSizes);
|
|
2463
|
+
if (typeof props?.gridSizes === "number") this._setGridHelper(props.gridSizes);
|
|
2240
2464
|
}
|
|
2241
2465
|
update() {
|
|
2242
2466
|
if (!this.enabled) return;
|
|
@@ -2258,23 +2482,55 @@ var DebugComponent = class {
|
|
|
2258
2482
|
}
|
|
2259
2483
|
}
|
|
2260
2484
|
};
|
|
2261
|
-
DebugComponent =
|
|
2485
|
+
DebugComponent = _ts_decorate7([
|
|
2262
2486
|
singleton_default(),
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2487
|
+
_ts_param3(0, inject_default(AppComponent)),
|
|
2488
|
+
_ts_param3(1, inject_default(CameraComponent)),
|
|
2489
|
+
_ts_param3(2, inject_default(WorldComponent)),
|
|
2490
|
+
_ts_metadata3("design:type", Function),
|
|
2491
|
+
_ts_metadata3("design:paramtypes", [
|
|
2492
|
+
typeof AppComponent === "undefined" ? Object : AppComponent,
|
|
2493
|
+
typeof CameraComponent === "undefined" ? Object : CameraComponent,
|
|
2494
|
+
typeof WorldComponent === "undefined" ? Object : WorldComponent
|
|
2495
|
+
])
|
|
2266
2496
|
], DebugComponent);
|
|
2267
2497
|
|
|
2268
2498
|
// src/core/app/renderer/renderer.component.ts
|
|
2269
|
-
|
|
2499
|
+
function _ts_decorate8(decorators, target, key, desc) {
|
|
2500
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2501
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2502
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2503
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2504
|
+
}
|
|
2505
|
+
__name(_ts_decorate8, "_ts_decorate");
|
|
2506
|
+
function _ts_metadata4(k, v) {
|
|
2507
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2508
|
+
}
|
|
2509
|
+
__name(_ts_metadata4, "_ts_metadata");
|
|
2510
|
+
function _ts_param4(paramIndex, decorator) {
|
|
2511
|
+
return function(target, key) {
|
|
2512
|
+
decorator(target, key, paramIndex);
|
|
2513
|
+
};
|
|
2514
|
+
}
|
|
2515
|
+
__name(_ts_param4, "_ts_param");
|
|
2516
|
+
var RendererComponent = class _RendererComponent {
|
|
2517
|
+
static {
|
|
2518
|
+
__name(this, "RendererComponent");
|
|
2519
|
+
}
|
|
2520
|
+
worldComponent;
|
|
2521
|
+
cameraComponent;
|
|
2522
|
+
sizesComponent;
|
|
2523
|
+
debugComponent;
|
|
2524
|
+
static RENDERER_PIXEL_RATIO = 1;
|
|
2525
|
+
enabled;
|
|
2526
|
+
instance;
|
|
2270
2527
|
constructor(worldComponent, cameraComponent, sizesComponent, debugComponent) {
|
|
2271
2528
|
this.worldComponent = worldComponent;
|
|
2272
2529
|
this.cameraComponent = cameraComponent;
|
|
2273
2530
|
this.sizesComponent = sizesComponent;
|
|
2274
2531
|
this.debugComponent = debugComponent;
|
|
2532
|
+
this.enabled = true;
|
|
2275
2533
|
}
|
|
2276
|
-
enabled = true;
|
|
2277
|
-
instance;
|
|
2278
2534
|
init(canvas) {
|
|
2279
2535
|
this.instance = new WebGLRenderer({
|
|
2280
2536
|
canvas,
|
|
@@ -2287,7 +2543,7 @@ var RendererComponent = class {
|
|
|
2287
2543
|
antialias: true
|
|
2288
2544
|
});
|
|
2289
2545
|
this.instance.autoClear = false;
|
|
2290
|
-
this.instance.setPixelRatio(
|
|
2546
|
+
this.instance.setPixelRatio(_RendererComponent.RENDERER_PIXEL_RATIO);
|
|
2291
2547
|
this.instance.setClearColor(0, 0);
|
|
2292
2548
|
this.instance.shadowMap.enabled = true;
|
|
2293
2549
|
this.instance.shadowMap.type = PCFSoftShadowMap;
|
|
@@ -2299,62 +2555,83 @@ var RendererComponent = class {
|
|
|
2299
2555
|
this.instance?.setSize(width, height);
|
|
2300
2556
|
}
|
|
2301
2557
|
render() {
|
|
2302
|
-
if (!(this.enabled && this.cameraComponent.instance instanceof Camera3 && this.instance instanceof WebGLRenderer))
|
|
2303
|
-
|
|
2304
|
-
this.instance.
|
|
2305
|
-
0,
|
|
2306
|
-
0,
|
|
2307
|
-
this.sizesComponent.width,
|
|
2308
|
-
this.sizesComponent.height
|
|
2309
|
-
);
|
|
2310
|
-
this.instance.render(
|
|
2311
|
-
this.worldComponent.scene,
|
|
2312
|
-
this.cameraComponent.instance
|
|
2313
|
-
);
|
|
2558
|
+
if (!(this.enabled && this.cameraComponent.instance instanceof Camera3 && this.instance instanceof WebGLRenderer)) return;
|
|
2559
|
+
this.instance.setViewport(0, 0, this.sizesComponent.width, this.sizesComponent.height);
|
|
2560
|
+
this.instance.render(this.worldComponent.scene, this.cameraComponent.instance);
|
|
2314
2561
|
if (this.debugComponent.enabled && this.cameraComponent.miniCamera) {
|
|
2315
2562
|
this.instance.setScissorTest(true);
|
|
2316
|
-
this.instance.setViewport(
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
this.sizesComponent.width / 3,
|
|
2320
|
-
this.sizesComponent.height / 3
|
|
2321
|
-
);
|
|
2322
|
-
this.instance.setScissor(
|
|
2323
|
-
this.sizesComponent.width - this.sizesComponent.width / 3,
|
|
2324
|
-
this.sizesComponent.height - this.sizesComponent.height / 3,
|
|
2325
|
-
this.sizesComponent.width / 3,
|
|
2326
|
-
this.sizesComponent.height / 3
|
|
2327
|
-
);
|
|
2328
|
-
this.instance.render(
|
|
2329
|
-
this.worldComponent.scene,
|
|
2330
|
-
this.cameraComponent.miniCamera
|
|
2331
|
-
);
|
|
2563
|
+
this.instance.setViewport(this.sizesComponent.width - this.sizesComponent.width / 3, this.sizesComponent.height - this.sizesComponent.height / 3, this.sizesComponent.width / 3, this.sizesComponent.height / 3);
|
|
2564
|
+
this.instance.setScissor(this.sizesComponent.width - this.sizesComponent.width / 3, this.sizesComponent.height - this.sizesComponent.height / 3, this.sizesComponent.width / 3, this.sizesComponent.height / 3);
|
|
2565
|
+
this.instance.render(this.worldComponent.scene, this.cameraComponent.miniCamera);
|
|
2332
2566
|
this.instance.setScissorTest(false);
|
|
2333
2567
|
}
|
|
2334
2568
|
}
|
|
2335
2569
|
};
|
|
2336
|
-
|
|
2337
|
-
RendererComponent = __decorateClass([
|
|
2570
|
+
RendererComponent = _ts_decorate8([
|
|
2338
2571
|
singleton_default(),
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2572
|
+
_ts_param4(0, inject_default(WorldComponent)),
|
|
2573
|
+
_ts_param4(1, inject_default(CameraComponent)),
|
|
2574
|
+
_ts_param4(2, inject_default(SizesComponent)),
|
|
2575
|
+
_ts_param4(3, inject_default(DebugComponent)),
|
|
2576
|
+
_ts_metadata4("design:type", Function),
|
|
2577
|
+
_ts_metadata4("design:paramtypes", [
|
|
2578
|
+
typeof WorldComponent === "undefined" ? Object : WorldComponent,
|
|
2579
|
+
typeof CameraComponent === "undefined" ? Object : CameraComponent,
|
|
2580
|
+
typeof SizesComponent === "undefined" ? Object : SizesComponent,
|
|
2581
|
+
typeof DebugComponent === "undefined" ? Object : DebugComponent
|
|
2582
|
+
])
|
|
2343
2583
|
], RendererComponent);
|
|
2344
2584
|
|
|
2345
2585
|
// src/core/app/timer/timer.controller.ts
|
|
2346
2586
|
import { Subject as Subject2 } from "rxjs";
|
|
2587
|
+
|
|
2588
|
+
// src/common/enums/lifecycle.enum.ts
|
|
2589
|
+
var AppLifecycleState = /* @__PURE__ */ function(AppLifecycleState2) {
|
|
2590
|
+
AppLifecycleState2[AppLifecycleState2["INITIALIZED"] = 0] = "INITIALIZED";
|
|
2591
|
+
AppLifecycleState2[AppLifecycleState2["STEP_STARTED"] = 1] = "STEP_STARTED";
|
|
2592
|
+
AppLifecycleState2[AppLifecycleState2["STEP_ENDED"] = 2] = "STEP_ENDED";
|
|
2593
|
+
AppLifecycleState2[AppLifecycleState2["DISPOSED"] = 3] = "DISPOSED";
|
|
2594
|
+
return AppLifecycleState2;
|
|
2595
|
+
}({});
|
|
2596
|
+
|
|
2597
|
+
// src/core/app/timer/timer.controller.ts
|
|
2598
|
+
function _ts_decorate9(decorators, target, key, desc) {
|
|
2599
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2600
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2601
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2602
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2603
|
+
}
|
|
2604
|
+
__name(_ts_decorate9, "_ts_decorate");
|
|
2605
|
+
function _ts_metadata5(k, v) {
|
|
2606
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2607
|
+
}
|
|
2608
|
+
__name(_ts_metadata5, "_ts_metadata");
|
|
2609
|
+
function _ts_param5(paramIndex, decorator) {
|
|
2610
|
+
return function(target, key) {
|
|
2611
|
+
decorator(target, key, paramIndex);
|
|
2612
|
+
};
|
|
2613
|
+
}
|
|
2614
|
+
__name(_ts_param5, "_ts_param");
|
|
2347
2615
|
var TimerController = class {
|
|
2616
|
+
static {
|
|
2617
|
+
__name(this, "TimerController");
|
|
2618
|
+
}
|
|
2619
|
+
component;
|
|
2620
|
+
appController;
|
|
2621
|
+
step$$;
|
|
2622
|
+
enable$$;
|
|
2623
|
+
step$;
|
|
2624
|
+
enable$;
|
|
2348
2625
|
constructor(component, appController) {
|
|
2349
2626
|
this.component = component;
|
|
2350
2627
|
this.appController = appController;
|
|
2628
|
+
this.step$$ = new Subject2();
|
|
2629
|
+
this.enable$$ = new Subject2();
|
|
2630
|
+
this.step$ = this.step$$.pipe();
|
|
2631
|
+
this.enable$ = this.enable$$.pipe();
|
|
2351
2632
|
}
|
|
2352
|
-
step$$ = new Subject2();
|
|
2353
|
-
enable$$ = new Subject2();
|
|
2354
|
-
step$ = this.step$$.pipe();
|
|
2355
|
-
enable$ = this.enable$$.pipe();
|
|
2356
2633
|
step() {
|
|
2357
|
-
this.appController.lifecycle$$.next(
|
|
2634
|
+
this.appController.lifecycle$$.next(AppLifecycleState.STEP_STARTED);
|
|
2358
2635
|
if (this.component.enabled) {
|
|
2359
2636
|
this.component.delta = this.component.clock.getDelta() ?? this.component.frame;
|
|
2360
2637
|
this.component.deltaRatio = this.component.delta * 1e3 / this.component.frame;
|
|
@@ -2363,17 +2640,45 @@ var TimerController = class {
|
|
|
2363
2640
|
deltaRatio: this.component.deltaRatio
|
|
2364
2641
|
});
|
|
2365
2642
|
}
|
|
2366
|
-
this.appController.lifecycle$$.next(
|
|
2643
|
+
this.appController.lifecycle$$.next(AppLifecycleState.STEP_ENDED);
|
|
2367
2644
|
}
|
|
2368
2645
|
};
|
|
2369
|
-
TimerController =
|
|
2646
|
+
TimerController = _ts_decorate9([
|
|
2370
2647
|
singleton_default(),
|
|
2371
|
-
|
|
2372
|
-
|
|
2648
|
+
_ts_param5(0, inject_default(TimerComponent)),
|
|
2649
|
+
_ts_param5(1, inject_default(AppController)),
|
|
2650
|
+
_ts_metadata5("design:type", Function),
|
|
2651
|
+
_ts_metadata5("design:paramtypes", [
|
|
2652
|
+
typeof TimerComponent === "undefined" ? Object : TimerComponent,
|
|
2653
|
+
typeof AppController === "undefined" ? Object : AppController
|
|
2654
|
+
])
|
|
2373
2655
|
], TimerController);
|
|
2374
2656
|
|
|
2375
2657
|
// src/core/app/timer/timer.module.ts
|
|
2658
|
+
function _ts_decorate10(decorators, target, key, desc) {
|
|
2659
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2660
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2661
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2662
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2663
|
+
}
|
|
2664
|
+
__name(_ts_decorate10, "_ts_decorate");
|
|
2665
|
+
function _ts_metadata6(k, v) {
|
|
2666
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2667
|
+
}
|
|
2668
|
+
__name(_ts_metadata6, "_ts_metadata");
|
|
2669
|
+
function _ts_param6(paramIndex, decorator) {
|
|
2670
|
+
return function(target, key) {
|
|
2671
|
+
decorator(target, key, paramIndex);
|
|
2672
|
+
};
|
|
2673
|
+
}
|
|
2674
|
+
__name(_ts_param6, "_ts_param");
|
|
2376
2675
|
var TimerModule = class {
|
|
2676
|
+
static {
|
|
2677
|
+
__name(this, "TimerModule");
|
|
2678
|
+
}
|
|
2679
|
+
component;
|
|
2680
|
+
controller;
|
|
2681
|
+
rendererComponent;
|
|
2377
2682
|
constructor(component, controller, rendererComponent) {
|
|
2378
2683
|
this.component = component;
|
|
2379
2684
|
this.controller = controller;
|
|
@@ -2382,10 +2687,7 @@ var TimerModule = class {
|
|
|
2382
2687
|
init(startTimer) {
|
|
2383
2688
|
this.controller.enable$.subscribe((status) => {
|
|
2384
2689
|
this.component.enabled = !!status;
|
|
2385
|
-
if (status)
|
|
2386
|
-
this.rendererComponent.instance?.setAnimationLoop(
|
|
2387
|
-
this.controller.step.bind(this.controller)
|
|
2388
|
-
);
|
|
2690
|
+
if (status) this.rendererComponent.instance?.setAnimationLoop(this.controller.step.bind(this.controller));
|
|
2389
2691
|
else this.rendererComponent.instance?.setAnimationLoop(null);
|
|
2390
2692
|
});
|
|
2391
2693
|
if (startTimer) this.enabled(true);
|
|
@@ -2419,41 +2721,94 @@ var TimerModule = class {
|
|
|
2419
2721
|
return this.controller.step$;
|
|
2420
2722
|
}
|
|
2421
2723
|
};
|
|
2422
|
-
TimerModule =
|
|
2724
|
+
TimerModule = _ts_decorate10([
|
|
2423
2725
|
singleton_default(),
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2726
|
+
_ts_param6(0, inject_default(TimerComponent)),
|
|
2727
|
+
_ts_param6(1, inject_default(TimerController)),
|
|
2728
|
+
_ts_param6(2, inject_default(RendererComponent)),
|
|
2729
|
+
_ts_metadata6("design:type", Function),
|
|
2730
|
+
_ts_metadata6("design:paramtypes", [
|
|
2731
|
+
typeof TimerComponent === "undefined" ? Object : TimerComponent,
|
|
2732
|
+
typeof TimerController === "undefined" ? Object : TimerController,
|
|
2733
|
+
typeof RendererComponent === "undefined" ? Object : RendererComponent
|
|
2734
|
+
])
|
|
2427
2735
|
], TimerModule);
|
|
2428
2736
|
|
|
2429
2737
|
// src/core/app/camera/camera.module.ts
|
|
2430
|
-
import {
|
|
2431
|
-
OrthographicCamera as OrthographicCamera2,
|
|
2432
|
-
PerspectiveCamera as PerspectiveCamera2
|
|
2433
|
-
} from "three";
|
|
2738
|
+
import { OrthographicCamera as OrthographicCamera2, PerspectiveCamera as PerspectiveCamera2 } from "three";
|
|
2434
2739
|
|
|
2435
2740
|
// src/core/app/camera/camera.controller.ts
|
|
2436
2741
|
import { filter, Subject as Subject3 } from "rxjs";
|
|
2742
|
+
function _ts_decorate11(decorators, target, key, desc) {
|
|
2743
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2744
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2745
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2746
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2747
|
+
}
|
|
2748
|
+
__name(_ts_decorate11, "_ts_decorate");
|
|
2749
|
+
function _ts_metadata7(k, v) {
|
|
2750
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2751
|
+
}
|
|
2752
|
+
__name(_ts_metadata7, "_ts_metadata");
|
|
2753
|
+
function _ts_param7(paramIndex, decorator) {
|
|
2754
|
+
return function(target, key) {
|
|
2755
|
+
decorator(target, key, paramIndex);
|
|
2756
|
+
};
|
|
2757
|
+
}
|
|
2758
|
+
__name(_ts_param7, "_ts_param");
|
|
2437
2759
|
var CameraController = class {
|
|
2760
|
+
static {
|
|
2761
|
+
__name(this, "CameraController");
|
|
2762
|
+
}
|
|
2763
|
+
component;
|
|
2764
|
+
timerController;
|
|
2765
|
+
enable$$;
|
|
2766
|
+
enable$;
|
|
2767
|
+
step$;
|
|
2438
2768
|
constructor(component, timerController) {
|
|
2439
2769
|
this.component = component;
|
|
2440
2770
|
this.timerController = timerController;
|
|
2441
|
-
this.
|
|
2442
|
-
|
|
2443
|
-
);
|
|
2771
|
+
this.enable$$ = new Subject3();
|
|
2772
|
+
this.enable$ = this.enable$$.pipe();
|
|
2773
|
+
this.step$ = this.timerController.step$.pipe(filter(() => this.component.enabled));
|
|
2444
2774
|
}
|
|
2445
|
-
enable$$ = new Subject3();
|
|
2446
|
-
enable$ = this.enable$$.pipe();
|
|
2447
|
-
step$;
|
|
2448
2775
|
};
|
|
2449
|
-
CameraController =
|
|
2776
|
+
CameraController = _ts_decorate11([
|
|
2450
2777
|
singleton_default(),
|
|
2451
|
-
|
|
2452
|
-
|
|
2778
|
+
_ts_param7(0, inject_default(CameraComponent)),
|
|
2779
|
+
_ts_param7(1, inject_default(TimerController)),
|
|
2780
|
+
_ts_metadata7("design:type", Function),
|
|
2781
|
+
_ts_metadata7("design:paramtypes", [
|
|
2782
|
+
typeof CameraComponent === "undefined" ? Object : CameraComponent,
|
|
2783
|
+
typeof TimerController === "undefined" ? Object : TimerController
|
|
2784
|
+
])
|
|
2453
2785
|
], CameraController);
|
|
2454
2786
|
|
|
2455
2787
|
// src/core/app/camera/camera.module.ts
|
|
2788
|
+
function _ts_decorate12(decorators, target, key, desc) {
|
|
2789
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2790
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2791
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2792
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2793
|
+
}
|
|
2794
|
+
__name(_ts_decorate12, "_ts_decorate");
|
|
2795
|
+
function _ts_metadata8(k, v) {
|
|
2796
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2797
|
+
}
|
|
2798
|
+
__name(_ts_metadata8, "_ts_metadata");
|
|
2799
|
+
function _ts_param8(paramIndex, decorator) {
|
|
2800
|
+
return function(target, key) {
|
|
2801
|
+
decorator(target, key, paramIndex);
|
|
2802
|
+
};
|
|
2803
|
+
}
|
|
2804
|
+
__name(_ts_param8, "_ts_param");
|
|
2456
2805
|
var CameraModule = class {
|
|
2806
|
+
static {
|
|
2807
|
+
__name(this, "CameraModule");
|
|
2808
|
+
}
|
|
2809
|
+
component;
|
|
2810
|
+
sizesComponent;
|
|
2811
|
+
controller;
|
|
2457
2812
|
constructor(component, sizesComponent, controller) {
|
|
2458
2813
|
this.component = component;
|
|
2459
2814
|
this.sizesComponent = sizesComponent;
|
|
@@ -2468,8 +2823,7 @@ var CameraModule = class {
|
|
|
2468
2823
|
this.controller.step$.subscribe(() => {
|
|
2469
2824
|
if (!this.component.enabled) return;
|
|
2470
2825
|
this.component.aspectRatio = this.sizesComponent.aspect;
|
|
2471
|
-
if (this.component.instance instanceof PerspectiveCamera2 || this.component.instance instanceof OrthographicCamera2)
|
|
2472
|
-
this.component.instance?.updateProjectionMatrix();
|
|
2826
|
+
if (this.component.instance instanceof PerspectiveCamera2 || this.component.instance instanceof OrthographicCamera2) this.component.instance?.updateProjectionMatrix();
|
|
2473
2827
|
this.component.miniCamera?.updateProjectionMatrix();
|
|
2474
2828
|
});
|
|
2475
2829
|
}
|
|
@@ -2505,11 +2859,17 @@ var CameraModule = class {
|
|
|
2505
2859
|
return this.controller.enable$;
|
|
2506
2860
|
}
|
|
2507
2861
|
};
|
|
2508
|
-
CameraModule =
|
|
2862
|
+
CameraModule = _ts_decorate12([
|
|
2509
2863
|
singleton_default(),
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2864
|
+
_ts_param8(0, inject_default(CameraComponent)),
|
|
2865
|
+
_ts_param8(1, inject_default(SizesComponent)),
|
|
2866
|
+
_ts_param8(2, inject_default(CameraController)),
|
|
2867
|
+
_ts_metadata8("design:type", Function),
|
|
2868
|
+
_ts_metadata8("design:paramtypes", [
|
|
2869
|
+
typeof CameraComponent === "undefined" ? Object : CameraComponent,
|
|
2870
|
+
typeof SizesComponent === "undefined" ? Object : SizesComponent,
|
|
2871
|
+
typeof CameraController === "undefined" ? Object : CameraController
|
|
2872
|
+
])
|
|
2513
2873
|
], CameraModule);
|
|
2514
2874
|
|
|
2515
2875
|
// src/core/app/renderer/renderer.controller.ts
|
|
@@ -2517,51 +2877,127 @@ import { filter as filter3, Subject as Subject5 } from "rxjs";
|
|
|
2517
2877
|
|
|
2518
2878
|
// src/core/app/sizes/sizes.controller.ts
|
|
2519
2879
|
import { filter as filter2, Subject as Subject4 } from "rxjs";
|
|
2880
|
+
function _ts_decorate13(decorators, target, key, desc) {
|
|
2881
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2882
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2883
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2884
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2885
|
+
}
|
|
2886
|
+
__name(_ts_decorate13, "_ts_decorate");
|
|
2887
|
+
function _ts_metadata9(k, v) {
|
|
2888
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2889
|
+
}
|
|
2890
|
+
__name(_ts_metadata9, "_ts_metadata");
|
|
2891
|
+
function _ts_param9(paramIndex, decorator) {
|
|
2892
|
+
return function(target, key) {
|
|
2893
|
+
decorator(target, key, paramIndex);
|
|
2894
|
+
};
|
|
2895
|
+
}
|
|
2896
|
+
__name(_ts_param9, "_ts_param");
|
|
2520
2897
|
var SizesController = class {
|
|
2898
|
+
static {
|
|
2899
|
+
__name(this, "SizesController");
|
|
2900
|
+
}
|
|
2901
|
+
appController;
|
|
2902
|
+
component;
|
|
2903
|
+
enable$$;
|
|
2904
|
+
enable$;
|
|
2905
|
+
resize$;
|
|
2521
2906
|
constructor(appController, component) {
|
|
2522
2907
|
this.appController = appController;
|
|
2523
2908
|
this.component = component;
|
|
2524
|
-
this.
|
|
2525
|
-
|
|
2526
|
-
);
|
|
2909
|
+
this.enable$$ = new Subject4();
|
|
2910
|
+
this.enable$ = this.enable$$.pipe();
|
|
2911
|
+
this.resize$ = this.appController.resize$$.pipe(filter2(() => this.component.enabled));
|
|
2527
2912
|
}
|
|
2528
|
-
enable$$ = new Subject4();
|
|
2529
|
-
enable$ = this.enable$$.pipe();
|
|
2530
|
-
resize$;
|
|
2531
2913
|
};
|
|
2532
|
-
SizesController =
|
|
2914
|
+
SizesController = _ts_decorate13([
|
|
2533
2915
|
singleton_default(),
|
|
2534
|
-
|
|
2535
|
-
|
|
2916
|
+
_ts_param9(0, inject_default(AppController)),
|
|
2917
|
+
_ts_param9(1, inject_default(SizesComponent)),
|
|
2918
|
+
_ts_metadata9("design:type", Function),
|
|
2919
|
+
_ts_metadata9("design:paramtypes", [
|
|
2920
|
+
typeof AppController === "undefined" ? Object : AppController,
|
|
2921
|
+
typeof SizesComponent === "undefined" ? Object : SizesComponent
|
|
2922
|
+
])
|
|
2536
2923
|
], SizesController);
|
|
2537
2924
|
|
|
2538
2925
|
// src/core/app/renderer/renderer.controller.ts
|
|
2926
|
+
function _ts_decorate14(decorators, target, key, desc) {
|
|
2927
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2928
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2929
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2930
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2931
|
+
}
|
|
2932
|
+
__name(_ts_decorate14, "_ts_decorate");
|
|
2933
|
+
function _ts_metadata10(k, v) {
|
|
2934
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2935
|
+
}
|
|
2936
|
+
__name(_ts_metadata10, "_ts_metadata");
|
|
2937
|
+
function _ts_param10(paramIndex, decorator) {
|
|
2938
|
+
return function(target, key) {
|
|
2939
|
+
decorator(target, key, paramIndex);
|
|
2940
|
+
};
|
|
2941
|
+
}
|
|
2942
|
+
__name(_ts_param10, "_ts_param");
|
|
2539
2943
|
var RendererController = class {
|
|
2944
|
+
static {
|
|
2945
|
+
__name(this, "RendererController");
|
|
2946
|
+
}
|
|
2947
|
+
rendererComponent;
|
|
2948
|
+
timerController;
|
|
2949
|
+
sizesController;
|
|
2950
|
+
enable$$;
|
|
2951
|
+
enable$;
|
|
2952
|
+
step$;
|
|
2953
|
+
resize$;
|
|
2540
2954
|
constructor(rendererComponent, timerController, sizesController) {
|
|
2541
2955
|
this.rendererComponent = rendererComponent;
|
|
2542
2956
|
this.timerController = timerController;
|
|
2543
2957
|
this.sizesController = sizesController;
|
|
2544
|
-
this.
|
|
2545
|
-
|
|
2546
|
-
);
|
|
2547
|
-
this.resize$ = this.sizesController.resize$.pipe(
|
|
2548
|
-
|
|
2549
|
-
);
|
|
2550
|
-
}
|
|
2551
|
-
enable$$ = new Subject5();
|
|
2552
|
-
enable$ = this.enable$$.pipe();
|
|
2553
|
-
step$;
|
|
2554
|
-
resize$;
|
|
2958
|
+
this.enable$$ = new Subject5();
|
|
2959
|
+
this.enable$ = this.enable$$.pipe();
|
|
2960
|
+
this.step$ = this.timerController.step$.pipe(filter3(() => this.rendererComponent.enabled));
|
|
2961
|
+
this.resize$ = this.sizesController.resize$.pipe(filter3(() => this.rendererComponent.enabled));
|
|
2962
|
+
}
|
|
2555
2963
|
};
|
|
2556
|
-
RendererController =
|
|
2964
|
+
RendererController = _ts_decorate14([
|
|
2557
2965
|
singleton_default(),
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2966
|
+
_ts_param10(0, inject_default(RendererComponent)),
|
|
2967
|
+
_ts_param10(1, inject_default(TimerController)),
|
|
2968
|
+
_ts_param10(2, inject_default(SizesController)),
|
|
2969
|
+
_ts_metadata10("design:type", Function),
|
|
2970
|
+
_ts_metadata10("design:paramtypes", [
|
|
2971
|
+
typeof RendererComponent === "undefined" ? Object : RendererComponent,
|
|
2972
|
+
typeof TimerController === "undefined" ? Object : TimerController,
|
|
2973
|
+
typeof SizesController === "undefined" ? Object : SizesController
|
|
2974
|
+
])
|
|
2561
2975
|
], RendererController);
|
|
2562
2976
|
|
|
2563
2977
|
// src/core/app/renderer/renderer.module.ts
|
|
2978
|
+
function _ts_decorate15(decorators, target, key, desc) {
|
|
2979
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2980
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2981
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2982
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2983
|
+
}
|
|
2984
|
+
__name(_ts_decorate15, "_ts_decorate");
|
|
2985
|
+
function _ts_metadata11(k, v) {
|
|
2986
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2987
|
+
}
|
|
2988
|
+
__name(_ts_metadata11, "_ts_metadata");
|
|
2989
|
+
function _ts_param11(paramIndex, decorator) {
|
|
2990
|
+
return function(target, key) {
|
|
2991
|
+
decorator(target, key, paramIndex);
|
|
2992
|
+
};
|
|
2993
|
+
}
|
|
2994
|
+
__name(_ts_param11, "_ts_param");
|
|
2564
2995
|
var RendererModule = class {
|
|
2996
|
+
static {
|
|
2997
|
+
__name(this, "RendererModule");
|
|
2998
|
+
}
|
|
2999
|
+
component;
|
|
3000
|
+
controller;
|
|
2565
3001
|
constructor(component, controller) {
|
|
2566
3002
|
this.component = component;
|
|
2567
3003
|
this.controller = controller;
|
|
@@ -2571,9 +3007,7 @@ var RendererModule = class {
|
|
|
2571
3007
|
this.component.enabled = !!status;
|
|
2572
3008
|
});
|
|
2573
3009
|
this.controller.step$.subscribe(() => this.component.render());
|
|
2574
|
-
this.controller.resize$.subscribe(
|
|
2575
|
-
(size) => this.component.setSize(size.windowWidth, size.windowHeight)
|
|
2576
|
-
);
|
|
3010
|
+
this.controller.resize$.subscribe((size) => this.component.setSize(size.windowWidth, size.windowHeight));
|
|
2577
3011
|
this.component.init(canvas);
|
|
2578
3012
|
}
|
|
2579
3013
|
dispose() {
|
|
@@ -2596,14 +3030,41 @@ var RendererModule = class {
|
|
|
2596
3030
|
return this.controller.enable$;
|
|
2597
3031
|
}
|
|
2598
3032
|
};
|
|
2599
|
-
RendererModule =
|
|
3033
|
+
RendererModule = _ts_decorate15([
|
|
2600
3034
|
singleton_default(),
|
|
2601
|
-
|
|
2602
|
-
|
|
3035
|
+
_ts_param11(0, inject_default(RendererComponent)),
|
|
3036
|
+
_ts_param11(1, inject_default(RendererController)),
|
|
3037
|
+
_ts_metadata11("design:type", Function),
|
|
3038
|
+
_ts_metadata11("design:paramtypes", [
|
|
3039
|
+
typeof RendererComponent === "undefined" ? Object : RendererComponent,
|
|
3040
|
+
typeof RendererController === "undefined" ? Object : RendererController
|
|
3041
|
+
])
|
|
2603
3042
|
], RendererModule);
|
|
2604
3043
|
|
|
2605
3044
|
// src/core/app/sizes/sizes.module.ts
|
|
3045
|
+
function _ts_decorate16(decorators, target, key, desc) {
|
|
3046
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3047
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3048
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3049
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3050
|
+
}
|
|
3051
|
+
__name(_ts_decorate16, "_ts_decorate");
|
|
3052
|
+
function _ts_metadata12(k, v) {
|
|
3053
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
3054
|
+
}
|
|
3055
|
+
__name(_ts_metadata12, "_ts_metadata");
|
|
3056
|
+
function _ts_param12(paramIndex, decorator) {
|
|
3057
|
+
return function(target, key) {
|
|
3058
|
+
decorator(target, key, paramIndex);
|
|
3059
|
+
};
|
|
3060
|
+
}
|
|
3061
|
+
__name(_ts_param12, "_ts_param");
|
|
2606
3062
|
var SizesModule = class {
|
|
3063
|
+
static {
|
|
3064
|
+
__name(this, "SizesModule");
|
|
3065
|
+
}
|
|
3066
|
+
component;
|
|
3067
|
+
controller;
|
|
2607
3068
|
constructor(component, controller) {
|
|
2608
3069
|
this.component = component;
|
|
2609
3070
|
this.controller = controller;
|
|
@@ -2652,10 +3113,15 @@ var SizesModule = class {
|
|
|
2652
3113
|
return this.controller.resize$;
|
|
2653
3114
|
}
|
|
2654
3115
|
};
|
|
2655
|
-
SizesModule =
|
|
3116
|
+
SizesModule = _ts_decorate16([
|
|
2656
3117
|
singleton_default(),
|
|
2657
|
-
|
|
2658
|
-
|
|
3118
|
+
_ts_param12(0, inject_default(SizesComponent)),
|
|
3119
|
+
_ts_param12(1, inject_default(SizesController)),
|
|
3120
|
+
_ts_metadata12("design:type", Function),
|
|
3121
|
+
_ts_metadata12("design:paramtypes", [
|
|
3122
|
+
typeof SizesComponent === "undefined" ? Object : SizesComponent,
|
|
3123
|
+
typeof SizesController === "undefined" ? Object : SizesController
|
|
3124
|
+
])
|
|
2659
3125
|
], SizesModule);
|
|
2660
3126
|
|
|
2661
3127
|
// src/core/app/world/world.module.ts
|
|
@@ -2663,16 +3129,48 @@ import { Scene as Scene2 } from "three";
|
|
|
2663
3129
|
|
|
2664
3130
|
// src/core/app/world/world.controller.ts
|
|
2665
3131
|
import { Subject as Subject6 } from "rxjs";
|
|
3132
|
+
function _ts_decorate17(decorators, target, key, desc) {
|
|
3133
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3134
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3135
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3136
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3137
|
+
}
|
|
3138
|
+
__name(_ts_decorate17, "_ts_decorate");
|
|
2666
3139
|
var WorldController = class {
|
|
3140
|
+
static {
|
|
3141
|
+
__name(this, "WorldController");
|
|
3142
|
+
}
|
|
2667
3143
|
enable$$ = new Subject6();
|
|
2668
3144
|
enable$ = this.enable$$.pipe();
|
|
2669
3145
|
};
|
|
2670
|
-
WorldController =
|
|
3146
|
+
WorldController = _ts_decorate17([
|
|
2671
3147
|
singleton_default()
|
|
2672
3148
|
], WorldController);
|
|
2673
3149
|
|
|
2674
3150
|
// src/core/app/world/world.module.ts
|
|
3151
|
+
function _ts_decorate18(decorators, target, key, desc) {
|
|
3152
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3153
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3154
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3155
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3156
|
+
}
|
|
3157
|
+
__name(_ts_decorate18, "_ts_decorate");
|
|
3158
|
+
function _ts_metadata13(k, v) {
|
|
3159
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
3160
|
+
}
|
|
3161
|
+
__name(_ts_metadata13, "_ts_metadata");
|
|
3162
|
+
function _ts_param13(paramIndex, decorator) {
|
|
3163
|
+
return function(target, key) {
|
|
3164
|
+
decorator(target, key, paramIndex);
|
|
3165
|
+
};
|
|
3166
|
+
}
|
|
3167
|
+
__name(_ts_param13, "_ts_param");
|
|
2675
3168
|
var WorldModule = class {
|
|
3169
|
+
static {
|
|
3170
|
+
__name(this, "WorldModule");
|
|
3171
|
+
}
|
|
3172
|
+
component;
|
|
3173
|
+
controller;
|
|
2676
3174
|
constructor(component, controller) {
|
|
2677
3175
|
this.component = component;
|
|
2678
3176
|
this.controller = controller;
|
|
@@ -2696,30 +3194,84 @@ var WorldModule = class {
|
|
|
2696
3194
|
return this.controller.enable$;
|
|
2697
3195
|
}
|
|
2698
3196
|
};
|
|
2699
|
-
WorldModule =
|
|
3197
|
+
WorldModule = _ts_decorate18([
|
|
2700
3198
|
singleton_default(),
|
|
2701
|
-
|
|
2702
|
-
|
|
3199
|
+
_ts_param13(0, inject_default(WorldComponent)),
|
|
3200
|
+
_ts_param13(1, inject_default(WorldController)),
|
|
3201
|
+
_ts_metadata13("design:type", Function),
|
|
3202
|
+
_ts_metadata13("design:paramtypes", [
|
|
3203
|
+
typeof WorldComponent === "undefined" ? Object : WorldComponent,
|
|
3204
|
+
typeof WorldController === "undefined" ? Object : WorldController
|
|
3205
|
+
])
|
|
2703
3206
|
], WorldModule);
|
|
2704
3207
|
|
|
2705
3208
|
// src/core/app/debug/debug.controller.ts
|
|
2706
3209
|
import { Subject as Subject7 } from "rxjs";
|
|
3210
|
+
function _ts_decorate19(decorators, target, key, desc) {
|
|
3211
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3212
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3213
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3214
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3215
|
+
}
|
|
3216
|
+
__name(_ts_decorate19, "_ts_decorate");
|
|
3217
|
+
function _ts_metadata14(k, v) {
|
|
3218
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
3219
|
+
}
|
|
3220
|
+
__name(_ts_metadata14, "_ts_metadata");
|
|
3221
|
+
function _ts_param14(paramIndex, decorator) {
|
|
3222
|
+
return function(target, key) {
|
|
3223
|
+
decorator(target, key, paramIndex);
|
|
3224
|
+
};
|
|
3225
|
+
}
|
|
3226
|
+
__name(_ts_param14, "_ts_param");
|
|
2707
3227
|
var DebugController = class {
|
|
3228
|
+
static {
|
|
3229
|
+
__name(this, "DebugController");
|
|
3230
|
+
}
|
|
3231
|
+
timerController;
|
|
3232
|
+
enable$$;
|
|
3233
|
+
enable$;
|
|
3234
|
+
step$;
|
|
2708
3235
|
constructor(timerController) {
|
|
2709
3236
|
this.timerController = timerController;
|
|
3237
|
+
this.enable$$ = new Subject7();
|
|
3238
|
+
this.enable$ = this.enable$$.pipe();
|
|
2710
3239
|
this.step$ = this.timerController.step$;
|
|
2711
3240
|
}
|
|
2712
|
-
enable$$ = new Subject7();
|
|
2713
|
-
enable$ = this.enable$$.pipe();
|
|
2714
|
-
step$;
|
|
2715
3241
|
};
|
|
2716
|
-
DebugController =
|
|
3242
|
+
DebugController = _ts_decorate19([
|
|
2717
3243
|
singleton_default(),
|
|
2718
|
-
|
|
3244
|
+
_ts_param14(0, inject_default(TimerController)),
|
|
3245
|
+
_ts_metadata14("design:type", Function),
|
|
3246
|
+
_ts_metadata14("design:paramtypes", [
|
|
3247
|
+
typeof TimerController === "undefined" ? Object : TimerController
|
|
3248
|
+
])
|
|
2719
3249
|
], DebugController);
|
|
2720
3250
|
|
|
2721
3251
|
// src/core/app/debug/debug.module.ts
|
|
3252
|
+
function _ts_decorate20(decorators, target, key, desc) {
|
|
3253
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3254
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3255
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3256
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3257
|
+
}
|
|
3258
|
+
__name(_ts_decorate20, "_ts_decorate");
|
|
3259
|
+
function _ts_metadata15(k, v) {
|
|
3260
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
3261
|
+
}
|
|
3262
|
+
__name(_ts_metadata15, "_ts_metadata");
|
|
3263
|
+
function _ts_param15(paramIndex, decorator) {
|
|
3264
|
+
return function(target, key) {
|
|
3265
|
+
decorator(target, key, paramIndex);
|
|
3266
|
+
};
|
|
3267
|
+
}
|
|
3268
|
+
__name(_ts_param15, "_ts_param");
|
|
2722
3269
|
var DebugModule = class {
|
|
3270
|
+
static {
|
|
3271
|
+
__name(this, "DebugModule");
|
|
3272
|
+
}
|
|
3273
|
+
component;
|
|
3274
|
+
controller;
|
|
2723
3275
|
constructor(component, controller) {
|
|
2724
3276
|
this.component = component;
|
|
2725
3277
|
this.controller = controller;
|
|
@@ -2756,14 +3308,22 @@ var DebugModule = class {
|
|
|
2756
3308
|
return this.controller.enable$;
|
|
2757
3309
|
}
|
|
2758
3310
|
};
|
|
2759
|
-
DebugModule =
|
|
3311
|
+
DebugModule = _ts_decorate20([
|
|
2760
3312
|
singleton_default(),
|
|
2761
|
-
|
|
2762
|
-
|
|
3313
|
+
_ts_param15(0, inject_default(DebugComponent)),
|
|
3314
|
+
_ts_param15(1, inject_default(DebugController)),
|
|
3315
|
+
_ts_metadata15("design:type", Function),
|
|
3316
|
+
_ts_metadata15("design:paramtypes", [
|
|
3317
|
+
typeof DebugComponent === "undefined" ? Object : DebugComponent,
|
|
3318
|
+
typeof DebugController === "undefined" ? Object : DebugController
|
|
3319
|
+
])
|
|
2763
3320
|
], DebugModule);
|
|
2764
3321
|
|
|
2765
3322
|
// src/common/models/app-proxy-event-handler.model.ts
|
|
2766
3323
|
var AppProxyEventHandlersModel = class {
|
|
3324
|
+
static {
|
|
3325
|
+
__name(this, "AppProxyEventHandlersModel");
|
|
3326
|
+
}
|
|
2767
3327
|
contextmenu$;
|
|
2768
3328
|
resize$;
|
|
2769
3329
|
mousedown$;
|
|
@@ -2795,17 +3355,37 @@ var AppProxyEventHandlersModel = class {
|
|
|
2795
3355
|
};
|
|
2796
3356
|
|
|
2797
3357
|
// src/core/app/app.module.ts
|
|
3358
|
+
function _ts_decorate21(decorators, target, key, desc) {
|
|
3359
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3360
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3361
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3362
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3363
|
+
}
|
|
3364
|
+
__name(_ts_decorate21, "_ts_decorate");
|
|
3365
|
+
function _ts_metadata16(k, v) {
|
|
3366
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
3367
|
+
}
|
|
3368
|
+
__name(_ts_metadata16, "_ts_metadata");
|
|
3369
|
+
function _ts_param16(paramIndex, decorator) {
|
|
3370
|
+
return function(target, key) {
|
|
3371
|
+
decorator(target, key, paramIndex);
|
|
3372
|
+
};
|
|
3373
|
+
}
|
|
3374
|
+
__name(_ts_param16, "_ts_param");
|
|
2798
3375
|
var AppModule = class extends AppProxyEventHandlersModel {
|
|
3376
|
+
static {
|
|
3377
|
+
__name(this, "AppModule");
|
|
3378
|
+
}
|
|
3379
|
+
controller;
|
|
3380
|
+
component;
|
|
3381
|
+
timer;
|
|
3382
|
+
sizes;
|
|
3383
|
+
camera;
|
|
3384
|
+
world;
|
|
3385
|
+
renderer;
|
|
3386
|
+
debug;
|
|
2799
3387
|
constructor(controller, component, timer, sizes, camera, world, renderer, debug) {
|
|
2800
|
-
super();
|
|
2801
|
-
this.controller = controller;
|
|
2802
|
-
this.component = component;
|
|
2803
|
-
this.timer = timer;
|
|
2804
|
-
this.sizes = sizes;
|
|
2805
|
-
this.camera = camera;
|
|
2806
|
-
this.world = world;
|
|
2807
|
-
this.renderer = renderer;
|
|
2808
|
-
this.debug = debug;
|
|
3388
|
+
super(), this.controller = controller, this.component = component, this.timer = timer, this.sizes = sizes, this.camera = camera, this.world = world, this.renderer = renderer, this.debug = debug;
|
|
2809
3389
|
this._initProxyEvents();
|
|
2810
3390
|
self.addEventListener("message", this._onMessage.bind(this));
|
|
2811
3391
|
}
|
|
@@ -2842,7 +3422,7 @@ var AppModule = class extends AppProxyEventHandlersModel {
|
|
|
2842
3422
|
this.renderer.init(canvas);
|
|
2843
3423
|
this.timer.init(props.startTimer);
|
|
2844
3424
|
this.debug.init(props);
|
|
2845
|
-
this.controller.lifecycle$$.next(
|
|
3425
|
+
this.controller.lifecycle$$.next(AppLifecycleState.INITIALIZED);
|
|
2846
3426
|
}
|
|
2847
3427
|
get canvas() {
|
|
2848
3428
|
return this.component.canvas;
|
|
@@ -2860,7 +3440,7 @@ var AppModule = class extends AppProxyEventHandlersModel {
|
|
|
2860
3440
|
this.renderer.dispose();
|
|
2861
3441
|
this.timer.dispose();
|
|
2862
3442
|
this.debug.dispose();
|
|
2863
|
-
this.controller.lifecycle$$.next(
|
|
3443
|
+
this.controller.lifecycle$$.next(AppLifecycleState.DISPOSED);
|
|
2864
3444
|
this.controller.lifecycle$$.complete();
|
|
2865
3445
|
self.removeEventListener("message", this._onMessage.bind(this));
|
|
2866
3446
|
}
|
|
@@ -2868,16 +3448,27 @@ var AppModule = class extends AppProxyEventHandlersModel {
|
|
|
2868
3448
|
return this.controller.lifecycle$;
|
|
2869
3449
|
}
|
|
2870
3450
|
};
|
|
2871
|
-
AppModule =
|
|
3451
|
+
AppModule = _ts_decorate21([
|
|
2872
3452
|
singleton_default(),
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
3453
|
+
_ts_param16(0, inject_default(AppController)),
|
|
3454
|
+
_ts_param16(1, inject_default(AppComponent)),
|
|
3455
|
+
_ts_param16(2, inject_default(TimerModule)),
|
|
3456
|
+
_ts_param16(3, inject_default(SizesModule)),
|
|
3457
|
+
_ts_param16(4, inject_default(CameraModule)),
|
|
3458
|
+
_ts_param16(5, inject_default(WorldModule)),
|
|
3459
|
+
_ts_param16(6, inject_default(RendererModule)),
|
|
3460
|
+
_ts_param16(7, inject_default(DebugModule)),
|
|
3461
|
+
_ts_metadata16("design:type", Function),
|
|
3462
|
+
_ts_metadata16("design:paramtypes", [
|
|
3463
|
+
typeof AppController === "undefined" ? Object : AppController,
|
|
3464
|
+
typeof AppComponent === "undefined" ? Object : AppComponent,
|
|
3465
|
+
typeof TimerModule === "undefined" ? Object : TimerModule,
|
|
3466
|
+
typeof SizesModule === "undefined" ? Object : SizesModule,
|
|
3467
|
+
typeof CameraModule === "undefined" ? Object : CameraModule,
|
|
3468
|
+
typeof WorldModule === "undefined" ? Object : WorldModule,
|
|
3469
|
+
typeof RendererModule === "undefined" ? Object : RendererModule,
|
|
3470
|
+
typeof DebugModule === "undefined" ? Object : DebugModule
|
|
3471
|
+
])
|
|
2881
3472
|
], AppModule);
|
|
2882
3473
|
var appModule = instance.resolve(AppModule);
|
|
2883
3474
|
|
|
@@ -2898,14 +3489,14 @@ var object3DSerializer = {
|
|
|
2898
3489
|
|
|
2899
3490
|
// src/core/app/app.module-worker.ts
|
|
2900
3491
|
registerSerializer(object3DSerializer);
|
|
2901
|
-
var launchApp = (props) => {
|
|
3492
|
+
var launchApp = /* @__PURE__ */ __name((props) => {
|
|
2902
3493
|
appModule.lifecycle$().subscribe((state) => {
|
|
2903
|
-
if (state ===
|
|
3494
|
+
if (state === AppLifecycleState.INITIALIZED && props?.onReady) {
|
|
2904
3495
|
props.onReady(appModule);
|
|
2905
3496
|
}
|
|
2906
3497
|
});
|
|
2907
3498
|
return appModule;
|
|
2908
|
-
};
|
|
3499
|
+
}, "launchApp");
|
|
2909
3500
|
var proxyEventHandlers = {};
|
|
2910
3501
|
var proxyObservables = {};
|
|
2911
3502
|
PROXY_EVENT_LISTENERS.forEach((key) => {
|