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