babylonjs-loaders 6.7.0 → 6.8.1
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/babylon.glTF1FileLoader.js +482 -429
- package/babylon.glTF1FileLoader.js.map +1 -1
- package/babylon.glTF1FileLoader.min.js +1 -1
- package/babylon.glTF1FileLoader.min.js.map +1 -1
- package/babylon.glTF2FileLoader.js +599 -547
- package/babylon.glTF2FileLoader.js.map +1 -1
- package/babylon.glTF2FileLoader.min.js +1 -1
- package/babylon.glTF2FileLoader.min.js.map +1 -1
- package/babylon.glTFFileLoader.js +667 -616
- package/babylon.glTFFileLoader.js.map +1 -1
- package/babylon.glTFFileLoader.min.js +1 -1
- package/babylon.glTFFileLoader.min.js.map +1 -1
- package/babylon.objFileLoader.js +21 -24
- package/babylon.objFileLoader.js.map +1 -1
- package/babylon.objFileLoader.min.js +1 -1
- package/babylon.objFileLoader.min.js.map +1 -1
- package/babylon.stlFileLoader.js +4 -5
- package/babylon.stlFileLoader.js.map +1 -1
- package/babylon.stlFileLoader.min.js.map +1 -1
- package/babylonjs.loaders.d.ts +8 -3
- package/babylonjs.loaders.js +712 -665
- package/babylonjs.loaders.js.map +1 -1
- package/babylonjs.loaders.min.js +1 -1
- package/babylonjs.loaders.min.js.map +1 -1
- package/babylonjs.loaders.module.d.ts +17 -7
- package/package.json +3 -5
|
@@ -12,341 +12,6 @@ return /******/ (() => { // webpackBootstrap
|
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
14
14
|
|
|
15
|
-
/***/ "../../../../node_modules/tslib/tslib.es6.js":
|
|
16
|
-
/*!***************************************************!*\
|
|
17
|
-
!*** ../../../../node_modules/tslib/tslib.es6.js ***!
|
|
18
|
-
\***************************************************/
|
|
19
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
20
|
-
|
|
21
|
-
__webpack_require__.r(__webpack_exports__);
|
|
22
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
23
|
-
/* harmony export */ "__assign": () => (/* binding */ __assign),
|
|
24
|
-
/* harmony export */ "__asyncDelegator": () => (/* binding */ __asyncDelegator),
|
|
25
|
-
/* harmony export */ "__asyncGenerator": () => (/* binding */ __asyncGenerator),
|
|
26
|
-
/* harmony export */ "__asyncValues": () => (/* binding */ __asyncValues),
|
|
27
|
-
/* harmony export */ "__await": () => (/* binding */ __await),
|
|
28
|
-
/* harmony export */ "__awaiter": () => (/* binding */ __awaiter),
|
|
29
|
-
/* harmony export */ "__classPrivateFieldGet": () => (/* binding */ __classPrivateFieldGet),
|
|
30
|
-
/* harmony export */ "__classPrivateFieldIn": () => (/* binding */ __classPrivateFieldIn),
|
|
31
|
-
/* harmony export */ "__classPrivateFieldSet": () => (/* binding */ __classPrivateFieldSet),
|
|
32
|
-
/* harmony export */ "__createBinding": () => (/* binding */ __createBinding),
|
|
33
|
-
/* harmony export */ "__decorate": () => (/* binding */ __decorate),
|
|
34
|
-
/* harmony export */ "__esDecorate": () => (/* binding */ __esDecorate),
|
|
35
|
-
/* harmony export */ "__exportStar": () => (/* binding */ __exportStar),
|
|
36
|
-
/* harmony export */ "__extends": () => (/* binding */ __extends),
|
|
37
|
-
/* harmony export */ "__generator": () => (/* binding */ __generator),
|
|
38
|
-
/* harmony export */ "__importDefault": () => (/* binding */ __importDefault),
|
|
39
|
-
/* harmony export */ "__importStar": () => (/* binding */ __importStar),
|
|
40
|
-
/* harmony export */ "__makeTemplateObject": () => (/* binding */ __makeTemplateObject),
|
|
41
|
-
/* harmony export */ "__metadata": () => (/* binding */ __metadata),
|
|
42
|
-
/* harmony export */ "__param": () => (/* binding */ __param),
|
|
43
|
-
/* harmony export */ "__propKey": () => (/* binding */ __propKey),
|
|
44
|
-
/* harmony export */ "__read": () => (/* binding */ __read),
|
|
45
|
-
/* harmony export */ "__rest": () => (/* binding */ __rest),
|
|
46
|
-
/* harmony export */ "__runInitializers": () => (/* binding */ __runInitializers),
|
|
47
|
-
/* harmony export */ "__setFunctionName": () => (/* binding */ __setFunctionName),
|
|
48
|
-
/* harmony export */ "__spread": () => (/* binding */ __spread),
|
|
49
|
-
/* harmony export */ "__spreadArray": () => (/* binding */ __spreadArray),
|
|
50
|
-
/* harmony export */ "__spreadArrays": () => (/* binding */ __spreadArrays),
|
|
51
|
-
/* harmony export */ "__values": () => (/* binding */ __values)
|
|
52
|
-
/* harmony export */ });
|
|
53
|
-
/******************************************************************************
|
|
54
|
-
Copyright (c) Microsoft Corporation.
|
|
55
|
-
|
|
56
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
57
|
-
purpose with or without fee is hereby granted.
|
|
58
|
-
|
|
59
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
60
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
61
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
62
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
63
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
64
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
65
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
66
|
-
***************************************************************************** */
|
|
67
|
-
/* global Reflect, Promise */
|
|
68
|
-
|
|
69
|
-
var extendStatics = function(d, b) {
|
|
70
|
-
extendStatics = Object.setPrototypeOf ||
|
|
71
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
72
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
73
|
-
return extendStatics(d, b);
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
function __extends(d, b) {
|
|
77
|
-
if (typeof b !== "function" && b !== null)
|
|
78
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
79
|
-
extendStatics(d, b);
|
|
80
|
-
function __() { this.constructor = d; }
|
|
81
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
var __assign = function() {
|
|
85
|
-
__assign = Object.assign || function __assign(t) {
|
|
86
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
87
|
-
s = arguments[i];
|
|
88
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
89
|
-
}
|
|
90
|
-
return t;
|
|
91
|
-
}
|
|
92
|
-
return __assign.apply(this, arguments);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
function __rest(s, e) {
|
|
96
|
-
var t = {};
|
|
97
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
98
|
-
t[p] = s[p];
|
|
99
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
100
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
101
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
102
|
-
t[p[i]] = s[p[i]];
|
|
103
|
-
}
|
|
104
|
-
return t;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
function __decorate(decorators, target, key, desc) {
|
|
108
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
109
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
110
|
-
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;
|
|
111
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
function __param(paramIndex, decorator) {
|
|
115
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
119
|
-
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
120
|
-
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
121
|
-
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
122
|
-
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
123
|
-
var _, done = false;
|
|
124
|
-
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
125
|
-
var context = {};
|
|
126
|
-
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
127
|
-
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
128
|
-
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
129
|
-
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
130
|
-
if (kind === "accessor") {
|
|
131
|
-
if (result === void 0) continue;
|
|
132
|
-
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
133
|
-
if (_ = accept(result.get)) descriptor.get = _;
|
|
134
|
-
if (_ = accept(result.set)) descriptor.set = _;
|
|
135
|
-
if (_ = accept(result.init)) initializers.push(_);
|
|
136
|
-
}
|
|
137
|
-
else if (_ = accept(result)) {
|
|
138
|
-
if (kind === "field") initializers.push(_);
|
|
139
|
-
else descriptor[key] = _;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
143
|
-
done = true;
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
function __runInitializers(thisArg, initializers, value) {
|
|
147
|
-
var useValue = arguments.length > 2;
|
|
148
|
-
for (var i = 0; i < initializers.length; i++) {
|
|
149
|
-
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
150
|
-
}
|
|
151
|
-
return useValue ? value : void 0;
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
function __propKey(x) {
|
|
155
|
-
return typeof x === "symbol" ? x : "".concat(x);
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
function __setFunctionName(f, name, prefix) {
|
|
159
|
-
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
160
|
-
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
161
|
-
};
|
|
162
|
-
|
|
163
|
-
function __metadata(metadataKey, metadataValue) {
|
|
164
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
168
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
169
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
170
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
171
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
172
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
173
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
function __generator(thisArg, body) {
|
|
178
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
179
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
180
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
181
|
-
function step(op) {
|
|
182
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
183
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
184
|
-
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;
|
|
185
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
186
|
-
switch (op[0]) {
|
|
187
|
-
case 0: case 1: t = op; break;
|
|
188
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
189
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
190
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
191
|
-
default:
|
|
192
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
193
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
194
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
195
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
196
|
-
if (t[2]) _.ops.pop();
|
|
197
|
-
_.trys.pop(); continue;
|
|
198
|
-
}
|
|
199
|
-
op = body.call(thisArg, _);
|
|
200
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
201
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
var __createBinding = Object.create ? (function(o, m, k, k2) {
|
|
206
|
-
if (k2 === undefined) k2 = k;
|
|
207
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
208
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
209
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
210
|
-
}
|
|
211
|
-
Object.defineProperty(o, k2, desc);
|
|
212
|
-
}) : (function(o, m, k, k2) {
|
|
213
|
-
if (k2 === undefined) k2 = k;
|
|
214
|
-
o[k2] = m[k];
|
|
215
|
-
});
|
|
216
|
-
|
|
217
|
-
function __exportStar(m, o) {
|
|
218
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
function __values(o) {
|
|
222
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
223
|
-
if (m) return m.call(o);
|
|
224
|
-
if (o && typeof o.length === "number") return {
|
|
225
|
-
next: function () {
|
|
226
|
-
if (o && i >= o.length) o = void 0;
|
|
227
|
-
return { value: o && o[i++], done: !o };
|
|
228
|
-
}
|
|
229
|
-
};
|
|
230
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
function __read(o, n) {
|
|
234
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
235
|
-
if (!m) return o;
|
|
236
|
-
var i = m.call(o), r, ar = [], e;
|
|
237
|
-
try {
|
|
238
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
239
|
-
}
|
|
240
|
-
catch (error) { e = { error: error }; }
|
|
241
|
-
finally {
|
|
242
|
-
try {
|
|
243
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
244
|
-
}
|
|
245
|
-
finally { if (e) throw e.error; }
|
|
246
|
-
}
|
|
247
|
-
return ar;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
/** @deprecated */
|
|
251
|
-
function __spread() {
|
|
252
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
253
|
-
ar = ar.concat(__read(arguments[i]));
|
|
254
|
-
return ar;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
/** @deprecated */
|
|
258
|
-
function __spreadArrays() {
|
|
259
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
260
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
261
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
262
|
-
r[k] = a[j];
|
|
263
|
-
return r;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
function __spreadArray(to, from, pack) {
|
|
267
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
268
|
-
if (ar || !(i in from)) {
|
|
269
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
270
|
-
ar[i] = from[i];
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
function __await(v) {
|
|
277
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
281
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
282
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
283
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
284
|
-
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
285
|
-
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
286
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
287
|
-
function fulfill(value) { resume("next", value); }
|
|
288
|
-
function reject(value) { resume("throw", value); }
|
|
289
|
-
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
function __asyncDelegator(o) {
|
|
293
|
-
var i, p;
|
|
294
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
295
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
function __asyncValues(o) {
|
|
299
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
300
|
-
var m = o[Symbol.asyncIterator], i;
|
|
301
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
302
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
303
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
function __makeTemplateObject(cooked, raw) {
|
|
307
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
308
|
-
return cooked;
|
|
309
|
-
};
|
|
310
|
-
|
|
311
|
-
var __setModuleDefault = Object.create ? (function(o, v) {
|
|
312
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
313
|
-
}) : function(o, v) {
|
|
314
|
-
o["default"] = v;
|
|
315
|
-
};
|
|
316
|
-
|
|
317
|
-
function __importStar(mod) {
|
|
318
|
-
if (mod && mod.__esModule) return mod;
|
|
319
|
-
var result = {};
|
|
320
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
321
|
-
__setModuleDefault(result, mod);
|
|
322
|
-
return result;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
function __importDefault(mod) {
|
|
326
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
330
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
331
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
332
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
336
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
337
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
338
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
339
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
function __classPrivateFieldIn(state, receiver) {
|
|
343
|
-
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
|
|
344
|
-
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
/***/ }),
|
|
349
|
-
|
|
350
15
|
/***/ "../../../lts/loaders/dist/glTF/1.0/glTFBinaryExtension.js":
|
|
351
16
|
/*!*****************************************************************!*\
|
|
352
17
|
!*** ../../../lts/loaders/dist/glTF/1.0/glTFBinaryExtension.js ***!
|
|
@@ -355,12 +20,12 @@ function __classPrivateFieldIn(state, receiver) {
|
|
|
355
20
|
|
|
356
21
|
__webpack_require__.r(__webpack_exports__);
|
|
357
22
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
358
|
-
/* harmony export */
|
|
23
|
+
/* harmony export */ GLTFBinaryExtension: () => (/* binding */ GLTFBinaryExtension)
|
|
359
24
|
/* harmony export */ });
|
|
360
|
-
/* harmony import */ var
|
|
361
|
-
/* harmony import */ var
|
|
362
|
-
/* harmony import */ var
|
|
363
|
-
/* harmony import */ var
|
|
25
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! tslib */ "../../../../node_modules/tslib/tslib.es6.mjs");
|
|
26
|
+
/* harmony import */ var _glTFLoader__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./glTFLoader */ "../../../lts/loaders/dist/glTF/1.0/glTFLoader.js");
|
|
27
|
+
/* harmony import */ var _glTFLoaderUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./glTFLoaderUtils */ "../../../lts/loaders/dist/glTF/1.0/glTFLoaderUtils.js");
|
|
28
|
+
/* harmony import */ var _glTFLoaderInterfaces__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./glTFLoaderInterfaces */ "../../../lts/loaders/dist/glTF/1.0/glTFLoaderInterfaces.js");
|
|
364
29
|
|
|
365
30
|
|
|
366
31
|
|
|
@@ -371,7 +36,7 @@ var BinaryExtensionBufferName = "binary_glTF";
|
|
|
371
36
|
* @deprecated
|
|
372
37
|
*/
|
|
373
38
|
var GLTFBinaryExtension = /** @class */ (function (_super) {
|
|
374
|
-
(0,
|
|
39
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_3__.__extends)(GLTFBinaryExtension, _super);
|
|
375
40
|
function GLTFBinaryExtension() {
|
|
376
41
|
return _super.call(this, "KHR_binary_glTF") || this;
|
|
377
42
|
}
|
|
@@ -381,7 +46,7 @@ var GLTFBinaryExtension = /** @class */ (function (_super) {
|
|
|
381
46
|
return false;
|
|
382
47
|
}
|
|
383
48
|
this._bin = data.bin;
|
|
384
|
-
onSuccess(
|
|
49
|
+
onSuccess(_glTFLoader__WEBPACK_IMPORTED_MODULE_0__.GLTFLoaderBase.CreateRuntime(data.json, scene, rootUrl));
|
|
385
50
|
return true;
|
|
386
51
|
};
|
|
387
52
|
GLTFBinaryExtension.prototype.loadBufferAsync = function (gltfRuntime, id, onSuccess, onError) {
|
|
@@ -402,7 +67,7 @@ var GLTFBinaryExtension = /** @class */ (function (_super) {
|
|
|
402
67
|
}
|
|
403
68
|
var sourceExt = source.extensions[this.name];
|
|
404
69
|
var bufferView = gltfRuntime.bufferViews[sourceExt.bufferView];
|
|
405
|
-
var buffer =
|
|
70
|
+
var buffer = _glTFLoaderUtils__WEBPACK_IMPORTED_MODULE_1__.GLTFUtils.GetBufferFromBufferView(gltfRuntime, bufferView, 0, bufferView.byteLength, _glTFLoaderInterfaces__WEBPACK_IMPORTED_MODULE_2__.EComponentType.UNSIGNED_BYTE);
|
|
406
71
|
onSuccess(buffer);
|
|
407
72
|
return true;
|
|
408
73
|
};
|
|
@@ -413,17 +78,17 @@ var GLTFBinaryExtension = /** @class */ (function (_super) {
|
|
|
413
78
|
}
|
|
414
79
|
var binaryExtensionShader = shader.extensions[this.name];
|
|
415
80
|
var bufferView = gltfRuntime.bufferViews[binaryExtensionShader.bufferView];
|
|
416
|
-
var shaderBytes =
|
|
81
|
+
var shaderBytes = _glTFLoaderUtils__WEBPACK_IMPORTED_MODULE_1__.GLTFUtils.GetBufferFromBufferView(gltfRuntime, bufferView, 0, bufferView.byteLength, _glTFLoaderInterfaces__WEBPACK_IMPORTED_MODULE_2__.EComponentType.UNSIGNED_BYTE);
|
|
417
82
|
setTimeout(function () {
|
|
418
|
-
var shaderString =
|
|
83
|
+
var shaderString = _glTFLoaderUtils__WEBPACK_IMPORTED_MODULE_1__.GLTFUtils.DecodeBufferToText(shaderBytes);
|
|
419
84
|
onSuccess(shaderString);
|
|
420
85
|
});
|
|
421
86
|
return true;
|
|
422
87
|
};
|
|
423
88
|
return GLTFBinaryExtension;
|
|
424
|
-
}(
|
|
89
|
+
}(_glTFLoader__WEBPACK_IMPORTED_MODULE_0__.GLTFLoaderExtension));
|
|
425
90
|
|
|
426
|
-
|
|
91
|
+
_glTFLoader__WEBPACK_IMPORTED_MODULE_0__.GLTFLoader.RegisterExtension(new GLTFBinaryExtension());
|
|
427
92
|
|
|
428
93
|
|
|
429
94
|
/***/ }),
|
|
@@ -436,9 +101,9 @@ _glTFLoader__WEBPACK_IMPORTED_MODULE_1__.GLTFLoader.RegisterExtension(new GLTFBi
|
|
|
436
101
|
|
|
437
102
|
__webpack_require__.r(__webpack_exports__);
|
|
438
103
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
439
|
-
/* harmony export */
|
|
440
|
-
/* harmony export */
|
|
441
|
-
/* harmony export */
|
|
104
|
+
/* harmony export */ GLTFLoader: () => (/* binding */ GLTFLoader),
|
|
105
|
+
/* harmony export */ GLTFLoaderBase: () => (/* binding */ GLTFLoaderBase),
|
|
106
|
+
/* harmony export */ GLTFLoaderExtension: () => (/* binding */ GLTFLoaderExtension)
|
|
442
107
|
/* harmony export */ });
|
|
443
108
|
/* harmony import */ var _glTFLoaderInterfaces__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./glTFLoaderInterfaces */ "../../../lts/loaders/dist/glTF/1.0/glTFLoaderInterfaces.js");
|
|
444
109
|
/* harmony import */ var core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/Engines/constants */ "core/Misc/tools");
|
|
@@ -2089,7 +1754,6 @@ var GLTFLoader = /** @class */ (function () {
|
|
|
2089
1754
|
GLTFLoader.Extensions = {};
|
|
2090
1755
|
return GLTFLoader;
|
|
2091
1756
|
}());
|
|
2092
|
-
|
|
2093
1757
|
/** @internal */
|
|
2094
1758
|
var GLTFLoaderExtension = /** @class */ (function () {
|
|
2095
1759
|
function GLTFLoaderExtension(name) {
|
|
@@ -2272,14 +1936,14 @@ _glTFFileLoader__WEBPACK_IMPORTED_MODULE_3__.GLTFFileLoader._CreateGLTF1Loader =
|
|
|
2272
1936
|
|
|
2273
1937
|
__webpack_require__.r(__webpack_exports__);
|
|
2274
1938
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2275
|
-
/* harmony export */
|
|
2276
|
-
/* harmony export */
|
|
2277
|
-
/* harmony export */
|
|
2278
|
-
/* harmony export */
|
|
2279
|
-
/* harmony export */
|
|
2280
|
-
/* harmony export */
|
|
2281
|
-
/* harmony export */
|
|
2282
|
-
/* harmony export */
|
|
1939
|
+
/* harmony export */ EBlendingFunction: () => (/* binding */ EBlendingFunction),
|
|
1940
|
+
/* harmony export */ EComponentType: () => (/* binding */ EComponentType),
|
|
1941
|
+
/* harmony export */ ECullingType: () => (/* binding */ ECullingType),
|
|
1942
|
+
/* harmony export */ EParameterType: () => (/* binding */ EParameterType),
|
|
1943
|
+
/* harmony export */ EShaderType: () => (/* binding */ EShaderType),
|
|
1944
|
+
/* harmony export */ ETextureFilterType: () => (/* binding */ ETextureFilterType),
|
|
1945
|
+
/* harmony export */ ETextureFormat: () => (/* binding */ ETextureFormat),
|
|
1946
|
+
/* harmony export */ ETextureWrapMode: () => (/* binding */ ETextureWrapMode)
|
|
2283
1947
|
/* harmony export */ });
|
|
2284
1948
|
/**
|
|
2285
1949
|
* Enums
|
|
@@ -2388,7 +2052,7 @@ var EBlendingFunction;
|
|
|
2388
2052
|
|
|
2389
2053
|
__webpack_require__.r(__webpack_exports__);
|
|
2390
2054
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2391
|
-
/* harmony export */
|
|
2055
|
+
/* harmony export */ GLTFUtils: () => (/* binding */ GLTFUtils)
|
|
2392
2056
|
/* harmony export */ });
|
|
2393
2057
|
/* harmony import */ var _glTFLoaderInterfaces__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./glTFLoaderInterfaces */ "../../../lts/loaders/dist/glTF/1.0/glTFLoaderInterfaces.js");
|
|
2394
2058
|
/* harmony import */ var core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/Materials/Textures/texture */ "core/Misc/tools");
|
|
@@ -2537,6 +2201,7 @@ var GLTFUtils = /** @class */ (function () {
|
|
|
2537
2201
|
/**
|
|
2538
2202
|
* Returns the texture filter mode giving a mode value
|
|
2539
2203
|
* @param mode the filter mode value
|
|
2204
|
+
* @returns the filter mode (TODO - needs to be a type?)
|
|
2540
2205
|
*/
|
|
2541
2206
|
GLTFUtils.GetTextureFilterMode = function (mode) {
|
|
2542
2207
|
switch (mode) {
|
|
@@ -2601,7 +2266,7 @@ var GLTFUtils = /** @class */ (function () {
|
|
|
2601
2266
|
*/
|
|
2602
2267
|
GLTFUtils.GetDefaultMaterial = function (scene) {
|
|
2603
2268
|
if (!GLTFUtils._DefaultMaterial) {
|
|
2604
|
-
core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Effect.ShadersStore
|
|
2269
|
+
core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Effect.ShadersStore["GLTFDefaultMaterialVertexShader"] = [
|
|
2605
2270
|
"precision highp float;",
|
|
2606
2271
|
"",
|
|
2607
2272
|
"uniform mat4 worldView;",
|
|
@@ -2614,7 +2279,7 @@ var GLTFUtils = /** @class */ (function () {
|
|
|
2614
2279
|
" gl_Position = projection * worldView * vec4(position, 1.0);",
|
|
2615
2280
|
"}",
|
|
2616
2281
|
].join("\n");
|
|
2617
|
-
core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Effect.ShadersStore
|
|
2282
|
+
core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Effect.ShadersStore["GLTFDefaultMaterialPixelShader"] = [
|
|
2618
2283
|
"precision highp float;",
|
|
2619
2284
|
"",
|
|
2620
2285
|
"uniform vec4 u_emission;",
|
|
@@ -2645,7 +2310,6 @@ var GLTFUtils = /** @class */ (function () {
|
|
|
2645
2310
|
}());
|
|
2646
2311
|
|
|
2647
2312
|
|
|
2648
|
-
|
|
2649
2313
|
/***/ }),
|
|
2650
2314
|
|
|
2651
2315
|
/***/ "../../../lts/loaders/dist/glTF/1.0/glTFMaterialsCommonExtension.js":
|
|
@@ -2656,12 +2320,12 @@ var GLTFUtils = /** @class */ (function () {
|
|
|
2656
2320
|
|
|
2657
2321
|
__webpack_require__.r(__webpack_exports__);
|
|
2658
2322
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2659
|
-
/* harmony export */
|
|
2323
|
+
/* harmony export */ GLTFMaterialsCommonExtension: () => (/* binding */ GLTFMaterialsCommonExtension)
|
|
2660
2324
|
/* harmony export */ });
|
|
2661
|
-
/* harmony import */ var
|
|
2662
|
-
/* harmony import */ var
|
|
2663
|
-
/* harmony import */ var
|
|
2664
|
-
/* harmony import */ var
|
|
2325
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "../../../../node_modules/tslib/tslib.es6.mjs");
|
|
2326
|
+
/* harmony import */ var _glTFLoader__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./glTFLoader */ "../../../lts/loaders/dist/glTF/1.0/glTFLoader.js");
|
|
2327
|
+
/* harmony import */ var core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/Lights/spotLight */ "core/Misc/tools");
|
|
2328
|
+
/* harmony import */ var core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__);
|
|
2665
2329
|
|
|
2666
2330
|
|
|
2667
2331
|
|
|
@@ -2678,7 +2342,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2678
2342
|
* @deprecated
|
|
2679
2343
|
*/
|
|
2680
2344
|
var GLTFMaterialsCommonExtension = /** @class */ (function (_super) {
|
|
2681
|
-
(0,
|
|
2345
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_2__.__extends)(GLTFMaterialsCommonExtension, _super);
|
|
2682
2346
|
function GLTFMaterialsCommonExtension() {
|
|
2683
2347
|
return _super.call(this, "KHR_materials_common") || this;
|
|
2684
2348
|
}
|
|
@@ -2697,39 +2361,39 @@ var GLTFMaterialsCommonExtension = /** @class */ (function (_super) {
|
|
|
2697
2361
|
var light = lights[thing];
|
|
2698
2362
|
switch (light.type) {
|
|
2699
2363
|
case "ambient": {
|
|
2700
|
-
var ambientLight = new
|
|
2364
|
+
var ambientLight = new core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.HemisphericLight(light.name, new core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Vector3(0, 1, 0), gltfRuntime.scene);
|
|
2701
2365
|
var ambient = light.ambient;
|
|
2702
2366
|
if (ambient) {
|
|
2703
|
-
ambientLight.diffuse =
|
|
2367
|
+
ambientLight.diffuse = core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Color3.FromArray(ambient.color || [1, 1, 1]);
|
|
2704
2368
|
}
|
|
2705
2369
|
break;
|
|
2706
2370
|
}
|
|
2707
2371
|
case "point": {
|
|
2708
|
-
var pointLight = new
|
|
2372
|
+
var pointLight = new core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.PointLight(light.name, new core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Vector3(10, 10, 10), gltfRuntime.scene);
|
|
2709
2373
|
var point = light.point;
|
|
2710
2374
|
if (point) {
|
|
2711
|
-
pointLight.diffuse =
|
|
2375
|
+
pointLight.diffuse = core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Color3.FromArray(point.color || [1, 1, 1]);
|
|
2712
2376
|
}
|
|
2713
2377
|
break;
|
|
2714
2378
|
}
|
|
2715
2379
|
case "directional": {
|
|
2716
|
-
var dirLight = new
|
|
2380
|
+
var dirLight = new core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.DirectionalLight(light.name, new core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Vector3(0, -1, 0), gltfRuntime.scene);
|
|
2717
2381
|
var directional = light.directional;
|
|
2718
2382
|
if (directional) {
|
|
2719
|
-
dirLight.diffuse =
|
|
2383
|
+
dirLight.diffuse = core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Color3.FromArray(directional.color || [1, 1, 1]);
|
|
2720
2384
|
}
|
|
2721
2385
|
break;
|
|
2722
2386
|
}
|
|
2723
2387
|
case "spot": {
|
|
2724
2388
|
var spot = light.spot;
|
|
2725
2389
|
if (spot) {
|
|
2726
|
-
var spotLight = new
|
|
2727
|
-
spotLight.diffuse =
|
|
2390
|
+
var spotLight = new core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.SpotLight(light.name, new core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Vector3(0, 10, 0), new core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Vector3(0, -1, 0), spot.fallOffAngle || Math.PI, spot.fallOffExponent || 0.0, gltfRuntime.scene);
|
|
2391
|
+
spotLight.diffuse = core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Color3.FromArray(spot.color || [1, 1, 1]);
|
|
2728
2392
|
}
|
|
2729
2393
|
break;
|
|
2730
2394
|
}
|
|
2731
2395
|
default:
|
|
2732
|
-
|
|
2396
|
+
core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Tools.Warn('GLTF Material Common extension: light type "' + light.type + "” not supported");
|
|
2733
2397
|
break;
|
|
2734
2398
|
}
|
|
2735
2399
|
}
|
|
@@ -2745,8 +2409,8 @@ var GLTFMaterialsCommonExtension = /** @class */ (function (_super) {
|
|
|
2745
2409
|
if (!extension) {
|
|
2746
2410
|
return false;
|
|
2747
2411
|
}
|
|
2748
|
-
var standardMaterial = new
|
|
2749
|
-
standardMaterial.sideOrientation =
|
|
2412
|
+
var standardMaterial = new core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.StandardMaterial(id, gltfRuntime.scene);
|
|
2413
|
+
standardMaterial.sideOrientation = core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Material.CounterClockWiseSideOrientation;
|
|
2750
2414
|
if (extension.technique === "CONSTANT") {
|
|
2751
2415
|
standardMaterial.disableLighting = true;
|
|
2752
2416
|
}
|
|
@@ -2758,42 +2422,42 @@ var GLTFMaterialsCommonExtension = /** @class */ (function (_super) {
|
|
|
2758
2422
|
this._loadTexture(gltfRuntime, extension.values.ambient, standardMaterial, "ambientTexture", onError);
|
|
2759
2423
|
}
|
|
2760
2424
|
else {
|
|
2761
|
-
standardMaterial.ambientColor =
|
|
2425
|
+
standardMaterial.ambientColor = core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Color3.FromArray(extension.values.ambient || [0, 0, 0]);
|
|
2762
2426
|
}
|
|
2763
2427
|
// Diffuse
|
|
2764
2428
|
if (typeof extension.values.diffuse === "string") {
|
|
2765
2429
|
this._loadTexture(gltfRuntime, extension.values.diffuse, standardMaterial, "diffuseTexture", onError);
|
|
2766
2430
|
}
|
|
2767
2431
|
else {
|
|
2768
|
-
standardMaterial.diffuseColor =
|
|
2432
|
+
standardMaterial.diffuseColor = core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Color3.FromArray(extension.values.diffuse || [0, 0, 0]);
|
|
2769
2433
|
}
|
|
2770
2434
|
// Emission
|
|
2771
2435
|
if (typeof extension.values.emission === "string") {
|
|
2772
2436
|
this._loadTexture(gltfRuntime, extension.values.emission, standardMaterial, "emissiveTexture", onError);
|
|
2773
2437
|
}
|
|
2774
2438
|
else {
|
|
2775
|
-
standardMaterial.emissiveColor =
|
|
2439
|
+
standardMaterial.emissiveColor = core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Color3.FromArray(extension.values.emission || [0, 0, 0]);
|
|
2776
2440
|
}
|
|
2777
2441
|
// Specular
|
|
2778
2442
|
if (typeof extension.values.specular === "string") {
|
|
2779
2443
|
this._loadTexture(gltfRuntime, extension.values.specular, standardMaterial, "specularTexture", onError);
|
|
2780
2444
|
}
|
|
2781
2445
|
else {
|
|
2782
|
-
standardMaterial.specularColor =
|
|
2446
|
+
standardMaterial.specularColor = core_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__.Color3.FromArray(extension.values.specular || [0, 0, 0]);
|
|
2783
2447
|
}
|
|
2784
2448
|
return true;
|
|
2785
2449
|
};
|
|
2786
2450
|
GLTFMaterialsCommonExtension.prototype._loadTexture = function (gltfRuntime, id, material, propertyPath, onError) {
|
|
2787
2451
|
// Create buffer from texture url
|
|
2788
|
-
|
|
2452
|
+
_glTFLoader__WEBPACK_IMPORTED_MODULE_0__.GLTFLoaderBase.LoadTextureBufferAsync(gltfRuntime, id, function (buffer) {
|
|
2789
2453
|
// Create texture from buffer
|
|
2790
|
-
|
|
2454
|
+
_glTFLoader__WEBPACK_IMPORTED_MODULE_0__.GLTFLoaderBase.CreateTextureAsync(gltfRuntime, id, buffer, function (texture) { return (material[propertyPath] = texture); });
|
|
2791
2455
|
}, onError);
|
|
2792
2456
|
};
|
|
2793
2457
|
return GLTFMaterialsCommonExtension;
|
|
2794
|
-
}(
|
|
2458
|
+
}(_glTFLoader__WEBPACK_IMPORTED_MODULE_0__.GLTFLoaderExtension));
|
|
2795
2459
|
|
|
2796
|
-
|
|
2460
|
+
_glTFLoader__WEBPACK_IMPORTED_MODULE_0__.GLTFLoader.RegisterExtension(new GLTFMaterialsCommonExtension());
|
|
2797
2461
|
|
|
2798
2462
|
|
|
2799
2463
|
/***/ }),
|
|
@@ -2806,20 +2470,20 @@ _glTFLoader__WEBPACK_IMPORTED_MODULE_1__.GLTFLoader.RegisterExtension(new GLTFMa
|
|
|
2806
2470
|
|
|
2807
2471
|
__webpack_require__.r(__webpack_exports__);
|
|
2808
2472
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2809
|
-
/* harmony export */
|
|
2810
|
-
/* harmony export */
|
|
2811
|
-
/* harmony export */
|
|
2812
|
-
/* harmony export */
|
|
2813
|
-
/* harmony export */
|
|
2814
|
-
/* harmony export */
|
|
2815
|
-
/* harmony export */
|
|
2816
|
-
/* harmony export */
|
|
2817
|
-
/* harmony export */
|
|
2818
|
-
/* harmony export */
|
|
2819
|
-
/* harmony export */
|
|
2820
|
-
/* harmony export */
|
|
2821
|
-
/* harmony export */
|
|
2822
|
-
/* harmony export */
|
|
2473
|
+
/* harmony export */ EBlendingFunction: () => (/* reexport safe */ _glTFLoaderInterfaces__WEBPACK_IMPORTED_MODULE_2__.EBlendingFunction),
|
|
2474
|
+
/* harmony export */ EComponentType: () => (/* reexport safe */ _glTFLoaderInterfaces__WEBPACK_IMPORTED_MODULE_2__.EComponentType),
|
|
2475
|
+
/* harmony export */ ECullingType: () => (/* reexport safe */ _glTFLoaderInterfaces__WEBPACK_IMPORTED_MODULE_2__.ECullingType),
|
|
2476
|
+
/* harmony export */ EParameterType: () => (/* reexport safe */ _glTFLoaderInterfaces__WEBPACK_IMPORTED_MODULE_2__.EParameterType),
|
|
2477
|
+
/* harmony export */ EShaderType: () => (/* reexport safe */ _glTFLoaderInterfaces__WEBPACK_IMPORTED_MODULE_2__.EShaderType),
|
|
2478
|
+
/* harmony export */ ETextureFilterType: () => (/* reexport safe */ _glTFLoaderInterfaces__WEBPACK_IMPORTED_MODULE_2__.ETextureFilterType),
|
|
2479
|
+
/* harmony export */ ETextureFormat: () => (/* reexport safe */ _glTFLoaderInterfaces__WEBPACK_IMPORTED_MODULE_2__.ETextureFormat),
|
|
2480
|
+
/* harmony export */ ETextureWrapMode: () => (/* reexport safe */ _glTFLoaderInterfaces__WEBPACK_IMPORTED_MODULE_2__.ETextureWrapMode),
|
|
2481
|
+
/* harmony export */ GLTFBinaryExtension: () => (/* reexport safe */ _glTFBinaryExtension__WEBPACK_IMPORTED_MODULE_0__.GLTFBinaryExtension),
|
|
2482
|
+
/* harmony export */ GLTFLoader: () => (/* reexport safe */ _glTFLoader__WEBPACK_IMPORTED_MODULE_1__.GLTFLoader),
|
|
2483
|
+
/* harmony export */ GLTFLoaderBase: () => (/* reexport safe */ _glTFLoader__WEBPACK_IMPORTED_MODULE_1__.GLTFLoaderBase),
|
|
2484
|
+
/* harmony export */ GLTFLoaderExtension: () => (/* reexport safe */ _glTFLoader__WEBPACK_IMPORTED_MODULE_1__.GLTFLoaderExtension),
|
|
2485
|
+
/* harmony export */ GLTFMaterialsCommonExtension: () => (/* reexport safe */ _glTFMaterialsCommonExtension__WEBPACK_IMPORTED_MODULE_4__.GLTFMaterialsCommonExtension),
|
|
2486
|
+
/* harmony export */ GLTFUtils: () => (/* reexport safe */ _glTFLoaderUtils__WEBPACK_IMPORTED_MODULE_3__.GLTFUtils)
|
|
2823
2487
|
/* harmony export */ });
|
|
2824
2488
|
/* harmony import */ var _glTFBinaryExtension__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./glTFBinaryExtension */ "../../../lts/loaders/dist/glTF/1.0/glTFBinaryExtension.js");
|
|
2825
2489
|
/* harmony import */ var _glTFLoader__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./glTFLoader */ "../../../lts/loaders/dist/glTF/1.0/glTFLoader.js");
|
|
@@ -2843,10 +2507,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2843
2507
|
|
|
2844
2508
|
__webpack_require__.r(__webpack_exports__);
|
|
2845
2509
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2846
|
-
/* harmony export */
|
|
2847
|
-
/* harmony export */
|
|
2848
|
-
/* harmony export */
|
|
2849
|
-
/* harmony export */
|
|
2510
|
+
/* harmony export */ GLTFFileLoader: () => (/* binding */ GLTFFileLoader),
|
|
2511
|
+
/* harmony export */ GLTFLoaderAnimationStartMode: () => (/* binding */ GLTFLoaderAnimationStartMode),
|
|
2512
|
+
/* harmony export */ GLTFLoaderCoordinateSystemMode: () => (/* binding */ GLTFLoaderCoordinateSystemMode),
|
|
2513
|
+
/* harmony export */ GLTFLoaderState: () => (/* binding */ GLTFLoaderState)
|
|
2850
2514
|
/* harmony export */ });
|
|
2851
2515
|
/* harmony import */ var core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/Misc/error */ "core/Misc/tools");
|
|
2852
2516
|
/* harmony import */ var core_Misc_observable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -2868,6 +2532,17 @@ function readAsync(arrayBuffer, byteOffset, byteLength) {
|
|
|
2868
2532
|
return Promise.reject(e);
|
|
2869
2533
|
}
|
|
2870
2534
|
}
|
|
2535
|
+
function readViewAsync(arrayBufferView, byteOffset, byteLength) {
|
|
2536
|
+
try {
|
|
2537
|
+
if (arrayBufferView.byteOffset + byteLength > arrayBufferView.byteLength) {
|
|
2538
|
+
throw new Error("Array length out of bounds.");
|
|
2539
|
+
}
|
|
2540
|
+
return Promise.resolve(new Uint8Array(arrayBufferView.buffer, arrayBufferView.byteOffset + byteOffset, byteLength));
|
|
2541
|
+
}
|
|
2542
|
+
catch (e) {
|
|
2543
|
+
return Promise.reject(e);
|
|
2544
|
+
}
|
|
2545
|
+
}
|
|
2871
2546
|
/**
|
|
2872
2547
|
* Mode that determines the coordinate system to use.
|
|
2873
2548
|
*/
|
|
@@ -3287,10 +2962,13 @@ var GLTFFileLoader = /** @class */ (function () {
|
|
|
3287
2962
|
/**
|
|
3288
2963
|
* @internal
|
|
3289
2964
|
*/
|
|
3290
|
-
GLTFFileLoader.prototype.loadFile = function (scene, fileOrUrl, onSuccess, onProgress, useArrayBuffer, onError) {
|
|
2965
|
+
GLTFFileLoader.prototype.loadFile = function (scene, fileOrUrl, rootUrl, onSuccess, onProgress, useArrayBuffer, onError, name) {
|
|
3291
2966
|
var _this = this;
|
|
2967
|
+
if (ArrayBuffer.isView(fileOrUrl)) {
|
|
2968
|
+
this._loadBinary(scene, fileOrUrl, rootUrl, onSuccess, onError, name);
|
|
2969
|
+
return null;
|
|
2970
|
+
}
|
|
3292
2971
|
this._progressCallback = onProgress;
|
|
3293
|
-
var rootUrl = fileOrUrl.name ? "file:" : core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__.Tools.GetFolderPath(fileOrUrl);
|
|
3294
2972
|
var fileName = fileOrUrl.name || core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__.Tools.GetFilename(fileOrUrl);
|
|
3295
2973
|
if (useArrayBuffer) {
|
|
3296
2974
|
if (this.useRangeRequests) {
|
|
@@ -3322,7 +3000,7 @@ var GLTFFileLoader = /** @class */ (function () {
|
|
|
3322
3000
|
return fileRequest_1;
|
|
3323
3001
|
}
|
|
3324
3002
|
return this._loadFile(scene, fileOrUrl, function (data) {
|
|
3325
|
-
_this._validate(scene, data, rootUrl, fileName);
|
|
3003
|
+
_this._validate(scene, new Uint8Array(data), rootUrl, fileName);
|
|
3326
3004
|
_this._unpackBinaryAsync(new core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__.DataReader({
|
|
3327
3005
|
readAsync: function (byteOffset, byteLength) { return readAsync(data, byteOffset, byteLength); },
|
|
3328
3006
|
byteLength: data.byteLength,
|
|
@@ -3332,10 +3010,22 @@ var GLTFFileLoader = /** @class */ (function () {
|
|
|
3332
3010
|
}, true, onError);
|
|
3333
3011
|
}
|
|
3334
3012
|
return this._loadFile(scene, fileOrUrl, function (data) {
|
|
3335
|
-
_this._validate(scene, data, rootUrl, fileName);
|
|
3013
|
+
_this._validate(scene, new Uint8Array(data), rootUrl, fileName);
|
|
3336
3014
|
onSuccess({ json: _this._parseJson(data) });
|
|
3337
3015
|
}, useArrayBuffer, onError);
|
|
3338
3016
|
};
|
|
3017
|
+
/**
|
|
3018
|
+
* @internal
|
|
3019
|
+
*/
|
|
3020
|
+
GLTFFileLoader.prototype._loadBinary = function (scene, data, rootUrl, onSuccess, onError, fileName) {
|
|
3021
|
+
this._validate(scene, data, rootUrl, fileName);
|
|
3022
|
+
this._unpackBinaryAsync(new core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__.DataReader({
|
|
3023
|
+
readAsync: function (byteOffset, byteLength) { return readViewAsync(data, byteOffset, byteLength); },
|
|
3024
|
+
byteLength: data.byteLength,
|
|
3025
|
+
})).then(function (loaderData) {
|
|
3026
|
+
onSuccess(loaderData);
|
|
3027
|
+
}, onError ? function (error) { return onError(undefined, error); } : undefined);
|
|
3028
|
+
};
|
|
3339
3029
|
/**
|
|
3340
3030
|
* @internal
|
|
3341
3031
|
*/
|
|
@@ -3428,7 +3118,7 @@ var GLTFFileLoader = /** @class */ (function () {
|
|
|
3428
3118
|
data.startsWith("application/octet-stream;base64," + GLTFFileLoader._MagicBase64Encoded) ||
|
|
3429
3119
|
data.startsWith("model/gltf-binary;base64," + GLTFFileLoader._MagicBase64Encoded)) {
|
|
3430
3120
|
var arrayBuffer_1 = (0,core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__.DecodeBase64UrlToBinary)(data);
|
|
3431
|
-
this._validate(scene, arrayBuffer_1);
|
|
3121
|
+
this._validate(scene, new Uint8Array(arrayBuffer_1));
|
|
3432
3122
|
return this._unpackBinaryAsync(new core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__.DataReader({
|
|
3433
3123
|
readAsync: function (byteOffset, byteLength) { return readAsync(arrayBuffer_1, byteOffset, byteLength); },
|
|
3434
3124
|
byteLength: arrayBuffer_1.byteLength,
|
|
@@ -3755,7 +3445,6 @@ var GLTFFileLoader = /** @class */ (function () {
|
|
|
3755
3445
|
GLTFFileLoader._logSpaces = " ";
|
|
3756
3446
|
return GLTFFileLoader;
|
|
3757
3447
|
}());
|
|
3758
|
-
|
|
3759
3448
|
if (core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__.SceneLoader) {
|
|
3760
3449
|
core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__.SceneLoader.RegisterPlugin(new GLTFFileLoader());
|
|
3761
3450
|
}
|
|
@@ -3771,7 +3460,7 @@ if (core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__.SceneLoader) {
|
|
|
3771
3460
|
|
|
3772
3461
|
__webpack_require__.r(__webpack_exports__);
|
|
3773
3462
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3774
|
-
/* harmony export */
|
|
3463
|
+
/* harmony export */ GLTFValidation: () => (/* binding */ GLTFValidation)
|
|
3775
3464
|
/* harmony export */ });
|
|
3776
3465
|
/* harmony import */ var core_Misc_tools__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/Misc/tools */ "core/Misc/tools");
|
|
3777
3466
|
/* harmony import */ var core_Misc_tools__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_Misc_tools__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -3838,6 +3527,7 @@ var GLTFValidation = /** @class */ (function () {
|
|
|
3838
3527
|
*/
|
|
3839
3528
|
GLTFValidation.ValidateAsync = function (data, rootUrl, fileName, getExternalResource) {
|
|
3840
3529
|
var _this = this;
|
|
3530
|
+
var dataCopy = ArrayBuffer.isView(data) ? data.slice().buffer : data;
|
|
3841
3531
|
if (typeof Worker === "function") {
|
|
3842
3532
|
return new Promise(function (resolve, reject) {
|
|
3843
3533
|
var workerContent = "".concat(validateAsync, "(").concat(workerFunc, ")()");
|
|
@@ -3877,7 +3567,7 @@ var GLTFValidation = /** @class */ (function () {
|
|
|
3877
3567
|
worker.addEventListener("error", onError);
|
|
3878
3568
|
worker.addEventListener("message", onMessage);
|
|
3879
3569
|
worker.postMessage({ id: "init", url: _this.Configuration.url });
|
|
3880
|
-
worker.postMessage({ id: "validate", data:
|
|
3570
|
+
worker.postMessage({ id: "validate", data: dataCopy, rootUrl: rootUrl, fileName: fileName });
|
|
3881
3571
|
});
|
|
3882
3572
|
}
|
|
3883
3573
|
else {
|
|
@@ -3885,7 +3575,7 @@ var GLTFValidation = /** @class */ (function () {
|
|
|
3885
3575
|
this._LoadScriptPromise = core_Misc_tools__WEBPACK_IMPORTED_MODULE_0__.Tools.LoadScriptAsync(this.Configuration.url);
|
|
3886
3576
|
}
|
|
3887
3577
|
return this._LoadScriptPromise.then(function () {
|
|
3888
|
-
return validateAsync(
|
|
3578
|
+
return validateAsync(dataCopy, rootUrl, fileName, getExternalResource);
|
|
3889
3579
|
});
|
|
3890
3580
|
}
|
|
3891
3581
|
};
|
|
@@ -3899,7 +3589,6 @@ var GLTFValidation = /** @class */ (function () {
|
|
|
3899
3589
|
}());
|
|
3900
3590
|
|
|
3901
3591
|
|
|
3902
|
-
|
|
3903
3592
|
/***/ }),
|
|
3904
3593
|
|
|
3905
3594
|
/***/ "../../../lts/loaders/dist/legacy/legacy-glTF.js":
|
|
@@ -3910,11 +3599,11 @@ var GLTFValidation = /** @class */ (function () {
|
|
|
3910
3599
|
|
|
3911
3600
|
__webpack_require__.r(__webpack_exports__);
|
|
3912
3601
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3913
|
-
/* harmony export */
|
|
3914
|
-
/* harmony export */
|
|
3915
|
-
/* harmony export */
|
|
3916
|
-
/* harmony export */
|
|
3917
|
-
/* harmony export */
|
|
3602
|
+
/* harmony export */ GLTFFileLoader: () => (/* reexport safe */ _glTF_glTFFileLoader__WEBPACK_IMPORTED_MODULE_0__.GLTFFileLoader),
|
|
3603
|
+
/* harmony export */ GLTFLoaderAnimationStartMode: () => (/* reexport safe */ _glTF_glTFFileLoader__WEBPACK_IMPORTED_MODULE_0__.GLTFLoaderAnimationStartMode),
|
|
3604
|
+
/* harmony export */ GLTFLoaderCoordinateSystemMode: () => (/* reexport safe */ _glTF_glTFFileLoader__WEBPACK_IMPORTED_MODULE_0__.GLTFLoaderCoordinateSystemMode),
|
|
3605
|
+
/* harmony export */ GLTFLoaderState: () => (/* reexport safe */ _glTF_glTFFileLoader__WEBPACK_IMPORTED_MODULE_0__.GLTFLoaderState),
|
|
3606
|
+
/* harmony export */ GLTFValidation: () => (/* reexport safe */ _glTF_glTFValidation__WEBPACK_IMPORTED_MODULE_1__.GLTFValidation)
|
|
3918
3607
|
/* harmony export */ });
|
|
3919
3608
|
/* harmony import */ var _glTF_glTFFileLoader__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../glTF/glTFFileLoader */ "../../../lts/loaders/dist/glTF/glTFFileLoader.js");
|
|
3920
3609
|
/* harmony import */ var _glTF_glTFValidation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../glTF/glTFValidation */ "../../../lts/loaders/dist/glTF/glTFValidation.js");
|
|
@@ -3948,7 +3637,7 @@ if (typeof globalObject !== "undefined") {
|
|
|
3948
3637
|
|
|
3949
3638
|
__webpack_require__.r(__webpack_exports__);
|
|
3950
3639
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3951
|
-
/* harmony export */
|
|
3640
|
+
/* harmony export */ GLTF1: () => (/* reexport module object */ _glTF_1_0_index__WEBPACK_IMPORTED_MODULE_0__)
|
|
3952
3641
|
/* harmony export */ });
|
|
3953
3642
|
/* harmony import */ var _glTF_1_0_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../glTF/1.0/index */ "../../../lts/loaders/dist/glTF/1.0/index.js");
|
|
3954
3643
|
/* eslint-disable import/no-internal-modules */
|
|
@@ -3978,12 +3667,12 @@ if (typeof globalObject !== "undefined") {
|
|
|
3978
3667
|
|
|
3979
3668
|
__webpack_require__.r(__webpack_exports__);
|
|
3980
3669
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3981
|
-
/* harmony export */
|
|
3982
|
-
/* harmony export */
|
|
3983
|
-
/* harmony export */
|
|
3984
|
-
/* harmony export */
|
|
3985
|
-
/* harmony export */
|
|
3986
|
-
/* harmony export */
|
|
3670
|
+
/* harmony export */ GLTF1: () => (/* reexport safe */ _legacy_glTF1__WEBPACK_IMPORTED_MODULE_1__.GLTF1),
|
|
3671
|
+
/* harmony export */ GLTFFileLoader: () => (/* reexport safe */ _legacy_glTF__WEBPACK_IMPORTED_MODULE_0__.GLTFFileLoader),
|
|
3672
|
+
/* harmony export */ GLTFLoaderAnimationStartMode: () => (/* reexport safe */ _legacy_glTF__WEBPACK_IMPORTED_MODULE_0__.GLTFLoaderAnimationStartMode),
|
|
3673
|
+
/* harmony export */ GLTFLoaderCoordinateSystemMode: () => (/* reexport safe */ _legacy_glTF__WEBPACK_IMPORTED_MODULE_0__.GLTFLoaderCoordinateSystemMode),
|
|
3674
|
+
/* harmony export */ GLTFLoaderState: () => (/* reexport safe */ _legacy_glTF__WEBPACK_IMPORTED_MODULE_0__.GLTFLoaderState),
|
|
3675
|
+
/* harmony export */ GLTFValidation: () => (/* reexport safe */ _legacy_glTF__WEBPACK_IMPORTED_MODULE_0__.GLTFValidation)
|
|
3987
3676
|
/* harmony export */ });
|
|
3988
3677
|
/* harmony import */ var _legacy_glTF__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./legacy-glTF */ "../../../lts/loaders/dist/legacy/legacy-glTF.js");
|
|
3989
3678
|
/* harmony import */ var _legacy_glTF1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./legacy-glTF1 */ "../../../lts/loaders/dist/legacy/legacy-glTF1.js");
|
|
@@ -4002,6 +3691,370 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4002
3691
|
|
|
4003
3692
|
module.exports = __WEBPACK_EXTERNAL_MODULE_core_Misc_tools__;
|
|
4004
3693
|
|
|
3694
|
+
/***/ }),
|
|
3695
|
+
|
|
3696
|
+
/***/ "../../../../node_modules/tslib/tslib.es6.mjs":
|
|
3697
|
+
/*!****************************************************!*\
|
|
3698
|
+
!*** ../../../../node_modules/tslib/tslib.es6.mjs ***!
|
|
3699
|
+
\****************************************************/
|
|
3700
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
3701
|
+
|
|
3702
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3703
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3704
|
+
/* harmony export */ __assign: () => (/* binding */ __assign),
|
|
3705
|
+
/* harmony export */ __asyncDelegator: () => (/* binding */ __asyncDelegator),
|
|
3706
|
+
/* harmony export */ __asyncGenerator: () => (/* binding */ __asyncGenerator),
|
|
3707
|
+
/* harmony export */ __asyncValues: () => (/* binding */ __asyncValues),
|
|
3708
|
+
/* harmony export */ __await: () => (/* binding */ __await),
|
|
3709
|
+
/* harmony export */ __awaiter: () => (/* binding */ __awaiter),
|
|
3710
|
+
/* harmony export */ __classPrivateFieldGet: () => (/* binding */ __classPrivateFieldGet),
|
|
3711
|
+
/* harmony export */ __classPrivateFieldIn: () => (/* binding */ __classPrivateFieldIn),
|
|
3712
|
+
/* harmony export */ __classPrivateFieldSet: () => (/* binding */ __classPrivateFieldSet),
|
|
3713
|
+
/* harmony export */ __createBinding: () => (/* binding */ __createBinding),
|
|
3714
|
+
/* harmony export */ __decorate: () => (/* binding */ __decorate),
|
|
3715
|
+
/* harmony export */ __esDecorate: () => (/* binding */ __esDecorate),
|
|
3716
|
+
/* harmony export */ __exportStar: () => (/* binding */ __exportStar),
|
|
3717
|
+
/* harmony export */ __extends: () => (/* binding */ __extends),
|
|
3718
|
+
/* harmony export */ __generator: () => (/* binding */ __generator),
|
|
3719
|
+
/* harmony export */ __importDefault: () => (/* binding */ __importDefault),
|
|
3720
|
+
/* harmony export */ __importStar: () => (/* binding */ __importStar),
|
|
3721
|
+
/* harmony export */ __makeTemplateObject: () => (/* binding */ __makeTemplateObject),
|
|
3722
|
+
/* harmony export */ __metadata: () => (/* binding */ __metadata),
|
|
3723
|
+
/* harmony export */ __param: () => (/* binding */ __param),
|
|
3724
|
+
/* harmony export */ __propKey: () => (/* binding */ __propKey),
|
|
3725
|
+
/* harmony export */ __read: () => (/* binding */ __read),
|
|
3726
|
+
/* harmony export */ __rest: () => (/* binding */ __rest),
|
|
3727
|
+
/* harmony export */ __runInitializers: () => (/* binding */ __runInitializers),
|
|
3728
|
+
/* harmony export */ __setFunctionName: () => (/* binding */ __setFunctionName),
|
|
3729
|
+
/* harmony export */ __spread: () => (/* binding */ __spread),
|
|
3730
|
+
/* harmony export */ __spreadArray: () => (/* binding */ __spreadArray),
|
|
3731
|
+
/* harmony export */ __spreadArrays: () => (/* binding */ __spreadArrays),
|
|
3732
|
+
/* harmony export */ __values: () => (/* binding */ __values),
|
|
3733
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
3734
|
+
/* harmony export */ });
|
|
3735
|
+
/******************************************************************************
|
|
3736
|
+
Copyright (c) Microsoft Corporation.
|
|
3737
|
+
|
|
3738
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
3739
|
+
purpose with or without fee is hereby granted.
|
|
3740
|
+
|
|
3741
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
3742
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
3743
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
3744
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
3745
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
3746
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
3747
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
3748
|
+
***************************************************************************** */
|
|
3749
|
+
/* global Reflect, Promise */
|
|
3750
|
+
|
|
3751
|
+
var extendStatics = function(d, b) {
|
|
3752
|
+
extendStatics = Object.setPrototypeOf ||
|
|
3753
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
3754
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
3755
|
+
return extendStatics(d, b);
|
|
3756
|
+
};
|
|
3757
|
+
|
|
3758
|
+
function __extends(d, b) {
|
|
3759
|
+
if (typeof b !== "function" && b !== null)
|
|
3760
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
3761
|
+
extendStatics(d, b);
|
|
3762
|
+
function __() { this.constructor = d; }
|
|
3763
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
3764
|
+
}
|
|
3765
|
+
|
|
3766
|
+
var __assign = function() {
|
|
3767
|
+
__assign = Object.assign || function __assign(t) {
|
|
3768
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
3769
|
+
s = arguments[i];
|
|
3770
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
3771
|
+
}
|
|
3772
|
+
return t;
|
|
3773
|
+
}
|
|
3774
|
+
return __assign.apply(this, arguments);
|
|
3775
|
+
}
|
|
3776
|
+
|
|
3777
|
+
function __rest(s, e) {
|
|
3778
|
+
var t = {};
|
|
3779
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
3780
|
+
t[p] = s[p];
|
|
3781
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
3782
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
3783
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
3784
|
+
t[p[i]] = s[p[i]];
|
|
3785
|
+
}
|
|
3786
|
+
return t;
|
|
3787
|
+
}
|
|
3788
|
+
|
|
3789
|
+
function __decorate(decorators, target, key, desc) {
|
|
3790
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3791
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3792
|
+
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;
|
|
3793
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3794
|
+
}
|
|
3795
|
+
|
|
3796
|
+
function __param(paramIndex, decorator) {
|
|
3797
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
3798
|
+
}
|
|
3799
|
+
|
|
3800
|
+
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
3801
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
3802
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
3803
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
3804
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
3805
|
+
var _, done = false;
|
|
3806
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
3807
|
+
var context = {};
|
|
3808
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
3809
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
3810
|
+
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
3811
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
3812
|
+
if (kind === "accessor") {
|
|
3813
|
+
if (result === void 0) continue;
|
|
3814
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
3815
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
3816
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
3817
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
3818
|
+
}
|
|
3819
|
+
else if (_ = accept(result)) {
|
|
3820
|
+
if (kind === "field") initializers.unshift(_);
|
|
3821
|
+
else descriptor[key] = _;
|
|
3822
|
+
}
|
|
3823
|
+
}
|
|
3824
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
3825
|
+
done = true;
|
|
3826
|
+
};
|
|
3827
|
+
|
|
3828
|
+
function __runInitializers(thisArg, initializers, value) {
|
|
3829
|
+
var useValue = arguments.length > 2;
|
|
3830
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
3831
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
3832
|
+
}
|
|
3833
|
+
return useValue ? value : void 0;
|
|
3834
|
+
};
|
|
3835
|
+
|
|
3836
|
+
function __propKey(x) {
|
|
3837
|
+
return typeof x === "symbol" ? x : "".concat(x);
|
|
3838
|
+
};
|
|
3839
|
+
|
|
3840
|
+
function __setFunctionName(f, name, prefix) {
|
|
3841
|
+
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
3842
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
3843
|
+
};
|
|
3844
|
+
|
|
3845
|
+
function __metadata(metadataKey, metadataValue) {
|
|
3846
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
3847
|
+
}
|
|
3848
|
+
|
|
3849
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
3850
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3851
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
3852
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
3853
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
3854
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
3855
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
3856
|
+
});
|
|
3857
|
+
}
|
|
3858
|
+
|
|
3859
|
+
function __generator(thisArg, body) {
|
|
3860
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
3861
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
3862
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
3863
|
+
function step(op) {
|
|
3864
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
3865
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
3866
|
+
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;
|
|
3867
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
3868
|
+
switch (op[0]) {
|
|
3869
|
+
case 0: case 1: t = op; break;
|
|
3870
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
3871
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
3872
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
3873
|
+
default:
|
|
3874
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
3875
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
3876
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
3877
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
3878
|
+
if (t[2]) _.ops.pop();
|
|
3879
|
+
_.trys.pop(); continue;
|
|
3880
|
+
}
|
|
3881
|
+
op = body.call(thisArg, _);
|
|
3882
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
3883
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
3884
|
+
}
|
|
3885
|
+
}
|
|
3886
|
+
|
|
3887
|
+
var __createBinding = Object.create ? (function(o, m, k, k2) {
|
|
3888
|
+
if (k2 === undefined) k2 = k;
|
|
3889
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
3890
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
3891
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
3892
|
+
}
|
|
3893
|
+
Object.defineProperty(o, k2, desc);
|
|
3894
|
+
}) : (function(o, m, k, k2) {
|
|
3895
|
+
if (k2 === undefined) k2 = k;
|
|
3896
|
+
o[k2] = m[k];
|
|
3897
|
+
});
|
|
3898
|
+
|
|
3899
|
+
function __exportStar(m, o) {
|
|
3900
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
|
|
3901
|
+
}
|
|
3902
|
+
|
|
3903
|
+
function __values(o) {
|
|
3904
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
3905
|
+
if (m) return m.call(o);
|
|
3906
|
+
if (o && typeof o.length === "number") return {
|
|
3907
|
+
next: function () {
|
|
3908
|
+
if (o && i >= o.length) o = void 0;
|
|
3909
|
+
return { value: o && o[i++], done: !o };
|
|
3910
|
+
}
|
|
3911
|
+
};
|
|
3912
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
3913
|
+
}
|
|
3914
|
+
|
|
3915
|
+
function __read(o, n) {
|
|
3916
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
3917
|
+
if (!m) return o;
|
|
3918
|
+
var i = m.call(o), r, ar = [], e;
|
|
3919
|
+
try {
|
|
3920
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
3921
|
+
}
|
|
3922
|
+
catch (error) { e = { error: error }; }
|
|
3923
|
+
finally {
|
|
3924
|
+
try {
|
|
3925
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
3926
|
+
}
|
|
3927
|
+
finally { if (e) throw e.error; }
|
|
3928
|
+
}
|
|
3929
|
+
return ar;
|
|
3930
|
+
}
|
|
3931
|
+
|
|
3932
|
+
/** @deprecated */
|
|
3933
|
+
function __spread() {
|
|
3934
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
3935
|
+
ar = ar.concat(__read(arguments[i]));
|
|
3936
|
+
return ar;
|
|
3937
|
+
}
|
|
3938
|
+
|
|
3939
|
+
/** @deprecated */
|
|
3940
|
+
function __spreadArrays() {
|
|
3941
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
3942
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
3943
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
3944
|
+
r[k] = a[j];
|
|
3945
|
+
return r;
|
|
3946
|
+
}
|
|
3947
|
+
|
|
3948
|
+
function __spreadArray(to, from, pack) {
|
|
3949
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3950
|
+
if (ar || !(i in from)) {
|
|
3951
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
3952
|
+
ar[i] = from[i];
|
|
3953
|
+
}
|
|
3954
|
+
}
|
|
3955
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
3956
|
+
}
|
|
3957
|
+
|
|
3958
|
+
function __await(v) {
|
|
3959
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
3960
|
+
}
|
|
3961
|
+
|
|
3962
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
3963
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
3964
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
3965
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
3966
|
+
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
3967
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
3968
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
3969
|
+
function fulfill(value) { resume("next", value); }
|
|
3970
|
+
function reject(value) { resume("throw", value); }
|
|
3971
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
3972
|
+
}
|
|
3973
|
+
|
|
3974
|
+
function __asyncDelegator(o) {
|
|
3975
|
+
var i, p;
|
|
3976
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
3977
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
|
3978
|
+
}
|
|
3979
|
+
|
|
3980
|
+
function __asyncValues(o) {
|
|
3981
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
3982
|
+
var m = o[Symbol.asyncIterator], i;
|
|
3983
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
3984
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
3985
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
3986
|
+
}
|
|
3987
|
+
|
|
3988
|
+
function __makeTemplateObject(cooked, raw) {
|
|
3989
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3990
|
+
return cooked;
|
|
3991
|
+
};
|
|
3992
|
+
|
|
3993
|
+
var __setModuleDefault = Object.create ? (function(o, v) {
|
|
3994
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
3995
|
+
}) : function(o, v) {
|
|
3996
|
+
o["default"] = v;
|
|
3997
|
+
};
|
|
3998
|
+
|
|
3999
|
+
function __importStar(mod) {
|
|
4000
|
+
if (mod && mod.__esModule) return mod;
|
|
4001
|
+
var result = {};
|
|
4002
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
4003
|
+
__setModuleDefault(result, mod);
|
|
4004
|
+
return result;
|
|
4005
|
+
}
|
|
4006
|
+
|
|
4007
|
+
function __importDefault(mod) {
|
|
4008
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
4009
|
+
}
|
|
4010
|
+
|
|
4011
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
4012
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
4013
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4014
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
4015
|
+
}
|
|
4016
|
+
|
|
4017
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
4018
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4019
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
4020
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
4021
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
4022
|
+
}
|
|
4023
|
+
|
|
4024
|
+
function __classPrivateFieldIn(state, receiver) {
|
|
4025
|
+
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
|
|
4026
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
4027
|
+
}
|
|
4028
|
+
|
|
4029
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
4030
|
+
__extends,
|
|
4031
|
+
__assign,
|
|
4032
|
+
__rest,
|
|
4033
|
+
__decorate,
|
|
4034
|
+
__param,
|
|
4035
|
+
__metadata,
|
|
4036
|
+
__awaiter,
|
|
4037
|
+
__generator,
|
|
4038
|
+
__createBinding,
|
|
4039
|
+
__exportStar,
|
|
4040
|
+
__values,
|
|
4041
|
+
__read,
|
|
4042
|
+
__spread,
|
|
4043
|
+
__spreadArrays,
|
|
4044
|
+
__spreadArray,
|
|
4045
|
+
__await,
|
|
4046
|
+
__asyncGenerator,
|
|
4047
|
+
__asyncDelegator,
|
|
4048
|
+
__asyncValues,
|
|
4049
|
+
__makeTemplateObject,
|
|
4050
|
+
__importStar,
|
|
4051
|
+
__importDefault,
|
|
4052
|
+
__classPrivateFieldGet,
|
|
4053
|
+
__classPrivateFieldSet,
|
|
4054
|
+
__classPrivateFieldIn,
|
|
4055
|
+
});
|
|
4056
|
+
|
|
4057
|
+
|
|
4005
4058
|
/***/ })
|
|
4006
4059
|
|
|
4007
4060
|
/******/ });
|
|
@@ -4093,7 +4146,7 @@ var __webpack_exports__ = {};
|
|
|
4093
4146
|
__webpack_require__.r(__webpack_exports__);
|
|
4094
4147
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4095
4148
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
4096
|
-
/* harmony export */
|
|
4149
|
+
/* harmony export */ loaders: () => (/* reexport module object */ loaders_legacy_legacy_glTF1FileLoader__WEBPACK_IMPORTED_MODULE_0__)
|
|
4097
4150
|
/* harmony export */ });
|
|
4098
4151
|
/* harmony import */ var loaders_legacy_legacy_glTF1FileLoader__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! loaders/legacy/legacy-glTF1FileLoader */ "../../../lts/loaders/dist/legacy/legacy-glTF1FileLoader.js");
|
|
4099
4152
|
// eslint-disable-next-line import/export
|