@cesium/engine 0.1.0 → 1.1.0

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.
Files changed (217) hide show
  1. package/Build/Workers/{AttributeCompression-4589338a.js → AttributeCompression-b646d393.js} +1 -1
  2. package/Build/Workers/{AxisAlignedBoundingBox-bfb1234f.js → AxisAlignedBoundingBox-a4321399.js} +1 -1
  3. package/Build/Workers/{BoundingRectangle-7ffc2153.js → BoundingRectangle-80d8801f.js} +1 -1
  4. package/Build/Workers/{BoxGeometry-93f344a3.js → BoxGeometry-33c10a4f.js} +1 -1
  5. package/Build/Workers/{Color-0c5aaf47.js → Color-1bf9a6e0.js} +1 -1
  6. package/Build/Workers/{CoplanarPolygonGeometryLibrary-6597982a.js → CoplanarPolygonGeometryLibrary-5c5b981b.js} +1 -1
  7. package/Build/Workers/{CorridorGeometryLibrary-2119580e.js → CorridorGeometryLibrary-7cbae7a0.js} +1 -1
  8. package/Build/Workers/{CylinderGeometry-f9503c6d.js → CylinderGeometry-42740df0.js} +1 -1
  9. package/Build/Workers/{EllipseGeometry-fedf72d5.js → EllipseGeometry-49a3ac21.js} +1 -1
  10. package/Build/Workers/{EllipseGeometryLibrary-4ea68687.js → EllipseGeometryLibrary-b891b2f8.js} +1 -1
  11. package/Build/Workers/{EllipseOutlineGeometry-e2ae6a35.js → EllipseOutlineGeometry-fbd72e07.js} +1 -1
  12. package/Build/Workers/{EllipsoidGeodesic-16de63ea.js → EllipsoidGeodesic-98c62a56.js} +1 -1
  13. package/Build/Workers/{EllipsoidGeometry-95c0330e.js → EllipsoidGeometry-a351dba8.js} +1 -1
  14. package/Build/Workers/{EllipsoidOutlineGeometry-d6d2ceec.js → EllipsoidOutlineGeometry-3e8779bf.js} +1 -1
  15. package/Build/Workers/{EllipsoidRhumbLine-ae5e65e0.js → EllipsoidRhumbLine-19756602.js} +1 -1
  16. package/Build/Workers/{EllipsoidTangentPlane-bfc674bf.js → EllipsoidTangentPlane-cfb50678.js} +1 -1
  17. package/Build/Workers/{EncodedCartesian3-f473ea18.js → EncodedCartesian3-81f70735.js} +1 -1
  18. package/Build/Workers/{FrustumGeometry-3bf2e4eb.js → FrustumGeometry-c5754412.js} +1 -1
  19. package/Build/Workers/{GeometryAttribute-df5f473e.js → GeometryAttribute-0bfd05e8.js} +1 -1
  20. package/Build/Workers/{GeometryInstance-aa75b4cf.js → GeometryInstance-451dc1cd.js} +1 -1
  21. package/Build/Workers/{GeometryPipeline-f0e46c42.js → GeometryPipeline-0166905d.js} +1 -1
  22. package/Build/Workers/{IntersectionTests-9de29d51.js → IntersectionTests-a93d3de9.js} +1 -1
  23. package/Build/Workers/{Matrix2-ce637455.js → Matrix2-13178034.js} +4 -2
  24. package/Build/Workers/{Matrix3-4f4df527.js → Matrix3-315394f6.js} +2 -1
  25. package/Build/Workers/{OrientedBoundingBox-d3ff3d4d.js → OrientedBoundingBox-b450cb61.js} +5 -5
  26. package/Build/Workers/{Plane-b81241c2.js → Plane-900aa728.js} +1 -1
  27. package/Build/Workers/{PolygonGeometryLibrary-6f4937bb.js → PolygonGeometryLibrary-f918ac26.js} +1 -1
  28. package/Build/Workers/PolygonPipeline-f59a8f0a.js +1345 -0
  29. package/Build/Workers/{PolylinePipeline-2e2b015c.js → PolylinePipeline-d8e6bd9b.js} +1 -1
  30. package/Build/Workers/{PolylineVolumeGeometryLibrary-7ee1d449.js → PolylineVolumeGeometryLibrary-125d2edf.js} +1 -1
  31. package/Build/Workers/{PrimitivePipeline-a9b7aae0.js → PrimitivePipeline-0d7b5ed4.js} +1 -1
  32. package/Build/Workers/{RectangleGeometryLibrary-9aa6c8f6.js → RectangleGeometryLibrary-0768db63.js} +1 -1
  33. package/Build/Workers/{TerrainEncoding-b52dcfc5.js → TerrainEncoding-06470d7f.js} +1 -1
  34. package/Build/Workers/{Transforms-2f755df8.js → Transforms-26539bce.js} +97 -83
  35. package/Build/Workers/{WallGeometryLibrary-ab19a93d.js → WallGeometryLibrary-6167b0fc.js} +1 -1
  36. package/Build/Workers/{WebMercatorProjection-9f25de49.js → WebMercatorProjection-13a90d41.js} +1 -1
  37. package/Build/Workers/cesiumWorkerBootstrapper.js +25 -1
  38. package/Build/Workers/combineGeometry.js +1 -1
  39. package/Build/Workers/createBoxGeometry.js +1 -1
  40. package/Build/Workers/createBoxOutlineGeometry.js +1 -1
  41. package/Build/Workers/createCircleGeometry.js +1 -1
  42. package/Build/Workers/createCircleOutlineGeometry.js +1 -1
  43. package/Build/Workers/createCoplanarPolygonGeometry.js +1 -1
  44. package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +1 -1
  45. package/Build/Workers/createCorridorGeometry.js +1 -1
  46. package/Build/Workers/createCorridorOutlineGeometry.js +1 -1
  47. package/Build/Workers/createCylinderGeometry.js +1 -1
  48. package/Build/Workers/createCylinderOutlineGeometry.js +1 -1
  49. package/Build/Workers/createEllipseGeometry.js +1 -1
  50. package/Build/Workers/createEllipseOutlineGeometry.js +1 -1
  51. package/Build/Workers/createEllipsoidGeometry.js +1 -1
  52. package/Build/Workers/createEllipsoidOutlineGeometry.js +1 -1
  53. package/Build/Workers/createFrustumGeometry.js +1 -1
  54. package/Build/Workers/createFrustumOutlineGeometry.js +1 -1
  55. package/Build/Workers/createGeometry.js +1 -1
  56. package/Build/Workers/createGroundPolylineGeometry.js +1 -1
  57. package/Build/Workers/createPlaneGeometry.js +1 -1
  58. package/Build/Workers/createPlaneOutlineGeometry.js +1 -1
  59. package/Build/Workers/createPolygonGeometry.js +1 -1
  60. package/Build/Workers/createPolygonOutlineGeometry.js +1 -1
  61. package/Build/Workers/createPolylineGeometry.js +1 -1
  62. package/Build/Workers/createPolylineVolumeGeometry.js +1 -1
  63. package/Build/Workers/createPolylineVolumeOutlineGeometry.js +1 -1
  64. package/Build/Workers/createRectangleGeometry.js +1 -1
  65. package/Build/Workers/createRectangleOutlineGeometry.js +1 -1
  66. package/Build/Workers/createSimplePolylineGeometry.js +1 -1
  67. package/Build/Workers/createSphereGeometry.js +1 -1
  68. package/Build/Workers/createSphereOutlineGeometry.js +1 -1
  69. package/Build/Workers/createVectorTileClampedPolylines.js +1 -1
  70. package/Build/Workers/createVectorTileGeometries.js +1 -1
  71. package/Build/Workers/createVectorTilePoints.js +1 -1
  72. package/Build/Workers/createVectorTilePolygons.js +1 -1
  73. package/Build/Workers/createVectorTilePolylines.js +1 -1
  74. package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +1 -1
  75. package/Build/Workers/createVerticesFromHeightmap.js +7 -3
  76. package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +1 -1
  77. package/Build/Workers/createWallGeometry.js +1 -1
  78. package/Build/Workers/createWallOutlineGeometry.js +1 -1
  79. package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +95 -76
  80. package/Build/Workers/decodeI3S.js +1 -1
  81. package/Build/Workers/package.js +25 -1
  82. package/Build/Workers/transferTypedArrayTest.js +25 -1
  83. package/Build/Workers/upsampleQuantizedTerrainMesh.js +1 -1
  84. package/README.md +9 -9
  85. package/Source/Core/EarthOrientationParameters.js +67 -63
  86. package/Source/Core/Ion.js +1 -1
  87. package/Source/Core/Matrix2.js +2 -1
  88. package/Source/Core/Matrix3.js +2 -1
  89. package/Source/Core/Matrix4.js +1 -0
  90. package/Source/Core/OrientedBoundingBox.js +4 -4
  91. package/Source/Core/S2Cell.js +3 -3
  92. package/Source/Core/Transforms.js +3 -7
  93. package/Source/DataSources/GpxDataSource.js +4 -6
  94. package/Source/DataSources/KmlDataSource.js +3 -5
  95. package/Source/Renderer/Context.js +230 -177
  96. package/Source/Renderer/Pass.js +3 -2
  97. package/Source/Scene/Cesium3DTileContentType.js +19 -0
  98. package/Source/Scene/Cesium3DTilesVoxelProvider.js +482 -0
  99. package/Source/Scene/Cesium3DTilesetMetadata.js +2 -2
  100. package/Source/Scene/ContentMetadata.js +2 -2
  101. package/Source/Scene/DerivedCommand.js +7 -0
  102. package/Source/Scene/Expression.js +1 -1
  103. package/Source/Scene/Globe.js +10 -0
  104. package/Source/Scene/GlobeSurfaceTileProvider.js +7 -0
  105. package/Source/Scene/GltfImageLoader.js +1 -1
  106. package/Source/Scene/GltfVertexBufferLoader.js +10 -2
  107. package/Source/Scene/GroupMetadata.js +2 -2
  108. package/Source/Scene/I3SDataProvider.js +2 -1
  109. package/Source/Scene/I3SFeature.js +1 -1
  110. package/Source/Scene/I3SLayer.js +64 -2
  111. package/Source/Scene/I3SNode.js +50 -6
  112. package/Source/Scene/ImplicitMetadataView.js +2 -2
  113. package/Source/Scene/ImplicitSubtreeCache.js +127 -0
  114. package/Source/Scene/ImplicitSubtreeMetadata.js +2 -2
  115. package/Source/Scene/ImplicitTileset.js +3 -2
  116. package/Source/Scene/KeyframeNode.js +47 -0
  117. package/Source/Scene/Megatexture.js +490 -0
  118. package/Source/Scene/MetadataClass.js +60 -25
  119. package/Source/Scene/MetadataClassProperty.js +132 -68
  120. package/Source/Scene/MetadataComponentType.js +78 -57
  121. package/Source/Scene/MetadataEnum.js +59 -23
  122. package/Source/Scene/MetadataEnumValue.js +49 -15
  123. package/Source/Scene/MetadataSchema.js +53 -24
  124. package/Source/Scene/MetadataSchemaLoader.js +2 -2
  125. package/Source/Scene/MetadataTableProperty.js +2 -2
  126. package/Source/Scene/MetadataType.js +6 -14
  127. package/Source/Scene/Model/GeoJsonLoader.js +1 -1
  128. package/Source/Scene/Model/Model.js +38 -6
  129. package/Source/Scene/Model/buildDrawCommand.js +19 -11
  130. package/Source/Scene/PointCloud.js +1 -1
  131. package/Source/Scene/PropertyAttribute.js +2 -2
  132. package/Source/Scene/PropertyAttributeProperty.js +2 -2
  133. package/Source/Scene/PropertyTable.js +2 -2
  134. package/Source/Scene/PropertyTexture.js +2 -2
  135. package/Source/Scene/PropertyTextureProperty.js +2 -2
  136. package/Source/Scene/ResourceCache.js +9 -1
  137. package/Source/Scene/ResourceCacheKey.js +9 -1
  138. package/Source/Scene/Scene.js +20 -50
  139. package/Source/Scene/SpatialNode.js +375 -0
  140. package/Source/Scene/StructuralMetadata.js +2 -2
  141. package/Source/Scene/TileMetadata.js +2 -2
  142. package/Source/Scene/TilesetMetadata.js +2 -2
  143. package/Source/Scene/VoxelBoxShape.js +527 -0
  144. package/Source/Scene/VoxelContent.js +169 -0
  145. package/Source/Scene/VoxelCylinderShape.js +937 -0
  146. package/Source/Scene/VoxelEllipsoidShape.js +937 -0
  147. package/Source/Scene/VoxelPrimitive.js +1919 -0
  148. package/Source/Scene/VoxelProvider.js +255 -0
  149. package/Source/Scene/VoxelRenderResources.js +224 -0
  150. package/Source/Scene/VoxelShape.js +152 -0
  151. package/Source/Scene/VoxelShapeType.js +105 -0
  152. package/Source/Scene/VoxelTraversal.js +1144 -0
  153. package/Source/Scene/buildVoxelDrawCommands.js +116 -0
  154. package/Source/Scene/parseBatchTable.js +18 -2
  155. package/Source/Scene/preprocess3DTileContent.js +8 -0
  156. package/Source/Scene/processVoxelProperties.js +455 -0
  157. package/Source/Shaders/BillboardCollectionVS.glsl +1 -1
  158. package/Source/Shaders/BillboardCollectionVS.js +1 -1
  159. package/Source/Shaders/Builtin/Constants/passOverlay.glsl +1 -1
  160. package/Source/Shaders/Builtin/Constants/passOverlay.js +1 -1
  161. package/Source/Shaders/Builtin/Constants/passVoxels.glsl +9 -0
  162. package/Source/Shaders/Builtin/Constants/passVoxels.js +11 -0
  163. package/Source/Shaders/Builtin/CzmBuiltins.js +2 -0
  164. package/Source/Shaders/Builtin/Functions/windowToEyeCoordinates.glsl +55 -43
  165. package/Source/Shaders/Builtin/Functions/windowToEyeCoordinates.js +55 -43
  166. package/Source/Shaders/GlobeFS.glsl +2 -1
  167. package/Source/Shaders/GlobeFS.js +2 -1
  168. package/Source/Shaders/PointPrimitiveCollectionVS.glsl +5 -2
  169. package/Source/Shaders/PointPrimitiveCollectionVS.js +5 -2
  170. package/Source/Shaders/Voxels/IntersectBox.glsl +79 -0
  171. package/Source/Shaders/Voxels/IntersectBox.js +81 -0
  172. package/Source/Shaders/Voxels/IntersectClippingPlanes.glsl +70 -0
  173. package/Source/Shaders/Voxels/IntersectClippingPlanes.js +72 -0
  174. package/Source/Shaders/Voxels/IntersectCylinder.glsl +273 -0
  175. package/Source/Shaders/Voxels/IntersectCylinder.js +275 -0
  176. package/Source/Shaders/Voxels/IntersectDepth.glsl +23 -0
  177. package/Source/Shaders/Voxels/IntersectDepth.js +25 -0
  178. package/Source/Shaders/Voxels/IntersectEllipsoid.glsl +337 -0
  179. package/Source/Shaders/Voxels/IntersectEllipsoid.js +339 -0
  180. package/Source/Shaders/Voxels/Intersection.glsl +54 -0
  181. package/Source/Shaders/Voxels/Intersection.js +56 -0
  182. package/Source/Shaders/Voxels/IntersectionUtils.glsl +151 -0
  183. package/Source/Shaders/Voxels/IntersectionUtils.js +153 -0
  184. package/Source/Shaders/Voxels/Megatexture.glsl +136 -0
  185. package/Source/Shaders/Voxels/Megatexture.js +138 -0
  186. package/Source/Shaders/Voxels/Octree.glsl +221 -0
  187. package/Source/Shaders/Voxels/Octree.js +223 -0
  188. package/Source/Shaders/Voxels/VoxelFS.glsl +150 -0
  189. package/Source/Shaders/Voxels/VoxelFS.js +152 -0
  190. package/Source/Shaders/Voxels/VoxelVS.glsl +11 -0
  191. package/Source/Shaders/Voxels/VoxelVS.js +13 -0
  192. package/Source/Shaders/Voxels/convertUvToBox.glsl +16 -0
  193. package/Source/Shaders/Voxels/convertUvToBox.js +18 -0
  194. package/Source/Shaders/Voxels/convertUvToCylinder.glsl +79 -0
  195. package/Source/Shaders/Voxels/convertUvToCylinder.js +81 -0
  196. package/Source/Shaders/Voxels/convertUvToEllipsoid.glsl +133 -0
  197. package/Source/Shaders/Voxels/convertUvToEllipsoid.js +135 -0
  198. package/Source/ThirdParty/Workers/draco_decoder_nodejs.js +100 -101
  199. package/Source/ThirdParty/Workers/pako_deflate.min.js +2 -2
  200. package/Source/ThirdParty/Workers/pako_inflate.min.js +2 -2
  201. package/Source/ThirdParty/draco_decoder.wasm +0 -0
  202. package/Source/Widget/CesiumWidget.js +1 -1
  203. package/index.d.ts +961 -56
  204. package/index.js +92 -60
  205. package/package.json +6 -4
  206. package/Build/ThirdParty/Workers/basis_transcoder.js +0 -2233
  207. package/Build/ThirdParty/Workers/draco_decoder_nodejs.js +0 -1872
  208. package/Build/ThirdParty/Workers/package.json +0 -1
  209. package/Build/ThirdParty/Workers/pako_deflate.min.js +0 -589
  210. package/Build/ThirdParty/Workers/pako_inflate.min.js +0 -798
  211. package/Build/ThirdParty/Workers/z-worker-pako.js +0 -503
  212. package/Build/ThirdParty/basis_transcoder.wasm +0 -0
  213. package/Build/ThirdParty/draco_decoder.wasm +0 -0
  214. package/Build/ThirdParty/google-earth-dbroot-parser.js +0 -8019
  215. package/Build/Widget/CesiumWidget.css +0 -120
  216. package/Build/Widget/lighter.css +0 -13
  217. package/Build/Workers/PolygonPipeline-774a8aaf.js +0 -1341
@@ -1,1872 +0,0 @@
1
- undefined
2
- var $jscomp = $jscomp || {};
3
- $jscomp.scope = {};
4
- $jscomp.arrayIteratorImpl = function(k) {
5
- var n = 0;
6
- return function() {
7
- return n < k.length ? { done: false, value: k[n++] } : { done: true };
8
- };
9
- };
10
- $jscomp.arrayIterator = function(k) {
11
- return { next: $jscomp.arrayIteratorImpl(k) };
12
- };
13
- $jscomp.makeIterator = function(k) {
14
- var n = "undefined" != typeof Symbol && Symbol.iterator && k[Symbol.iterator];
15
- return n ? n.call(k) : $jscomp.arrayIterator(k);
16
- };
17
- $jscomp.ASSUME_ES5 = false;
18
- $jscomp.ASSUME_NO_NATIVE_MAP = false;
19
- $jscomp.ASSUME_NO_NATIVE_SET = false;
20
- $jscomp.SIMPLE_FROUND_POLYFILL = false;
21
- $jscomp.ISOLATE_POLYFILLS = false;
22
- $jscomp.FORCE_POLYFILL_PROMISE = false;
23
- $jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION = false;
24
- $jscomp.getGlobal = function(k) {
25
- k = ["object" == typeof globalThis && globalThis, k, "object" == typeof window && window, "object" == typeof self && self, "object" == typeof global && global];
26
- for (var n = 0; n < k.length; ++n) {
27
- var l = k[n];
28
- if (l && l.Math == Math)
29
- return l;
30
- }
31
- throw Error("Cannot find global object");
32
- };
33
- $jscomp.global = $jscomp.getGlobal(this);
34
- $jscomp.defineProperty = $jscomp.ASSUME_ES5 || "function" == typeof Object.defineProperties ? Object.defineProperty : function(k, n, l) {
35
- if (k == Array.prototype || k == Object.prototype)
36
- return k;
37
- k[n] = l.value;
38
- return k;
39
- };
40
- $jscomp.IS_SYMBOL_NATIVE = "function" === typeof Symbol && "symbol" === typeof Symbol("x");
41
- $jscomp.TRUST_ES6_POLYFILLS = !$jscomp.ISOLATE_POLYFILLS || $jscomp.IS_SYMBOL_NATIVE;
42
- $jscomp.polyfills = {};
43
- $jscomp.propertyToPolyfillSymbol = {};
44
- $jscomp.POLYFILL_PREFIX = "$jscp$";
45
- var $jscomp$lookupPolyfilledValue = function(k, n) {
46
- var l = $jscomp.propertyToPolyfillSymbol[n];
47
- if (null == l)
48
- return k[n];
49
- l = k[l];
50
- return void 0 !== l ? l : k[n];
51
- };
52
- $jscomp.polyfill = function(k, n, l, p) {
53
- n && ($jscomp.ISOLATE_POLYFILLS ? $jscomp.polyfillIsolated(k, n, l, p) : $jscomp.polyfillUnisolated(k, n, l, p));
54
- };
55
- $jscomp.polyfillUnisolated = function(k, n, l, p) {
56
- l = $jscomp.global;
57
- k = k.split(".");
58
- for (p = 0; p < k.length - 1; p++) {
59
- var h = k[p];
60
- if (!(h in l))
61
- return;
62
- l = l[h];
63
- }
64
- k = k[k.length - 1];
65
- p = l[k];
66
- n = n(p);
67
- n != p && null != n && $jscomp.defineProperty(l, k, { configurable: true, writable: true, value: n });
68
- };
69
- $jscomp.polyfillIsolated = function(k, n, l, p) {
70
- var h = k.split(".");
71
- k = 1 === h.length;
72
- p = h[0];
73
- p = !k && p in $jscomp.polyfills ? $jscomp.polyfills : $jscomp.global;
74
- for (var A = 0; A < h.length - 1; A++) {
75
- var f = h[A];
76
- if (!(f in p))
77
- return;
78
- p = p[f];
79
- }
80
- h = h[h.length - 1];
81
- l = $jscomp.IS_SYMBOL_NATIVE && "es6" === l ? p[h] : null;
82
- n = n(l);
83
- null != n && (k ? $jscomp.defineProperty($jscomp.polyfills, h, { configurable: true, writable: true, value: n }) : n !== l && (void 0 === $jscomp.propertyToPolyfillSymbol[h] && (l = 1e9 * Math.random() >>> 0, $jscomp.propertyToPolyfillSymbol[h] = $jscomp.IS_SYMBOL_NATIVE ? $jscomp.global.Symbol(h) : $jscomp.POLYFILL_PREFIX + l + "$" + h), $jscomp.defineProperty(p, $jscomp.propertyToPolyfillSymbol[h], { configurable: true, writable: true, value: n })));
84
- };
85
- $jscomp.polyfill("Promise", function(k) {
86
- function n() {
87
- this.batch_ = null;
88
- }
89
- function l(f) {
90
- return f instanceof h ? f : new h(function(q, v) {
91
- q(f);
92
- });
93
- }
94
- if (k && (!($jscomp.FORCE_POLYFILL_PROMISE || $jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION && "undefined" === typeof $jscomp.global.PromiseRejectionEvent) || !$jscomp.global.Promise || -1 === $jscomp.global.Promise.toString().indexOf("[native code]")))
95
- return k;
96
- n.prototype.asyncExecute = function(f) {
97
- if (null == this.batch_) {
98
- this.batch_ = [];
99
- var q = this;
100
- this.asyncExecuteFunction(function() {
101
- q.executeBatch_();
102
- });
103
- }
104
- this.batch_.push(f);
105
- };
106
- var p = $jscomp.global.setTimeout;
107
- n.prototype.asyncExecuteFunction = function(f) {
108
- p(f, 0);
109
- };
110
- n.prototype.executeBatch_ = function() {
111
- for (; this.batch_ && this.batch_.length; ) {
112
- var f = this.batch_;
113
- this.batch_ = [];
114
- for (var q = 0; q < f.length; ++q) {
115
- var v = f[q];
116
- f[q] = null;
117
- try {
118
- v();
119
- } catch (z) {
120
- this.asyncThrow_(z);
121
- }
122
- }
123
- }
124
- this.batch_ = null;
125
- };
126
- n.prototype.asyncThrow_ = function(f) {
127
- this.asyncExecuteFunction(function() {
128
- throw f;
129
- });
130
- };
131
- var h = function(f) {
132
- this.state_ = 0;
133
- this.result_ = void 0;
134
- this.onSettledCallbacks_ = [];
135
- this.isRejectionHandled_ = false;
136
- var q = this.createResolveAndReject_();
137
- try {
138
- f(q.resolve, q.reject);
139
- } catch (v) {
140
- q.reject(v);
141
- }
142
- };
143
- h.prototype.createResolveAndReject_ = function() {
144
- function f(z) {
145
- return function(F) {
146
- v || (v = true, z.call(q, F));
147
- };
148
- }
149
- var q = this, v = false;
150
- return { resolve: f(this.resolveTo_), reject: f(this.reject_) };
151
- };
152
- h.prototype.resolveTo_ = function(f) {
153
- if (f === this)
154
- this.reject_(new TypeError("A Promise cannot resolve to itself"));
155
- else if (f instanceof h)
156
- this.settleSameAsPromise_(f);
157
- else {
158
- a:
159
- switch (typeof f) {
160
- case "object":
161
- var q = null != f;
162
- break a;
163
- case "function":
164
- q = true;
165
- break a;
166
- default:
167
- q = false;
168
- }
169
- q ? this.resolveToNonPromiseObj_(f) : this.fulfill_(f);
170
- }
171
- };
172
- h.prototype.resolveToNonPromiseObj_ = function(f) {
173
- var q = void 0;
174
- try {
175
- q = f.then;
176
- } catch (v) {
177
- this.reject_(v);
178
- return;
179
- }
180
- "function" == typeof q ? this.settleSameAsThenable_(q, f) : this.fulfill_(f);
181
- };
182
- h.prototype.reject_ = function(f) {
183
- this.settle_(2, f);
184
- };
185
- h.prototype.fulfill_ = function(f) {
186
- this.settle_(1, f);
187
- };
188
- h.prototype.settle_ = function(f, q) {
189
- if (0 != this.state_)
190
- throw Error("Cannot settle(" + f + ", " + q + "): Promise already settled in state" + this.state_);
191
- this.state_ = f;
192
- this.result_ = q;
193
- 2 === this.state_ && this.scheduleUnhandledRejectionCheck_();
194
- this.executeOnSettledCallbacks_();
195
- };
196
- h.prototype.scheduleUnhandledRejectionCheck_ = function() {
197
- var f = this;
198
- p(function() {
199
- if (f.notifyUnhandledRejection_()) {
200
- var q = $jscomp.global.console;
201
- "undefined" !== typeof q && q.error(f.result_);
202
- }
203
- }, 1);
204
- };
205
- h.prototype.notifyUnhandledRejection_ = function() {
206
- if (this.isRejectionHandled_)
207
- return false;
208
- var f = $jscomp.global.CustomEvent, q = $jscomp.global.Event, v = $jscomp.global.dispatchEvent;
209
- if ("undefined" === typeof v)
210
- return true;
211
- "function" === typeof f ? f = new f("unhandledrejection", { cancelable: true }) : "function" === typeof q ? f = new q("unhandledrejection", { cancelable: true }) : (f = $jscomp.global.document.createEvent("CustomEvent"), f.initCustomEvent("unhandledrejection", false, true, f));
212
- f.promise = this;
213
- f.reason = this.result_;
214
- return v(f);
215
- };
216
- h.prototype.executeOnSettledCallbacks_ = function() {
217
- if (null != this.onSettledCallbacks_) {
218
- for (var f = 0; f < this.onSettledCallbacks_.length; ++f)
219
- A.asyncExecute(this.onSettledCallbacks_[f]);
220
- this.onSettledCallbacks_ = null;
221
- }
222
- };
223
- var A = new n();
224
- h.prototype.settleSameAsPromise_ = function(f) {
225
- var q = this.createResolveAndReject_();
226
- f.callWhenSettled_(q.resolve, q.reject);
227
- };
228
- h.prototype.settleSameAsThenable_ = function(f, q) {
229
- var v = this.createResolveAndReject_();
230
- try {
231
- f.call(q, v.resolve, v.reject);
232
- } catch (z) {
233
- v.reject(z);
234
- }
235
- };
236
- h.prototype.then = function(f, q) {
237
- function v(P, u) {
238
- return "function" == typeof P ? function(x) {
239
- try {
240
- z(P(x));
241
- } catch (D) {
242
- F(D);
243
- }
244
- } : u;
245
- }
246
- var z, F, ea = new h(function(P, u) {
247
- z = P;
248
- F = u;
249
- });
250
- this.callWhenSettled_(v(f, z), v(q, F));
251
- return ea;
252
- };
253
- h.prototype.catch = function(f) {
254
- return this.then(void 0, f);
255
- };
256
- h.prototype.callWhenSettled_ = function(f, q) {
257
- function v() {
258
- switch (z.state_) {
259
- case 1:
260
- f(z.result_);
261
- break;
262
- case 2:
263
- q(z.result_);
264
- break;
265
- default:
266
- throw Error("Unexpected state: " + z.state_);
267
- }
268
- }
269
- var z = this;
270
- null == this.onSettledCallbacks_ ? A.asyncExecute(v) : this.onSettledCallbacks_.push(v);
271
- this.isRejectionHandled_ = true;
272
- };
273
- h.resolve = l;
274
- h.reject = function(f) {
275
- return new h(function(q, v) {
276
- v(f);
277
- });
278
- };
279
- h.race = function(f) {
280
- return new h(function(q, v) {
281
- for (var z = $jscomp.makeIterator(f), F = z.next(); !F.done; F = z.next())
282
- l(F.value).callWhenSettled_(q, v);
283
- });
284
- };
285
- h.all = function(f) {
286
- var q = $jscomp.makeIterator(f), v = q.next();
287
- return v.done ? l([]) : new h(function(z, F) {
288
- function ea(x) {
289
- return function(D) {
290
- P[x] = D;
291
- u--;
292
- 0 == u && z(P);
293
- };
294
- }
295
- var P = [], u = 0;
296
- do
297
- P.push(void 0), u++, l(v.value).callWhenSettled_(ea(P.length - 1), F), v = q.next();
298
- while (!v.done);
299
- });
300
- };
301
- return h;
302
- }, "es6", "es3");
303
- $jscomp.owns = function(k, n) {
304
- return Object.prototype.hasOwnProperty.call(k, n);
305
- };
306
- $jscomp.assign = $jscomp.TRUST_ES6_POLYFILLS && "function" == typeof Object.assign ? Object.assign : function(k, n) {
307
- for (var l = 1; l < arguments.length; l++) {
308
- var p = arguments[l];
309
- if (p)
310
- for (var h in p)
311
- $jscomp.owns(p, h) && (k[h] = p[h]);
312
- }
313
- return k;
314
- };
315
- $jscomp.polyfill("Object.assign", function(k) {
316
- return k || $jscomp.assign;
317
- }, "es6", "es3");
318
- $jscomp.checkStringArgs = function(k, n, l) {
319
- if (null == k)
320
- throw new TypeError("The 'this' value for String.prototype." + l + " must not be null or undefined");
321
- if (n instanceof RegExp)
322
- throw new TypeError("First argument to String.prototype." + l + " must not be a regular expression");
323
- return k + "";
324
- };
325
- $jscomp.polyfill("String.prototype.startsWith", function(k) {
326
- return k ? k : function(n, l) {
327
- var p = $jscomp.checkStringArgs(this, n, "startsWith");
328
- n += "";
329
- var h = p.length, A = n.length;
330
- l = Math.max(0, Math.min(l | 0, p.length));
331
- for (var f = 0; f < A && l < h; )
332
- if (p[l++] != n[f++])
333
- return false;
334
- return f >= A;
335
- };
336
- }, "es6", "es3");
337
- $jscomp.polyfill("Array.prototype.copyWithin", function(k) {
338
- function n(l) {
339
- l = Number(l);
340
- return Infinity === l || -Infinity === l ? l : l | 0;
341
- }
342
- return k ? k : function(l, p, h) {
343
- var A = this.length;
344
- l = n(l);
345
- p = n(p);
346
- h = void 0 === h ? A : n(h);
347
- l = 0 > l ? Math.max(A + l, 0) : Math.min(l, A);
348
- p = 0 > p ? Math.max(A + p, 0) : Math.min(p, A);
349
- h = 0 > h ? Math.max(A + h, 0) : Math.min(h, A);
350
- if (l < p)
351
- for (; p < h; )
352
- p in this ? this[l++] = this[p++] : (delete this[l++], p++);
353
- else
354
- for (h = Math.min(h, A + p - l), l += h - p; h > p; )
355
- --h in this ? this[--l] = this[h] : delete this[--l];
356
- return this;
357
- };
358
- }, "es6", "es3");
359
- $jscomp.typedArrayCopyWithin = function(k) {
360
- return k ? k : Array.prototype.copyWithin;
361
- };
362
- $jscomp.polyfill("Int8Array.prototype.copyWithin", $jscomp.typedArrayCopyWithin, "es6", "es5");
363
- $jscomp.polyfill("Uint8Array.prototype.copyWithin", $jscomp.typedArrayCopyWithin, "es6", "es5");
364
- $jscomp.polyfill("Uint8ClampedArray.prototype.copyWithin", $jscomp.typedArrayCopyWithin, "es6", "es5");
365
- $jscomp.polyfill("Int16Array.prototype.copyWithin", $jscomp.typedArrayCopyWithin, "es6", "es5");
366
- $jscomp.polyfill("Uint16Array.prototype.copyWithin", $jscomp.typedArrayCopyWithin, "es6", "es5");
367
- $jscomp.polyfill("Int32Array.prototype.copyWithin", $jscomp.typedArrayCopyWithin, "es6", "es5");
368
- $jscomp.polyfill("Uint32Array.prototype.copyWithin", $jscomp.typedArrayCopyWithin, "es6", "es5");
369
- $jscomp.polyfill("Float32Array.prototype.copyWithin", $jscomp.typedArrayCopyWithin, "es6", "es5");
370
- $jscomp.polyfill("Float64Array.prototype.copyWithin", $jscomp.typedArrayCopyWithin, "es6", "es5");
371
- var DracoDecoderModule = function() {
372
- var k = "undefined" !== typeof document && document.currentScript ? document.currentScript.src : void 0;
373
- "undefined" !== typeof __filename && (k = k || __filename);
374
- return function(n) {
375
- function l(e) {
376
- return a.locateFile ? a.locateFile(e, U) : U + e;
377
- }
378
- function p(e, b, c) {
379
- var d = b + c;
380
- for (c = b; e[c] && !(c >= d); )
381
- ++c;
382
- if (16 < c - b && e.buffer && ya)
383
- return ya.decode(e.subarray(b, c));
384
- for (d = ""; b < c; ) {
385
- var g = e[b++];
386
- if (g & 128) {
387
- var t = e[b++] & 63;
388
- if (192 == (g & 224))
389
- d += String.fromCharCode((g & 31) << 6 | t);
390
- else {
391
- var X = e[b++] & 63;
392
- g = 224 == (g & 240) ? (g & 15) << 12 | t << 6 | X : (g & 7) << 18 | t << 12 | X << 6 | e[b++] & 63;
393
- 65536 > g ? d += String.fromCharCode(g) : (g -= 65536, d += String.fromCharCode(55296 | g >> 10, 56320 | g & 1023));
394
- }
395
- } else
396
- d += String.fromCharCode(g);
397
- }
398
- return d;
399
- }
400
- function h(e, b) {
401
- return e ? p(fa, e, b) : "";
402
- }
403
- function A(e) {
404
- za = e;
405
- a.HEAP8 = Y = new Int8Array(e);
406
- a.HEAP16 = new Int16Array(e);
407
- a.HEAP32 = ca = new Int32Array(e);
408
- a.HEAPU8 = fa = new Uint8Array(e);
409
- a.HEAPU16 = new Uint16Array(e);
410
- a.HEAPU32 = V = new Uint32Array(e);
411
- a.HEAPF32 = new Float32Array(e);
412
- a.HEAPF64 = new Float64Array(e);
413
- }
414
- function f(e) {
415
- if (a.onAbort)
416
- a.onAbort(e);
417
- e = "Aborted(" + e + ")";
418
- da(e);
419
- Aa = true;
420
- e = new WebAssembly.RuntimeError(e + ". Build with -sASSERTIONS for more info.");
421
- oa(e);
422
- throw e;
423
- }
424
- function q(e) {
425
- try {
426
- if (e == Q && ha)
427
- return new Uint8Array(ha);
428
- if (pa)
429
- return pa(e);
430
- throw "both async and sync fetching of the wasm failed";
431
- } catch (b) {
432
- f(b);
433
- }
434
- }
435
- function v() {
436
- if (!ha && (Ba || ia)) {
437
- if ("function" == typeof fetch && !Q.startsWith("file://"))
438
- return fetch(Q, { credentials: "same-origin" }).then(function(e) {
439
- if (!e.ok)
440
- throw "failed to load wasm binary file at '" + Q + "'";
441
- return e.arrayBuffer();
442
- }).catch(function() {
443
- return q(Q);
444
- });
445
- if (qa)
446
- return new Promise(function(e, b) {
447
- qa(Q, function(c) {
448
- e(new Uint8Array(c));
449
- }, b);
450
- });
451
- }
452
- return Promise.resolve().then(function() {
453
- return q(Q);
454
- });
455
- }
456
- function z(e) {
457
- for (; 0 < e.length; ) {
458
- var b = e.shift();
459
- if ("function" == typeof b)
460
- b(a);
461
- else {
462
- var c = b.func;
463
- "number" == typeof c ? void 0 === b.arg ? F(c)() : F(c)(b.arg) : c(void 0 === b.arg ? null : b.arg);
464
- }
465
- }
466
- }
467
- function F(e) {
468
- var b = ka[e];
469
- b || (e >= ka.length && (ka.length = e + 1), ka[e] = b = Ca.get(e));
470
- return b;
471
- }
472
- function ea(e) {
473
- this.excPtr = e;
474
- this.ptr = e - 24;
475
- this.set_type = function(b) {
476
- V[this.ptr + 4 >> 2] = b;
477
- };
478
- this.get_type = function() {
479
- return V[this.ptr + 4 >> 2];
480
- };
481
- this.set_destructor = function(b) {
482
- V[this.ptr + 8 >> 2] = b;
483
- };
484
- this.get_destructor = function() {
485
- return V[this.ptr + 8 >> 2];
486
- };
487
- this.set_refcount = function(b) {
488
- ca[this.ptr >> 2] = b;
489
- };
490
- this.set_caught = function(b) {
491
- Y[this.ptr + 12 >> 0] = b ? 1 : 0;
492
- };
493
- this.get_caught = function() {
494
- return 0 != Y[this.ptr + 12 >> 0];
495
- };
496
- this.set_rethrown = function(b) {
497
- Y[this.ptr + 13 >> 0] = b ? 1 : 0;
498
- };
499
- this.get_rethrown = function() {
500
- return 0 != Y[this.ptr + 13 >> 0];
501
- };
502
- this.init = function(b, c) {
503
- this.set_adjusted_ptr(0);
504
- this.set_type(b);
505
- this.set_destructor(c);
506
- this.set_refcount(0);
507
- this.set_caught(false);
508
- this.set_rethrown(false);
509
- };
510
- this.add_ref = function() {
511
- ca[this.ptr >> 2] += 1;
512
- };
513
- this.release_ref = function() {
514
- var b = ca[this.ptr >> 2];
515
- ca[this.ptr >> 2] = b - 1;
516
- return 1 === b;
517
- };
518
- this.set_adjusted_ptr = function(b) {
519
- V[this.ptr + 16 >> 2] = b;
520
- };
521
- this.get_adjusted_ptr = function() {
522
- return V[this.ptr + 16 >> 2];
523
- };
524
- this.get_exception_ptr = function() {
525
- if (Da(this.get_type()))
526
- return V[this.excPtr >> 2];
527
- var b = this.get_adjusted_ptr();
528
- return 0 !== b ? b : this.excPtr;
529
- };
530
- }
531
- function P(e) {
532
- function b() {
533
- if (!la && (la = true, a.calledRun = true, !Aa)) {
534
- Ea = true;
535
- z(ra);
536
- Fa(a);
537
- if (a.onRuntimeInitialized)
538
- a.onRuntimeInitialized();
539
- if (a.postRun)
540
- for ("function" == typeof a.postRun && (a.postRun = [a.postRun]); a.postRun.length; )
541
- Ga.unshift(a.postRun.shift());
542
- z(Ga);
543
- }
544
- }
545
- if (!(0 < ba)) {
546
- if (a.preRun)
547
- for ("function" == typeof a.preRun && (a.preRun = [a.preRun]); a.preRun.length; )
548
- Ha.unshift(a.preRun.shift());
549
- z(Ha);
550
- 0 < ba || (a.setStatus ? (a.setStatus("Running..."), setTimeout(function() {
551
- setTimeout(function() {
552
- a.setStatus("");
553
- }, 1);
554
- b();
555
- }, 1)) : b());
556
- }
557
- }
558
- function u() {
559
- }
560
- function x(e) {
561
- return (e || u).__cache__;
562
- }
563
- function D(e, b) {
564
- var c = x(b), d = c[e];
565
- if (d)
566
- return d;
567
- d = Object.create((b || u).prototype);
568
- d.ptr = e;
569
- return c[e] = d;
570
- }
571
- function aa(e) {
572
- if ("string" === typeof e) {
573
- for (var b = 0, c = 0; c < e.length; ++c) {
574
- var d = e.charCodeAt(c);
575
- 55296 <= d && 57343 >= d && (d = 65536 + ((d & 1023) << 10) | e.charCodeAt(++c) & 1023);
576
- 127 >= d ? ++b : b = 2047 >= d ? b + 2 : 65535 >= d ? b + 3 : b + 4;
577
- }
578
- b = Array(b + 1);
579
- c = 0;
580
- d = b.length;
581
- if (0 < d) {
582
- d = c + d - 1;
583
- for (var g = 0; g < e.length; ++g) {
584
- var t = e.charCodeAt(g);
585
- if (55296 <= t && 57343 >= t) {
586
- var X = e.charCodeAt(++g);
587
- t = 65536 + ((t & 1023) << 10) | X & 1023;
588
- }
589
- if (127 >= t) {
590
- if (c >= d)
591
- break;
592
- b[c++] = t;
593
- } else {
594
- if (2047 >= t) {
595
- if (c + 1 >= d)
596
- break;
597
- b[c++] = 192 | t >> 6;
598
- } else {
599
- if (65535 >= t) {
600
- if (c + 2 >= d)
601
- break;
602
- b[c++] = 224 | t >> 12;
603
- } else {
604
- if (c + 3 >= d)
605
- break;
606
- b[c++] = 240 | t >> 18;
607
- b[c++] = 128 | t >> 12 & 63;
608
- }
609
- b[c++] = 128 | t >> 6 & 63;
610
- }
611
- b[c++] = 128 | t & 63;
612
- }
613
- }
614
- b[c] = 0;
615
- }
616
- e = r.alloc(b, Y);
617
- r.copy(b, Y, e);
618
- return e;
619
- }
620
- return e;
621
- }
622
- function sa(e) {
623
- if ("object" === typeof e) {
624
- var b = r.alloc(e, Y);
625
- r.copy(e, Y, b);
626
- return b;
627
- }
628
- return e;
629
- }
630
- function Z() {
631
- throw "cannot construct a VoidPtr, no constructor in IDL";
632
- }
633
- function S() {
634
- this.ptr = Ia();
635
- x(S)[this.ptr] = this;
636
- }
637
- function R() {
638
- this.ptr = Ja();
639
- x(R)[this.ptr] = this;
640
- }
641
- function W() {
642
- this.ptr = Ka();
643
- x(W)[this.ptr] = this;
644
- }
645
- function w() {
646
- this.ptr = La();
647
- x(w)[this.ptr] = this;
648
- }
649
- function C() {
650
- this.ptr = Ma();
651
- x(C)[this.ptr] = this;
652
- }
653
- function G() {
654
- this.ptr = Na();
655
- x(G)[this.ptr] = this;
656
- }
657
- function H() {
658
- this.ptr = Oa();
659
- x(H)[this.ptr] = this;
660
- }
661
- function E() {
662
- this.ptr = Pa();
663
- x(E)[this.ptr] = this;
664
- }
665
- function T() {
666
- this.ptr = Qa();
667
- x(T)[this.ptr] = this;
668
- }
669
- function B() {
670
- throw "cannot construct a Status, no constructor in IDL";
671
- }
672
- function I() {
673
- this.ptr = Ra();
674
- x(I)[this.ptr] = this;
675
- }
676
- function J() {
677
- this.ptr = Sa();
678
- x(J)[this.ptr] = this;
679
- }
680
- function K() {
681
- this.ptr = Ta();
682
- x(K)[this.ptr] = this;
683
- }
684
- function L() {
685
- this.ptr = Ua();
686
- x(L)[this.ptr] = this;
687
- }
688
- function M() {
689
- this.ptr = Va();
690
- x(M)[this.ptr] = this;
691
- }
692
- function N() {
693
- this.ptr = Wa();
694
- x(N)[this.ptr] = this;
695
- }
696
- function O() {
697
- this.ptr = Xa();
698
- x(O)[this.ptr] = this;
699
- }
700
- function y() {
701
- this.ptr = Ya();
702
- x(y)[this.ptr] = this;
703
- }
704
- function m() {
705
- this.ptr = Za();
706
- x(m)[this.ptr] = this;
707
- }
708
- n = n || {};
709
- var a = "undefined" != typeof n ? n : {}, Fa, oa;
710
- a.ready = new Promise(function(e, b) {
711
- Fa = e;
712
- oa = b;
713
- });
714
- var $a = false, ab = false;
715
- a.onRuntimeInitialized = function() {
716
- $a = true;
717
- if (ab && "function" === typeof a.onModuleLoaded)
718
- a.onModuleLoaded(a);
719
- };
720
- a.onModuleParsed = function() {
721
- ab = true;
722
- if ($a && "function" === typeof a.onModuleLoaded)
723
- a.onModuleLoaded(a);
724
- };
725
- a.isVersionSupported = function(e) {
726
- if ("string" !== typeof e)
727
- return false;
728
- e = e.split(".");
729
- return 2 > e.length || 3 < e.length ? false : 1 == e[0] && 0 <= e[1] && 5 >= e[1] ? true : 0 != e[0] || 10 < e[1] ? false : true;
730
- };
731
- var bb = Object.assign({}, a), Ba = "object" == typeof window, ia = "function" == typeof importScripts, cb = "object" == typeof process && "object" == typeof process.versions && "string" == typeof process.versions.node, U = "", ta, ma;
732
- if (cb) {
733
- U = ia ? require("path").dirname(U) + "/" : __dirname + "/";
734
- var db = function() {
735
- ma || (ta = require("fs"), ma = require("path"));
736
- };
737
- var eb = function(e, b) {
738
- db();
739
- e = ma.normalize(e);
740
- return ta.readFileSync(e, b ? void 0 : "utf8");
741
- };
742
- var pa = function(e) {
743
- e = eb(e, true);
744
- e.buffer || (e = new Uint8Array(e));
745
- return e;
746
- };
747
- var qa = function(e, b, c) {
748
- db();
749
- e = ma.normalize(e);
750
- ta.readFile(e, function(d, g) {
751
- d ? c(d) : b(g.buffer);
752
- });
753
- };
754
- 1 < process.argv.length && process.argv[1].replace(/\\/g, "/");
755
- process.argv.slice(2);
756
- a.inspect = function() {
757
- return "[Emscripten Module object]";
758
- };
759
- } else if (Ba || ia)
760
- ia ? U = self.location.href : "undefined" != typeof document && document.currentScript && (U = document.currentScript.src), k && (U = k), U = 0 !== U.indexOf("blob:") ? U.substr(0, U.replace(/[?#].*/, "").lastIndexOf("/") + 1) : "", eb = function(e) {
761
- var b = new XMLHttpRequest();
762
- b.open("GET", e, false);
763
- b.send(null);
764
- return b.responseText;
765
- }, ia && (pa = function(e) {
766
- var b = new XMLHttpRequest();
767
- b.open("GET", e, false);
768
- b.responseType = "arraybuffer";
769
- b.send(null);
770
- return new Uint8Array(b.response);
771
- }), qa = function(e, b, c) {
772
- var d = new XMLHttpRequest();
773
- d.open("GET", e, true);
774
- d.responseType = "arraybuffer";
775
- d.onload = function() {
776
- 200 == d.status || 0 == d.status && d.response ? b(d.response) : c();
777
- };
778
- d.onerror = c;
779
- d.send(null);
780
- };
781
- var Ad = a.print || console.log.bind(console), da = a.printErr || console.warn.bind(console);
782
- Object.assign(a, bb);
783
- bb = null;
784
- var ha;
785
- a.wasmBinary && (ha = a.wasmBinary);
786
- "object" != typeof WebAssembly && f("no native wasm support detected");
787
- var na, Aa = false, ya = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, za, Y, fa, ca, V, Ca, Ha = [], ra = [], Ga = [], Ea = false, ba = 0, ua = null, ja = null;
788
- var Q = "draco_decoder.wasm";
789
- Q.startsWith("data:application/octet-stream;base64,") || (Q = l(Q));
790
- var ka = [], Bd = 0, Cd = [null, [], []], Dd = {
791
- c: function(e) {
792
- return fb(e + 24) + 24;
793
- },
794
- b: function(e, b, c) {
795
- new ea(e).init(b, c);
796
- Bd++;
797
- throw e;
798
- },
799
- a: function() {
800
- f("");
801
- },
802
- h: function(e, b, c) {
803
- fa.copyWithin(e, b, b + c);
804
- },
805
- f: function(e) {
806
- var b = fa.length;
807
- e >>>= 0;
808
- if (2147483648 < e)
809
- return false;
810
- for (var c = 1; 4 >= c; c *= 2) {
811
- var d = b * (1 + 0.2 / c);
812
- d = Math.min(d, e + 100663296);
813
- var g = Math;
814
- d = Math.max(e, d);
815
- g = g.min.call(g, 2147483648, d + (65536 - d % 65536) % 65536);
816
- a: {
817
- try {
818
- na.grow(g - za.byteLength + 65535 >>> 16);
819
- A(na.buffer);
820
- var t = 1;
821
- break a;
822
- } catch (X) {
823
- }
824
- t = void 0;
825
- }
826
- if (t)
827
- return true;
828
- }
829
- return false;
830
- },
831
- g: function(e) {
832
- return 52;
833
- },
834
- e: function(e, b, c, d, g) {
835
- return 70;
836
- },
837
- d: function(e, b, c, d) {
838
- for (var g = 0, t = 0; t < c; t++) {
839
- var X = V[b >> 2], gb = V[b + 4 >> 2];
840
- b += 8;
841
- for (var va = 0; va < gb; va++) {
842
- var wa = fa[X + va], xa = Cd[e];
843
- 0 === wa || 10 === wa ? ((1 === e ? Ad : da)(p(xa, 0)), xa.length = 0) : xa.push(wa);
844
- }
845
- g += gb;
846
- }
847
- V[d >> 2] = g;
848
- return 0;
849
- }
850
- };
851
- (function() {
852
- function e(g, t) {
853
- a.asm = g.exports;
854
- na = a.asm.i;
855
- A(na.buffer);
856
- Ca = a.asm.k;
857
- ra.unshift(a.asm.j);
858
- ba--;
859
- a.monitorRunDependencies && a.monitorRunDependencies(ba);
860
- 0 == ba && (null !== ua && (clearInterval(ua), ua = null), ja && (g = ja, ja = null, g()));
861
- }
862
- function b(g) {
863
- e(g.instance);
864
- }
865
- function c(g) {
866
- return v().then(function(t) {
867
- return WebAssembly.instantiate(t, d);
868
- }).then(function(t) {
869
- return t;
870
- }).then(g, function(t) {
871
- da("failed to asynchronously prepare wasm: " + t);
872
- f(t);
873
- });
874
- }
875
- var d = { a: Dd };
876
- ba++;
877
- a.monitorRunDependencies && a.monitorRunDependencies(ba);
878
- if (a.instantiateWasm)
879
- try {
880
- return a.instantiateWasm(d, e);
881
- } catch (g) {
882
- return da("Module.instantiateWasm callback failed with error: " + g), false;
883
- }
884
- (function() {
885
- return ha || "function" != typeof WebAssembly.instantiateStreaming || Q.startsWith("data:application/octet-stream;base64,") || Q.startsWith("file://") || cb || "function" != typeof fetch ? c(b) : fetch(Q, { credentials: "same-origin" }).then(function(g) {
886
- return WebAssembly.instantiateStreaming(g, d).then(b, function(t) {
887
- da("wasm streaming compile failed: " + t);
888
- da("falling back to ArrayBuffer instantiation");
889
- return c(b);
890
- });
891
- });
892
- })().catch(oa);
893
- return {};
894
- })();
895
- a.___wasm_call_ctors = function() {
896
- return (a.___wasm_call_ctors = a.asm.j).apply(null, arguments);
897
- };
898
- var hb = a._emscripten_bind_VoidPtr___destroy___0 = function() {
899
- return (hb = a._emscripten_bind_VoidPtr___destroy___0 = a.asm.l).apply(null, arguments);
900
- }, Ia = a._emscripten_bind_DecoderBuffer_DecoderBuffer_0 = function() {
901
- return (Ia = a._emscripten_bind_DecoderBuffer_DecoderBuffer_0 = a.asm.m).apply(null, arguments);
902
- }, ib = a._emscripten_bind_DecoderBuffer_Init_2 = function() {
903
- return (ib = a._emscripten_bind_DecoderBuffer_Init_2 = a.asm.n).apply(null, arguments);
904
- }, jb = a._emscripten_bind_DecoderBuffer___destroy___0 = function() {
905
- return (jb = a._emscripten_bind_DecoderBuffer___destroy___0 = a.asm.o).apply(null, arguments);
906
- }, Ja = a._emscripten_bind_AttributeTransformData_AttributeTransformData_0 = function() {
907
- return (Ja = a._emscripten_bind_AttributeTransformData_AttributeTransformData_0 = a.asm.p).apply(null, arguments);
908
- }, kb = a._emscripten_bind_AttributeTransformData_transform_type_0 = function() {
909
- return (kb = a._emscripten_bind_AttributeTransformData_transform_type_0 = a.asm.q).apply(null, arguments);
910
- }, lb = a._emscripten_bind_AttributeTransformData___destroy___0 = function() {
911
- return (lb = a._emscripten_bind_AttributeTransformData___destroy___0 = a.asm.r).apply(null, arguments);
912
- }, Ka = a._emscripten_bind_GeometryAttribute_GeometryAttribute_0 = function() {
913
- return (Ka = a._emscripten_bind_GeometryAttribute_GeometryAttribute_0 = a.asm.s).apply(null, arguments);
914
- }, mb = a._emscripten_bind_GeometryAttribute___destroy___0 = function() {
915
- return (mb = a._emscripten_bind_GeometryAttribute___destroy___0 = a.asm.t).apply(null, arguments);
916
- }, La = a._emscripten_bind_PointAttribute_PointAttribute_0 = function() {
917
- return (La = a._emscripten_bind_PointAttribute_PointAttribute_0 = a.asm.u).apply(null, arguments);
918
- }, nb = a._emscripten_bind_PointAttribute_size_0 = function() {
919
- return (nb = a._emscripten_bind_PointAttribute_size_0 = a.asm.v).apply(null, arguments);
920
- }, ob = a._emscripten_bind_PointAttribute_GetAttributeTransformData_0 = function() {
921
- return (ob = a._emscripten_bind_PointAttribute_GetAttributeTransformData_0 = a.asm.w).apply(null, arguments);
922
- }, pb = a._emscripten_bind_PointAttribute_attribute_type_0 = function() {
923
- return (pb = a._emscripten_bind_PointAttribute_attribute_type_0 = a.asm.x).apply(null, arguments);
924
- }, qb = a._emscripten_bind_PointAttribute_data_type_0 = function() {
925
- return (qb = a._emscripten_bind_PointAttribute_data_type_0 = a.asm.y).apply(
926
- null,
927
- arguments
928
- );
929
- }, rb = a._emscripten_bind_PointAttribute_num_components_0 = function() {
930
- return (rb = a._emscripten_bind_PointAttribute_num_components_0 = a.asm.z).apply(null, arguments);
931
- }, sb = a._emscripten_bind_PointAttribute_normalized_0 = function() {
932
- return (sb = a._emscripten_bind_PointAttribute_normalized_0 = a.asm.A).apply(null, arguments);
933
- }, tb = a._emscripten_bind_PointAttribute_byte_stride_0 = function() {
934
- return (tb = a._emscripten_bind_PointAttribute_byte_stride_0 = a.asm.B).apply(null, arguments);
935
- }, ub = a._emscripten_bind_PointAttribute_byte_offset_0 = function() {
936
- return (ub = a._emscripten_bind_PointAttribute_byte_offset_0 = a.asm.C).apply(null, arguments);
937
- }, vb = a._emscripten_bind_PointAttribute_unique_id_0 = function() {
938
- return (vb = a._emscripten_bind_PointAttribute_unique_id_0 = a.asm.D).apply(null, arguments);
939
- }, wb = a._emscripten_bind_PointAttribute___destroy___0 = function() {
940
- return (wb = a._emscripten_bind_PointAttribute___destroy___0 = a.asm.E).apply(null, arguments);
941
- }, Ma = a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0 = function() {
942
- return (Ma = a._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0 = a.asm.F).apply(null, arguments);
943
- }, xb = a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1 = function() {
944
- return (xb = a._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1 = a.asm.G).apply(null, arguments);
945
- }, yb = a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0 = function() {
946
- return (yb = a._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0 = a.asm.H).apply(null, arguments);
947
- }, zb = a._emscripten_bind_AttributeQuantizationTransform_min_value_1 = function() {
948
- return (zb = a._emscripten_bind_AttributeQuantizationTransform_min_value_1 = a.asm.I).apply(null, arguments);
949
- }, Ab = a._emscripten_bind_AttributeQuantizationTransform_range_0 = function() {
950
- return (Ab = a._emscripten_bind_AttributeQuantizationTransform_range_0 = a.asm.J).apply(null, arguments);
951
- }, Bb = a._emscripten_bind_AttributeQuantizationTransform___destroy___0 = function() {
952
- return (Bb = a._emscripten_bind_AttributeQuantizationTransform___destroy___0 = a.asm.K).apply(null, arguments);
953
- }, Na = a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0 = function() {
954
- return (Na = a._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0 = a.asm.L).apply(null, arguments);
955
- }, Cb = a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1 = function() {
956
- return (Cb = a._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1 = a.asm.M).apply(null, arguments);
957
- }, Db = a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0 = function() {
958
- return (Db = a._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0 = a.asm.N).apply(null, arguments);
959
- }, Eb = a._emscripten_bind_AttributeOctahedronTransform___destroy___0 = function() {
960
- return (Eb = a._emscripten_bind_AttributeOctahedronTransform___destroy___0 = a.asm.O).apply(null, arguments);
961
- }, Oa = a._emscripten_bind_PointCloud_PointCloud_0 = function() {
962
- return (Oa = a._emscripten_bind_PointCloud_PointCloud_0 = a.asm.P).apply(null, arguments);
963
- }, Fb = a._emscripten_bind_PointCloud_num_attributes_0 = function() {
964
- return (Fb = a._emscripten_bind_PointCloud_num_attributes_0 = a.asm.Q).apply(null, arguments);
965
- }, Gb = a._emscripten_bind_PointCloud_num_points_0 = function() {
966
- return (Gb = a._emscripten_bind_PointCloud_num_points_0 = a.asm.R).apply(null, arguments);
967
- }, Hb = a._emscripten_bind_PointCloud___destroy___0 = function() {
968
- return (Hb = a._emscripten_bind_PointCloud___destroy___0 = a.asm.S).apply(null, arguments);
969
- }, Pa = a._emscripten_bind_Mesh_Mesh_0 = function() {
970
- return (Pa = a._emscripten_bind_Mesh_Mesh_0 = a.asm.T).apply(null, arguments);
971
- }, Ib = a._emscripten_bind_Mesh_num_faces_0 = function() {
972
- return (Ib = a._emscripten_bind_Mesh_num_faces_0 = a.asm.U).apply(null, arguments);
973
- }, Jb = a._emscripten_bind_Mesh_num_attributes_0 = function() {
974
- return (Jb = a._emscripten_bind_Mesh_num_attributes_0 = a.asm.V).apply(null, arguments);
975
- }, Kb = a._emscripten_bind_Mesh_num_points_0 = function() {
976
- return (Kb = a._emscripten_bind_Mesh_num_points_0 = a.asm.W).apply(null, arguments);
977
- }, Lb = a._emscripten_bind_Mesh___destroy___0 = function() {
978
- return (Lb = a._emscripten_bind_Mesh___destroy___0 = a.asm.X).apply(null, arguments);
979
- }, Qa = a._emscripten_bind_Metadata_Metadata_0 = function() {
980
- return (Qa = a._emscripten_bind_Metadata_Metadata_0 = a.asm.Y).apply(null, arguments);
981
- }, Mb = a._emscripten_bind_Metadata___destroy___0 = function() {
982
- return (Mb = a._emscripten_bind_Metadata___destroy___0 = a.asm.Z).apply(null, arguments);
983
- }, Nb = a._emscripten_bind_Status_code_0 = function() {
984
- return (Nb = a._emscripten_bind_Status_code_0 = a.asm._).apply(null, arguments);
985
- }, Ob = a._emscripten_bind_Status_ok_0 = function() {
986
- return (Ob = a._emscripten_bind_Status_ok_0 = a.asm.$).apply(null, arguments);
987
- }, Pb = a._emscripten_bind_Status_error_msg_0 = function() {
988
- return (Pb = a._emscripten_bind_Status_error_msg_0 = a.asm.aa).apply(null, arguments);
989
- }, Qb = a._emscripten_bind_Status___destroy___0 = function() {
990
- return (Qb = a._emscripten_bind_Status___destroy___0 = a.asm.ba).apply(null, arguments);
991
- }, Ra = a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0 = function() {
992
- return (Ra = a._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0 = a.asm.ca).apply(null, arguments);
993
- }, Rb = a._emscripten_bind_DracoFloat32Array_GetValue_1 = function() {
994
- return (Rb = a._emscripten_bind_DracoFloat32Array_GetValue_1 = a.asm.da).apply(null, arguments);
995
- }, Sb = a._emscripten_bind_DracoFloat32Array_size_0 = function() {
996
- return (Sb = a._emscripten_bind_DracoFloat32Array_size_0 = a.asm.ea).apply(null, arguments);
997
- }, Tb = a._emscripten_bind_DracoFloat32Array___destroy___0 = function() {
998
- return (Tb = a._emscripten_bind_DracoFloat32Array___destroy___0 = a.asm.fa).apply(null, arguments);
999
- }, Sa = a._emscripten_bind_DracoInt8Array_DracoInt8Array_0 = function() {
1000
- return (Sa = a._emscripten_bind_DracoInt8Array_DracoInt8Array_0 = a.asm.ga).apply(null, arguments);
1001
- }, Ub = a._emscripten_bind_DracoInt8Array_GetValue_1 = function() {
1002
- return (Ub = a._emscripten_bind_DracoInt8Array_GetValue_1 = a.asm.ha).apply(null, arguments);
1003
- }, Vb = a._emscripten_bind_DracoInt8Array_size_0 = function() {
1004
- return (Vb = a._emscripten_bind_DracoInt8Array_size_0 = a.asm.ia).apply(null, arguments);
1005
- }, Wb = a._emscripten_bind_DracoInt8Array___destroy___0 = function() {
1006
- return (Wb = a._emscripten_bind_DracoInt8Array___destroy___0 = a.asm.ja).apply(null, arguments);
1007
- }, Ta = a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0 = function() {
1008
- return (Ta = a._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0 = a.asm.ka).apply(null, arguments);
1009
- }, Xb = a._emscripten_bind_DracoUInt8Array_GetValue_1 = function() {
1010
- return (Xb = a._emscripten_bind_DracoUInt8Array_GetValue_1 = a.asm.la).apply(null, arguments);
1011
- }, Yb = a._emscripten_bind_DracoUInt8Array_size_0 = function() {
1012
- return (Yb = a._emscripten_bind_DracoUInt8Array_size_0 = a.asm.ma).apply(null, arguments);
1013
- }, Zb = a._emscripten_bind_DracoUInt8Array___destroy___0 = function() {
1014
- return (Zb = a._emscripten_bind_DracoUInt8Array___destroy___0 = a.asm.na).apply(null, arguments);
1015
- }, Ua = a._emscripten_bind_DracoInt16Array_DracoInt16Array_0 = function() {
1016
- return (Ua = a._emscripten_bind_DracoInt16Array_DracoInt16Array_0 = a.asm.oa).apply(null, arguments);
1017
- }, $b = a._emscripten_bind_DracoInt16Array_GetValue_1 = function() {
1018
- return ($b = a._emscripten_bind_DracoInt16Array_GetValue_1 = a.asm.pa).apply(null, arguments);
1019
- }, ac = a._emscripten_bind_DracoInt16Array_size_0 = function() {
1020
- return (ac = a._emscripten_bind_DracoInt16Array_size_0 = a.asm.qa).apply(null, arguments);
1021
- }, bc = a._emscripten_bind_DracoInt16Array___destroy___0 = function() {
1022
- return (bc = a._emscripten_bind_DracoInt16Array___destroy___0 = a.asm.ra).apply(null, arguments);
1023
- }, Va = a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0 = function() {
1024
- return (Va = a._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0 = a.asm.sa).apply(null, arguments);
1025
- }, cc = a._emscripten_bind_DracoUInt16Array_GetValue_1 = function() {
1026
- return (cc = a._emscripten_bind_DracoUInt16Array_GetValue_1 = a.asm.ta).apply(null, arguments);
1027
- }, dc = a._emscripten_bind_DracoUInt16Array_size_0 = function() {
1028
- return (dc = a._emscripten_bind_DracoUInt16Array_size_0 = a.asm.ua).apply(null, arguments);
1029
- }, ec = a._emscripten_bind_DracoUInt16Array___destroy___0 = function() {
1030
- return (ec = a._emscripten_bind_DracoUInt16Array___destroy___0 = a.asm.va).apply(null, arguments);
1031
- }, Wa = a._emscripten_bind_DracoInt32Array_DracoInt32Array_0 = function() {
1032
- return (Wa = a._emscripten_bind_DracoInt32Array_DracoInt32Array_0 = a.asm.wa).apply(null, arguments);
1033
- }, fc = a._emscripten_bind_DracoInt32Array_GetValue_1 = function() {
1034
- return (fc = a._emscripten_bind_DracoInt32Array_GetValue_1 = a.asm.xa).apply(null, arguments);
1035
- }, gc = a._emscripten_bind_DracoInt32Array_size_0 = function() {
1036
- return (gc = a._emscripten_bind_DracoInt32Array_size_0 = a.asm.ya).apply(null, arguments);
1037
- }, hc = a._emscripten_bind_DracoInt32Array___destroy___0 = function() {
1038
- return (hc = a._emscripten_bind_DracoInt32Array___destroy___0 = a.asm.za).apply(null, arguments);
1039
- }, Xa = a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0 = function() {
1040
- return (Xa = a._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0 = a.asm.Aa).apply(null, arguments);
1041
- }, ic = a._emscripten_bind_DracoUInt32Array_GetValue_1 = function() {
1042
- return (ic = a._emscripten_bind_DracoUInt32Array_GetValue_1 = a.asm.Ba).apply(null, arguments);
1043
- }, jc = a._emscripten_bind_DracoUInt32Array_size_0 = function() {
1044
- return (jc = a._emscripten_bind_DracoUInt32Array_size_0 = a.asm.Ca).apply(null, arguments);
1045
- }, kc = a._emscripten_bind_DracoUInt32Array___destroy___0 = function() {
1046
- return (kc = a._emscripten_bind_DracoUInt32Array___destroy___0 = a.asm.Da).apply(null, arguments);
1047
- }, Ya = a._emscripten_bind_MetadataQuerier_MetadataQuerier_0 = function() {
1048
- return (Ya = a._emscripten_bind_MetadataQuerier_MetadataQuerier_0 = a.asm.Ea).apply(null, arguments);
1049
- }, lc = a._emscripten_bind_MetadataQuerier_HasEntry_2 = function() {
1050
- return (lc = a._emscripten_bind_MetadataQuerier_HasEntry_2 = a.asm.Fa).apply(null, arguments);
1051
- }, mc = a._emscripten_bind_MetadataQuerier_GetIntEntry_2 = function() {
1052
- return (mc = a._emscripten_bind_MetadataQuerier_GetIntEntry_2 = a.asm.Ga).apply(null, arguments);
1053
- }, nc = a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3 = function() {
1054
- return (nc = a._emscripten_bind_MetadataQuerier_GetIntEntryArray_3 = a.asm.Ha).apply(null, arguments);
1055
- }, oc = a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2 = function() {
1056
- return (oc = a._emscripten_bind_MetadataQuerier_GetDoubleEntry_2 = a.asm.Ia).apply(null, arguments);
1057
- }, pc = a._emscripten_bind_MetadataQuerier_GetStringEntry_2 = function() {
1058
- return (pc = a._emscripten_bind_MetadataQuerier_GetStringEntry_2 = a.asm.Ja).apply(null, arguments);
1059
- }, qc = a._emscripten_bind_MetadataQuerier_NumEntries_1 = function() {
1060
- return (qc = a._emscripten_bind_MetadataQuerier_NumEntries_1 = a.asm.Ka).apply(null, arguments);
1061
- }, rc = a._emscripten_bind_MetadataQuerier_GetEntryName_2 = function() {
1062
- return (rc = a._emscripten_bind_MetadataQuerier_GetEntryName_2 = a.asm.La).apply(null, arguments);
1063
- }, sc = a._emscripten_bind_MetadataQuerier___destroy___0 = function() {
1064
- return (sc = a._emscripten_bind_MetadataQuerier___destroy___0 = a.asm.Ma).apply(null, arguments);
1065
- }, Za = a._emscripten_bind_Decoder_Decoder_0 = function() {
1066
- return (Za = a._emscripten_bind_Decoder_Decoder_0 = a.asm.Na).apply(null, arguments);
1067
- }, tc = a._emscripten_bind_Decoder_DecodeArrayToPointCloud_3 = function() {
1068
- return (tc = a._emscripten_bind_Decoder_DecodeArrayToPointCloud_3 = a.asm.Oa).apply(null, arguments);
1069
- }, uc = a._emscripten_bind_Decoder_DecodeArrayToMesh_3 = function() {
1070
- return (uc = a._emscripten_bind_Decoder_DecodeArrayToMesh_3 = a.asm.Pa).apply(null, arguments);
1071
- }, vc = a._emscripten_bind_Decoder_GetAttributeId_2 = function() {
1072
- return (vc = a._emscripten_bind_Decoder_GetAttributeId_2 = a.asm.Qa).apply(null, arguments);
1073
- }, wc = a._emscripten_bind_Decoder_GetAttributeIdByName_2 = function() {
1074
- return (wc = a._emscripten_bind_Decoder_GetAttributeIdByName_2 = a.asm.Ra).apply(null, arguments);
1075
- }, xc = a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3 = function() {
1076
- return (xc = a._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3 = a.asm.Sa).apply(null, arguments);
1077
- }, yc = a._emscripten_bind_Decoder_GetAttribute_2 = function() {
1078
- return (yc = a._emscripten_bind_Decoder_GetAttribute_2 = a.asm.Ta).apply(null, arguments);
1079
- }, zc = a._emscripten_bind_Decoder_GetAttributeByUniqueId_2 = function() {
1080
- return (zc = a._emscripten_bind_Decoder_GetAttributeByUniqueId_2 = a.asm.Ua).apply(null, arguments);
1081
- }, Ac = a._emscripten_bind_Decoder_GetMetadata_1 = function() {
1082
- return (Ac = a._emscripten_bind_Decoder_GetMetadata_1 = a.asm.Va).apply(null, arguments);
1083
- }, Bc = a._emscripten_bind_Decoder_GetAttributeMetadata_2 = function() {
1084
- return (Bc = a._emscripten_bind_Decoder_GetAttributeMetadata_2 = a.asm.Wa).apply(null, arguments);
1085
- }, Cc = a._emscripten_bind_Decoder_GetFaceFromMesh_3 = function() {
1086
- return (Cc = a._emscripten_bind_Decoder_GetFaceFromMesh_3 = a.asm.Xa).apply(null, arguments);
1087
- }, Dc = a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2 = function() {
1088
- return (Dc = a._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2 = a.asm.Ya).apply(null, arguments);
1089
- }, Ec = a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3 = function() {
1090
- return (Ec = a._emscripten_bind_Decoder_GetTrianglesUInt16Array_3 = a.asm.Za).apply(null, arguments);
1091
- }, Fc = a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3 = function() {
1092
- return (Fc = a._emscripten_bind_Decoder_GetTrianglesUInt32Array_3 = a.asm._a).apply(null, arguments);
1093
- }, Gc = a._emscripten_bind_Decoder_GetAttributeFloat_3 = function() {
1094
- return (Gc = a._emscripten_bind_Decoder_GetAttributeFloat_3 = a.asm.$a).apply(null, arguments);
1095
- }, Hc = a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3 = function() {
1096
- return (Hc = a._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3 = a.asm.ab).apply(
1097
- null,
1098
- arguments
1099
- );
1100
- }, Ic = a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3 = function() {
1101
- return (Ic = a._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3 = a.asm.bb).apply(null, arguments);
1102
- }, Jc = a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3 = function() {
1103
- return (Jc = a._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3 = a.asm.cb).apply(null, arguments);
1104
- }, Kc = a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3 = function() {
1105
- return (Kc = a._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3 = a.asm.db).apply(
1106
- null,
1107
- arguments
1108
- );
1109
- }, Lc = a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3 = function() {
1110
- return (Lc = a._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3 = a.asm.eb).apply(null, arguments);
1111
- }, Mc = a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3 = function() {
1112
- return (Mc = a._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3 = a.asm.fb).apply(null, arguments);
1113
- }, Nc = a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3 = function() {
1114
- return (Nc = a._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3 = a.asm.gb).apply(null, arguments);
1115
- }, Oc = a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3 = function() {
1116
- return (Oc = a._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3 = a.asm.hb).apply(null, arguments);
1117
- }, Pc = a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5 = function() {
1118
- return (Pc = a._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5 = a.asm.ib).apply(null, arguments);
1119
- }, Qc = a._emscripten_bind_Decoder_SkipAttributeTransform_1 = function() {
1120
- return (Qc = a._emscripten_bind_Decoder_SkipAttributeTransform_1 = a.asm.jb).apply(null, arguments);
1121
- }, Rc = a._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1 = function() {
1122
- return (Rc = a._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1 = a.asm.kb).apply(null, arguments);
1123
- }, Sc = a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2 = function() {
1124
- return (Sc = a._emscripten_bind_Decoder_DecodeBufferToPointCloud_2 = a.asm.lb).apply(null, arguments);
1125
- }, Tc = a._emscripten_bind_Decoder_DecodeBufferToMesh_2 = function() {
1126
- return (Tc = a._emscripten_bind_Decoder_DecodeBufferToMesh_2 = a.asm.mb).apply(null, arguments);
1127
- }, Uc = a._emscripten_bind_Decoder___destroy___0 = function() {
1128
- return (Uc = a._emscripten_bind_Decoder___destroy___0 = a.asm.nb).apply(null, arguments);
1129
- }, Vc = a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM = function() {
1130
- return (Vc = a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM = a.asm.ob).apply(null, arguments);
1131
- }, Wc = a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM = function() {
1132
- return (Wc = a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM = a.asm.pb).apply(null, arguments);
1133
- }, Xc = a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM = function() {
1134
- return (Xc = a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM = a.asm.qb).apply(null, arguments);
1135
- }, Yc = a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM = function() {
1136
- return (Yc = a._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM = a.asm.rb).apply(null, arguments);
1137
- }, Zc = a._emscripten_enum_draco_GeometryAttribute_Type_INVALID = function() {
1138
- return (Zc = a._emscripten_enum_draco_GeometryAttribute_Type_INVALID = a.asm.sb).apply(null, arguments);
1139
- }, $c = a._emscripten_enum_draco_GeometryAttribute_Type_POSITION = function() {
1140
- return ($c = a._emscripten_enum_draco_GeometryAttribute_Type_POSITION = a.asm.tb).apply(null, arguments);
1141
- }, ad = a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL = function() {
1142
- return (ad = a._emscripten_enum_draco_GeometryAttribute_Type_NORMAL = a.asm.ub).apply(null, arguments);
1143
- }, bd = a._emscripten_enum_draco_GeometryAttribute_Type_COLOR = function() {
1144
- return (bd = a._emscripten_enum_draco_GeometryAttribute_Type_COLOR = a.asm.vb).apply(null, arguments);
1145
- }, cd = a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD = function() {
1146
- return (cd = a._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD = a.asm.wb).apply(null, arguments);
1147
- }, dd = a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC = function() {
1148
- return (dd = a._emscripten_enum_draco_GeometryAttribute_Type_GENERIC = a.asm.xb).apply(null, arguments);
1149
- }, ed = a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE = function() {
1150
- return (ed = a._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE = a.asm.yb).apply(null, arguments);
1151
- }, fd = a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD = function() {
1152
- return (fd = a._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD = a.asm.zb).apply(null, arguments);
1153
- }, gd = a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH = function() {
1154
- return (gd = a._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH = a.asm.Ab).apply(null, arguments);
1155
- }, hd = a._emscripten_enum_draco_DataType_DT_INVALID = function() {
1156
- return (hd = a._emscripten_enum_draco_DataType_DT_INVALID = a.asm.Bb).apply(null, arguments);
1157
- }, id = a._emscripten_enum_draco_DataType_DT_INT8 = function() {
1158
- return (id = a._emscripten_enum_draco_DataType_DT_INT8 = a.asm.Cb).apply(null, arguments);
1159
- }, jd = a._emscripten_enum_draco_DataType_DT_UINT8 = function() {
1160
- return (jd = a._emscripten_enum_draco_DataType_DT_UINT8 = a.asm.Db).apply(null, arguments);
1161
- }, kd = a._emscripten_enum_draco_DataType_DT_INT16 = function() {
1162
- return (kd = a._emscripten_enum_draco_DataType_DT_INT16 = a.asm.Eb).apply(
1163
- null,
1164
- arguments
1165
- );
1166
- }, ld = a._emscripten_enum_draco_DataType_DT_UINT16 = function() {
1167
- return (ld = a._emscripten_enum_draco_DataType_DT_UINT16 = a.asm.Fb).apply(null, arguments);
1168
- }, md = a._emscripten_enum_draco_DataType_DT_INT32 = function() {
1169
- return (md = a._emscripten_enum_draco_DataType_DT_INT32 = a.asm.Gb).apply(null, arguments);
1170
- }, nd = a._emscripten_enum_draco_DataType_DT_UINT32 = function() {
1171
- return (nd = a._emscripten_enum_draco_DataType_DT_UINT32 = a.asm.Hb).apply(null, arguments);
1172
- }, od = a._emscripten_enum_draco_DataType_DT_INT64 = function() {
1173
- return (od = a._emscripten_enum_draco_DataType_DT_INT64 = a.asm.Ib).apply(null, arguments);
1174
- }, pd = a._emscripten_enum_draco_DataType_DT_UINT64 = function() {
1175
- return (pd = a._emscripten_enum_draco_DataType_DT_UINT64 = a.asm.Jb).apply(null, arguments);
1176
- }, qd = a._emscripten_enum_draco_DataType_DT_FLOAT32 = function() {
1177
- return (qd = a._emscripten_enum_draco_DataType_DT_FLOAT32 = a.asm.Kb).apply(null, arguments);
1178
- }, rd = a._emscripten_enum_draco_DataType_DT_FLOAT64 = function() {
1179
- return (rd = a._emscripten_enum_draco_DataType_DT_FLOAT64 = a.asm.Lb).apply(
1180
- null,
1181
- arguments
1182
- );
1183
- }, sd = a._emscripten_enum_draco_DataType_DT_BOOL = function() {
1184
- return (sd = a._emscripten_enum_draco_DataType_DT_BOOL = a.asm.Mb).apply(null, arguments);
1185
- }, td = a._emscripten_enum_draco_DataType_DT_TYPES_COUNT = function() {
1186
- return (td = a._emscripten_enum_draco_DataType_DT_TYPES_COUNT = a.asm.Nb).apply(null, arguments);
1187
- }, ud = a._emscripten_enum_draco_StatusCode_OK = function() {
1188
- return (ud = a._emscripten_enum_draco_StatusCode_OK = a.asm.Ob).apply(null, arguments);
1189
- }, vd = a._emscripten_enum_draco_StatusCode_DRACO_ERROR = function() {
1190
- return (vd = a._emscripten_enum_draco_StatusCode_DRACO_ERROR = a.asm.Pb).apply(null, arguments);
1191
- }, wd = a._emscripten_enum_draco_StatusCode_IO_ERROR = function() {
1192
- return (wd = a._emscripten_enum_draco_StatusCode_IO_ERROR = a.asm.Qb).apply(null, arguments);
1193
- }, xd = a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER = function() {
1194
- return (xd = a._emscripten_enum_draco_StatusCode_INVALID_PARAMETER = a.asm.Rb).apply(null, arguments);
1195
- }, yd = a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION = function() {
1196
- return (yd = a._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION = a.asm.Sb).apply(null, arguments);
1197
- }, zd = a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION = function() {
1198
- return (zd = a._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION = a.asm.Tb).apply(null, arguments);
1199
- }, fb = a._malloc = function() {
1200
- return (fb = a._malloc = a.asm.Ub).apply(null, arguments);
1201
- };
1202
- a._free = function() {
1203
- return (a._free = a.asm.Vb).apply(null, arguments);
1204
- };
1205
- var Da = a.___cxa_is_pointer_type = function() {
1206
- return (Da = a.___cxa_is_pointer_type = a.asm.Wb).apply(null, arguments);
1207
- }, la;
1208
- ja = function b() {
1209
- la || P();
1210
- la || (ja = b);
1211
- };
1212
- a.run = P;
1213
- if (a.preInit)
1214
- for ("function" == typeof a.preInit && (a.preInit = [a.preInit]); 0 < a.preInit.length; )
1215
- a.preInit.pop()();
1216
- P();
1217
- u.prototype = Object.create(u.prototype);
1218
- u.prototype.constructor = u;
1219
- u.prototype.__class__ = u;
1220
- u.__cache__ = {};
1221
- a.WrapperObject = u;
1222
- a.getCache = x;
1223
- a.wrapPointer = D;
1224
- a.castObject = function(b, c) {
1225
- return D(b.ptr, c);
1226
- };
1227
- a.NULL = D(0);
1228
- a.destroy = function(b) {
1229
- if (!b.__destroy__)
1230
- throw "Error: Cannot destroy object. (Did you create it yourself?)";
1231
- b.__destroy__();
1232
- delete x(b.__class__)[b.ptr];
1233
- };
1234
- a.compare = function(b, c) {
1235
- return b.ptr === c.ptr;
1236
- };
1237
- a.getPointer = function(b) {
1238
- return b.ptr;
1239
- };
1240
- a.getClass = function(b) {
1241
- return b.__class__;
1242
- };
1243
- var r = { buffer: 0, size: 0, pos: 0, temps: [], needed: 0, prepare: function() {
1244
- if (r.needed) {
1245
- for (var b = 0; b < r.temps.length; b++)
1246
- a._free(r.temps[b]);
1247
- r.temps.length = 0;
1248
- a._free(r.buffer);
1249
- r.buffer = 0;
1250
- r.size += r.needed;
1251
- r.needed = 0;
1252
- }
1253
- r.buffer || (r.size += 128, r.buffer = a._malloc(r.size), r.buffer || f(void 0));
1254
- r.pos = 0;
1255
- }, alloc: function(b, c) {
1256
- r.buffer || f(void 0);
1257
- b = b.length * c.BYTES_PER_ELEMENT;
1258
- b = b + 7 & -8;
1259
- r.pos + b >= r.size ? (0 < b || f(void 0), r.needed += b, c = a._malloc(b), r.temps.push(c)) : (c = r.buffer + r.pos, r.pos += b);
1260
- return c;
1261
- }, copy: function(b, c, d) {
1262
- d >>>= 0;
1263
- switch (c.BYTES_PER_ELEMENT) {
1264
- case 2:
1265
- d >>>= 1;
1266
- break;
1267
- case 4:
1268
- d >>>= 2;
1269
- break;
1270
- case 8:
1271
- d >>>= 3;
1272
- }
1273
- for (var g = 0; g < b.length; g++)
1274
- c[d + g] = b[g];
1275
- } };
1276
- Z.prototype = Object.create(u.prototype);
1277
- Z.prototype.constructor = Z;
1278
- Z.prototype.__class__ = Z;
1279
- Z.__cache__ = {};
1280
- a.VoidPtr = Z;
1281
- Z.prototype.__destroy__ = Z.prototype.__destroy__ = function() {
1282
- hb(this.ptr);
1283
- };
1284
- S.prototype = Object.create(u.prototype);
1285
- S.prototype.constructor = S;
1286
- S.prototype.__class__ = S;
1287
- S.__cache__ = {};
1288
- a.DecoderBuffer = S;
1289
- S.prototype.Init = S.prototype.Init = function(b, c) {
1290
- var d = this.ptr;
1291
- r.prepare();
1292
- "object" == typeof b && (b = sa(b));
1293
- c && "object" === typeof c && (c = c.ptr);
1294
- ib(d, b, c);
1295
- };
1296
- S.prototype.__destroy__ = S.prototype.__destroy__ = function() {
1297
- jb(this.ptr);
1298
- };
1299
- R.prototype = Object.create(u.prototype);
1300
- R.prototype.constructor = R;
1301
- R.prototype.__class__ = R;
1302
- R.__cache__ = {};
1303
- a.AttributeTransformData = R;
1304
- R.prototype.transform_type = R.prototype.transform_type = function() {
1305
- return kb(this.ptr);
1306
- };
1307
- R.prototype.__destroy__ = R.prototype.__destroy__ = function() {
1308
- lb(this.ptr);
1309
- };
1310
- W.prototype = Object.create(u.prototype);
1311
- W.prototype.constructor = W;
1312
- W.prototype.__class__ = W;
1313
- W.__cache__ = {};
1314
- a.GeometryAttribute = W;
1315
- W.prototype.__destroy__ = W.prototype.__destroy__ = function() {
1316
- mb(this.ptr);
1317
- };
1318
- w.prototype = Object.create(u.prototype);
1319
- w.prototype.constructor = w;
1320
- w.prototype.__class__ = w;
1321
- w.__cache__ = {};
1322
- a.PointAttribute = w;
1323
- w.prototype.size = w.prototype.size = function() {
1324
- return nb(this.ptr);
1325
- };
1326
- w.prototype.GetAttributeTransformData = w.prototype.GetAttributeTransformData = function() {
1327
- return D(ob(this.ptr), R);
1328
- };
1329
- w.prototype.attribute_type = w.prototype.attribute_type = function() {
1330
- return pb(this.ptr);
1331
- };
1332
- w.prototype.data_type = w.prototype.data_type = function() {
1333
- return qb(this.ptr);
1334
- };
1335
- w.prototype.num_components = w.prototype.num_components = function() {
1336
- return rb(this.ptr);
1337
- };
1338
- w.prototype.normalized = w.prototype.normalized = function() {
1339
- return !!sb(this.ptr);
1340
- };
1341
- w.prototype.byte_stride = w.prototype.byte_stride = function() {
1342
- return tb(this.ptr);
1343
- };
1344
- w.prototype.byte_offset = w.prototype.byte_offset = function() {
1345
- return ub(this.ptr);
1346
- };
1347
- w.prototype.unique_id = w.prototype.unique_id = function() {
1348
- return vb(this.ptr);
1349
- };
1350
- w.prototype.__destroy__ = w.prototype.__destroy__ = function() {
1351
- wb(this.ptr);
1352
- };
1353
- C.prototype = Object.create(u.prototype);
1354
- C.prototype.constructor = C;
1355
- C.prototype.__class__ = C;
1356
- C.__cache__ = {};
1357
- a.AttributeQuantizationTransform = C;
1358
- C.prototype.InitFromAttribute = C.prototype.InitFromAttribute = function(b) {
1359
- var c = this.ptr;
1360
- b && "object" === typeof b && (b = b.ptr);
1361
- return !!xb(c, b);
1362
- };
1363
- C.prototype.quantization_bits = C.prototype.quantization_bits = function() {
1364
- return yb(this.ptr);
1365
- };
1366
- C.prototype.min_value = C.prototype.min_value = function(b) {
1367
- var c = this.ptr;
1368
- b && "object" === typeof b && (b = b.ptr);
1369
- return zb(c, b);
1370
- };
1371
- C.prototype.range = C.prototype.range = function() {
1372
- return Ab(this.ptr);
1373
- };
1374
- C.prototype.__destroy__ = C.prototype.__destroy__ = function() {
1375
- Bb(this.ptr);
1376
- };
1377
- G.prototype = Object.create(u.prototype);
1378
- G.prototype.constructor = G;
1379
- G.prototype.__class__ = G;
1380
- G.__cache__ = {};
1381
- a.AttributeOctahedronTransform = G;
1382
- G.prototype.InitFromAttribute = G.prototype.InitFromAttribute = function(b) {
1383
- var c = this.ptr;
1384
- b && "object" === typeof b && (b = b.ptr);
1385
- return !!Cb(c, b);
1386
- };
1387
- G.prototype.quantization_bits = G.prototype.quantization_bits = function() {
1388
- return Db(this.ptr);
1389
- };
1390
- G.prototype.__destroy__ = G.prototype.__destroy__ = function() {
1391
- Eb(this.ptr);
1392
- };
1393
- H.prototype = Object.create(u.prototype);
1394
- H.prototype.constructor = H;
1395
- H.prototype.__class__ = H;
1396
- H.__cache__ = {};
1397
- a.PointCloud = H;
1398
- H.prototype.num_attributes = H.prototype.num_attributes = function() {
1399
- return Fb(this.ptr);
1400
- };
1401
- H.prototype.num_points = H.prototype.num_points = function() {
1402
- return Gb(this.ptr);
1403
- };
1404
- H.prototype.__destroy__ = H.prototype.__destroy__ = function() {
1405
- Hb(this.ptr);
1406
- };
1407
- E.prototype = Object.create(u.prototype);
1408
- E.prototype.constructor = E;
1409
- E.prototype.__class__ = E;
1410
- E.__cache__ = {};
1411
- a.Mesh = E;
1412
- E.prototype.num_faces = E.prototype.num_faces = function() {
1413
- return Ib(this.ptr);
1414
- };
1415
- E.prototype.num_attributes = E.prototype.num_attributes = function() {
1416
- return Jb(this.ptr);
1417
- };
1418
- E.prototype.num_points = E.prototype.num_points = function() {
1419
- return Kb(this.ptr);
1420
- };
1421
- E.prototype.__destroy__ = E.prototype.__destroy__ = function() {
1422
- Lb(this.ptr);
1423
- };
1424
- T.prototype = Object.create(u.prototype);
1425
- T.prototype.constructor = T;
1426
- T.prototype.__class__ = T;
1427
- T.__cache__ = {};
1428
- a.Metadata = T;
1429
- T.prototype.__destroy__ = T.prototype.__destroy__ = function() {
1430
- Mb(this.ptr);
1431
- };
1432
- B.prototype = Object.create(u.prototype);
1433
- B.prototype.constructor = B;
1434
- B.prototype.__class__ = B;
1435
- B.__cache__ = {};
1436
- a.Status = B;
1437
- B.prototype.code = B.prototype.code = function() {
1438
- return Nb(this.ptr);
1439
- };
1440
- B.prototype.ok = B.prototype.ok = function() {
1441
- return !!Ob(this.ptr);
1442
- };
1443
- B.prototype.error_msg = B.prototype.error_msg = function() {
1444
- return h(Pb(this.ptr));
1445
- };
1446
- B.prototype.__destroy__ = B.prototype.__destroy__ = function() {
1447
- Qb(this.ptr);
1448
- };
1449
- I.prototype = Object.create(u.prototype);
1450
- I.prototype.constructor = I;
1451
- I.prototype.__class__ = I;
1452
- I.__cache__ = {};
1453
- a.DracoFloat32Array = I;
1454
- I.prototype.GetValue = I.prototype.GetValue = function(b) {
1455
- var c = this.ptr;
1456
- b && "object" === typeof b && (b = b.ptr);
1457
- return Rb(c, b);
1458
- };
1459
- I.prototype.size = I.prototype.size = function() {
1460
- return Sb(this.ptr);
1461
- };
1462
- I.prototype.__destroy__ = I.prototype.__destroy__ = function() {
1463
- Tb(this.ptr);
1464
- };
1465
- J.prototype = Object.create(u.prototype);
1466
- J.prototype.constructor = J;
1467
- J.prototype.__class__ = J;
1468
- J.__cache__ = {};
1469
- a.DracoInt8Array = J;
1470
- J.prototype.GetValue = J.prototype.GetValue = function(b) {
1471
- var c = this.ptr;
1472
- b && "object" === typeof b && (b = b.ptr);
1473
- return Ub(c, b);
1474
- };
1475
- J.prototype.size = J.prototype.size = function() {
1476
- return Vb(this.ptr);
1477
- };
1478
- J.prototype.__destroy__ = J.prototype.__destroy__ = function() {
1479
- Wb(this.ptr);
1480
- };
1481
- K.prototype = Object.create(u.prototype);
1482
- K.prototype.constructor = K;
1483
- K.prototype.__class__ = K;
1484
- K.__cache__ = {};
1485
- a.DracoUInt8Array = K;
1486
- K.prototype.GetValue = K.prototype.GetValue = function(b) {
1487
- var c = this.ptr;
1488
- b && "object" === typeof b && (b = b.ptr);
1489
- return Xb(c, b);
1490
- };
1491
- K.prototype.size = K.prototype.size = function() {
1492
- return Yb(this.ptr);
1493
- };
1494
- K.prototype.__destroy__ = K.prototype.__destroy__ = function() {
1495
- Zb(this.ptr);
1496
- };
1497
- L.prototype = Object.create(u.prototype);
1498
- L.prototype.constructor = L;
1499
- L.prototype.__class__ = L;
1500
- L.__cache__ = {};
1501
- a.DracoInt16Array = L;
1502
- L.prototype.GetValue = L.prototype.GetValue = function(b) {
1503
- var c = this.ptr;
1504
- b && "object" === typeof b && (b = b.ptr);
1505
- return $b(c, b);
1506
- };
1507
- L.prototype.size = L.prototype.size = function() {
1508
- return ac(this.ptr);
1509
- };
1510
- L.prototype.__destroy__ = L.prototype.__destroy__ = function() {
1511
- bc(this.ptr);
1512
- };
1513
- M.prototype = Object.create(u.prototype);
1514
- M.prototype.constructor = M;
1515
- M.prototype.__class__ = M;
1516
- M.__cache__ = {};
1517
- a.DracoUInt16Array = M;
1518
- M.prototype.GetValue = M.prototype.GetValue = function(b) {
1519
- var c = this.ptr;
1520
- b && "object" === typeof b && (b = b.ptr);
1521
- return cc(c, b);
1522
- };
1523
- M.prototype.size = M.prototype.size = function() {
1524
- return dc(this.ptr);
1525
- };
1526
- M.prototype.__destroy__ = M.prototype.__destroy__ = function() {
1527
- ec(this.ptr);
1528
- };
1529
- N.prototype = Object.create(u.prototype);
1530
- N.prototype.constructor = N;
1531
- N.prototype.__class__ = N;
1532
- N.__cache__ = {};
1533
- a.DracoInt32Array = N;
1534
- N.prototype.GetValue = N.prototype.GetValue = function(b) {
1535
- var c = this.ptr;
1536
- b && "object" === typeof b && (b = b.ptr);
1537
- return fc(c, b);
1538
- };
1539
- N.prototype.size = N.prototype.size = function() {
1540
- return gc(this.ptr);
1541
- };
1542
- N.prototype.__destroy__ = N.prototype.__destroy__ = function() {
1543
- hc(this.ptr);
1544
- };
1545
- O.prototype = Object.create(u.prototype);
1546
- O.prototype.constructor = O;
1547
- O.prototype.__class__ = O;
1548
- O.__cache__ = {};
1549
- a.DracoUInt32Array = O;
1550
- O.prototype.GetValue = O.prototype.GetValue = function(b) {
1551
- var c = this.ptr;
1552
- b && "object" === typeof b && (b = b.ptr);
1553
- return ic(c, b);
1554
- };
1555
- O.prototype.size = O.prototype.size = function() {
1556
- return jc(this.ptr);
1557
- };
1558
- O.prototype.__destroy__ = O.prototype.__destroy__ = function() {
1559
- kc(this.ptr);
1560
- };
1561
- y.prototype = Object.create(u.prototype);
1562
- y.prototype.constructor = y;
1563
- y.prototype.__class__ = y;
1564
- y.__cache__ = {};
1565
- a.MetadataQuerier = y;
1566
- y.prototype.HasEntry = y.prototype.HasEntry = function(b, c) {
1567
- var d = this.ptr;
1568
- r.prepare();
1569
- b && "object" === typeof b && (b = b.ptr);
1570
- c = c && "object" === typeof c ? c.ptr : aa(c);
1571
- return !!lc(d, b, c);
1572
- };
1573
- y.prototype.GetIntEntry = y.prototype.GetIntEntry = function(b, c) {
1574
- var d = this.ptr;
1575
- r.prepare();
1576
- b && "object" === typeof b && (b = b.ptr);
1577
- c = c && "object" === typeof c ? c.ptr : aa(c);
1578
- return mc(d, b, c);
1579
- };
1580
- y.prototype.GetIntEntryArray = y.prototype.GetIntEntryArray = function(b, c, d) {
1581
- var g = this.ptr;
1582
- r.prepare();
1583
- b && "object" === typeof b && (b = b.ptr);
1584
- c = c && "object" === typeof c ? c.ptr : aa(c);
1585
- d && "object" === typeof d && (d = d.ptr);
1586
- nc(g, b, c, d);
1587
- };
1588
- y.prototype.GetDoubleEntry = y.prototype.GetDoubleEntry = function(b, c) {
1589
- var d = this.ptr;
1590
- r.prepare();
1591
- b && "object" === typeof b && (b = b.ptr);
1592
- c = c && "object" === typeof c ? c.ptr : aa(c);
1593
- return oc(d, b, c);
1594
- };
1595
- y.prototype.GetStringEntry = y.prototype.GetStringEntry = function(b, c) {
1596
- var d = this.ptr;
1597
- r.prepare();
1598
- b && "object" === typeof b && (b = b.ptr);
1599
- c = c && "object" === typeof c ? c.ptr : aa(c);
1600
- return h(pc(d, b, c));
1601
- };
1602
- y.prototype.NumEntries = y.prototype.NumEntries = function(b) {
1603
- var c = this.ptr;
1604
- b && "object" === typeof b && (b = b.ptr);
1605
- return qc(c, b);
1606
- };
1607
- y.prototype.GetEntryName = y.prototype.GetEntryName = function(b, c) {
1608
- var d = this.ptr;
1609
- b && "object" === typeof b && (b = b.ptr);
1610
- c && "object" === typeof c && (c = c.ptr);
1611
- return h(rc(d, b, c));
1612
- };
1613
- y.prototype.__destroy__ = y.prototype.__destroy__ = function() {
1614
- sc(this.ptr);
1615
- };
1616
- m.prototype = Object.create(u.prototype);
1617
- m.prototype.constructor = m;
1618
- m.prototype.__class__ = m;
1619
- m.__cache__ = {};
1620
- a.Decoder = m;
1621
- m.prototype.DecodeArrayToPointCloud = m.prototype.DecodeArrayToPointCloud = function(b, c, d) {
1622
- var g = this.ptr;
1623
- r.prepare();
1624
- "object" == typeof b && (b = sa(b));
1625
- c && "object" === typeof c && (c = c.ptr);
1626
- d && "object" === typeof d && (d = d.ptr);
1627
- return D(tc(g, b, c, d), B);
1628
- };
1629
- m.prototype.DecodeArrayToMesh = m.prototype.DecodeArrayToMesh = function(b, c, d) {
1630
- var g = this.ptr;
1631
- r.prepare();
1632
- "object" == typeof b && (b = sa(b));
1633
- c && "object" === typeof c && (c = c.ptr);
1634
- d && "object" === typeof d && (d = d.ptr);
1635
- return D(uc(g, b, c, d), B);
1636
- };
1637
- m.prototype.GetAttributeId = m.prototype.GetAttributeId = function(b, c) {
1638
- var d = this.ptr;
1639
- b && "object" === typeof b && (b = b.ptr);
1640
- c && "object" === typeof c && (c = c.ptr);
1641
- return vc(d, b, c);
1642
- };
1643
- m.prototype.GetAttributeIdByName = m.prototype.GetAttributeIdByName = function(b, c) {
1644
- var d = this.ptr;
1645
- r.prepare();
1646
- b && "object" === typeof b && (b = b.ptr);
1647
- c = c && "object" === typeof c ? c.ptr : aa(c);
1648
- return wc(d, b, c);
1649
- };
1650
- m.prototype.GetAttributeIdByMetadataEntry = m.prototype.GetAttributeIdByMetadataEntry = function(b, c, d) {
1651
- var g = this.ptr;
1652
- r.prepare();
1653
- b && "object" === typeof b && (b = b.ptr);
1654
- c = c && "object" === typeof c ? c.ptr : aa(c);
1655
- d = d && "object" === typeof d ? d.ptr : aa(d);
1656
- return xc(g, b, c, d);
1657
- };
1658
- m.prototype.GetAttribute = m.prototype.GetAttribute = function(b, c) {
1659
- var d = this.ptr;
1660
- b && "object" === typeof b && (b = b.ptr);
1661
- c && "object" === typeof c && (c = c.ptr);
1662
- return D(yc(d, b, c), w);
1663
- };
1664
- m.prototype.GetAttributeByUniqueId = m.prototype.GetAttributeByUniqueId = function(b, c) {
1665
- var d = this.ptr;
1666
- b && "object" === typeof b && (b = b.ptr);
1667
- c && "object" === typeof c && (c = c.ptr);
1668
- return D(zc(
1669
- d,
1670
- b,
1671
- c
1672
- ), w);
1673
- };
1674
- m.prototype.GetMetadata = m.prototype.GetMetadata = function(b) {
1675
- var c = this.ptr;
1676
- b && "object" === typeof b && (b = b.ptr);
1677
- return D(Ac(c, b), T);
1678
- };
1679
- m.prototype.GetAttributeMetadata = m.prototype.GetAttributeMetadata = function(b, c) {
1680
- var d = this.ptr;
1681
- b && "object" === typeof b && (b = b.ptr);
1682
- c && "object" === typeof c && (c = c.ptr);
1683
- return D(Bc(d, b, c), T);
1684
- };
1685
- m.prototype.GetFaceFromMesh = m.prototype.GetFaceFromMesh = function(b, c, d) {
1686
- var g = this.ptr;
1687
- b && "object" === typeof b && (b = b.ptr);
1688
- c && "object" === typeof c && (c = c.ptr);
1689
- d && "object" === typeof d && (d = d.ptr);
1690
- return !!Cc(g, b, c, d);
1691
- };
1692
- m.prototype.GetTriangleStripsFromMesh = m.prototype.GetTriangleStripsFromMesh = function(b, c) {
1693
- var d = this.ptr;
1694
- b && "object" === typeof b && (b = b.ptr);
1695
- c && "object" === typeof c && (c = c.ptr);
1696
- return Dc(d, b, c);
1697
- };
1698
- m.prototype.GetTrianglesUInt16Array = m.prototype.GetTrianglesUInt16Array = function(b, c, d) {
1699
- var g = this.ptr;
1700
- b && "object" === typeof b && (b = b.ptr);
1701
- c && "object" === typeof c && (c = c.ptr);
1702
- d && "object" === typeof d && (d = d.ptr);
1703
- return !!Ec(g, b, c, d);
1704
- };
1705
- m.prototype.GetTrianglesUInt32Array = m.prototype.GetTrianglesUInt32Array = function(b, c, d) {
1706
- var g = this.ptr;
1707
- b && "object" === typeof b && (b = b.ptr);
1708
- c && "object" === typeof c && (c = c.ptr);
1709
- d && "object" === typeof d && (d = d.ptr);
1710
- return !!Fc(g, b, c, d);
1711
- };
1712
- m.prototype.GetAttributeFloat = m.prototype.GetAttributeFloat = function(b, c, d) {
1713
- var g = this.ptr;
1714
- b && "object" === typeof b && (b = b.ptr);
1715
- c && "object" === typeof c && (c = c.ptr);
1716
- d && "object" === typeof d && (d = d.ptr);
1717
- return !!Gc(g, b, c, d);
1718
- };
1719
- m.prototype.GetAttributeFloatForAllPoints = m.prototype.GetAttributeFloatForAllPoints = function(b, c, d) {
1720
- var g = this.ptr;
1721
- b && "object" === typeof b && (b = b.ptr);
1722
- c && "object" === typeof c && (c = c.ptr);
1723
- d && "object" === typeof d && (d = d.ptr);
1724
- return !!Hc(g, b, c, d);
1725
- };
1726
- m.prototype.GetAttributeIntForAllPoints = m.prototype.GetAttributeIntForAllPoints = function(b, c, d) {
1727
- var g = this.ptr;
1728
- b && "object" === typeof b && (b = b.ptr);
1729
- c && "object" === typeof c && (c = c.ptr);
1730
- d && "object" === typeof d && (d = d.ptr);
1731
- return !!Ic(g, b, c, d);
1732
- };
1733
- m.prototype.GetAttributeInt8ForAllPoints = m.prototype.GetAttributeInt8ForAllPoints = function(b, c, d) {
1734
- var g = this.ptr;
1735
- b && "object" === typeof b && (b = b.ptr);
1736
- c && "object" === typeof c && (c = c.ptr);
1737
- d && "object" === typeof d && (d = d.ptr);
1738
- return !!Jc(g, b, c, d);
1739
- };
1740
- m.prototype.GetAttributeUInt8ForAllPoints = m.prototype.GetAttributeUInt8ForAllPoints = function(b, c, d) {
1741
- var g = this.ptr;
1742
- b && "object" === typeof b && (b = b.ptr);
1743
- c && "object" === typeof c && (c = c.ptr);
1744
- d && "object" === typeof d && (d = d.ptr);
1745
- return !!Kc(g, b, c, d);
1746
- };
1747
- m.prototype.GetAttributeInt16ForAllPoints = m.prototype.GetAttributeInt16ForAllPoints = function(b, c, d) {
1748
- var g = this.ptr;
1749
- b && "object" === typeof b && (b = b.ptr);
1750
- c && "object" === typeof c && (c = c.ptr);
1751
- d && "object" === typeof d && (d = d.ptr);
1752
- return !!Lc(g, b, c, d);
1753
- };
1754
- m.prototype.GetAttributeUInt16ForAllPoints = m.prototype.GetAttributeUInt16ForAllPoints = function(b, c, d) {
1755
- var g = this.ptr;
1756
- b && "object" === typeof b && (b = b.ptr);
1757
- c && "object" === typeof c && (c = c.ptr);
1758
- d && "object" === typeof d && (d = d.ptr);
1759
- return !!Mc(g, b, c, d);
1760
- };
1761
- m.prototype.GetAttributeInt32ForAllPoints = m.prototype.GetAttributeInt32ForAllPoints = function(b, c, d) {
1762
- var g = this.ptr;
1763
- b && "object" === typeof b && (b = b.ptr);
1764
- c && "object" === typeof c && (c = c.ptr);
1765
- d && "object" === typeof d && (d = d.ptr);
1766
- return !!Nc(
1767
- g,
1768
- b,
1769
- c,
1770
- d
1771
- );
1772
- };
1773
- m.prototype.GetAttributeUInt32ForAllPoints = m.prototype.GetAttributeUInt32ForAllPoints = function(b, c, d) {
1774
- var g = this.ptr;
1775
- b && "object" === typeof b && (b = b.ptr);
1776
- c && "object" === typeof c && (c = c.ptr);
1777
- d && "object" === typeof d && (d = d.ptr);
1778
- return !!Oc(g, b, c, d);
1779
- };
1780
- m.prototype.GetAttributeDataArrayForAllPoints = m.prototype.GetAttributeDataArrayForAllPoints = function(b, c, d, g, t) {
1781
- var X = this.ptr;
1782
- b && "object" === typeof b && (b = b.ptr);
1783
- c && "object" === typeof c && (c = c.ptr);
1784
- d && "object" === typeof d && (d = d.ptr);
1785
- g && "object" === typeof g && (g = g.ptr);
1786
- t && "object" === typeof t && (t = t.ptr);
1787
- return !!Pc(X, b, c, d, g, t);
1788
- };
1789
- m.prototype.SkipAttributeTransform = m.prototype.SkipAttributeTransform = function(b) {
1790
- var c = this.ptr;
1791
- b && "object" === typeof b && (b = b.ptr);
1792
- Qc(c, b);
1793
- };
1794
- m.prototype.GetEncodedGeometryType_Deprecated = m.prototype.GetEncodedGeometryType_Deprecated = function(b) {
1795
- var c = this.ptr;
1796
- b && "object" === typeof b && (b = b.ptr);
1797
- return Rc(c, b);
1798
- };
1799
- m.prototype.DecodeBufferToPointCloud = m.prototype.DecodeBufferToPointCloud = function(b, c) {
1800
- var d = this.ptr;
1801
- b && "object" === typeof b && (b = b.ptr);
1802
- c && "object" === typeof c && (c = c.ptr);
1803
- return D(Sc(d, b, c), B);
1804
- };
1805
- m.prototype.DecodeBufferToMesh = m.prototype.DecodeBufferToMesh = function(b, c) {
1806
- var d = this.ptr;
1807
- b && "object" === typeof b && (b = b.ptr);
1808
- c && "object" === typeof c && (c = c.ptr);
1809
- return D(Tc(d, b, c), B);
1810
- };
1811
- m.prototype.__destroy__ = m.prototype.__destroy__ = function() {
1812
- Uc(this.ptr);
1813
- };
1814
- (function() {
1815
- function b() {
1816
- a.ATTRIBUTE_INVALID_TRANSFORM = Vc();
1817
- a.ATTRIBUTE_NO_TRANSFORM = Wc();
1818
- a.ATTRIBUTE_QUANTIZATION_TRANSFORM = Xc();
1819
- a.ATTRIBUTE_OCTAHEDRON_TRANSFORM = Yc();
1820
- a.INVALID = Zc();
1821
- a.POSITION = $c();
1822
- a.NORMAL = ad();
1823
- a.COLOR = bd();
1824
- a.TEX_COORD = cd();
1825
- a.GENERIC = dd();
1826
- a.INVALID_GEOMETRY_TYPE = ed();
1827
- a.POINT_CLOUD = fd();
1828
- a.TRIANGULAR_MESH = gd();
1829
- a.DT_INVALID = hd();
1830
- a.DT_INT8 = id();
1831
- a.DT_UINT8 = jd();
1832
- a.DT_INT16 = kd();
1833
- a.DT_UINT16 = ld();
1834
- a.DT_INT32 = md();
1835
- a.DT_UINT32 = nd();
1836
- a.DT_INT64 = od();
1837
- a.DT_UINT64 = pd();
1838
- a.DT_FLOAT32 = qd();
1839
- a.DT_FLOAT64 = rd();
1840
- a.DT_BOOL = sd();
1841
- a.DT_TYPES_COUNT = td();
1842
- a.OK = ud();
1843
- a.DRACO_ERROR = vd();
1844
- a.IO_ERROR = wd();
1845
- a.INVALID_PARAMETER = xd();
1846
- a.UNSUPPORTED_VERSION = yd();
1847
- a.UNKNOWN_VERSION = zd();
1848
- }
1849
- Ea ? b() : ra.unshift(b);
1850
- })();
1851
- if ("function" === typeof a.onModuleParsed)
1852
- a.onModuleParsed();
1853
- a.Decoder.prototype.GetEncodedGeometryType = function(b) {
1854
- if (b.__class__ && b.__class__ === a.DecoderBuffer)
1855
- return a.Decoder.prototype.GetEncodedGeometryType_Deprecated(b);
1856
- if (8 > b.byteLength)
1857
- return a.INVALID_GEOMETRY_TYPE;
1858
- switch (b[7]) {
1859
- case 0:
1860
- return a.POINT_CLOUD;
1861
- case 1:
1862
- return a.TRIANGULAR_MESH;
1863
- default:
1864
- return a.INVALID_GEOMETRY_TYPE;
1865
- }
1866
- };
1867
- return n.ready;
1868
- };
1869
- }();
1870
- "object" === typeof exports && "object" === typeof module ? module.exports = DracoDecoderModule : "function" === typeof define && define.amd ? define([], function() {
1871
- return DracoDecoderModule;
1872
- }) : "object" === typeof exports && (exports.DracoDecoderModule = DracoDecoderModule);