isard 0.4.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +60 -0
- package/README.md +6 -2
- package/dist/decoder.worker.js +4 -4
- package/dist/decoder.worker.js.map +7 -6
- package/dist/decoders.d.ts +3 -2
- package/dist/decoders.js +28 -5
- package/dist/decoders.js.map +1 -1
- package/dist/engine-loader.d.ts +6 -3
- package/dist/engine-loader.js +10 -3
- package/dist/engine-loader.js.map +1 -1
- package/dist/formats.d.ts +11 -0
- package/dist/formats.js +12 -0
- package/dist/formats.js.map +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/isard_bg.wasm +0 -0
- package/dist/isard_core_bg.wasm +0 -0
- package/dist/isard_points_bg.wasm +0 -0
- package/dist/layers.js +2 -2
- package/dist/layers.js.map +1 -1
- package/dist/loader.d.ts +9 -3
- package/dist/loader.js +22 -3
- package/dist/loader.js.map +1 -1
- package/dist/map.d.ts +8 -0
- package/dist/map.js +10 -2
- package/dist/map.js.map +1 -1
- package/dist/pointclouds.d.ts +98 -0
- package/dist/pointclouds.js +232 -0
- package/dist/pointclouds.js.map +1 -0
- package/dist/projections.d.ts +13 -0
- package/dist/projections.js +13 -0
- package/dist/projections.js.map +1 -0
- package/dist/protocol.d.ts +17 -0
- package/dist/protocol.js.map +1 -1
- package/dist/types.d.ts +8 -2
- package/dist/types.js.map +1 -1
- package/dist/wasm/isard.d.ts +124 -12
- package/dist/wasm/isard.js +127 -8
- package/dist/wasm/isard_core.d.ts +0 -3
- package/dist/wasm/isard_core.js +0 -1
- package/dist/wasm/isard_points.d.ts +43 -0
- package/dist/wasm/isard_points.js +212 -0
- package/package.json +17 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,66 @@
|
|
|
3
3
|
Every notable change of `isard` (published as `@ign-junn/isard` up to 0.1.1). The format follows [Keep a Changelog](https://keepachangelog.com), the
|
|
4
4
|
versions [Semantic Versioning](https://semver.org) (before 1.0.0, a minor version may change an API).
|
|
5
5
|
|
|
6
|
+
## [0.5.1] - 2026-10-19
|
|
7
|
+
|
|
8
|
+
### Fixed
|
|
9
|
+
|
|
10
|
+
- A tilted globe stays a sphere longer: the blend into the Mercator plane is put off by how much farther than its
|
|
11
|
+
center the camera sees, up to three levels (zoom 10 for a view along the horizon). Pitched views at zooms 5 to 7
|
|
12
|
+
showed a flat ground up to a straight horizon, where the Mercator plane stretched the far ground towards the poles
|
|
13
|
+
(Mars's northern ice cap behind Olympus Mons).
|
|
14
|
+
- A globe seen from close and pitched no longer shows only its base: the tiles of its first two levels are always
|
|
15
|
+
split instead of being culled by their samples (a quarter of the world apart, they could all lie out of the
|
|
16
|
+
frustum or of the cap the camera sees), and a tile's point nearest to the one under the camera is tested too.
|
|
17
|
+
- Finer relief arriving under a tilted globe no longer shakes the view (zooms 8 to 10, pitched): the eye stays still
|
|
18
|
+
as on the plane, where it was only kept off the globe.
|
|
19
|
+
- While the globe blends into the plane, the ground under the cursor is the one drawn there (clicks, `ground`,
|
|
20
|
+
dragging and zooming around the cursor): it was taken on the sphere or on the plane, whichever was nearer, tens of
|
|
21
|
+
pixels off towards the edges of a pitched view.
|
|
22
|
+
- Under relief, a canyon or a basin at the horizon of the globe shows the halo beyond instead of the globe's base
|
|
23
|
+
colour (Valles Marineris seen along its length): the base and the sky's sphere lie as deep as the body's lowest
|
|
24
|
+
ground.
|
|
25
|
+
- The stars behind the globe no longer twinkle as it turns: a star is drawn at least a pixel wide, its light spread
|
|
26
|
+
over it (narrower, it lit only the pixels whose centre it crossed), and a layer of stars too fine for the screen
|
|
27
|
+
fades out.
|
|
28
|
+
|
|
29
|
+
### Added
|
|
30
|
+
|
|
31
|
+
- The globe example goes to the Moon and Mars with its arrows (a new map for each body).
|
|
32
|
+
|
|
33
|
+
## [0.5.0] - 2026-10-19
|
|
34
|
+
|
|
35
|
+
### Added
|
|
36
|
+
|
|
37
|
+
- Entry points by theme: `isard/formats` (KML, GPX, TopoJSON), `isard/projections` (CRSs, reprojection, WMTS grids)
|
|
38
|
+
and `isard/geoplateforme` (the IGN's WMTS, WMS, WFS, the Lambert-93 grid); `isard` still exports all of them.
|
|
39
|
+
- Point clouds, `map.addPointCloud({ url })` → `PointCloudLayer` (`setStyle`, `stats`, `info`, `remove`): COPC files
|
|
40
|
+
(LAZ 1.4 point formats 6 to 8 with their octree, read by HTTP range requests: the IGN's LiDAR HD), and 3D Tiles
|
|
41
|
+
point clouds (`format: '3dtiles'`, the default for a `.json` URL). The octree traversed by screen-space error within
|
|
42
|
+
a point budget (`pointBudget`, 3 million), the nearest, coarsest and most central nodes first, their downloads
|
|
43
|
+
aborted once out of the selection, a GPU memory budget; colored by RGB, class (the ASPRS and LiDAR HD palette,
|
|
44
|
+
`classifications` to recolor or hide classes), altitude (a ramp) or intensity; points of a fixed size or sized by
|
|
45
|
+
the spacing of their level, round or square; Eye-Dome Lighting (`edl`); depth shared with the relief, the buildings
|
|
46
|
+
and the 3D Tiles; `pickFeature` gives a point with its class, intensity, altitude, returns and color, read back from
|
|
47
|
+
the GPU.
|
|
48
|
+
- COPC positions reprojected as they are decoded, in the workers: the CRS from the file's WKT (built-in CRSs, or
|
|
49
|
+
`registerCrs`) or `crs` (any proj4 CRS), computed exactly on a grid of each node and interpolated within a
|
|
50
|
+
millimetre; NGF-IGN69 altitudes (Lambert-93, the CC zones; `geoid`) raised by the RAF20 geoid height onto the
|
|
51
|
+
ellipsoid of the relief; `verticalScale` (the WKT's vertical unit by default).
|
|
52
|
+
- The point cloud module, `isard_points_bg.wasm` (43 KB gzipped, the LAZ decoder of the `laz` crate): loaded by the
|
|
53
|
+
decoding workers with the first COPC chunk, the engines do not hold it (`pointsWasmUrl` when a bundler moves it).
|
|
54
|
+
- Requests held to a rate (`requestsPerSecond`, 8 a second for the Géoplateforme), answers `429` asked again after a
|
|
55
|
+
pause.
|
|
56
|
+
- 3D Tiles: `.pnts` tiles (positions plain or quantized, RGB, RGBA, RGB565, constant colors, normals plain or
|
|
57
|
+
oct-encoded, `3DTILES_draco_point_compression`) and glTF points (mode 0, meshopt, quantization, Draco), lit by their
|
|
58
|
+
normals; `pointSize` in the style of a 3D Tiles layer.
|
|
59
|
+
- The point clouds example: Notre-Dame de Paris in the IGN's LiDAR HD; the Géoplateforme guide on LiDAR HD.
|
|
60
|
+
|
|
61
|
+
### Changed
|
|
62
|
+
|
|
63
|
+
- The engine with 3D Tiles is 385 KB gzipped (was 345 KB): the point clouds (their program, the COPC layer, the pnts
|
|
64
|
+
and glTF points); the engine without 3D Tiles does not change.
|
|
65
|
+
|
|
6
66
|
## [0.4.0] - 2026-10-18
|
|
7
67
|
|
|
8
68
|
### Added
|
package/README.md
CHANGED
|
@@ -42,9 +42,11 @@ General-purpose map libraries spend their time on things these maps do not need.
|
|
|
42
42
|
digs Valles Marineris and the lunar craters from NASA's LOLA and MOLA models.
|
|
43
43
|
- 🏙️ **Buildings and 3D Tiles.** Buildings colored by a value or by a network's travel times, photomeshes and city
|
|
44
44
|
models in 3D Tiles (Draco, meshopt, KTX2).
|
|
45
|
+
- ☁️ **Point clouds.** LiDAR in COPC read by range requests (the IGN's LiDAR HD, reprojected from Lambert-93 onto the
|
|
46
|
+
relief), 3D Tiles points; colored by RGB, class, altitude or intensity, Eye-Dome Lighting, a point budget, picked.
|
|
45
47
|
- 🧊 **Your own 3D.** glTF models at positions, instanced and picked; custom layers for your WebGL code or a three.js
|
|
46
48
|
scene, in the map's frame and depth, with camera-relative matrices exact at any zoom.
|
|
47
|
-
- 🦀 **Small and exact.** 225 KB of WebAssembly gzipped (
|
|
49
|
+
- 🦀 **Small and exact.** 225 KB of WebAssembly gzipped (385 KB once a 3D Tiles layer, a model or a point cloud is added), f64 on the CPU and f32 relative to the camera on the GPU
|
|
48
50
|
(centimetres at any zoom), frames on demand only, strict TypeScript types end to end.
|
|
49
51
|
|
|
50
52
|
## Quick start
|
|
@@ -101,8 +103,9 @@ Live in the [documentation](https://graffkevin.github.io/isard/examples/), sourc
|
|
|
101
103
|
| [Buildings](https://graffkevin.github.io/isard/layers/buildings) | `addExtrusions` | tiles or one set, colored by values or by a network's times |
|
|
102
104
|
| [Ground shaders](https://graffkevin.github.io/isard/layers/ground) | `addGround` | your fragment shader over the ground: water depth, heat maps |
|
|
103
105
|
| [Rasters](https://graffkevin.github.io/isard/layers/rasters) | `addRaster` | XYZ, WMTS, WMS; in Web Mercator, or reprojected from another grid (longitudes and latitudes, Lambert-93, UTM, any CRS through proj4); or tiles drawn by your code |
|
|
104
|
-
| [3D Tiles](https://graffkevin.github.io/isard/layers/tiles3d) | `addTiles3d` | b3dm, glb, external tilesets, compressed or not |
|
|
106
|
+
| [3D Tiles](https://graffkevin.github.io/isard/layers/tiles3d) | `addTiles3d` | b3dm, pnts, glb, external tilesets, compressed or not |
|
|
105
107
|
| [glTF models](https://graffkevin.github.io/isard/layers/models) | `addModels` | a glTF model at many positions, instanced, on the relief, picked |
|
|
108
|
+
| [Point clouds](https://graffkevin.github.io/isard/layers/pointclouds) | `addPointCloud` | COPC (LiDAR HD) by range requests, pnts and glTF points; by class, altitude, intensity, EDL |
|
|
106
109
|
| [Custom layers](https://graffkevin.github.io/isard/layers/custom) | `addCustomLayer` | your WebGL code or a three.js scene in the map's frame, sharing its depth |
|
|
107
110
|
|
|
108
111
|
Plus markers, popups, controls, picking within a radius, `easeTo`, `flyTo`, a sky and fog for tilted views. All in
|
|
@@ -133,6 +136,7 @@ drives both.
|
|
|
133
136
|
```
|
|
134
137
|
crates/geo/ camera, projections, geodesy and geoid, tile selection, label placement, polygons tested natively
|
|
135
138
|
crates/tiles3d/ 3D Tiles tree, traversal and decoding tested natively
|
|
139
|
+
crates/pointcloud/ COPC point clouds: header, octree hierarchy, traversal, LAZ chunks tested natively
|
|
136
140
|
crates/engine/ the WebAssembly core: the engine, the ground, the layers, picking
|
|
137
141
|
packages/isard/ the npm package isard: GeoMap, layer handles, overlays, workers
|
|
138
142
|
apps/ the demo and the benchmark (Isard, iTowns, 3DTilesRendererJS)
|
package/dist/decoder.worker.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
return ${e};`)()}async function oe(_,e,t,n){let[r,c]=await Promise.all([Ae(`${_}${e}`,n),fetch(`${_}${t}`).then((a)=>a.arrayBuffer())]);return r({wasmBinary:c})}var re,_e;async function ae(_,e){re??=oe(_.draco,"draco_wasm_wrapper_gltf.js","draco_decoder_gltf.wasm","DracoDecoderModule");let t=await re;return e.map((n)=>{let r=new t.Decoder,c=new t.Mesh;try{let a=new Int8Array(n.data.buffer,n.data.byteOffset,n.data.byteLength),i=r.DecodeArrayToMesh(a,a.byteLength,c);if(!i.ok())throw Error(`Draco: ${i.error_msg()}`);let f=(h)=>{let T=r.GetAttributeByUniqueId(c,h),P=c.num_points()*T.num_components(),D=t._malloc(P*4);try{return r.GetAttributeDataArrayForAllPoints(c,T,t.DT_FLOAT32,P*4,D),t.HEAPF32.slice(D/4,D/4+P)}finally{t._free(D)}},b=c.num_faces()*3,g=t._malloc(b*4),w;try{r.GetTrianglesUInt32Array(c,b*4,g),w=t.HEAPU32.slice(g/4,g/4+b)}finally{t._free(g)}let p={mesh:n.mesh,primitive:n.primitive,positions:f(n.position),indices:w};if(n.uv!==void 0)p.uvs=f(n.uv);return p}finally{t.destroy(c),t.destroy(r)}})}function xe(_,e){if(_.astc)return{basis:10,gl:37808};if(_.bptc)return{basis:6,gl:36492};if(_.etc)return e?{basis:1,gl:37496}:{basis:0,gl:37492};if(_.s3tc)return e?{basis:3,gl:33779}:{basis:2,gl:33776};return{basis:13,gl:32856}}async function ie(_,e,t){_e??=oe(_.basis,"basis_transcoder.js","basis_transcoder.wasm","BASIS").then((c)=>(c.initializeBasis(),c));let r=new(await _e).KTX2File(t);try{if(!r.isValid()||!r.startTranscoding())throw Error("KTX2: invalid file");let{basis:c,gl:a}=xe(e,r.getHasAlpha()),i=[];for(let f=0;f<r.getLevels();f++){let{origWidth:b,origHeight:g}=r.getImageLevelInfo(f,0,0),w=new Uint8Array(r.getImageTranscodedSizeInBytes(f,0,0,c));if(!r.transcodeImage(w,f,0,0,c,0,-1,-1))throw Error("KTX2: transcoding failed");i.push({width:b,height:g,data:w})}return{format:a,levels:i}}finally{r.close(),r.delete()}}class Y{__destroy_into_raw(){let _=this.__wbg_ptr;return this.__wbg_ptr=0,se.unregister(this),_}free(){let _=this.__destroy_into_raw();o.__wbg_engine_free(_,0)}addCircles(_,e,t){let n=I(_,o.__wbindgen_malloc),r=s,c=y(e,o.__wbindgen_malloc),a=s,i=o.engine_addCircles(this.__wbg_ptr,n,r,c,a,t);if(i[2])throw m(i[1]);return i[0]>>>0}addCustomLayer(_,e){return o.engine_addCustomLayer(this.__wbg_ptr,_,e)>>>0}addExtrusions(){let _=o.engine_addExtrusions(this.__wbg_ptr);if(_[2])throw m(_[1]);return _[0]>>>0}addFills(_,e,t,n,r){let c=I(_,o.__wbindgen_malloc),a=s,i=y(e,o.__wbindgen_malloc),f=s,b=y(t,o.__wbindgen_malloc),g=s,w=y(n,o.__wbindgen_malloc),p=s,h=o.engine_addFills(this.__wbg_ptr,c,a,i,f,b,g,w,p,r);if(h[2])throw m(h[1]);return h[0]>>>0}addGround(_,e,t,n,r,c,a){let i=F(_,o.__wbindgen_malloc,o.__wbindgen_realloc),f=s,b=o.engine_addGround(this.__wbg_ptr,i,f,e,t,n,r,c,a);if(b[2])throw m(b[1]);return b[0]>>>0}addLines(_,e,t,n){let r=I(_,o.__wbindgen_malloc),c=s,a=y(e,o.__wbindgen_malloc),i=s,f=y(t,o.__wbindgen_malloc),b=s,g=o.engine_addLines(this.__wbg_ptr,r,c,a,i,f,b,n);if(g[2])throw m(g[1]);return g[0]>>>0}addModels(_,e,t){let n=F(_,o.__wbindgen_malloc,o.__wbindgen_realloc),r=s,c=I(e,o.__wbindgen_malloc),a=s,i=o.engine_addModels(this.__wbg_ptr,n,r,c,a,t);if(i[2])throw m(i[1]);return i[0]>>>0}addNetwork(_,e,t,n,r,c){let a=I(_,o.__wbindgen_malloc),i=s,f=y(e,o.__wbindgen_malloc),b=s;var g=u(t)?0:y(t,o.__wbindgen_malloc),w=s,p=u(n)?0:I(n,o.__wbindgen_malloc),h=s,T=u(r)?0:A(r,o.__wbindgen_malloc),P=s;let D=A(c,o.__wbindgen_malloc),x=s,E=o.engine_addNetwork(this.__wbg_ptr,a,i,f,b,g,w,p,h,T,P,D,x);if(E[2])throw m(E[1]);return E[0]>>>0}addRaster(_,e,t,n,r,c,a){let i=F(_,o.__wbindgen_malloc,o.__wbindgen_realloc),f=s,b=o.engine_addRaster(this.__wbg_ptr,i,f,e,t,n,r,u(c)?Number.MAX_SAFE_INTEGER:c>>0,u(a)?0:d(a));if(b[2])throw m(b[1]);return b[0]>>>0}addSymbols(){let _=o.engine_addSymbols(this.__wbg_ptr);if(_[2])throw m(_[1]);return _[0]>>>0}addTiles3d(_,e){let t=F(_,o.__wbindgen_malloc,o.__wbindgen_realloc),n=s,r=o.engine_addTiles3d(this.__wbg_ptr,t,n,e);if(r[2])throw m(r[1]);return r[0]>>>0}bounds(){let _=o.engine_bounds(this.__wbg_ptr);var e=ge(_[0],_[1]).slice();return o.__wbindgen_free(_[0],_[1]*8,8),e}camera(){return o.engine_camera(this.__wbg_ptr)}clearPreload(){o.engine_clearPreload(this.__wbg_ptr)}static customMatrix(_,e,t){let n=o.engine_customMatrix(_,e,t),r;if(n[0]!==0)r=S(n[0],n[1]).slice(),o.__wbindgen_free(n[0],n[1]*4,4);return r}ground(_,e){return o.engine_ground(this.__wbg_ptr,_,e)}linkExtrusionNetwork(_,e,t){o.engine_linkExtrusionNetwork(this.__wbg_ptr,_,u(e)?Number.MAX_SAFE_INTEGER:e>>>0,t)}moveLayer(_,e){o.engine_moveLayer(this.__wbg_ptr,_,e)}networkStats(_){return o.engine_networkStats(this.__wbg_ptr,_)}constructor(_,e){let t=o.engine_new(_,e);if(t[2])throw m(t[1]);return this.__wbg_ptr=t[0],se.register(this,this.__wbg_ptr,this),this}pan(_,e,t,n){o.engine_pan(this.__wbg_ptr,_,e,t,n)}pick(_,e,t,n){var r=u(n)?0:y(n,o.__wbindgen_malloc),c=s;return o.engine_pick(this.__wbg_ptr,_,e,!u(t),u(t)?0:t,r,c)}pollPick(){return o.engine_pollPick(this.__wbg_ptr)}preload(_,e,t,n,r){o.engine_preload(this.__wbg_ptr,_,e,t,n,r)}project(_,e){return o.engine_project(this.__wbg_ptr,_,e)}removeExtrusionBatch(_,e){o.engine_removeExtrusionBatch(this.__wbg_ptr,_,e)}removeLayer(_){o.engine_removeLayer(this.__wbg_ptr,_)}render(){return o.engine_render(this.__wbg_ptr)!==0}requestPick(_,e,t,n){var r=u(n)?0:y(n,o.__wbindgen_malloc),c=s;return o.engine_requestPick(this.__wbg_ptr,_,e,!u(t),u(t)?0:t,r,c)!==0}resize(_,e,t){o.engine_resize(this.__wbg_ptr,_,e,t)}rotate(_,e){o.engine_rotate(this.__wbg_ptr,_,e)}setAtmosphere(_){var e=u(_)?0:A(_,o.__wbindgen_malloc),t=s;o.engine_setAtmosphere(this.__wbg_ptr,e,t)}setBackground(_,e,t){o.engine_setBackground(this.__wbg_ptr,_,e,t)}setBody(_,e,t,n,r){var c=u(t)?0:A(t,o.__wbindgen_malloc),a=s;o.engine_setBody(this.__wbg_ptr,_,e,c,a,n,r)}setCamera(_,e,t,n,r){o.engine_setCamera(this.__wbg_ptr,_,e,t,n,r)}setCircleAlignment(_,e){o.engine_setCircleAlignment(this.__wbg_ptr,_,e)}setCircles(_,e,t){let n=I(e,o.__wbindgen_malloc),r=s,c=y(t,o.__wbindgen_malloc),a=s;o.engine_setCircles(this.__wbg_ptr,_,n,r,c,a)}setExtrusionAnchors(_,e,t){let n=A(t,o.__wbindgen_malloc),r=s,c=o.engine_setExtrusionAnchors(this.__wbg_ptr,_,e,n,r);if(c[1])throw m(c[0])}setExtrusionBatch(_,e,t,n,r,c,a){let i=I(t,o.__wbindgen_malloc),f=s,b=y(n,o.__wbindgen_malloc),g=s,w=y(r,o.__wbindgen_malloc),p=s,h=y(c,o.__wbindgen_malloc),T=s,P=o.engine_setExtrusionBatch(this.__wbg_ptr,_,e,i,f,b,g,w,p,h,T,a);if(P[1])throw m(P[0])}setFeatureLayer(_,e,t,n,r){let c=A(e,o.__wbindgen_malloc),a=s;o.engine_setFeatureLayer(this.__wbg_ptr,_,c,a,t,n,r)}setFeatureMask(_,e,t){let n=M(e,o.__wbindgen_malloc),r=s;o.engine_setFeatureMask(this.__wbg_ptr,_,n,r,u(t)?Number.MAX_SAFE_INTEGER:t>>>0)}setFeatureRamp(_,e,t,n){var r=u(e)?0:M(e,o.__wbindgen_malloc),c=s;o.engine_setFeatureRamp(this.__wbg_ptr,_,r,c,t,n)}setFeatureStyle(_,e,t){let n=A(e,o.__wbindgen_malloc),r=s;o.engine_setFeatureStyle(this.__wbg_ptr,_,n,r,u(t)?Number.MAX_SAFE_INTEGER:t>>>0)}setFeatureValues(_,e,t){let n=A(e,o.__wbindgen_malloc),r=s;o.engine_setFeatureValues(this.__wbg_ptr,_,n,r,u(t)?Number.MAX_SAFE_INTEGER:t>>>0)}setFills(_,e,t,n,r){let c=I(e,o.__wbindgen_malloc),a=s,i=y(t,o.__wbindgen_malloc),f=s,b=y(n,o.__wbindgen_malloc),g=s,w=y(r,o.__wbindgen_malloc),p=s;o.engine_setFills(this.__wbg_ptr,_,c,a,i,f,b,g,w,p)}setGlobeColor(_,e,t){o.engine_setGlobeColor(this.__wbg_ptr,_,e,t)}setGlobe(_){o.engine_setGlobe(this.__wbg_ptr,_)}setGlyphAtlas(_,e,t){var n=u(t)?0:M(t,o.__wbindgen_malloc),r=s;let c=o.engine_setGlyphAtlas(this.__wbg_ptr,_,e,n,r);if(c[1])throw m(c[0])}setGlyphPages(_,e,t){let n=o.engine_setGlyphPages(this.__wbg_ptr,_,e,t);if(n[1])throw m(n[0])}setGroundBounds(_,e,t,n,r){o.engine_setGroundBounds(this.__wbg_ptr,_,e,t,n,r)}setGroundTexture(_,e,t,n,r,c,a,i){let f=F(e,o.__wbindgen_malloc,o.__wbindgen_realloc),b=s,g=F(t,o.__wbindgen_malloc,o.__wbindgen_realloc),w=s;var p=u(i)?0:M(i,o.__wbindgen_malloc),h=s;let T=o.engine_setGroundTexture(this.__wbg_ptr,_,f,b,g,w,n,r,c,a,p,h);if(T[1])throw m(T[0])}setGroundUniform(_,e,t){let n=F(e,o.__wbindgen_malloc,o.__wbindgen_realloc),r=s,c=I(t,o.__wbindgen_malloc),a=s,i=o.engine_setGroundUniform(this.__wbg_ptr,_,n,r,c,a);if(i[1])throw m(i[0])}setGroundVisible(_,e){o.engine_setGroundVisible(this.__wbg_ptr,_,e)}setIconAtlas(_,e){let t=o.engine_setIconAtlas(this.__wbg_ptr,_,e);if(t[1])throw m(t[0])}setImmediateLoading(_){o.engine_setImmediateLoading(this.__wbg_ptr,_)}setLineDash(_,e,t){o.engine_setLineDash(this.__wbg_ptr,_,e,t)}setLines(_,e,t,n){let r=I(e,o.__wbindgen_malloc),c=s,a=y(t,o.__wbindgen_malloc),i=s,f=y(n,o.__wbindgen_malloc),b=s,g=o.engine_setLines(this.__wbg_ptr,_,r,c,a,i,f,b);if(g[1])throw m(g[0])}setMaxPitch(_){o.engine_setMaxPitch(this.__wbg_ptr,_)}setModelInstances(_,e,t){let n=I(e,o.__wbindgen_malloc),r=s;o.engine_setModelInstances(this.__wbg_ptr,_,n,r,t)}setNetworkCosts(_,e){var t=u(e)?0:A(e,o.__wbindgen_malloc),n=s;o.engine_setNetworkCosts(this.__wbg_ptr,_,t,n)}setNetworkRamp(_,e){var t=u(e)?0:M(e,o.__wbindgen_malloc),n=s;o.engine_setNetworkRamp(this.__wbg_ptr,_,t,n)}setNetworkScales(_,e){var t=u(e)?0:A(e,o.__wbindgen_malloc),n=s;o.engine_setNetworkScales(this.__wbg_ptr,_,t,n)}setNetworkStyle(_,e){let t=A(e,o.__wbindgen_malloc),n=s;o.engine_setNetworkStyle(this.__wbg_ptr,_,t,n)}setNetworkValues(_,e){let t=A(e,o.__wbindgen_malloc),n=s;o.engine_setNetworkValues(this.__wbg_ptr,_,t,n)}setRasterStyle(_,e,t){o.engine_setRasterStyle(this.__wbg_ptr,_,e,t)}setSky(_){o.engine_setSky(this.__wbg_ptr,_)}setSymbolLayer(_,e,t,n,r,c){let a=A(e,o.__wbindgen_malloc),i=s,f=A(t,o.__wbindgen_malloc),b=s;o.engine_setSymbolLayer(this.__wbg_ptr,_,a,i,f,b,n,r,c)}setSymbols(_,e,t,n,r){let c=I(e,o.__wbindgen_malloc),a=s,i=A(t,o.__wbindgen_malloc),f=s,b=A(n,o.__wbindgen_malloc),g=s,w=A(r,o.__wbindgen_malloc),p=s,h=o.engine_setSymbols(this.__wbg_ptr,_,c,a,i,f,b,g,w,p);if(h[1])throw m(h[0])}setTerrain(_,e,t,n,r){var c=u(_)?0:F(_,o.__wbindgen_malloc,o.__wbindgen_realloc),a=s;let i=o.engine_setTerrain(this.__wbg_ptr,c,a,e,u(t)?16777215:t,u(n)?16777215:n?1:0,u(r)?0:d(r));if(i[1])throw m(i[0])}setTileLoader(_){o.engine_setTileLoader(this.__wbg_ptr,_)}setTiles3dStyle(_,e,t){o.engine_setTiles3dStyle(this.__wbg_ptr,_,e,t)}setZoomRange(_,e){o.engine_setZoomRange(this.__wbg_ptr,_,e)}stats(){return o.engine_stats(this.__wbg_ptr)}textureFormats(){return o.engine_textureFormats(this.__wbg_ptr)}tiles3dStats(_){return o.engine_tiles3dStats(this.__wbg_ptr,_)}updateGlyphAtlas(_,e,t,n,r){let c=M(r,o.__wbindgen_malloc),a=s;o.engine_updateGlyphAtlas(this.__wbg_ptr,_,e,t,n,c,a)}updateGlyphPage(_,e,t,n,r,c){let a=M(c,o.__wbindgen_malloc),i=s;o.engine_updateGlyphPage(this.__wbg_ptr,_,e,t,n,r,a,i)}updateGroundTexture(_,e,t,n,r,c,a,i){let f=F(e,o.__wbindgen_malloc,o.__wbindgen_realloc),b=s,g=M(i,o.__wbindgen_malloc),w=s,p=o.engine_updateGroundTexture(this.__wbg_ptr,_,f,b,t,n,r,c,a,g,w);if(p[1])throw m(p[0])}updateIconAtlas(_,e,t,n,r){let c=M(r,o.__wbindgen_malloc),a=s;o.engine_updateIconAtlas(this.__wbg_ptr,_,e,t,n,c,a)}zoomAt(_,e,t){o.engine_zoomAt(this.__wbg_ptr,_,e,t)}}if(Symbol.dispose)Y.prototype[Symbol.dispose]=Y.prototype.free;function ue(_,e,t,n){let r=M(_,o.__wbindgen_malloc),c=s,a=I(e,o.__wbindgen_malloc),i=s,f=o.decodeTile(r,c,a,i,t,n);if(f[2])throw m(f[1]);return m(f[0])}function be(_){let e=M(_,o.__wbindgen_malloc),t=s,n=o.dracoRequests(e,t);if(n[2])throw m(n[1]);return m(n[0])}function ve(){return{__proto__:null,"./isard_bg.js":{__proto__:null,__wbg___wbindgen_boolean_get_5b446f51afd21013:function(e){let t=e,n=typeof t==="boolean"?t:void 0;return u(n)?16777215:n?1:0},__wbg___wbindgen_debug_string_4687d8d8c2017d52:function(e,t){let n=Q(t),r=F(n,o.__wbindgen_malloc,o.__wbindgen_realloc),c=s;v().setInt32(e+4,c,!0),v().setInt32(e+0,r,!0)},__wbg___wbindgen_is_function_1f9d30630b8b1d3d:function(e){return typeof e==="function"},__wbg___wbindgen_is_null_e343b7d08827ba72:function(e){return e===null},__wbg___wbindgen_is_object_3c45d4f2dde4e749:function(e){let t=e;return typeof t==="object"&&t!==null},__wbg___wbindgen_is_undefined_8865fb403f8fe9d8:function(e){return e===void 0},__wbg___wbindgen_number_get_2e0e7dee9f701a71:function(e,t){let n=t,r=typeof n==="number"?n:void 0;v().setFloat64(e+8,u(r)?0:r,!0),v().setInt32(e+0,!u(r),!0)},__wbg___wbindgen_string_get_0380ccaa2f57f0d9:function(e,t){let n=t,r=typeof n==="string"?n:void 0;var c=u(r)?0:F(r,o.__wbindgen_malloc,o.__wbindgen_realloc),a=s;v().setInt32(e+4,a,!0),v().setInt32(e+0,c,!0)},__wbg___wbindgen_throw_41e9ee4f547fc59a:function(e,t){throw Error(L(e,t))},__wbg__wbg_cb_unref_dcc1a90847f04c41:function(e){e._wbg_cb_unref()},__wbg_abort_f78b99d80248bacb:function(e){e.abort()},__wbg_aborted_5b2b5f06b5e59fde:function(e){return e.aborted},__wbg_activeTexture_11079673eac5c921:function(e,t){e.activeTexture(t>>>0)},__wbg_activeTexture_2fad46c01cafe6b1:function(e,t){e.activeTexture(t>>>0)},__wbg_apply_a910804df6e1e433:function(){return l(function(e,t,n){return e.apply(t,n)},arguments)},__wbg_arrayBuffer_f07be74819944ea2:function(){return l(function(e){return e.arrayBuffer()},arguments)},__wbg_attachShader_8920a5beea54aba7:function(e,t,n){e.attachShader(t,n)},__wbg_attachShader_9567ae57af6746d5:function(e,t,n){e.attachShader(t,n)},__wbg_bindBuffer_0324f62b876c4403:function(e,t,n){e.bindBuffer(t>>>0,n)},__wbg_bindBuffer_2195e89b585ce0c3:function(e,t,n){e.bindBuffer(t>>>0,n)},__wbg_bindFramebuffer_22e4b8e6e6d8d0e8:function(e,t,n){e.bindFramebuffer(t>>>0,n)},__wbg_bindFramebuffer_378eb18ef219d37a:function(e,t,n){e.bindFramebuffer(t>>>0,n)},__wbg_bindRenderbuffer_db090531fb28de34:function(e,t,n){e.bindRenderbuffer(t>>>0,n)},__wbg_bindRenderbuffer_e0c5aeef245a913a:function(e,t,n){e.bindRenderbuffer(t>>>0,n)},__wbg_bindTexture_3cf008f256f3ed99:function(e,t,n){e.bindTexture(t>>>0,n)},__wbg_bindTexture_613a47b8917a0ccd:function(e,t,n){e.bindTexture(t>>>0,n)},__wbg_bindVertexArrayOES_3141815cb8234a6e:function(e,t){e.bindVertexArrayOES(t)},__wbg_bindVertexArray_f58af0a346185ec5:function(e,t){e.bindVertexArray(t)},__wbg_blendEquation_5fb8aee6a55cf900:function(e,t){e.blendEquation(t>>>0)},__wbg_blendEquation_d21914e937b14896:function(e,t){e.blendEquation(t>>>0)},__wbg_blendFuncSeparate_28abe082febb1a26:function(e,t,n,r,c){e.blendFuncSeparate(t>>>0,n>>>0,r>>>0,c>>>0)},__wbg_blendFuncSeparate_2af9d47f7efc0452:function(e,t,n,r,c){e.blendFuncSeparate(t>>>0,n>>>0,r>>>0,c>>>0)},__wbg_blendFunc_491ee1105079ce76:function(e,t,n){e.blendFunc(t>>>0,n>>>0)},__wbg_blendFunc_589e4252bb396484:function(e,t,n){e.blendFunc(t>>>0,n>>>0)},__wbg_blob_232135c7e297b861:function(){return l(function(e){return e.blob()},arguments)},__wbg_bufferData_50f5eb06469330e4:function(e,t,n,r){e.bufferData(t>>>0,n,r>>>0)},__wbg_bufferData_53e0f7a06b58fe81:function(e,t,n,r){e.bufferData(t>>>0,n,r>>>0)},__wbg_bufferData_5fa44d94fe7a3878:function(e,t,n,r){e.bufferData(t>>>0,n,r>>>0)},__wbg_bufferData_bad7ce562b6a9eac:function(e,t,n,r){e.bufferData(t>>>0,n,r>>>0)},__wbg_byteLength_141bda7c7c28aa72:function(e){return e.byteLength},__wbg_byteLength_18a1704c0bf397bb:function(e){return e.byteLength},__wbg_byteLength_27689b065d089962:function(e){return e.byteLength},__wbg_byteLength_9f985b8373f1f3fe:function(e){return e.byteLength},__wbg_call_01721c8c75200a10:function(){return l(function(e,t,n,r,c,a){return e.call(t,n,r,c,a)},arguments)},__wbg_call_187d372bd5fdd4aa:function(){return l(function(e,t,n){return e.call(t,n)},arguments)},__wbg_call_6137034ef55c9d0f:function(){return l(function(e,t){return e.call(t)},arguments)},__wbg_clearColor_3f6aa096dc12e8b7:function(e,t,n,r,c){e.clearColor(t,n,r,c)},__wbg_clearColor_796427e8ac60fe14:function(e,t,n,r,c){e.clearColor(t,n,r,c)},__wbg_clearStencil_1b8b8c727f598eec:function(e,t){e.clearStencil(t)},__wbg_clearStencil_e4383e4a543e7997:function(e,t){e.clearStencil(t)},__wbg_clear_175cf3cb6d98d72b:function(e,t){e.clear(t>>>0)},__wbg_clear_cb96796cc568b7c8:function(e,t){e.clear(t>>>0)},__wbg_close_355afba6ea5ad1ae:function(e){e.close()},__wbg_colorMask_4d6afbbbc3022fbe:function(e,t,n,r,c){e.colorMask(t!==0,n!==0,r!==0,c!==0)},__wbg_colorMask_8c903995f6f873be:function(e,t,n,r,c){e.colorMask(t!==0,n!==0,r!==0,c!==0)},__wbg_compileShader_073a75409aaf96d2:function(e,t){e.compileShader(t)},__wbg_compileShader_c2b53ff3a8851f60:function(e,t){e.compileShader(t)},__wbg_compressedTexImage2D_93d2b30687f2cfad:function(e,t,n,r,c,a,i,f){e.compressedTexImage2D(t>>>0,n,r>>>0,c,a,i,f)},__wbg_createBuffer_d1dd23bf8704564c:function(e){let t=e.createBuffer();return u(t)?0:d(t)},__wbg_createBuffer_ffe613371d42cfd3:function(e){let t=e.createBuffer();return u(t)?0:d(t)},__wbg_createFramebuffer_2c6b5b0f49c88e5d:function(e){let t=e.createFramebuffer();return u(t)?0:d(t)},__wbg_createFramebuffer_d0969af4e9886297:function(e){let t=e.createFramebuffer();return u(t)?0:d(t)},__wbg_createImageBitmap_1b985e01e4c81baa:function(){return l(function(e,t,n){return e.createImageBitmap(t,n)},arguments)},__wbg_createImageBitmap_69996a36c51d409f:function(){return l(function(e,t,n){return e.createImageBitmap(t,n)},arguments)},__wbg_createProgram_cbf448e6f18a9402:function(e){let t=e.createProgram();return u(t)?0:d(t)},__wbg_createProgram_e0c81b0d2b8d0fd0:function(e){let t=e.createProgram();return u(t)?0:d(t)},__wbg_createRenderbuffer_2b17e9fe2e6fb4be:function(e){let t=e.createRenderbuffer();return u(t)?0:d(t)},__wbg_createRenderbuffer_c864095d6ebd60d0:function(e){let t=e.createRenderbuffer();return u(t)?0:d(t)},__wbg_createShader_6c1a2295587878a5:function(e,t){let n=e.createShader(t>>>0);return u(n)?0:d(n)},__wbg_createShader_7c9d99a21ecb08c0:function(e,t){let n=e.createShader(t>>>0);return u(n)?0:d(n)},__wbg_createTexture_01e8e591b64237de:function(e){let t=e.createTexture();return u(t)?0:d(t)},__wbg_createTexture_5f2583508ebe379b:function(e){let t=e.createTexture();return u(t)?0:d(t)},__wbg_createVertexArrayOES_a8dc8498b56df937:function(e){let t=e.createVertexArrayOES();return u(t)?0:d(t)},__wbg_createVertexArray_b223ea69dd08fcab:function(e){let t=e.createVertexArray();return u(t)?0:d(t)},__wbg_cullFace_12123c1c97f1ba2c:function(e,t){e.cullFace(t>>>0)},__wbg_cullFace_1a01f0b6d5aeb687:function(e,t){e.cullFace(t>>>0)},__wbg_deleteBuffer_070e58aaaf2a7a8b:function(e,t){e.deleteBuffer(t)},__wbg_deleteBuffer_7775ee9e248c8468:function(e,t){e.deleteBuffer(t)},__wbg_deleteFramebuffer_3f8ab330098bf8e6:function(e,t){e.deleteFramebuffer(t)},__wbg_deleteFramebuffer_570d3b214a509fa2:function(e,t){e.deleteFramebuffer(t)},__wbg_deleteProgram_822906f0368175d0:function(e,t){e.deleteProgram(t)},__wbg_deleteProgram_b524b30ad176cdb4:function(e,t){e.deleteProgram(t)},__wbg_deleteRenderbuffer_826c9b43b7ea68f5:function(e,t){e.deleteRenderbuffer(t)},__wbg_deleteRenderbuffer_f4e121a3ab21c605:function(e,t){e.deleteRenderbuffer(t)},__wbg_deleteShader_a70f6cc1918d67eb:function(e,t){e.deleteShader(t)},__wbg_deleteShader_da18a294158c2d15:function(e,t){e.deleteShader(t)},__wbg_deleteSync_4f0be28b03f50495:function(e,t){e.deleteSync(t)},__wbg_deleteTexture_78c170241204a466:function(e,t){e.deleteTexture(t)},__wbg_deleteTexture_9f42750adb092e4f:function(e,t){e.deleteTexture(t)},__wbg_deleteVertexArrayOES_e01f31634d466176:function(e,t){e.deleteVertexArrayOES(t)},__wbg_deleteVertexArray_ca9768805d051d49:function(e,t){e.deleteVertexArray(t)},__wbg_depthFunc_92e96d8f46a23300:function(e,t){e.depthFunc(t>>>0)},__wbg_depthFunc_a41fb5adacb22e09:function(e,t){e.depthFunc(t>>>0)},__wbg_depthMask_06ecff4d4514c38f:function(e,t){e.depthMask(t!==0)},__wbg_depthMask_0d7c3dec3b8405ee:function(e,t){e.depthMask(t!==0)},__wbg_depthRange_24c7969249461e8e:function(e,t,n){e.depthRange(t,n)},__wbg_depthRange_6a4e169ccf314148:function(e,t,n){e.depthRange(t,n)},__wbg_detachShader_1ed15fc2d289cf15:function(e,t,n){e.detachShader(t,n)},__wbg_detachShader_67dabaaad80a795e:function(e,t,n){e.detachShader(t,n)},__wbg_disable_19fe787eccdf0272:function(e,t){e.disable(t>>>0)},__wbg_disable_81b2cb5f8cea15ae:function(e,t){e.disable(t>>>0)},__wbg_drawArraysInstancedANGLE_b76512b5abba6668:function(e,t,n,r,c){e.drawArraysInstancedANGLE(t>>>0,n,r,c)},__wbg_drawArraysInstanced_9b44aa78a087154d:function(e,t,n,r,c){e.drawArraysInstanced(t>>>0,n,r,c)},__wbg_drawArrays_08872e02fb57b847:function(e,t,n,r){e.drawArrays(t>>>0,n,r)},__wbg_drawArrays_741af5c3f8db636f:function(e,t,n,r){e.drawArrays(t>>>0,n,r)},__wbg_drawElementsInstancedANGLE_c3fc0cfa9e29a1bc:function(e,t,n,r,c,a){e.drawElementsInstancedANGLE(t>>>0,n,r>>>0,c,a)},__wbg_drawElementsInstanced_d7c396aa034159b6:function(e,t,n,r,c,a){e.drawElementsInstanced(t>>>0,n,r>>>0,c,a)},__wbg_drawElements_c8988ba71de1101a:function(e,t,n,r,c){e.drawElements(t>>>0,n,r>>>0,c)},__wbg_drawElements_cc1e6c631e89eddf:function(e,t,n,r,c){e.drawElements(t>>>0,n,r>>>0,c)},__wbg_enableVertexAttribArray_1496b78a8dbab9fd:function(e,t){e.enableVertexAttribArray(t>>>0)},__wbg_enableVertexAttribArray_d52693866bc8b8dd:function(e,t){e.enableVertexAttribArray(t>>>0)},__wbg_enable_6eeb9c0e9b483cee:function(e,t){e.enable(t>>>0)},__wbg_enable_cb4fc19b51148c37:function(e,t){e.enable(t>>>0)},__wbg_error_c9cf3fc2064683a9:function(e){console.error(e)},__wbg_fenceSync_330293024adb66bc:function(e,t,n){let r=e.fenceSync(t>>>0,n>>>0);return u(r)?0:d(r)},__wbg_fetch_b322877f1ed6457d:function(e,t,n,r){return e.fetch(L(t,n),r)},__wbg_flush_13b162660ad850d2:function(e){e.flush()},__wbg_flush_a5ad38200881ac35:function(e){e.flush()},__wbg_framebufferRenderbuffer_1c6337e0030411f3:function(e,t,n,r,c){e.framebufferRenderbuffer(t>>>0,n>>>0,r>>>0,c)},__wbg_framebufferRenderbuffer_f019e9231b142c0d:function(e,t,n,r,c){e.framebufferRenderbuffer(t>>>0,n>>>0,r>>>0,c)},__wbg_framebufferTexture2D_73c52f23ec33aa22:function(e,t,n,r,c,a){e.framebufferTexture2D(t>>>0,n>>>0,r>>>0,c,a)},__wbg_framebufferTexture2D_caddefa1f767646e:function(e,t,n,r,c,a){e.framebufferTexture2D(t>>>0,n>>>0,r>>>0,c,a)},__wbg_from_296ca31f8d0f1c52:function(e){return Array.from(e)},__wbg_frontFace_6751b4b97f997aeb:function(e,t){e.frontFace(t>>>0)},__wbg_frontFace_b064adb15b6f3772:function(e,t){e.frontFace(t>>>0)},__wbg_generateMipmap_c63604006bfa52d5:function(e,t){e.generateMipmap(t>>>0)},__wbg_generateMipmap_cd49f6eec9558721:function(e,t){e.generateMipmap(t>>>0)},__wbg_getActiveUniform_239de631a40c387a:function(e,t,n){let r=e.getActiveUniform(t,n>>>0);return u(r)?0:d(r)},__wbg_getActiveUniform_f2052b3c57679fe2:function(e,t,n){let r=e.getActiveUniform(t,n>>>0);return u(r)?0:d(r)},__wbg_getBufferSubData_dd23246099b166d1:function(e,t,n,r){e.getBufferSubData(t>>>0,n,r)},__wbg_getContext_051324720aa5b7e8:function(){return l(function(e,t,n,r){let c=e.getContext(L(t,n),r);return u(c)?0:d(c)},arguments)},__wbg_getExtension_abfda2c5db286b07:function(){return l(function(e,t,n){let r=e.getExtension(L(t,n));return u(r)?0:d(r)},arguments)},__wbg_getParameter_974595a6624c6c10:function(){return l(function(e,t){return e.getParameter(t>>>0)},arguments)},__wbg_getParameter_a97f491753b05668:function(){return l(function(e,t){return e.getParameter(t>>>0)},arguments)},__wbg_getProgramInfoLog_208fb1ff31006495:function(e,t,n){let r=t.getProgramInfoLog(n);var c=u(r)?0:F(r,o.__wbindgen_malloc,o.__wbindgen_realloc),a=s;v().setInt32(e+4,a,!0),v().setInt32(e+0,c,!0)},__wbg_getProgramInfoLog_3276b294d6d42fe2:function(e,t,n){let r=t.getProgramInfoLog(n);var c=u(r)?0:F(r,o.__wbindgen_malloc,o.__wbindgen_realloc),a=s;v().setInt32(e+4,a,!0),v().setInt32(e+0,c,!0)},__wbg_getProgramParameter_50bafab01cf88652:function(e,t,n){return e.getProgramParameter(t,n>>>0)},__wbg_getProgramParameter_fc7124bb9fb7c675:function(e,t,n){return e.getProgramParameter(t,n>>>0)},__wbg_getShaderInfoLog_7e0cbba353ca95da:function(e,t,n){let r=t.getShaderInfoLog(n);var c=u(r)?0:F(r,o.__wbindgen_malloc,o.__wbindgen_realloc),a=s;v().setInt32(e+4,a,!0),v().setInt32(e+0,c,!0)},__wbg_getShaderInfoLog_bb64c5a52df0b7a3:function(e,t,n){let r=t.getShaderInfoLog(n);var c=u(r)?0:F(r,o.__wbindgen_malloc,o.__wbindgen_realloc),a=s;v().setInt32(e+4,a,!0),v().setInt32(e+0,c,!0)},__wbg_getShaderParameter_745acf10b8e45e31:function(e,t,n){return e.getShaderParameter(t,n>>>0)},__wbg_getShaderParameter_e55ea9c456df5484:function(e,t,n){return e.getShaderParameter(t,n>>>0)},__wbg_getSupportedExtensions_1459bad37860c0c3:function(e){let t=e.getSupportedExtensions();return u(t)?0:d(t)},__wbg_getSyncParameter_bb4be47b67bfa2f8:function(e,t,n){return e.getSyncParameter(t,n>>>0)},__wbg_getUniformLocation_50ba45dade572703:function(e,t,n,r){let c=e.getUniformLocation(t,L(n,r));return u(c)?0:d(c)},__wbg_getUniformLocation_cb4e3e121235f91a:function(e,t,n,r){let c=e.getUniformLocation(t,L(n,r));return u(c)?0:d(c)},__wbg_get_31af05bd4842a84f:function(){return l(function(e,t){return Reflect.get(e,t)},arguments)},__wbg_get_index_f4750150bb3083b3:function(e,t){return e[t>>>0]},__wbg_get_unchecked_288889d017702237:function(e,t){return e[t>>>0]},__wbg_height_9dca4d43c3e4b84b:function(e){return e.height},__wbg_instanceof_ArrayBuffer_a99f175873e5d9b8:function(e){let t;try{t=e instanceof ArrayBuffer}catch(r){t=!1}return t},__wbg_instanceof_Blob_7c6191a4cd5834d3:function(e){let t;try{t=e instanceof Blob}catch(r){t=!1}return t},__wbg_instanceof_Float32Array_595afb0f28b828c9:function(e){let t;try{t=e instanceof Float32Array}catch(r){t=!1}return t},__wbg_instanceof_Float64Array_8a59377f9eec1b8b:function(e){let t;try{t=e instanceof Float64Array}catch(r){t=!1}return t},__wbg_instanceof_ImageBitmap_74bea45ee48d3d7a:function(e){let t;try{t=e instanceof ImageBitmap}catch(r){t=!1}return t},__wbg_instanceof_Promise_e1dc6893aa1ece28:function(e){let t;try{t=e instanceof Promise}catch(r){t=!1}return t},__wbg_instanceof_Response_b8758567269c30b2:function(e){let t;try{t=e instanceof Response}catch(r){t=!1}return t},__wbg_instanceof_Uint32Array_53a4facaf04b8a8b:function(e){let t;try{t=e instanceof Uint32Array}catch(r){t=!1}return t},__wbg_instanceof_Uint8Array_828cef2aaacafc31:function(e){let t;try{t=e instanceof Uint8Array}catch(r){t=!1}return t},__wbg_instanceof_WebGl2RenderingContext_64c994c14c0790fb:function(e){let t;try{t=e instanceof WebGL2RenderingContext}catch(r){t=!1}return t},__wbg_instanceof_Window_82d71df4eddf88bc:function(e){let t;try{t=e instanceof Window}catch(r){t=!1}return t},__wbg_isArray_e15a2ff68ffdbef2:function(e){return Array.isArray(e)},__wbg_isContextLost_fbbab8b921e614b7:function(e){return e.isContextLost()},__wbg_is_4b278c0bd3caba97:function(e,t){return Object.is(e,t)},__wbg_length_511b1f84719d3462:function(e){return e.length},__wbg_length_58572db4c38f3c3e:function(e){return e.length},__wbg_length_7f3c00c40364105e:function(e){return e.length},__wbg_length_b5f0008bbf60cf59:function(e){return e.length},__wbg_length_d4bdea10311bd9cf:function(e){return e.length},__wbg_linkProgram_571a9ea00d38ff83:function(e,t){e.linkProgram(t)},__wbg_linkProgram_acdc299c43d734a0:function(e,t){e.linkProgram(t)},__wbg_name_91a697e9ff1634bf:function(e,t){let n=t.name,r=F(n,o.__wbindgen_malloc,o.__wbindgen_realloc),c=s;v().setInt32(e+4,c,!0),v().setInt32(e+0,r,!0)},__wbg_new_1dbf7428bba60a42:function(e){return new Uint8Array(e)},__wbg_new_2e41357094e99294:function(){return l(function(){return new AbortController},arguments)},__wbg_new_5502aad30c185fc8:function(e,t){try{var n={a:e,b:t},r=(a,i)=>{let f=n.a;n.a=0;try{return Fe(f,n.b,a,i)}finally{n.a=f}};return new Promise(r)}finally{n.a=0}},__wbg_new_617a8cdb8bb1130e:function(){return{}},__wbg_new_ee2291f50781bf1d:function(){return[]},__wbg_new_from_slice_37a3c3a194266cb8:function(e,t){return new Uint32Array(U(e,t))},__wbg_new_from_slice_9a868026ffa4208a:function(e,t){return new Uint8Array(K(e,t))},__wbg_new_from_slice_ca6ad97db1f4779a:function(e,t){return new Float32Array(S(e,t))},__wbg_new_from_slice_f545fd22ddc142b8:function(e,t){return new Float64Array(ge(e,t))},__wbg_new_with_byte_offset_70ba6193352e027b:function(e,t){return new Uint8Array(e,t>>>0)},__wbg_new_with_byte_offset_and_length_40c170286adc9005:function(e,t,n){return new Float32Array(e,t>>>0,n>>>0)},__wbg_new_with_u8_array_sequence_and_options_fccc08fe93f4b8fd:function(){return l(function(e,t){return new Blob(e,t)},arguments)},__wbg_now_aa4ccb83129e9e55:function(){return Date.now()},__wbg_now_d0b7f4bea9f38490:function(e){return e.now()},__wbg_of_20798cb14708764f:function(e,t){return Array.of(e,t)},__wbg_of_d5dbecdc59e02e34:function(e){return Array.of(e)},__wbg_of_fea2613674ee0d0f:function(e,t,n,r,c){return Array.of(e,t,n,r,c)},__wbg_ok_125878a7db256ecb:function(e){return e.ok},__wbg_performance_d0d7b03fc649b694:function(e){let t=e.performance;return u(t)?0:d(t)},__wbg_pixelStorei_af18e636b3e7b725:function(e,t,n){e.pixelStorei(t>>>0,n)},__wbg_pixelStorei_cb4e43466f5b8703:function(e,t,n){e.pixelStorei(t>>>0,n)},__wbg_prototypesetcall_06eb15da165dee8f:function(e,t,n){Uint32Array.prototype.set.call(U(e,t),n)},__wbg_prototypesetcall_8b03c01e2c0f8066:function(e,t,n){Float32Array.prototype.set.call(S(e,t),n)},__wbg_prototypesetcall_bc27214492979395:function(e,t,n){Uint8Array.prototype.set.call(K(e,t),n)},__wbg_push_2baf45db356cf468:function(e,t){return e.push(t)},__wbg_queueMicrotask_9833f9a49df95a49:function(e){return e.queueMicrotask},__wbg_queueMicrotask_a72f977e97f23c5f:function(e){queueMicrotask(e)},__wbg_readPixels_31e44e70558ac590:function(){return l(function(e,t,n,r,c,a,i,f){e.readPixels(t,n,r,c,a>>>0,i>>>0,f)},arguments)},__wbg_readPixels_3321086a7818a739:function(){return l(function(e,t,n,r,c,a,i,f){e.readPixels(t,n,r,c,a>>>0,i>>>0,f)},arguments)},__wbg_readPixels_eb030cd9976eeca5:function(){return l(function(e,t,n,r,c,a,i,f){e.readPixels(t,n,r,c,a>>>0,i>>>0,f)},arguments)},__wbg_renderbufferStorage_52b131bbf3112b3a:function(e,t,n,r,c){e.renderbufferStorage(t>>>0,n>>>0,r,c)},__wbg_renderbufferStorage_bca487b0dea425b8:function(e,t,n,r,c){e.renderbufferStorage(t>>>0,n>>>0,r,c)},__wbg_resolve_0076e10020304ede:function(e){return Promise.resolve(e)},__wbg_scissor_12ddc324094acd50:function(e,t,n,r,c){e.scissor(t,n,r,c)},__wbg_scissor_a9468482697c2bdb:function(e,t,n,r,c){e.scissor(t,n,r,c)},__wbg_setTimeout_db7bbc18a17e152a:function(){return l(function(e,t,n){return e.setTimeout(t,n)},arguments)},__wbg_set_145a351398b48c65:function(){return l(function(e,t,n){return Reflect.set(e,t,n)},arguments)},__wbg_set_alpha_6dea851a46253adf:function(e,t){e.alpha=t!==0},__wbg_set_antialias_1f699e96763e8a35:function(e,t){e.antialias=t!==0},__wbg_set_cache_7507c4cc5938ccc7:function(e,t){e.cache=Te[t]},__wbg_set_color_space_conversion_f27e9d866a683b4b:function(e,t){e.colorSpaceConversion=Ie[t]},__wbg_set_depth_8b49de49803d4e60:function(e,t){e.depth=t!==0},__wbg_set_power_preference_6ef22d4c8baf517f:function(e,t){e.powerPreference=Pe[t]},__wbg_set_premultiply_alpha_45a4cf9a1e87bfbf:function(e,t){e.premultiplyAlpha=De[t]},__wbg_set_resize_height_274433c2f249624d:function(e,t){e.resizeHeight=t>>>0},__wbg_set_resize_width_6f06543b29d1ca48:function(e,t){e.resizeWidth=t>>>0},__wbg_set_signal_2dbd377604627f26:function(e,t){e.signal=t},__wbg_set_stencil_edc32d9477c7c107:function(e,t){e.stencil=t!==0},__wbg_set_type_dcf75b2afa60c694:function(e,t,n){e.type=L(t,n)},__wbg_shaderSource_06379dac249994dd:function(e,t,n,r){e.shaderSource(t,L(n,r))},__wbg_shaderSource_c8812639b47d87b9:function(e,t,n,r){e.shaderSource(t,L(n,r))},__wbg_signal_e5a49a2d9c65b7f6:function(e){return e.signal},__wbg_size_74c48d7329291685:function(e){return e.size},__wbg_static_accessor_GLOBAL_266715b9d96ba635:function(){let e=typeof global>"u"?null:global;return u(e)?0:d(e)},__wbg_static_accessor_GLOBAL_THIS_10fb7dc1ae063179:function(){let e=typeof globalThis>"u"?null:globalThis;return u(e)?0:d(e)},__wbg_static_accessor_SELF_0b583911f537483a:function(){let e=typeof self>"u"?null:self;return u(e)?0:d(e)},__wbg_static_accessor_WINDOW_d7f903d1508cbdc4:function(){let e=typeof window>"u"?null:window;return u(e)?0:d(e)},__wbg_status_ce0a98d3c57125f3:function(e){return e.status},__wbg_stencilFunc_aa3cd8856be514c4:function(e,t,n,r){e.stencilFunc(t>>>0,n,r>>>0)},__wbg_stencilFunc_bab7e0b7c443f093:function(e,t,n,r){e.stencilFunc(t>>>0,n,r>>>0)},__wbg_stencilMask_9e18cc018897c747:function(e,t){e.stencilMask(t>>>0)},__wbg_stencilMask_a22be64c66abd825:function(e,t){e.stencilMask(t>>>0)},__wbg_stencilOpSeparate_7d01185cbdb89d99:function(e,t,n,r,c){e.stencilOpSeparate(t>>>0,n>>>0,r>>>0,c>>>0)},__wbg_stencilOpSeparate_c5af5f5dbd237bea:function(e,t,n,r,c){e.stencilOpSeparate(t>>>0,n>>>0,r>>>0,c>>>0)},__wbg_stencilOp_12274af665ab8a00:function(e,t,n,r){e.stencilOp(t>>>0,n>>>0,r>>>0)},__wbg_stencilOp_2697194654fee819:function(e,t,n,r){e.stencilOp(t>>>0,n>>>0,r>>>0)},__wbg_texImage2D_1b3349107ad0faae:function(){return l(function(e,t,n,r,c,a,i){e.texImage2D(t>>>0,n,r,c>>>0,a>>>0,i)},arguments)},__wbg_texImage2D_82bf2b4c8aa9a1db:function(){return l(function(e,t,n,r,c,a,i,f,b,g){e.texImage2D(t>>>0,n,r,c,a,i,f>>>0,b>>>0,g)},arguments)},__wbg_texImage2D_8fc2f2fcca249b59:function(){return l(function(e,t,n,r,c,a,i){e.texImage2D(t>>>0,n,r,c>>>0,a>>>0,i)},arguments)},__wbg_texImage2D_a856af552acdc9d9:function(){return l(function(e,t,n,r,c,a,i,f,b,g){e.texImage2D(t>>>0,n,r,c,a,i,f>>>0,b>>>0,g)},arguments)},__wbg_texImage2D_ca3d0fe24620ec85:function(){return l(function(e,t,n,r,c,a,i,f,b,g){e.texImage2D(t>>>0,n,r,c,a,i,f>>>0,b>>>0,g)},arguments)},__wbg_texParameteri_647fdb1426809cb5:function(e,t,n,r){e.texParameteri(t>>>0,n>>>0,r)},__wbg_texParameteri_7864076abcdb03e0:function(e,t,n,r){e.texParameteri(t>>>0,n>>>0,r)},__wbg_texStorage2D_cf2bd991072d9efb:function(e,t,n,r,c,a){e.texStorage2D(t>>>0,n,r>>>0,c,a)},__wbg_texStorage3D_74b701c2b176380c:function(e,t,n,r,c,a,i){e.texStorage3D(t>>>0,n,r>>>0,c,a,i)},__wbg_texSubImage2D_31a0c2797aa04f32:function(){return l(function(e,t,n,r,c,a,i,f,b,g){e.texSubImage2D(t>>>0,n,r,c,a,i,f>>>0,b>>>0,g)},arguments)},__wbg_texSubImage2D_5e90c7a719d40256:function(){return l(function(e,t,n,r,c,a,i,f,b,g){e.texSubImage2D(t>>>0,n,r,c,a,i,f>>>0,b>>>0,g)},arguments)},__wbg_texSubImage2D_bb322aae90f7657f:function(){return l(function(e,t,n,r,c,a,i,f,b,g){e.texSubImage2D(t>>>0,n,r,c,a,i,f>>>0,b>>>0,g)},arguments)},__wbg_texSubImage3D_5143d5af7e182ddc:function(){return l(function(e,t,n,r,c,a,i,f,b,g,w,p){e.texSubImage3D(t>>>0,n,r,c,a,i,f,b,g>>>0,w>>>0,p)},arguments)},__wbg_texSubImage3D_5d773fc7a8cd4d08:function(){return l(function(e,t,n,r,c,a,i,f,b,g,w,p){e.texSubImage3D(t>>>0,n,r,c,a,i,f,b,g>>>0,w>>>0,p)},arguments)},__wbg_texSubImage3D_e0d113b7047a5130:function(){return l(function(e,t,n,r,c,a,i,f,b,g,w,p){e.texSubImage3D(t>>>0,n,r,c,a,i,f,b,g>>>0,w>>>0,p)},arguments)},__wbg_then_c949d5a25a4e78f8:function(e,t,n){return e.then(t,n)},__wbg_then_e71170d78fcf8954:function(e,t){return e.then(t)},__wbg_type_ff6f7b321fe8478b:function(e){return e.type},__wbg_uniform1f_9cfecfaeb8cf43c1:function(e,t,n){e.uniform1f(t,n)},__wbg_uniform1f_b5856e35a43b65a1:function(e,t,n){e.uniform1f(t,n)},__wbg_uniform1fv_1bf537fc926ef8b9:function(e,t,n,r){e.uniform1fv(t,S(n,r))},__wbg_uniform1fv_1cc1d09bc13b03bf:function(e,t,n,r){e.uniform1fv(t,S(n,r))},__wbg_uniform1i_531b98c4a7177366:function(e,t,n){e.uniform1i(t,n)},__wbg_uniform1i_fc2dc8cadc49d8ec:function(e,t,n){e.uniform1i(t,n)},__wbg_uniform1iv_4b8cbceccddfaa62:function(e,t,n,r){e.uniform1iv(t,R(n,r))},__wbg_uniform1iv_8fc880ae80c77c74:function(e,t,n,r){e.uniform1iv(t,R(n,r))},__wbg_uniform1ui_353c67ec681b540c:function(e,t,n){e.uniform1ui(t,n>>>0)},__wbg_uniform1uiv_ad5e946730aacbec:function(e,t,n,r){e.uniform1uiv(t,U(n,r))},__wbg_uniform2f_131da2d4bf17e4b9:function(e,t,n,r){e.uniform2f(t,n,r)},__wbg_uniform2f_a92b5bb95dc5b4d9:function(e,t,n,r){e.uniform2f(t,n,r)},__wbg_uniform2fv_319c49f0ce340f26:function(e,t,n,r){e.uniform2fv(t,S(n,r))},__wbg_uniform2fv_a7d3c1830d18c1b2:function(e,t,n,r){e.uniform2fv(t,S(n,r))},__wbg_uniform2iv_65f36fc9777697d7:function(e,t,n,r){e.uniform2iv(t,R(n,r))},__wbg_uniform2iv_ca9cb507409b9ad1:function(e,t,n,r){e.uniform2iv(t,R(n,r))},__wbg_uniform2uiv_c95af5fb653ccb86:function(e,t,n,r){e.uniform2uiv(t,U(n,r))},__wbg_uniform3f_1211579ff87ccfad:function(e,t,n,r,c){e.uniform3f(t,n,r,c)},__wbg_uniform3f_ee105161897ee48a:function(e,t,n,r,c){e.uniform3f(t,n,r,c)},__wbg_uniform3fv_055ea5ac38af4fce:function(e,t,n,r){e.uniform3fv(t,S(n,r))},__wbg_uniform3fv_58520ffe22a6e27c:function(e,t,n,r){e.uniform3fv(t,S(n,r))},__wbg_uniform3iv_0590e8b7eff2a791:function(e,t,n,r){e.uniform3iv(t,R(n,r))},__wbg_uniform3iv_e91b1410dc299f50:function(e,t,n,r){e.uniform3iv(t,R(n,r))},__wbg_uniform3uiv_9992491000463a52:function(e,t,n,r){e.uniform3uiv(t,U(n,r))},__wbg_uniform4f_22bfec882308eec2:function(e,t,n,r,c,a){e.uniform4f(t,n,r,c,a)},__wbg_uniform4f_8dd8f311e656ca0d:function(e,t,n,r,c,a){e.uniform4f(t,n,r,c,a)},__wbg_uniform4fv_3ef2f5121fcb78ae:function(e,t,n,r){e.uniform4fv(t,S(n,r))},__wbg_uniform4fv_cf8ff646c36232c8:function(e,t,n,r){e.uniform4fv(t,S(n,r))},__wbg_uniform4iv_6fc5436b4f876039:function(e,t,n,r){e.uniform4iv(t,R(n,r))},__wbg_uniform4iv_99c2b07787d362d6:function(e,t,n,r){e.uniform4iv(t,R(n,r))},__wbg_uniform4uiv_a6fb3237d9df7ed4:function(e,t,n,r){e.uniform4uiv(t,U(n,r))},__wbg_uniformMatrix3fv_472e7824735acce1:function(e,t,n,r,c){e.uniformMatrix3fv(t,n!==0,S(r,c))},__wbg_uniformMatrix3fv_83fdc9c3c0d43204:function(e,t,n,r,c){e.uniformMatrix3fv(t,n!==0,S(r,c))},__wbg_uniformMatrix4fv_dff9738d995fd0b1:function(e,t,n,r,c){e.uniformMatrix4fv(t,n!==0,S(r,c))},__wbg_uniformMatrix4fv_e691d7f14d3609f7:function(e,t,n,r,c){e.uniformMatrix4fv(t,n!==0,S(r,c))},__wbg_useProgram_5bdae58fd9f9826f:function(e,t){e.useProgram(t)},__wbg_useProgram_e075c2902e420761:function(e,t){e.useProgram(t)},__wbg_vertexAttribDivisorANGLE_659fb027198a47c3:function(e,t,n){e.vertexAttribDivisorANGLE(t>>>0,n>>>0)},__wbg_vertexAttribDivisor_7575d382215322f7:function(e,t,n){e.vertexAttribDivisor(t>>>0,n>>>0)},__wbg_vertexAttribIPointer_fc8057c62cfcc63c:function(e,t,n,r,c,a){e.vertexAttribIPointer(t>>>0,n,r>>>0,c,a)},__wbg_vertexAttribPointer_24b495e18df325dc:function(e,t,n,r,c,a,i){e.vertexAttribPointer(t>>>0,n,r>>>0,c!==0,a,i)},__wbg_vertexAttribPointer_54d56b18f71a946d:function(e,t,n,r,c,a,i){e.vertexAttribPointer(t>>>0,n,r>>>0,c!==0,a,i)},__wbg_viewport_16936692526e2ce6:function(e,t,n,r,c){e.viewport(t,n,r,c)},__wbg_viewport_e35d16c542d2ce70:function(e,t,n,r,c){e.viewport(t,n,r,c)},__wbg_warn_13abc63e0d4b3527:function(e){console.warn(e)},__wbg_width_8a9cc26363f10d5f:function(e){return e.width},__wbindgen_generic_0000000000000001:function(e,t){return Ge(e,t,Se)},__wbindgen_generic_0000000000000002:function(e){return e},__wbindgen_generic_0000000000000003:function(e,t){return S(e,t)},__wbindgen_generic_0000000000000004:function(e,t){return Me(e,t)},__wbindgen_generic_0000000000000005:function(e,t){return R(e,t)},__wbindgen_generic_0000000000000006:function(e,t){return Ee(e,t)},__wbindgen_generic_0000000000000007:function(e,t){return Le(e,t)},__wbindgen_generic_0000000000000008:function(e,t){return U(e,t)},__wbindgen_generic_0000000000000009:function(e,t){return K(e,t)},__wbindgen_generic_000000000000000a:function(e,t){return L(e,t)},__wbindgen_init_externref_table:function(){let e=o.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}}}}function Se(_,e,t){let n=o.wasm_bindgen_2e566c63402fe7fa___convert__closures_____invoke___wasm_bindgen_2e566c63402fe7fa___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_2e566c63402fe7fa___JsError___true_(_,e,t);if(n[1])throw m(n[0])}function Fe(_,e,t,n){o.wasm_bindgen_2e566c63402fe7fa___convert__closures_____invoke___js_sys_b1e1c29ba6b0e6b3___Function_fn_wasm_bindgen_2e566c63402fe7fa___JsValue_____wasm_bindgen_2e566c63402fe7fa___sys__Undefined___js_sys_b1e1c29ba6b0e6b3___Function_fn_wasm_bindgen_2e566c63402fe7fa___JsValue_____wasm_bindgen_2e566c63402fe7fa___sys__Undefined_______true_(_,e,t,n)}var Ie=["none","default"],De=["none","premultiply","default"],Te=["default","no-store","reload","no-cache","force-cache","only-if-cached"],Pe=["default","low-power","high-performance"],se=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((_)=>o.__wbg_engine_free(_,1));function d(_){let e=o.__externref_table_alloc();return o.__wbindgen_externrefs.set(e,_),e}var fe=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((_)=>o.__wbindgen_destroy_closure(_.a,_.b));function Q(_){let e=typeof _;if(e=="number"||e=="boolean"||_==null)return`${_}`;if(e=="string")return`"${_}"`;if(e=="symbol"){let r=_.description;if(r==null)return"Symbol";else return`Symbol(${r})`}if(e=="function"){let r=_.name;if(typeof r=="string"&&r.length>0)return`Function(${r})`;else return"Function"}if(Array.isArray(_)){let r=_.length,c="[";if(r>0)c+=Q(_[0]);for(let a=1;a<r;a++)c+=", "+Q(_[a]);return c+="]",c}let t=/\[object ([^\]]+)\]/.exec(toString.call(_)),n;if(t&&t.length>1)n=t[1];else return toString.call(_);if(n=="Object")try{return"Object("+JSON.stringify(_)+")"}catch(r){return"Object"}if(_ instanceof Error)return`${_.name}: ${_.message}
|
|
3
|
-
${_.stack}`;return n}function S(_,e){return _=_>>>0,le().subarray(_/4,_/4+e)}function ge(_,e){return _=_>>>0,de().subarray(_/8,_/8+e)}function Me(_,e){return _=_>>>0,Re().subarray(_/2,_/2+e)}function R(_,e){return _=_>>>0,ke().subarray(_/4,_/4+e)}function Ee(_,e){return _=_>>>0,Ue().subarray(_/1,_/1+e)}function Le(_,e){return _=_>>>0,Be().subarray(_/2,_/2+e)}function U(_,e){return _=_>>>0,we().subarray(_/4,_/4+e)}function K(_,e){return _=_>>>0,G().subarray(_/1,_/1+e)}var B=null;function v(){if(B===null||B.buffer.detached===!0||B.buffer.detached===void 0&&B.buffer!==o.memory.buffer)B=new DataView(o.memory.buffer);return B}var O=null;function le(){if(O===null||O.byteLength===0)O=new Float32Array(o.memory.buffer);return O}var W=null;function de(){if(W===null||W.byteLength===0)W=new Float64Array(o.memory.buffer);return W}var N=null;function Re(){if(N===null||N.byteLength===0)N=new Int16Array(o.memory.buffer);return N}var V=null;function ke(){if(V===null||V.byteLength===0)V=new Int32Array(o.memory.buffer);return V}var j=null;function Ue(){if(j===null||j.byteLength===0)j=new Int8Array(o.memory.buffer);return j}function L(_,e){return Oe(_>>>0,e)}var z=null;function Be(){if(z===null||z.byteLength===0)z=new Uint16Array(o.memory.buffer);return z}var q=null;function we(){if(q===null||q.byteLength===0)q=new Uint32Array(o.memory.buffer);return q}var X=null;function G(){if(X===null||X.byteLength===0)X=new Uint8Array(o.memory.buffer);return X}function l(_,e){try{return _.apply(this,e)}catch(t){let n=d(t);o.__wbindgen_exn_store(n)}}function u(_){return _===void 0||_===null}function Ge(_,e,t){let n={a:_,b:e,cnt:1},r=(...c)=>{n.cnt++;let a=n.a;n.a=0;try{return t(a,n.b,...c)}finally{n.a=a,r._wbg_cb_unref()}};return r._wbg_cb_unref=()=>{if(--n.cnt===0)o.__wbindgen_destroy_closure(n.a,n.b),n.a=0,fe.unregister(n)},fe.register(r,n,n),r}function y(_,e){let t=e(_.length*4,4)>>>0;return we().set(_,t/4),s=_.length,t}function M(_,e){let t=e(_.length*1,1)>>>0;return G().set(_,t/1),s=_.length,t}function A(_,e){let t=e(_.length*4,4)>>>0;return le().set(_,t/4),s=_.length,t}function I(_,e){let t=e(_.length*8,8)>>>0;return de().set(_,t/8),s=_.length,t}function F(_,e,t){if(t===void 0){let i=H.encode(_),f=e(i.length,1)>>>0;return G().subarray(f,f+i.length).set(i),s=i.length,f}let n=_.length,r=e(n,1)>>>0,c=G(),a=0;for(;a<n;a++){let i=_.charCodeAt(a);if(i>127)break;c[r+a]=i}if(a!==n){if(a!==0)_=_.slice(a);r=t(r,n,n=a+_.length*3,1)>>>0;let i=G().subarray(r+a,r+n),f=H.encodeInto(_,i);a+=f.written,r=t(r,n,a,1)>>>0}return s=a,r}function m(_){let e=o.__wbindgen_externrefs.get(_);return o.__externref_table_dealloc(_),e}var J=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});J.decode();var Ce=2146435072,Z=0;function Oe(_,e){if(Z+=e,Z>=Ce)J=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),J.decode(),Z=e;return J.decode(G().subarray(_,_+e))}var H=new TextEncoder;if(!("encodeInto"in H))H.encodeInto=function(_,e){let t=H.encode(_);return e.set(t),{read:_.length,written:t.length}};var s=0,We,Ne,o;function Ve(_,e){return Ne=_,o=_.exports,We=e,B=null,O=null,W=null,N=null,V=null,j=null,z=null,q=null,X=null,o.__wbindgen_start(),o}async function je(_,e){if(typeof Response==="function"&&_ instanceof Response){if(!_.ok)throw Error(`failed to fetch Wasm: ${_.status} ${_.statusText} fetching '${_.url}'`);if(typeof WebAssembly.instantiateStreaming==="function")try{return await WebAssembly.instantiateStreaming(_,e)}catch(r){if(t(_.type)&&_.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r);else throw r}let n=await _.arrayBuffer();return await WebAssembly.instantiate(n,e)}else{let n=await WebAssembly.instantiate(_,e);if(n instanceof WebAssembly.Instance)return{instance:n,module:_};else return n}function t(n){switch(n){case"basic":case"cors":case"default":return!0}return!1}}async function me(_){if(o!==void 0)return o;if(_!==void 0)if(Object.getPrototypeOf(_)===Object.prototype)({module_or_path:_}=_);else console.warn("using deprecated parameters for the initialization function; pass a single object instead");if(_===void 0)_=new URL("isard_bg.wasm",import.meta.url);let e=ve();if(typeof _==="string"||typeof Request==="function"&&_ instanceof Request||typeof URL==="function"&&_ instanceof URL)_=fetch(_);let{instance:t,module:n}=await je(await _,e);return Ve(t,n)}var ye,ee=ce,he={astc:!1,bptc:!1,etc:!1,s3tc:!1},te=new Map,pe=(_,e=[])=>postMessage(_,e);addEventListener("message",(_)=>{let e=_.data;switch(e.type){case"init":ye=me({module_or_path:e.module}),ee=e.decoders,he=e.formats;break;case"abort":te.get(e.id)?.abort();break;case"load":ze(e.id,e.url,e.transform,e.yUp,e.reload,e.priority);break}});async function ze(_,e,t,n,r,c){let a=new AbortController;te.set(_,a);try{await ye;let i={signal:a.signal,cache:r?"reload":"default",...c?{priority:c}:{}},f=await fetch(e,i);if(!f.ok)throw Error(`HTTP ${f.status}`);let b=new Uint8Array(await f.arrayBuffer()),g=be(b),w=g.length>0?await ae(ee,g):void 0,p=ue(b,t,n,w),h=new Map,T=(x,E)=>{let k=h.get(x);if(!k)k=E==="image/ktx2"?ie(ee,he,x).then((C)=>({bitmap:null,texture:C})):createImageBitmap(new Blob([x],{type:E??""}),{premultiplyAlpha:"none"}).then((C)=>({bitmap:C})),h.set(x,k);return k},P=await Promise.all(p.primitives.map(async({vertices:x,indices:E,image:k,mime:C,color:ne})=>({vertices:x,indices:E,...ne?{color:ne}:{},...k?await T(k,C):{bitmap:null}}))),D=new Set;for(let x of P){if(D.add(x.vertices.buffer),D.add(x.indices.buffer),x.color)D.add(x.color.buffer);if(x.bitmap)D.add(x.bitmap);for(let E of x.texture?.levels??[])D.add(E.data.buffer)}pe({type:"tile",id:_,tile:{anchor:p.anchor,primitives:P}},[...D])}catch(i){pe({type:"error",id:_,error:String(i),aborted:a.signal.aborted})}finally{te.delete(_)}}
|
|
1
|
+
var ye={draco:"https://www.gstatic.com/draco/versioned/decoders/1.5.7/",basis:"https://cdn.jsdelivr.net/npm/three@0.170.0/examples/jsm/libs/basis/"};async function Ce(r,e){let t=await(await fetch(r)).text();return Function(`${t}
|
|
2
|
+
return ${e};`)()}async function oe(r,e,t,n){let[_,o]=await Promise.all([Ce(`${r}${e}`,n),fetch(`${r}${t}`).then((a)=>a.arrayBuffer())]);return _({wasmBinary:o})}var we,me,pe;async function he(r,e){let t=e.some((o)=>!o.points);if(t)we??=oe(r.draco,"draco_wasm_wrapper_gltf.js","draco_decoder_gltf.wasm","DracoDecoderModule");if(e.some((o)=>o.points))me??=oe(r.draco,"draco_wasm_wrapper.js","draco_decoder.wasm","DracoDecoderModule");let[n,_]=await Promise.all([t?we:void 0,me]);return e.map((o)=>{let a=o.points?_:n,i=new a.Decoder,s=o.points?new a.PointCloud:new a.Mesh;try{let b=new Int8Array(o.data.buffer,o.data.byteOffset,o.data.byteLength),l=o.points?i.DecodeArrayToPointCloud(b,b.byteLength,s):i.DecodeArrayToMesh(b,b.byteLength,s);if(!l.ok())throw Error(`Draco: ${l.error_msg()}`);let d=(L)=>{let E=i.GetAttributeByUniqueId(s,L),k=s.num_points()*E.num_components(),h=a._malloc(k*4);try{return i.GetAttributeDataArrayForAllPoints(s,E,a.DT_FLOAT32,k*4,h),a.HEAPF32.slice(h/4,h/4+k)}finally{a._free(h)}};if(o.points){let L={mesh:o.mesh,primitive:o.primitive,positions:d(o.position)};if(o.color!==void 0)L.colors=d(o.color);if(o.normal!==void 0)L.normals=d(o.normal);return L}let w=s.num_faces()*3,p=a._malloc(w*4),T;try{i.GetTrianglesUInt32Array(s,w*4,p),T=a.HEAPU32.slice(p/4,p/4+w)}finally{a._free(p)}let R={mesh:o.mesh,primitive:o.primitive,positions:d(o.position),indices:T};if(o.uv!==void 0)R.uvs=d(o.uv);return R}finally{a.destroy(s),a.destroy(i)}})}function We(r,e){if(r.astc)return{basis:10,gl:37808};if(r.bptc)return{basis:6,gl:36492};if(r.etc)return e?{basis:1,gl:37496}:{basis:0,gl:37492};if(r.s3tc)return e?{basis:3,gl:33779}:{basis:2,gl:33776};return{basis:13,gl:32856}}async function Ae(r,e,t){pe??=oe(r.basis,"basis_transcoder.js","basis_transcoder.wasm","BASIS").then((o)=>(o.initializeBasis(),o));let _=new(await pe).KTX2File(t);try{if(!_.isValid()||!_.startTranscoding())throw Error("KTX2: invalid file");let{basis:o,gl:a}=We(e,_.getHasAlpha()),i=[];for(let s=0;s<_.getLevels();s++){let{origWidth:b,origHeight:l}=_.getImageLevelInfo(s,0,0),d=new Uint8Array(_.getImageTranscodedSizeInBytes(s,0,0,o));if(!_.transcodeImage(d,s,0,0,o,0,-1,-1))throw Error("KTX2: transcoding failed");i.push({width:b,height:l,data:d})}return{format:a,levels:i}}finally{_.close(),_.delete()}}class ie{__destroy_into_raw(){let r=this.__wbg_ptr;return this.__wbg_ptr=0,xe.unregister(this),r}free(){let r=this.__destroy_into_raw();c.__wbg_engine_free(r,0)}addCircles(r,e,t){let n=I(r,c.__wbindgen_malloc),_=f,o=A(e,c.__wbindgen_malloc),a=f,i=c.engine_addCircles(this.__wbg_ptr,n,_,o,a,t);if(i[2])throw y(i[1]);return i[0]>>>0}addCustomLayer(r,e){return c.engine_addCustomLayer(this.__wbg_ptr,r,e)>>>0}addExtrusions(){let r=c.engine_addExtrusions(this.__wbg_ptr);if(r[2])throw y(r[1]);return r[0]>>>0}addFills(r,e,t,n,_){let o=I(r,c.__wbindgen_malloc),a=f,i=A(e,c.__wbindgen_malloc),s=f,b=A(t,c.__wbindgen_malloc),l=f,d=A(n,c.__wbindgen_malloc),w=f,p=c.engine_addFills(this.__wbg_ptr,o,a,i,s,b,l,d,w,_);if(p[2])throw y(p[1]);return p[0]>>>0}addGround(r,e,t,n,_,o,a){let i=v(r,c.__wbindgen_malloc,c.__wbindgen_realloc),s=f,b=c.engine_addGround(this.__wbg_ptr,i,s,e,t,n,_,o,a);if(b[2])throw y(b[1]);return b[0]>>>0}addLines(r,e,t,n){let _=I(r,c.__wbindgen_malloc),o=f,a=A(e,c.__wbindgen_malloc),i=f,s=A(t,c.__wbindgen_malloc),b=f,l=c.engine_addLines(this.__wbg_ptr,_,o,a,i,s,b,n);if(l[2])throw y(l[1]);return l[0]>>>0}addModels(r,e,t){let n=v(r,c.__wbindgen_malloc,c.__wbindgen_realloc),_=f,o=I(e,c.__wbindgen_malloc),a=f,i=c.engine_addModels(this.__wbg_ptr,n,_,o,a,t);if(i[2])throw y(i[1]);return i[0]>>>0}addNetwork(r,e,t,n,_,o){let a=I(r,c.__wbindgen_malloc),i=f,s=A(e,c.__wbindgen_malloc),b=f;var l=u(t)?0:A(t,c.__wbindgen_malloc),d=f,w=u(n)?0:I(n,c.__wbindgen_malloc),p=f,T=u(_)?0:S(_,c.__wbindgen_malloc),R=f;let L=S(o,c.__wbindgen_malloc),E=f,k=c.engine_addNetwork(this.__wbg_ptr,a,i,s,b,l,d,w,p,T,R,L,E);if(k[2])throw y(k[1]);return k[0]>>>0}addPointCloud(r,e){let t=v(r,c.__wbindgen_malloc,c.__wbindgen_realloc),n=f,_=c.engine_addPointCloud(this.__wbg_ptr,t,n,e);if(_[2])throw y(_[1]);return _[0]>>>0}addRaster(r,e,t,n,_,o,a){let i=v(r,c.__wbindgen_malloc,c.__wbindgen_realloc),s=f,b=c.engine_addRaster(this.__wbg_ptr,i,s,e,t,n,_,u(o)?Number.MAX_SAFE_INTEGER:o>>0,u(a)?0:m(a));if(b[2])throw y(b[1]);return b[0]>>>0}addSymbols(){let r=c.engine_addSymbols(this.__wbg_ptr);if(r[2])throw y(r[1]);return r[0]>>>0}addTiles3d(r,e){let t=v(r,c.__wbindgen_malloc,c.__wbindgen_realloc),n=f,_=c.engine_addTiles3d(this.__wbg_ptr,t,n,e);if(_[2])throw y(_[1]);return _[0]>>>0}bounds(){let r=c.engine_bounds(this.__wbg_ptr);var e=fe(r[0],r[1]).slice();return c.__wbindgen_free(r[0],r[1]*8,8),e}camera(){return c.engine_camera(this.__wbg_ptr)}clearPreload(){c.engine_clearPreload(this.__wbg_ptr)}static customMatrix(r,e,t){let n=c.engine_customMatrix(r,e,t),_;if(n[0]!==0)_=F(n[0],n[1]).slice(),c.__wbindgen_free(n[0],n[1]*4,4);return _}ground(r,e){return c.engine_ground(this.__wbg_ptr,r,e)}linkExtrusionNetwork(r,e,t){c.engine_linkExtrusionNetwork(this.__wbg_ptr,r,u(e)?Number.MAX_SAFE_INTEGER:e>>>0,t)}moveLayer(r,e){c.engine_moveLayer(this.__wbg_ptr,r,e)}networkStats(r){return c.engine_networkStats(this.__wbg_ptr,r)}constructor(r,e){let t=c.engine_new(r,e);if(t[2])throw y(t[1]);return this.__wbg_ptr=t[0],xe.register(this,this.__wbg_ptr,this),this}pan(r,e,t,n){c.engine_pan(this.__wbg_ptr,r,e,t,n)}pick(r,e,t,n){var _=u(n)?0:A(n,c.__wbindgen_malloc),o=f;return c.engine_pick(this.__wbg_ptr,r,e,!u(t),u(t)?0:t,_,o)}pointCloudInfo(r){return c.engine_pointCloudInfo(this.__wbg_ptr,r)}pointCloudPoint(r,e){return c.engine_pointCloudPoint(this.__wbg_ptr,r,e)}pointCloudStats(r){return c.engine_pointCloudStats(this.__wbg_ptr,r)}pollPick(){return c.engine_pollPick(this.__wbg_ptr)}preload(r,e,t,n,_){c.engine_preload(this.__wbg_ptr,r,e,t,n,_)}project(r,e){return c.engine_project(this.__wbg_ptr,r,e)}removeExtrusionBatch(r,e){c.engine_removeExtrusionBatch(this.__wbg_ptr,r,e)}removeLayer(r){c.engine_removeLayer(this.__wbg_ptr,r)}render(){return c.engine_render(this.__wbg_ptr)!==0}requestPick(r,e,t,n){var _=u(n)?0:A(n,c.__wbindgen_malloc),o=f;return c.engine_requestPick(this.__wbg_ptr,r,e,!u(t),u(t)?0:t,_,o)!==0}resize(r,e,t){c.engine_resize(this.__wbg_ptr,r,e,t)}rotate(r,e){c.engine_rotate(this.__wbg_ptr,r,e)}setAtmosphere(r){var e=u(r)?0:S(r,c.__wbindgen_malloc),t=f;c.engine_setAtmosphere(this.__wbg_ptr,e,t)}setBackground(r,e,t){c.engine_setBackground(this.__wbg_ptr,r,e,t)}setBody(r,e,t,n,_){var o=u(t)?0:S(t,c.__wbindgen_malloc),a=f;c.engine_setBody(this.__wbg_ptr,r,e,o,a,n,_)}setCamera(r,e,t,n,_){c.engine_setCamera(this.__wbg_ptr,r,e,t,n,_)}setCircleAlignment(r,e){c.engine_setCircleAlignment(this.__wbg_ptr,r,e)}setCircles(r,e,t){let n=I(e,c.__wbindgen_malloc),_=f,o=A(t,c.__wbindgen_malloc),a=f;c.engine_setCircles(this.__wbg_ptr,r,n,_,o,a)}setExtrusionAnchors(r,e,t){let n=S(t,c.__wbindgen_malloc),_=f,o=c.engine_setExtrusionAnchors(this.__wbg_ptr,r,e,n,_);if(o[1])throw y(o[0])}setExtrusionBatch(r,e,t,n,_,o,a){let i=I(t,c.__wbindgen_malloc),s=f,b=A(n,c.__wbindgen_malloc),l=f,d=A(_,c.__wbindgen_malloc),w=f,p=A(o,c.__wbindgen_malloc),T=f,R=c.engine_setExtrusionBatch(this.__wbg_ptr,r,e,i,s,b,l,d,w,p,T,a);if(R[1])throw y(R[0])}setFeatureLayer(r,e,t,n,_){let o=S(e,c.__wbindgen_malloc),a=f;c.engine_setFeatureLayer(this.__wbg_ptr,r,o,a,t,n,_)}setFeatureMask(r,e,t){let n=M(e,c.__wbindgen_malloc),_=f;c.engine_setFeatureMask(this.__wbg_ptr,r,n,_,u(t)?Number.MAX_SAFE_INTEGER:t>>>0)}setFeatureRamp(r,e,t,n){var _=u(e)?0:M(e,c.__wbindgen_malloc),o=f;c.engine_setFeatureRamp(this.__wbg_ptr,r,_,o,t,n)}setFeatureStyle(r,e,t){let n=S(e,c.__wbindgen_malloc),_=f;c.engine_setFeatureStyle(this.__wbg_ptr,r,n,_,u(t)?Number.MAX_SAFE_INTEGER:t>>>0)}setFeatureValues(r,e,t){let n=S(e,c.__wbindgen_malloc),_=f;c.engine_setFeatureValues(this.__wbg_ptr,r,n,_,u(t)?Number.MAX_SAFE_INTEGER:t>>>0)}setFills(r,e,t,n,_){let o=I(e,c.__wbindgen_malloc),a=f,i=A(t,c.__wbindgen_malloc),s=f,b=A(n,c.__wbindgen_malloc),l=f,d=A(_,c.__wbindgen_malloc),w=f;c.engine_setFills(this.__wbg_ptr,r,o,a,i,s,b,l,d,w)}setGlobeColor(r,e,t){c.engine_setGlobeColor(this.__wbg_ptr,r,e,t)}setGlobe(r){c.engine_setGlobe(this.__wbg_ptr,r)}setGlyphAtlas(r,e,t){var n=u(t)?0:M(t,c.__wbindgen_malloc),_=f;let o=c.engine_setGlyphAtlas(this.__wbg_ptr,r,e,n,_);if(o[1])throw y(o[0])}setGlyphPages(r,e,t){let n=c.engine_setGlyphPages(this.__wbg_ptr,r,e,t);if(n[1])throw y(n[0])}setGroundBounds(r,e,t,n,_){c.engine_setGroundBounds(this.__wbg_ptr,r,e,t,n,_)}setGroundTexture(r,e,t,n,_,o,a,i){let s=v(e,c.__wbindgen_malloc,c.__wbindgen_realloc),b=f,l=v(t,c.__wbindgen_malloc,c.__wbindgen_realloc),d=f;var w=u(i)?0:M(i,c.__wbindgen_malloc),p=f;let T=c.engine_setGroundTexture(this.__wbg_ptr,r,s,b,l,d,n,_,o,a,w,p);if(T[1])throw y(T[0])}setGroundUniform(r,e,t){let n=v(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=f,o=I(t,c.__wbindgen_malloc),a=f,i=c.engine_setGroundUniform(this.__wbg_ptr,r,n,_,o,a);if(i[1])throw y(i[0])}setGroundVisible(r,e){c.engine_setGroundVisible(this.__wbg_ptr,r,e)}setIconAtlas(r,e){let t=c.engine_setIconAtlas(this.__wbg_ptr,r,e);if(t[1])throw y(t[0])}setImmediateLoading(r){c.engine_setImmediateLoading(this.__wbg_ptr,r)}setLineDash(r,e,t){c.engine_setLineDash(this.__wbg_ptr,r,e,t)}setLines(r,e,t,n){let _=I(e,c.__wbindgen_malloc),o=f,a=A(t,c.__wbindgen_malloc),i=f,s=A(n,c.__wbindgen_malloc),b=f,l=c.engine_setLines(this.__wbg_ptr,r,_,o,a,i,s,b);if(l[1])throw y(l[0])}setMaxPitch(r){c.engine_setMaxPitch(this.__wbg_ptr,r)}setModelInstances(r,e,t){let n=I(e,c.__wbindgen_malloc),_=f;c.engine_setModelInstances(this.__wbg_ptr,r,n,_,t)}setNetworkCosts(r,e){var t=u(e)?0:S(e,c.__wbindgen_malloc),n=f;c.engine_setNetworkCosts(this.__wbg_ptr,r,t,n)}setNetworkRamp(r,e){var t=u(e)?0:M(e,c.__wbindgen_malloc),n=f;c.engine_setNetworkRamp(this.__wbg_ptr,r,t,n)}setNetworkScales(r,e){var t=u(e)?0:S(e,c.__wbindgen_malloc),n=f;c.engine_setNetworkScales(this.__wbg_ptr,r,t,n)}setNetworkStyle(r,e){let t=S(e,c.__wbindgen_malloc),n=f;c.engine_setNetworkStyle(this.__wbg_ptr,r,t,n)}setNetworkValues(r,e){let t=S(e,c.__wbindgen_malloc),n=f;c.engine_setNetworkValues(this.__wbg_ptr,r,t,n)}setPointCloudStyle(r,e,t,n){let _=I(e,c.__wbindgen_malloc),o=f,a=M(t,c.__wbindgen_malloc),i=f,s=M(n,c.__wbindgen_malloc),b=f;c.engine_setPointCloudStyle(this.__wbg_ptr,r,_,o,a,i,s,b)}setRasterStyle(r,e,t){c.engine_setRasterStyle(this.__wbg_ptr,r,e,t)}setSky(r){c.engine_setSky(this.__wbg_ptr,r)}setSymbolLayer(r,e,t,n,_,o){let a=S(e,c.__wbindgen_malloc),i=f,s=S(t,c.__wbindgen_malloc),b=f;c.engine_setSymbolLayer(this.__wbg_ptr,r,a,i,s,b,n,_,o)}setSymbols(r,e,t,n,_){let o=I(e,c.__wbindgen_malloc),a=f,i=S(t,c.__wbindgen_malloc),s=f,b=S(n,c.__wbindgen_malloc),l=f,d=S(_,c.__wbindgen_malloc),w=f,p=c.engine_setSymbols(this.__wbg_ptr,r,o,a,i,s,b,l,d,w);if(p[1])throw y(p[0])}setTerrain(r,e,t,n,_){var o=u(r)?0:v(r,c.__wbindgen_malloc,c.__wbindgen_realloc),a=f;let i=c.engine_setTerrain(this.__wbg_ptr,o,a,e,u(t)?16777215:t,u(n)?16777215:n?1:0,u(_)?0:m(_));if(i[1])throw y(i[0])}setTileLoader(r){c.engine_setTileLoader(this.__wbg_ptr,r)}setTiles3dStyle(r,e,t,n){c.engine_setTiles3dStyle(this.__wbg_ptr,r,e,t,!u(n),u(n)?0:n)}setZoomRange(r,e){c.engine_setZoomRange(this.__wbg_ptr,r,e)}stats(){return c.engine_stats(this.__wbg_ptr)}textureFormats(){return c.engine_textureFormats(this.__wbg_ptr)}tiles3dStats(r){return c.engine_tiles3dStats(this.__wbg_ptr,r)}updateGlyphAtlas(r,e,t,n,_){let o=M(_,c.__wbindgen_malloc),a=f;c.engine_updateGlyphAtlas(this.__wbg_ptr,r,e,t,n,o,a)}updateGlyphPage(r,e,t,n,_,o){let a=M(o,c.__wbindgen_malloc),i=f;c.engine_updateGlyphPage(this.__wbg_ptr,r,e,t,n,_,a,i)}updateGroundTexture(r,e,t,n,_,o,a,i){let s=v(e,c.__wbindgen_malloc,c.__wbindgen_realloc),b=f,l=M(i,c.__wbindgen_malloc),d=f,w=c.engine_updateGroundTexture(this.__wbg_ptr,r,s,b,t,n,_,o,a,l,d);if(w[1])throw y(w[0])}updateIconAtlas(r,e,t,n,_){let o=M(_,c.__wbindgen_malloc),a=f;c.engine_updateIconAtlas(this.__wbg_ptr,r,e,t,n,o,a)}zoomAt(r,e,t){c.engine_zoomAt(this.__wbg_ptr,r,e,t)}}if(Symbol.dispose)ie.prototype[Symbol.dispose]=ie.prototype.free;function Se(r,e,t,n){let _=M(r,c.__wbindgen_malloc),o=f,a=I(e,c.__wbindgen_malloc),i=f,s=c.decodeTile(_,o,a,i,t,n);if(s[2])throw y(s[1]);return y(s[0])}function Fe(r){let e=M(r,c.__wbindgen_malloc),t=f,n=c.dracoRequests(e,t);if(n[2])throw y(n[1]);return y(n[0])}function Oe(){return{__proto__:null,"./isard_bg.js":{__proto__:null,__wbg___wbindgen_boolean_get_5b446f51afd21013:function(e){let t=e,n=typeof t==="boolean"?t:void 0;return u(n)?16777215:n?1:0},__wbg___wbindgen_debug_string_4687d8d8c2017d52:function(e,t){let n=se(t),_=v(n,c.__wbindgen_malloc,c.__wbindgen_realloc),o=f;x().setInt32(e+4,o,!0),x().setInt32(e+0,_,!0)},__wbg___wbindgen_is_falsy_16bd49b68658263e:function(e){return!e},__wbg___wbindgen_is_function_1f9d30630b8b1d3d:function(e){return typeof e==="function"},__wbg___wbindgen_is_null_e343b7d08827ba72:function(e){return e===null},__wbg___wbindgen_is_object_3c45d4f2dde4e749:function(e){let t=e;return typeof t==="object"&&t!==null},__wbg___wbindgen_is_undefined_8865fb403f8fe9d8:function(e){return e===void 0},__wbg___wbindgen_number_get_2e0e7dee9f701a71:function(e,t){let n=t,_=typeof n==="number"?n:void 0;x().setFloat64(e+8,u(_)?0:_,!0),x().setInt32(e+0,!u(_),!0)},__wbg___wbindgen_string_get_0380ccaa2f57f0d9:function(e,t){let n=t,_=typeof n==="string"?n:void 0;var o=u(_)?0:v(_,c.__wbindgen_malloc,c.__wbindgen_realloc),a=f;x().setInt32(e+4,a,!0),x().setInt32(e+0,o,!0)},__wbg___wbindgen_throw_41e9ee4f547fc59a:function(e,t){throw Error(P(e,t))},__wbg__wbg_cb_unref_dcc1a90847f04c41:function(e){e._wbg_cb_unref()},__wbg_abort_f78b99d80248bacb:function(e){e.abort()},__wbg_aborted_5b2b5f06b5e59fde:function(e){return e.aborted},__wbg_activeTexture_11079673eac5c921:function(e,t){e.activeTexture(t>>>0)},__wbg_activeTexture_2fad46c01cafe6b1:function(e,t){e.activeTexture(t>>>0)},__wbg_apply_a910804df6e1e433:function(){return g(function(e,t,n){return e.apply(t,n)},arguments)},__wbg_arrayBuffer_f07be74819944ea2:function(){return g(function(e){return e.arrayBuffer()},arguments)},__wbg_attachShader_8920a5beea54aba7:function(e,t,n){e.attachShader(t,n)},__wbg_attachShader_9567ae57af6746d5:function(e,t,n){e.attachShader(t,n)},__wbg_bindBuffer_0324f62b876c4403:function(e,t,n){e.bindBuffer(t>>>0,n)},__wbg_bindBuffer_2195e89b585ce0c3:function(e,t,n){e.bindBuffer(t>>>0,n)},__wbg_bindFramebuffer_22e4b8e6e6d8d0e8:function(e,t,n){e.bindFramebuffer(t>>>0,n)},__wbg_bindFramebuffer_378eb18ef219d37a:function(e,t,n){e.bindFramebuffer(t>>>0,n)},__wbg_bindRenderbuffer_db090531fb28de34:function(e,t,n){e.bindRenderbuffer(t>>>0,n)},__wbg_bindRenderbuffer_e0c5aeef245a913a:function(e,t,n){e.bindRenderbuffer(t>>>0,n)},__wbg_bindTexture_3cf008f256f3ed99:function(e,t,n){e.bindTexture(t>>>0,n)},__wbg_bindTexture_613a47b8917a0ccd:function(e,t,n){e.bindTexture(t>>>0,n)},__wbg_bindVertexArrayOES_3141815cb8234a6e:function(e,t){e.bindVertexArrayOES(t)},__wbg_bindVertexArray_f58af0a346185ec5:function(e,t){e.bindVertexArray(t)},__wbg_blendEquation_5fb8aee6a55cf900:function(e,t){e.blendEquation(t>>>0)},__wbg_blendEquation_d21914e937b14896:function(e,t){e.blendEquation(t>>>0)},__wbg_blendFuncSeparate_28abe082febb1a26:function(e,t,n,_,o){e.blendFuncSeparate(t>>>0,n>>>0,_>>>0,o>>>0)},__wbg_blendFuncSeparate_2af9d47f7efc0452:function(e,t,n,_,o){e.blendFuncSeparate(t>>>0,n>>>0,_>>>0,o>>>0)},__wbg_blendFunc_491ee1105079ce76:function(e,t,n){e.blendFunc(t>>>0,n>>>0)},__wbg_blendFunc_589e4252bb396484:function(e,t,n){e.blendFunc(t>>>0,n>>>0)},__wbg_blob_232135c7e297b861:function(){return g(function(e){return e.blob()},arguments)},__wbg_bufferData_50f5eb06469330e4:function(e,t,n,_){e.bufferData(t>>>0,n,_>>>0)},__wbg_bufferData_53e0f7a06b58fe81:function(e,t,n,_){e.bufferData(t>>>0,n,_>>>0)},__wbg_bufferData_5fa44d94fe7a3878:function(e,t,n,_){e.bufferData(t>>>0,n,_>>>0)},__wbg_bufferData_bad7ce562b6a9eac:function(e,t,n,_){e.bufferData(t>>>0,n,_>>>0)},__wbg_byteLength_141bda7c7c28aa72:function(e){return e.byteLength},__wbg_byteLength_18a1704c0bf397bb:function(e){return e.byteLength},__wbg_byteLength_27689b065d089962:function(e){return e.byteLength},__wbg_byteLength_9f985b8373f1f3fe:function(e){return e.byteLength},__wbg_call_01721c8c75200a10:function(){return g(function(e,t,n,_,o,a){return e.call(t,n,_,o,a)},arguments)},__wbg_call_187d372bd5fdd4aa:function(){return g(function(e,t,n){return e.call(t,n)},arguments)},__wbg_call_6137034ef55c9d0f:function(){return g(function(e,t){return e.call(t)},arguments)},__wbg_clearColor_3f6aa096dc12e8b7:function(e,t,n,_,o){e.clearColor(t,n,_,o)},__wbg_clearColor_796427e8ac60fe14:function(e,t,n,_,o){e.clearColor(t,n,_,o)},__wbg_clearDepth_4840a5497ae51286:function(e,t){e.clearDepth(t)},__wbg_clearDepth_5a119c24c5d193bc:function(e,t){e.clearDepth(t)},__wbg_clearStencil_1b8b8c727f598eec:function(e,t){e.clearStencil(t)},__wbg_clearStencil_e4383e4a543e7997:function(e,t){e.clearStencil(t)},__wbg_clear_175cf3cb6d98d72b:function(e,t){e.clear(t>>>0)},__wbg_clear_cb96796cc568b7c8:function(e,t){e.clear(t>>>0)},__wbg_close_355afba6ea5ad1ae:function(e){e.close()},__wbg_colorMask_4d6afbbbc3022fbe:function(e,t,n,_,o){e.colorMask(t!==0,n!==0,_!==0,o!==0)},__wbg_colorMask_8c903995f6f873be:function(e,t,n,_,o){e.colorMask(t!==0,n!==0,_!==0,o!==0)},__wbg_compileShader_073a75409aaf96d2:function(e,t){e.compileShader(t)},__wbg_compileShader_c2b53ff3a8851f60:function(e,t){e.compileShader(t)},__wbg_compressedTexImage2D_93d2b30687f2cfad:function(e,t,n,_,o,a,i,s){e.compressedTexImage2D(t>>>0,n,_>>>0,o,a,i,s)},__wbg_createBuffer_d1dd23bf8704564c:function(e){let t=e.createBuffer();return u(t)?0:m(t)},__wbg_createBuffer_ffe613371d42cfd3:function(e){let t=e.createBuffer();return u(t)?0:m(t)},__wbg_createFramebuffer_2c6b5b0f49c88e5d:function(e){let t=e.createFramebuffer();return u(t)?0:m(t)},__wbg_createFramebuffer_d0969af4e9886297:function(e){let t=e.createFramebuffer();return u(t)?0:m(t)},__wbg_createImageBitmap_1b985e01e4c81baa:function(){return g(function(e,t,n){return e.createImageBitmap(t,n)},arguments)},__wbg_createImageBitmap_69996a36c51d409f:function(){return g(function(e,t,n){return e.createImageBitmap(t,n)},arguments)},__wbg_createProgram_cbf448e6f18a9402:function(e){let t=e.createProgram();return u(t)?0:m(t)},__wbg_createProgram_e0c81b0d2b8d0fd0:function(e){let t=e.createProgram();return u(t)?0:m(t)},__wbg_createRenderbuffer_2b17e9fe2e6fb4be:function(e){let t=e.createRenderbuffer();return u(t)?0:m(t)},__wbg_createRenderbuffer_c864095d6ebd60d0:function(e){let t=e.createRenderbuffer();return u(t)?0:m(t)},__wbg_createShader_6c1a2295587878a5:function(e,t){let n=e.createShader(t>>>0);return u(n)?0:m(n)},__wbg_createShader_7c9d99a21ecb08c0:function(e,t){let n=e.createShader(t>>>0);return u(n)?0:m(n)},__wbg_createTexture_01e8e591b64237de:function(e){let t=e.createTexture();return u(t)?0:m(t)},__wbg_createTexture_5f2583508ebe379b:function(e){let t=e.createTexture();return u(t)?0:m(t)},__wbg_createVertexArrayOES_a8dc8498b56df937:function(e){let t=e.createVertexArrayOES();return u(t)?0:m(t)},__wbg_createVertexArray_b223ea69dd08fcab:function(e){let t=e.createVertexArray();return u(t)?0:m(t)},__wbg_cullFace_12123c1c97f1ba2c:function(e,t){e.cullFace(t>>>0)},__wbg_cullFace_1a01f0b6d5aeb687:function(e,t){e.cullFace(t>>>0)},__wbg_deleteBuffer_070e58aaaf2a7a8b:function(e,t){e.deleteBuffer(t)},__wbg_deleteBuffer_7775ee9e248c8468:function(e,t){e.deleteBuffer(t)},__wbg_deleteFramebuffer_3f8ab330098bf8e6:function(e,t){e.deleteFramebuffer(t)},__wbg_deleteFramebuffer_570d3b214a509fa2:function(e,t){e.deleteFramebuffer(t)},__wbg_deleteProgram_822906f0368175d0:function(e,t){e.deleteProgram(t)},__wbg_deleteProgram_b524b30ad176cdb4:function(e,t){e.deleteProgram(t)},__wbg_deleteRenderbuffer_826c9b43b7ea68f5:function(e,t){e.deleteRenderbuffer(t)},__wbg_deleteRenderbuffer_f4e121a3ab21c605:function(e,t){e.deleteRenderbuffer(t)},__wbg_deleteShader_a70f6cc1918d67eb:function(e,t){e.deleteShader(t)},__wbg_deleteShader_da18a294158c2d15:function(e,t){e.deleteShader(t)},__wbg_deleteSync_4f0be28b03f50495:function(e,t){e.deleteSync(t)},__wbg_deleteTexture_78c170241204a466:function(e,t){e.deleteTexture(t)},__wbg_deleteTexture_9f42750adb092e4f:function(e,t){e.deleteTexture(t)},__wbg_deleteVertexArrayOES_e01f31634d466176:function(e,t){e.deleteVertexArrayOES(t)},__wbg_deleteVertexArray_ca9768805d051d49:function(e,t){e.deleteVertexArray(t)},__wbg_depthFunc_92e96d8f46a23300:function(e,t){e.depthFunc(t>>>0)},__wbg_depthFunc_a41fb5adacb22e09:function(e,t){e.depthFunc(t>>>0)},__wbg_depthMask_06ecff4d4514c38f:function(e,t){e.depthMask(t!==0)},__wbg_depthMask_0d7c3dec3b8405ee:function(e,t){e.depthMask(t!==0)},__wbg_depthRange_24c7969249461e8e:function(e,t,n){e.depthRange(t,n)},__wbg_depthRange_6a4e169ccf314148:function(e,t,n){e.depthRange(t,n)},__wbg_detachShader_1ed15fc2d289cf15:function(e,t,n){e.detachShader(t,n)},__wbg_detachShader_67dabaaad80a795e:function(e,t,n){e.detachShader(t,n)},__wbg_disable_19fe787eccdf0272:function(e,t){e.disable(t>>>0)},__wbg_disable_81b2cb5f8cea15ae:function(e,t){e.disable(t>>>0)},__wbg_drawArraysInstancedANGLE_b76512b5abba6668:function(e,t,n,_,o){e.drawArraysInstancedANGLE(t>>>0,n,_,o)},__wbg_drawArraysInstanced_9b44aa78a087154d:function(e,t,n,_,o){e.drawArraysInstanced(t>>>0,n,_,o)},__wbg_drawArrays_08872e02fb57b847:function(e,t,n,_){e.drawArrays(t>>>0,n,_)},__wbg_drawArrays_741af5c3f8db636f:function(e,t,n,_){e.drawArrays(t>>>0,n,_)},__wbg_drawElementsInstancedANGLE_c3fc0cfa9e29a1bc:function(e,t,n,_,o,a){e.drawElementsInstancedANGLE(t>>>0,n,_>>>0,o,a)},__wbg_drawElementsInstanced_d7c396aa034159b6:function(e,t,n,_,o,a){e.drawElementsInstanced(t>>>0,n,_>>>0,o,a)},__wbg_drawElements_c8988ba71de1101a:function(e,t,n,_,o){e.drawElements(t>>>0,n,_>>>0,o)},__wbg_drawElements_cc1e6c631e89eddf:function(e,t,n,_,o){e.drawElements(t>>>0,n,_>>>0,o)},__wbg_enableVertexAttribArray_1496b78a8dbab9fd:function(e,t){e.enableVertexAttribArray(t>>>0)},__wbg_enableVertexAttribArray_d52693866bc8b8dd:function(e,t){e.enableVertexAttribArray(t>>>0)},__wbg_enable_6eeb9c0e9b483cee:function(e,t){e.enable(t>>>0)},__wbg_enable_cb4fc19b51148c37:function(e,t){e.enable(t>>>0)},__wbg_error_c9cf3fc2064683a9:function(e){console.error(e)},__wbg_fenceSync_330293024adb66bc:function(e,t,n){let _=e.fenceSync(t>>>0,n>>>0);return u(_)?0:m(_)},__wbg_fetch_b322877f1ed6457d:function(e,t,n,_){return e.fetch(P(t,n),_)},__wbg_flush_13b162660ad850d2:function(e){e.flush()},__wbg_flush_a5ad38200881ac35:function(e){e.flush()},__wbg_framebufferRenderbuffer_1c6337e0030411f3:function(e,t,n,_,o){e.framebufferRenderbuffer(t>>>0,n>>>0,_>>>0,o)},__wbg_framebufferRenderbuffer_f019e9231b142c0d:function(e,t,n,_,o){e.framebufferRenderbuffer(t>>>0,n>>>0,_>>>0,o)},__wbg_framebufferTexture2D_73c52f23ec33aa22:function(e,t,n,_,o,a){e.framebufferTexture2D(t>>>0,n>>>0,_>>>0,o,a)},__wbg_framebufferTexture2D_caddefa1f767646e:function(e,t,n,_,o,a){e.framebufferTexture2D(t>>>0,n>>>0,_>>>0,o,a)},__wbg_from_296ca31f8d0f1c52:function(e){return Array.from(e)},__wbg_frontFace_6751b4b97f997aeb:function(e,t){e.frontFace(t>>>0)},__wbg_frontFace_b064adb15b6f3772:function(e,t){e.frontFace(t>>>0)},__wbg_generateMipmap_c63604006bfa52d5:function(e,t){e.generateMipmap(t>>>0)},__wbg_generateMipmap_cd49f6eec9558721:function(e,t){e.generateMipmap(t>>>0)},__wbg_getActiveUniform_239de631a40c387a:function(e,t,n){let _=e.getActiveUniform(t,n>>>0);return u(_)?0:m(_)},__wbg_getActiveUniform_f2052b3c57679fe2:function(e,t,n){let _=e.getActiveUniform(t,n>>>0);return u(_)?0:m(_)},__wbg_getBufferSubData_dd23246099b166d1:function(e,t,n,_){e.getBufferSubData(t>>>0,n,_)},__wbg_getContext_051324720aa5b7e8:function(){return g(function(e,t,n,_){let o=e.getContext(P(t,n),_);return u(o)?0:m(o)},arguments)},__wbg_getExtension_abfda2c5db286b07:function(){return g(function(e,t,n){let _=e.getExtension(P(t,n));return u(_)?0:m(_)},arguments)},__wbg_getParameter_974595a6624c6c10:function(){return g(function(e,t){return e.getParameter(t>>>0)},arguments)},__wbg_getParameter_a97f491753b05668:function(){return g(function(e,t){return e.getParameter(t>>>0)},arguments)},__wbg_getProgramInfoLog_208fb1ff31006495:function(e,t,n){let _=t.getProgramInfoLog(n);var o=u(_)?0:v(_,c.__wbindgen_malloc,c.__wbindgen_realloc),a=f;x().setInt32(e+4,a,!0),x().setInt32(e+0,o,!0)},__wbg_getProgramInfoLog_3276b294d6d42fe2:function(e,t,n){let _=t.getProgramInfoLog(n);var o=u(_)?0:v(_,c.__wbindgen_malloc,c.__wbindgen_realloc),a=f;x().setInt32(e+4,a,!0),x().setInt32(e+0,o,!0)},__wbg_getProgramParameter_50bafab01cf88652:function(e,t,n){return e.getProgramParameter(t,n>>>0)},__wbg_getProgramParameter_fc7124bb9fb7c675:function(e,t,n){return e.getProgramParameter(t,n>>>0)},__wbg_getShaderInfoLog_7e0cbba353ca95da:function(e,t,n){let _=t.getShaderInfoLog(n);var o=u(_)?0:v(_,c.__wbindgen_malloc,c.__wbindgen_realloc),a=f;x().setInt32(e+4,a,!0),x().setInt32(e+0,o,!0)},__wbg_getShaderInfoLog_bb64c5a52df0b7a3:function(e,t,n){let _=t.getShaderInfoLog(n);var o=u(_)?0:v(_,c.__wbindgen_malloc,c.__wbindgen_realloc),a=f;x().setInt32(e+4,a,!0),x().setInt32(e+0,o,!0)},__wbg_getShaderParameter_745acf10b8e45e31:function(e,t,n){return e.getShaderParameter(t,n>>>0)},__wbg_getShaderParameter_e55ea9c456df5484:function(e,t,n){return e.getShaderParameter(t,n>>>0)},__wbg_getSupportedExtensions_1459bad37860c0c3:function(e){let t=e.getSupportedExtensions();return u(t)?0:m(t)},__wbg_getSyncParameter_bb4be47b67bfa2f8:function(e,t,n){return e.getSyncParameter(t,n>>>0)},__wbg_getUniformLocation_50ba45dade572703:function(e,t,n,_){let o=e.getUniformLocation(t,P(n,_));return u(o)?0:m(o)},__wbg_getUniformLocation_cb4e3e121235f91a:function(e,t,n,_){let o=e.getUniformLocation(t,P(n,_));return u(o)?0:m(o)},__wbg_get_31af05bd4842a84f:function(){return g(function(e,t){return Reflect.get(e,t)},arguments)},__wbg_get_f75619e20cb68514:function(){return g(function(e,t,n,_){let o=t.get(P(n,_));var a=u(o)?0:v(o,c.__wbindgen_malloc,c.__wbindgen_realloc),i=f;x().setInt32(e+4,i,!0),x().setInt32(e+0,a,!0)},arguments)},__wbg_get_index_f4750150bb3083b3:function(e,t){return e[t>>>0]},__wbg_get_unchecked_288889d017702237:function(e,t){return e[t>>>0]},__wbg_headers_eba93595f8944c2f:function(e){return e.headers},__wbg_height_9dca4d43c3e4b84b:function(e){return e.height},__wbg_instanceof_ArrayBuffer_a99f175873e5d9b8:function(e){let t;try{t=e instanceof ArrayBuffer}catch(_){t=!1}return t},__wbg_instanceof_Blob_7c6191a4cd5834d3:function(e){let t;try{t=e instanceof Blob}catch(_){t=!1}return t},__wbg_instanceof_Error_80a725f81f2e102d:function(e){let t;try{t=e instanceof Error}catch(_){t=!1}return t},__wbg_instanceof_Float32Array_595afb0f28b828c9:function(e){let t;try{t=e instanceof Float32Array}catch(_){t=!1}return t},__wbg_instanceof_Float64Array_8a59377f9eec1b8b:function(e){let t;try{t=e instanceof Float64Array}catch(_){t=!1}return t},__wbg_instanceof_ImageBitmap_74bea45ee48d3d7a:function(e){let t;try{t=e instanceof ImageBitmap}catch(_){t=!1}return t},__wbg_instanceof_Promise_e1dc6893aa1ece28:function(e){let t;try{t=e instanceof Promise}catch(_){t=!1}return t},__wbg_instanceof_Response_b8758567269c30b2:function(e){let t;try{t=e instanceof Response}catch(_){t=!1}return t},__wbg_instanceof_Uint32Array_53a4facaf04b8a8b:function(e){let t;try{t=e instanceof Uint32Array}catch(_){t=!1}return t},__wbg_instanceof_Uint8Array_828cef2aaacafc31:function(e){let t;try{t=e instanceof Uint8Array}catch(_){t=!1}return t},__wbg_instanceof_WebGl2RenderingContext_64c994c14c0790fb:function(e){let t;try{t=e instanceof WebGL2RenderingContext}catch(_){t=!1}return t},__wbg_instanceof_Window_82d71df4eddf88bc:function(e){let t;try{t=e instanceof Window}catch(_){t=!1}return t},__wbg_isArray_e15a2ff68ffdbef2:function(e){return Array.isArray(e)},__wbg_isContextLost_fbbab8b921e614b7:function(e){return e.isContextLost()},__wbg_is_4b278c0bd3caba97:function(e,t){return Object.is(e,t)},__wbg_length_511b1f84719d3462:function(e){return e.length},__wbg_length_58572db4c38f3c3e:function(e){return e.length},__wbg_length_7f3c00c40364105e:function(e){return e.length},__wbg_length_b5f0008bbf60cf59:function(e){return e.length},__wbg_length_d4bdea10311bd9cf:function(e){return e.length},__wbg_linkProgram_571a9ea00d38ff83:function(e,t){e.linkProgram(t)},__wbg_linkProgram_acdc299c43d734a0:function(e,t){e.linkProgram(t)},__wbg_message_5f8387f0c32b90a7:function(e){return e.message},__wbg_name_91a697e9ff1634bf:function(e,t){let n=t.name,_=v(n,c.__wbindgen_malloc,c.__wbindgen_realloc),o=f;x().setInt32(e+4,o,!0),x().setInt32(e+0,_,!0)},__wbg_new_1dbf7428bba60a42:function(e){return new Uint8Array(e)},__wbg_new_2e41357094e99294:function(){return g(function(){return new AbortController},arguments)},__wbg_new_5502aad30c185fc8:function(e,t){try{var n={a:e,b:t},_=(a,i)=>{let s=n.a;n.a=0;try{return Ne(s,n.b,a,i)}finally{n.a=s}};return new Promise(_)}finally{n.a=0}},__wbg_new_617a8cdb8bb1130e:function(){return{}},__wbg_new_83ca405eae412a62:function(){return g(function(){return new Headers},arguments)},__wbg_new_ee2291f50781bf1d:function(){return[]},__wbg_new_from_slice_37a3c3a194266cb8:function(e,t){return new Uint32Array(C(e,t))},__wbg_new_from_slice_9a868026ffa4208a:function(e,t){return new Uint8Array(ce(e,t))},__wbg_new_from_slice_ca6ad97db1f4779a:function(e,t){return new Float32Array(F(e,t))},__wbg_new_from_slice_f545fd22ddc142b8:function(e,t){return new Float64Array(fe(e,t))},__wbg_new_with_byte_offset_70ba6193352e027b:function(e,t){return new Uint8Array(e,t>>>0)},__wbg_new_with_byte_offset_and_length_40c170286adc9005:function(e,t,n){return new Float32Array(e,t>>>0,n>>>0)},__wbg_new_with_u8_array_sequence_and_options_fccc08fe93f4b8fd:function(){return g(function(e,t){return new Blob(e,t)},arguments)},__wbg_now_aa4ccb83129e9e55:function(){return Date.now()},__wbg_now_d0b7f4bea9f38490:function(e){return e.now()},__wbg_of_20798cb14708764f:function(e,t){return Array.of(e,t)},__wbg_of_d5dbecdc59e02e34:function(e){return Array.of(e)},__wbg_of_dde0b9d3265685ee:function(e,t,n){return Array.of(e,t,n)},__wbg_of_fea2613674ee0d0f:function(e,t,n,_,o){return Array.of(e,t,n,_,o)},__wbg_ok_125878a7db256ecb:function(e){return e.ok},__wbg_performance_d0d7b03fc649b694:function(e){let t=e.performance;return u(t)?0:m(t)},__wbg_pixelStorei_af18e636b3e7b725:function(e,t,n){e.pixelStorei(t>>>0,n)},__wbg_pixelStorei_cb4e43466f5b8703:function(e,t,n){e.pixelStorei(t>>>0,n)},__wbg_prototypesetcall_06eb15da165dee8f:function(e,t,n){Uint32Array.prototype.set.call(C(e,t),n)},__wbg_prototypesetcall_8b03c01e2c0f8066:function(e,t,n){Float32Array.prototype.set.call(F(e,t),n)},__wbg_prototypesetcall_bc27214492979395:function(e,t,n){Uint8Array.prototype.set.call(ce(e,t),n)},__wbg_prototypesetcall_d49a4fab5ca427bc:function(e,t,n){Float64Array.prototype.set.call(fe(e,t),n)},__wbg_push_2baf45db356cf468:function(e,t){return e.push(t)},__wbg_queueMicrotask_9833f9a49df95a49:function(e){return e.queueMicrotask},__wbg_queueMicrotask_a72f977e97f23c5f:function(e){queueMicrotask(e)},__wbg_readPixels_31e44e70558ac590:function(){return g(function(e,t,n,_,o,a,i,s){e.readPixels(t,n,_,o,a>>>0,i>>>0,s)},arguments)},__wbg_readPixels_3321086a7818a739:function(){return g(function(e,t,n,_,o,a,i,s){e.readPixels(t,n,_,o,a>>>0,i>>>0,s)},arguments)},__wbg_readPixels_eb030cd9976eeca5:function(){return g(function(e,t,n,_,o,a,i,s){e.readPixels(t,n,_,o,a>>>0,i>>>0,s)},arguments)},__wbg_renderbufferStorage_52b131bbf3112b3a:function(e,t,n,_,o){e.renderbufferStorage(t>>>0,n>>>0,_,o)},__wbg_renderbufferStorage_bca487b0dea425b8:function(e,t,n,_,o){e.renderbufferStorage(t>>>0,n>>>0,_,o)},__wbg_resolve_0076e10020304ede:function(e){return Promise.resolve(e)},__wbg_scissor_12ddc324094acd50:function(e,t,n,_,o){e.scissor(t,n,_,o)},__wbg_scissor_a9468482697c2bdb:function(e,t,n,_,o){e.scissor(t,n,_,o)},__wbg_setTimeout_db7bbc18a17e152a:function(){return g(function(e,t,n){return e.setTimeout(t,n)},arguments)},__wbg_set_145a351398b48c65:function(){return g(function(e,t,n){return Reflect.set(e,t,n)},arguments)},__wbg_set_af5932e3f78b5648:function(){return g(function(e,t,n,_,o){e.set(P(t,n),P(_,o))},arguments)},__wbg_set_alpha_6dea851a46253adf:function(e,t){e.alpha=t!==0},__wbg_set_antialias_1f699e96763e8a35:function(e,t){e.antialias=t!==0},__wbg_set_cache_7507c4cc5938ccc7:function(e,t){e.cache=$e[t]},__wbg_set_color_space_conversion_f27e9d866a683b4b:function(e,t){e.colorSpaceConversion=je[t]},__wbg_set_depth_8b49de49803d4e60:function(e,t){e.depth=t!==0},__wbg_set_headers_40ad33dcf016613f:function(e,t){e.headers=t},__wbg_set_power_preference_6ef22d4c8baf517f:function(e,t){e.powerPreference=ze[t]},__wbg_set_premultiply_alpha_45a4cf9a1e87bfbf:function(e,t){e.premultiplyAlpha=Ve[t]},__wbg_set_resize_height_274433c2f249624d:function(e,t){e.resizeHeight=t>>>0},__wbg_set_resize_width_6f06543b29d1ca48:function(e,t){e.resizeWidth=t>>>0},__wbg_set_signal_2dbd377604627f26:function(e,t){e.signal=t},__wbg_set_stencil_edc32d9477c7c107:function(e,t){e.stencil=t!==0},__wbg_set_type_dcf75b2afa60c694:function(e,t,n){e.type=P(t,n)},__wbg_shaderSource_06379dac249994dd:function(e,t,n,_){e.shaderSource(t,P(n,_))},__wbg_shaderSource_c8812639b47d87b9:function(e,t,n,_){e.shaderSource(t,P(n,_))},__wbg_signal_e5a49a2d9c65b7f6:function(e){return e.signal},__wbg_size_74c48d7329291685:function(e){return e.size},__wbg_static_accessor_GLOBAL_266715b9d96ba635:function(){let e=typeof global>"u"?null:global;return u(e)?0:m(e)},__wbg_static_accessor_GLOBAL_THIS_10fb7dc1ae063179:function(){let e=typeof globalThis>"u"?null:globalThis;return u(e)?0:m(e)},__wbg_static_accessor_SELF_0b583911f537483a:function(){let e=typeof self>"u"?null:self;return u(e)?0:m(e)},__wbg_static_accessor_WINDOW_d7f903d1508cbdc4:function(){let e=typeof window>"u"?null:window;return u(e)?0:m(e)},__wbg_status_ce0a98d3c57125f3:function(e){return e.status},__wbg_stencilFunc_aa3cd8856be514c4:function(e,t,n,_){e.stencilFunc(t>>>0,n,_>>>0)},__wbg_stencilFunc_bab7e0b7c443f093:function(e,t,n,_){e.stencilFunc(t>>>0,n,_>>>0)},__wbg_stencilMask_9e18cc018897c747:function(e,t){e.stencilMask(t>>>0)},__wbg_stencilMask_a22be64c66abd825:function(e,t){e.stencilMask(t>>>0)},__wbg_stencilOpSeparate_7d01185cbdb89d99:function(e,t,n,_,o){e.stencilOpSeparate(t>>>0,n>>>0,_>>>0,o>>>0)},__wbg_stencilOpSeparate_c5af5f5dbd237bea:function(e,t,n,_,o){e.stencilOpSeparate(t>>>0,n>>>0,_>>>0,o>>>0)},__wbg_stencilOp_12274af665ab8a00:function(e,t,n,_){e.stencilOp(t>>>0,n>>>0,_>>>0)},__wbg_stencilOp_2697194654fee819:function(e,t,n,_){e.stencilOp(t>>>0,n>>>0,_>>>0)},__wbg_subarray_002b94d5e13d1411:function(e,t,n){return e.subarray(t>>>0,n>>>0)},__wbg_texImage2D_1b3349107ad0faae:function(){return g(function(e,t,n,_,o,a,i){e.texImage2D(t>>>0,n,_,o>>>0,a>>>0,i)},arguments)},__wbg_texImage2D_82bf2b4c8aa9a1db:function(){return g(function(e,t,n,_,o,a,i,s,b,l){e.texImage2D(t>>>0,n,_,o,a,i,s>>>0,b>>>0,l)},arguments)},__wbg_texImage2D_8fc2f2fcca249b59:function(){return g(function(e,t,n,_,o,a,i){e.texImage2D(t>>>0,n,_,o>>>0,a>>>0,i)},arguments)},__wbg_texImage2D_a856af552acdc9d9:function(){return g(function(e,t,n,_,o,a,i,s,b,l){e.texImage2D(t>>>0,n,_,o,a,i,s>>>0,b>>>0,l)},arguments)},__wbg_texImage2D_ca3d0fe24620ec85:function(){return g(function(e,t,n,_,o,a,i,s,b,l){e.texImage2D(t>>>0,n,_,o,a,i,s>>>0,b>>>0,l)},arguments)},__wbg_texParameteri_647fdb1426809cb5:function(e,t,n,_){e.texParameteri(t>>>0,n>>>0,_)},__wbg_texParameteri_7864076abcdb03e0:function(e,t,n,_){e.texParameteri(t>>>0,n>>>0,_)},__wbg_texStorage2D_cf2bd991072d9efb:function(e,t,n,_,o,a){e.texStorage2D(t>>>0,n,_>>>0,o,a)},__wbg_texStorage3D_74b701c2b176380c:function(e,t,n,_,o,a,i){e.texStorage3D(t>>>0,n,_>>>0,o,a,i)},__wbg_texSubImage2D_31a0c2797aa04f32:function(){return g(function(e,t,n,_,o,a,i,s,b,l){e.texSubImage2D(t>>>0,n,_,o,a,i,s>>>0,b>>>0,l)},arguments)},__wbg_texSubImage2D_5e90c7a719d40256:function(){return g(function(e,t,n,_,o,a,i,s,b,l){e.texSubImage2D(t>>>0,n,_,o,a,i,s>>>0,b>>>0,l)},arguments)},__wbg_texSubImage2D_bb322aae90f7657f:function(){return g(function(e,t,n,_,o,a,i,s,b,l){e.texSubImage2D(t>>>0,n,_,o,a,i,s>>>0,b>>>0,l)},arguments)},__wbg_texSubImage3D_5143d5af7e182ddc:function(){return g(function(e,t,n,_,o,a,i,s,b,l,d,w){e.texSubImage3D(t>>>0,n,_,o,a,i,s,b,l>>>0,d>>>0,w)},arguments)},__wbg_texSubImage3D_5d773fc7a8cd4d08:function(){return g(function(e,t,n,_,o,a,i,s,b,l,d,w){e.texSubImage3D(t>>>0,n,_,o,a,i,s,b,l>>>0,d>>>0,w)},arguments)},__wbg_texSubImage3D_e0d113b7047a5130:function(){return g(function(e,t,n,_,o,a,i,s,b,l,d,w){e.texSubImage3D(t>>>0,n,_,o,a,i,s,b,l>>>0,d>>>0,w)},arguments)},__wbg_then_c949d5a25a4e78f8:function(e,t,n){return e.then(t,n)},__wbg_then_e71170d78fcf8954:function(e,t){return e.then(t)},__wbg_type_ff6f7b321fe8478b:function(e){return e.type},__wbg_uniform1f_9cfecfaeb8cf43c1:function(e,t,n){e.uniform1f(t,n)},__wbg_uniform1f_b5856e35a43b65a1:function(e,t,n){e.uniform1f(t,n)},__wbg_uniform1fv_1bf537fc926ef8b9:function(e,t,n,_){e.uniform1fv(t,F(n,_))},__wbg_uniform1fv_1cc1d09bc13b03bf:function(e,t,n,_){e.uniform1fv(t,F(n,_))},__wbg_uniform1i_531b98c4a7177366:function(e,t,n){e.uniform1i(t,n)},__wbg_uniform1i_fc2dc8cadc49d8ec:function(e,t,n){e.uniform1i(t,n)},__wbg_uniform1iv_4b8cbceccddfaa62:function(e,t,n,_){e.uniform1iv(t,U(n,_))},__wbg_uniform1iv_8fc880ae80c77c74:function(e,t,n,_){e.uniform1iv(t,U(n,_))},__wbg_uniform1ui_353c67ec681b540c:function(e,t,n){e.uniform1ui(t,n>>>0)},__wbg_uniform1uiv_ad5e946730aacbec:function(e,t,n,_){e.uniform1uiv(t,C(n,_))},__wbg_uniform2f_131da2d4bf17e4b9:function(e,t,n,_){e.uniform2f(t,n,_)},__wbg_uniform2f_a92b5bb95dc5b4d9:function(e,t,n,_){e.uniform2f(t,n,_)},__wbg_uniform2fv_319c49f0ce340f26:function(e,t,n,_){e.uniform2fv(t,F(n,_))},__wbg_uniform2fv_a7d3c1830d18c1b2:function(e,t,n,_){e.uniform2fv(t,F(n,_))},__wbg_uniform2iv_65f36fc9777697d7:function(e,t,n,_){e.uniform2iv(t,U(n,_))},__wbg_uniform2iv_ca9cb507409b9ad1:function(e,t,n,_){e.uniform2iv(t,U(n,_))},__wbg_uniform2uiv_c95af5fb653ccb86:function(e,t,n,_){e.uniform2uiv(t,C(n,_))},__wbg_uniform3f_1211579ff87ccfad:function(e,t,n,_,o){e.uniform3f(t,n,_,o)},__wbg_uniform3f_ee105161897ee48a:function(e,t,n,_,o){e.uniform3f(t,n,_,o)},__wbg_uniform3fv_055ea5ac38af4fce:function(e,t,n,_){e.uniform3fv(t,F(n,_))},__wbg_uniform3fv_58520ffe22a6e27c:function(e,t,n,_){e.uniform3fv(t,F(n,_))},__wbg_uniform3iv_0590e8b7eff2a791:function(e,t,n,_){e.uniform3iv(t,U(n,_))},__wbg_uniform3iv_e91b1410dc299f50:function(e,t,n,_){e.uniform3iv(t,U(n,_))},__wbg_uniform3uiv_9992491000463a52:function(e,t,n,_){e.uniform3uiv(t,C(n,_))},__wbg_uniform4f_22bfec882308eec2:function(e,t,n,_,o,a){e.uniform4f(t,n,_,o,a)},__wbg_uniform4f_8dd8f311e656ca0d:function(e,t,n,_,o,a){e.uniform4f(t,n,_,o,a)},__wbg_uniform4fv_3ef2f5121fcb78ae:function(e,t,n,_){e.uniform4fv(t,F(n,_))},__wbg_uniform4fv_cf8ff646c36232c8:function(e,t,n,_){e.uniform4fv(t,F(n,_))},__wbg_uniform4iv_6fc5436b4f876039:function(e,t,n,_){e.uniform4iv(t,U(n,_))},__wbg_uniform4iv_99c2b07787d362d6:function(e,t,n,_){e.uniform4iv(t,U(n,_))},__wbg_uniform4uiv_a6fb3237d9df7ed4:function(e,t,n,_){e.uniform4uiv(t,C(n,_))},__wbg_uniformMatrix3fv_472e7824735acce1:function(e,t,n,_,o){e.uniformMatrix3fv(t,n!==0,F(_,o))},__wbg_uniformMatrix3fv_83fdc9c3c0d43204:function(e,t,n,_,o){e.uniformMatrix3fv(t,n!==0,F(_,o))},__wbg_uniformMatrix4fv_dff9738d995fd0b1:function(e,t,n,_,o){e.uniformMatrix4fv(t,n!==0,F(_,o))},__wbg_uniformMatrix4fv_e691d7f14d3609f7:function(e,t,n,_,o){e.uniformMatrix4fv(t,n!==0,F(_,o))},__wbg_useProgram_5bdae58fd9f9826f:function(e,t){e.useProgram(t)},__wbg_useProgram_e075c2902e420761:function(e,t){e.useProgram(t)},__wbg_vertexAttribDivisorANGLE_659fb027198a47c3:function(e,t,n){e.vertexAttribDivisorANGLE(t>>>0,n>>>0)},__wbg_vertexAttribDivisor_7575d382215322f7:function(e,t,n){e.vertexAttribDivisor(t>>>0,n>>>0)},__wbg_vertexAttribIPointer_fc8057c62cfcc63c:function(e,t,n,_,o,a){e.vertexAttribIPointer(t>>>0,n,_>>>0,o,a)},__wbg_vertexAttribPointer_24b495e18df325dc:function(e,t,n,_,o,a,i){e.vertexAttribPointer(t>>>0,n,_>>>0,o!==0,a,i)},__wbg_vertexAttribPointer_54d56b18f71a946d:function(e,t,n,_,o,a,i){e.vertexAttribPointer(t>>>0,n,_>>>0,o!==0,a,i)},__wbg_viewport_16936692526e2ce6:function(e,t,n,_,o){e.viewport(t,n,_,o)},__wbg_viewport_e35d16c542d2ce70:function(e,t,n,_,o){e.viewport(t,n,_,o)},__wbg_warn_13abc63e0d4b3527:function(e){console.warn(e)},__wbg_width_8a9cc26363f10d5f:function(e){return e.width},__wbindgen_generic_0000000000000001:function(e,t){return Qe(e,t,Ge)},__wbindgen_generic_0000000000000002:function(e){return e},__wbindgen_generic_0000000000000003:function(e,t){return F(e,t)},__wbindgen_generic_0000000000000004:function(e,t){return He(e,t)},__wbindgen_generic_0000000000000005:function(e,t){return U(e,t)},__wbindgen_generic_0000000000000006:function(e,t){return Xe(e,t)},__wbindgen_generic_0000000000000007:function(e,t){return qe(e,t)},__wbindgen_generic_0000000000000008:function(e,t){return C(e,t)},__wbindgen_generic_0000000000000009:function(e,t){return ce(e,t)},__wbindgen_generic_000000000000000a:function(e,t){return P(e,t)},__wbindgen_init_externref_table:function(){let e=c.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}}}}function Ge(r,e,t){let n=c.wasm_bindgen_2e566c63402fe7fa___convert__closures_____invoke___wasm_bindgen_2e566c63402fe7fa___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_2e566c63402fe7fa___JsError___true_(r,e,t);if(n[1])throw y(n[0])}function Ne(r,e,t,n){c.wasm_bindgen_2e566c63402fe7fa___convert__closures_____invoke___js_sys_b1e1c29ba6b0e6b3___Function_fn_wasm_bindgen_2e566c63402fe7fa___JsValue_____wasm_bindgen_2e566c63402fe7fa___sys__Undefined___js_sys_b1e1c29ba6b0e6b3___Function_fn_wasm_bindgen_2e566c63402fe7fa___JsValue_____wasm_bindgen_2e566c63402fe7fa___sys__Undefined_______true_(r,e,t,n)}var je=["none","default"],Ve=["none","premultiply","default"],$e=["default","no-store","reload","no-cache","force-cache","only-if-cached"],ze=["default","low-power","high-performance"],xe=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((r)=>c.__wbg_engine_free(r,1));function m(r){let e=c.__externref_table_alloc();return c.__wbindgen_externrefs.set(e,r),e}var ve=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((r)=>c.__wbindgen_destroy_closure(r.a,r.b));function se(r){let e=typeof r;if(e=="number"||e=="boolean"||r==null)return`${r}`;if(e=="string")return`"${r}"`;if(e=="symbol"){let _=r.description;if(_==null)return"Symbol";else return`Symbol(${_})`}if(e=="function"){let _=r.name;if(typeof _=="string"&&_.length>0)return`Function(${_})`;else return"Function"}if(Array.isArray(r)){let _=r.length,o="[";if(_>0)o+=se(r[0]);for(let a=1;a<_;a++)o+=", "+se(r[a]);return o+="]",o}let t=/\[object ([^\]]+)\]/.exec(toString.call(r)),n;if(t&&t.length>1)n=t[1];else return toString.call(r);if(n=="Object")try{return"Object("+JSON.stringify(r)+")"}catch(_){return"Object"}if(r instanceof Error)return`${r.name}: ${r.message}
|
|
3
|
+
${r.stack}`;return n}function F(r,e){return r=r>>>0,De().subarray(r/4,r/4+e)}function fe(r,e){return r=r>>>0,Ie().subarray(r/8,r/8+e)}function He(r,e){return r=r>>>0,Je().subarray(r/2,r/2+e)}function U(r,e){return r=r>>>0,Ke().subarray(r/4,r/4+e)}function Xe(r,e){return r=r>>>0,Ye().subarray(r/1,r/1+e)}function qe(r,e){return r=r>>>0,Ze().subarray(r/2,r/2+e)}function C(r,e){return r=r>>>0,Te().subarray(r/4,r/4+e)}function ce(r,e){return r=r>>>0,G().subarray(r/1,r/1+e)}var W=null;function x(){if(W===null||W.buffer.detached===!0||W.buffer.detached===void 0&&W.buffer!==c.memory.buffer)W=new DataView(c.memory.buffer);return W}var V=null;function De(){if(V===null||V.byteLength===0)V=new Float32Array(c.memory.buffer);return V}var z=null;function Ie(){if(z===null||z.byteLength===0)z=new Float64Array(c.memory.buffer);return z}var H=null;function Je(){if(H===null||H.byteLength===0)H=new Int16Array(c.memory.buffer);return H}var X=null;function Ke(){if(X===null||X.byteLength===0)X=new Int32Array(c.memory.buffer);return X}var q=null;function Ye(){if(q===null||q.byteLength===0)q=new Int8Array(c.memory.buffer);return q}function P(r,e){return tt(r>>>0,e)}var J=null;function Ze(){if(J===null||J.byteLength===0)J=new Uint16Array(c.memory.buffer);return J}var K=null;function Te(){if(K===null||K.byteLength===0)K=new Uint32Array(c.memory.buffer);return K}var Y=null;function G(){if(Y===null||Y.byteLength===0)Y=new Uint8Array(c.memory.buffer);return Y}function g(r,e){try{return r.apply(this,e)}catch(t){let n=m(t);c.__wbindgen_exn_store(n)}}function u(r){return r===void 0||r===null}function Qe(r,e,t){let n={a:r,b:e,cnt:1},_=(...o)=>{n.cnt++;let a=n.a;n.a=0;try{return t(a,n.b,...o)}finally{n.a=a,_._wbg_cb_unref()}};return _._wbg_cb_unref=()=>{if(--n.cnt===0)c.__wbindgen_destroy_closure(n.a,n.b),n.a=0,ve.unregister(n)},ve.register(_,n,n),_}function A(r,e){let t=e(r.length*4,4)>>>0;return Te().set(r,t/4),f=r.length,t}function M(r,e){let t=e(r.length*1,1)>>>0;return G().set(r,t/1),f=r.length,t}function S(r,e){let t=e(r.length*4,4)>>>0;return De().set(r,t/4),f=r.length,t}function I(r,e){let t=e(r.length*8,8)>>>0;return Ie().set(r,t/8),f=r.length,t}function v(r,e,t){if(t===void 0){let i=Z.encode(r),s=e(i.length,1)>>>0;return G().subarray(s,s+i.length).set(i),f=i.length,s}let n=r.length,_=e(n,1)>>>0,o=G(),a=0;for(;a<n;a++){let i=r.charCodeAt(a);if(i>127)break;o[_+a]=i}if(a!==n){if(a!==0)r=r.slice(a);_=t(_,n,n=a+r.length*3,1)>>>0;let i=G().subarray(_+a,_+n),s=Z.encodeInto(r,i);a+=s.written,_=t(_,n,a,1)>>>0}return f=a,_}function y(r){let e=c.__wbindgen_externrefs.get(r);return c.__externref_table_dealloc(r),e}var ne=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});ne.decode();var et=2146435072,ae=0;function tt(r,e){if(ae+=e,ae>=et)ne=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),ne.decode(),ae=e;return ne.decode(G().subarray(r,r+e))}var Z=new TextEncoder;if(!("encodeInto"in Z))Z.encodeInto=function(r,e){let t=Z.encode(r);return e.set(t),{read:r.length,written:t.length}};var f=0,nt,rt,c;function _t(r,e){return rt=r,c=r.exports,nt=e,W=null,V=null,z=null,H=null,X=null,q=null,J=null,K=null,Y=null,c.__wbindgen_start(),c}async function ot(r,e){if(typeof Response==="function"&&r instanceof Response){if(!r.ok)throw Error(`failed to fetch Wasm: ${r.status} ${r.statusText} fetching '${r.url}'`);if(typeof WebAssembly.instantiateStreaming==="function")try{return await WebAssembly.instantiateStreaming(r,e)}catch(_){if(t(r.type)&&r.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",_);else throw _}let n=await r.arrayBuffer();return await WebAssembly.instantiate(n,e)}else{let n=await WebAssembly.instantiate(r,e);if(n instanceof WebAssembly.Instance)return{instance:n,module:r};else return n}function t(n){switch(n){case"basic":case"cors":case"default":return!0}return!1}}async function Pe(r){if(c!==void 0)return c;if(r!==void 0)if(Object.getPrototypeOf(r)===Object.prototype)({module_or_path:r}=r);else console.warn("using deprecated parameters for the initialization function; pass a single object instead");if(r===void 0)r=new URL("isard_bg.wasm",import.meta.url);let e=Oe();if(typeof r==="string"||typeof Request==="function"&&r instanceof Request||typeof URL==="function"&&r instanceof URL)r=fetch(r);let{instance:t,module:n}=await ot(await r,e);return _t(t,n)}function Re(r,e,t,n,_){let o=Me(r,D.__wbindgen_malloc),a=N,i=Me(e,D.__wbindgen_malloc),s=N,b=Ee(t,D.__wbindgen_malloc),l=N,d=Ee(n,D.__wbindgen_malloc),w=N,p=D.decodeCopc(o,a,i,s,b,l,d,w,_);if(p[3])throw ft(p[2]);var T=at(p[0],p[1]).slice();return D.__wbindgen_free(p[0],p[1]*1,1),T}function ct(){return{__proto__:null,"./isard_points_bg.js":{__proto__:null,__wbindgen_generic_0000000000000001:function(e,t){return st(e,t)},__wbindgen_init_externref_table:function(){let e=D.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}}}}function at(r,e){return r=r>>>0,be().subarray(r/1,r/1+e)}var Q=null;function it(){if(Q===null||Q.byteLength===0)Q=new Float64Array(D.memory.buffer);return Q}function st(r,e){return bt(r>>>0,e)}var ee=null;function be(){if(ee===null||ee.byteLength===0)ee=new Uint8Array(D.memory.buffer);return ee}function Me(r,e){let t=e(r.length*1,1)>>>0;return be().set(r,t/1),N=r.length,t}function Ee(r,e){let t=e(r.length*8,8)>>>0;return it().set(r,t/8),N=r.length,t}function ft(r){let e=D.__wbindgen_externrefs.get(r);return D.__externref_table_dealloc(r),e}var re=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});re.decode();var ut=2146435072,ue=0;function bt(r,e){if(ue+=e,ue>=ut)re=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),re.decode(),ue=e;return re.decode(be().subarray(r,r+e))}var N=0,lt,dt,D;function gt(r,e){return dt=r,D=r.exports,lt=e,Q=null,ee=null,D.__wbindgen_start(),D}async function wt(r,e){if(typeof Response==="function"&&r instanceof Response){if(!r.ok)throw Error(`failed to fetch Wasm: ${r.status} ${r.statusText} fetching '${r.url}'`);if(typeof WebAssembly.instantiateStreaming==="function")try{return await WebAssembly.instantiateStreaming(r,e)}catch(_){if(t(r.type)&&r.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",_);else throw _}let n=await r.arrayBuffer();return await WebAssembly.instantiate(n,e)}else{let n=await WebAssembly.instantiate(r,e);if(n instanceof WebAssembly.Instance)return{instance:n,module:r};else return n}function t(n){switch(n){case"basic":case"cors":case"default":return!0}return!1}}async function Le(r){if(D!==void 0)return D;if(r!==void 0)if(Object.getPrototypeOf(r)===Object.prototype)({module_or_path:r}=r);else console.warn("using deprecated parameters for the initialization function; pass a single object instead");if(r===void 0)r=new URL("isard_points_bg.wasm",import.meta.url);let e=ct();if(typeof r==="string"||typeof Request==="function"&&r instanceof Request||typeof URL==="function"&&r instanceof URL)r=fetch(r);let{instance:t,module:n}=await wt(await r,e);return gt(t,n)}var ke,de=ye,Ue={astc:!1,bptc:!1,etc:!1,s3tc:!1},Be="",le,te=new Map,_e=(r,e=[])=>postMessage(r,e);addEventListener("message",(r)=>{let e=r.data;switch(e.type){case"init":ke=Pe({module_or_path:e.module}),de=e.decoders,Ue=e.formats,Be=e.points;break;case"points":xt(e);break;case"abort":te.get(e.id)?.abort();break;case"load":mt(e.id,e.url,e.transform,e.yUp,e.reload,e.priority);break}});async function mt(r,e,t,n,_,o){let a=new AbortController;te.set(r,a);try{await ke;let i={signal:a.signal,cache:_?"reload":"default",...o?{priority:o}:{}},s=await fetch(e,i);if(!s.ok)throw Error(`HTTP ${s.status}`);let b=new Uint8Array(await s.arrayBuffer()),l=Fe(b),d=l.length>0?await he(de,l):void 0,w=Se(b,t,n,d),p=new Map,T=(h,O)=>{let B=p.get(h);if(!B)B=O==="image/ktx2"?Ae(de,Ue,h).then((j)=>({bitmap:null,texture:j})):createImageBitmap(new Blob([h],{type:O??""}),{premultiplyAlpha:"none"}).then((j)=>({bitmap:j})),p.set(h,B);return B},R=w.points??[],L=await Promise.all(w.primitives.map(async({vertices:h,indices:O,image:B,mime:j,color:ge})=>({vertices:h,indices:O,...ge?{color:ge}:{},...B?await T(B,j):{bitmap:null}}))),E=new Set;for(let h of L){if(E.add(h.vertices.buffer),E.add(h.indices.buffer),h.color)E.add(h.color.buffer);if(h.bitmap)E.add(h.bitmap);for(let O of h.texture?.levels??[])E.add(O.data.buffer)}for(let h of R)E.add(h.buffer);let k={anchor:w.anchor,primitives:L,...R.length>0?{points:R}:{}};_e({type:"tile",id:r,tile:k},[...E])}catch(i){_e({type:"error",id:r,error:String(i),aborted:a.signal.aborted})}finally{te.delete(r)}}var pt=4,yt=1000,ht=(r,e)=>new Promise((t,n)=>{let _=setTimeout(t,r);e.addEventListener("abort",()=>{clearTimeout(_),n(new DOMException("aborted","AbortError"))})});async function At(r,e,t,n,_){for(let o=1;;o+=1){let a={signal:n,headers:{Range:`bytes=${e}-${e+Math.max(t,1)-1}`},..._?{priority:_}:{}},i=await fetch(r,a);if(i.status===429&&o<pt){let s=Number(i.headers.get("Retry-After"));await ht(s>0?s*1000:yt*2**(o-1),n);continue}if(!i.ok)throw Error(`HTTP ${i.status}`);if(i.status!==206){if(!(Number(i.headers.get("Content-Length"))<=t))throw await i.body?.cancel(),Error("the server ignores range requests (HTTP 206 expected)");return new Uint8Array(await i.arrayBuffer()).subarray(e,e+t)}return new Uint8Array(await i.arrayBuffer())}}async function xt(r){let{id:e,url:t,offset:n,size:_,laz:o,layout:a,grid:i,count:s,priority:b}=r,l=new AbortController;te.set(e,l);try{le??=Le({module_or_path:Be}).catch((p)=>{throw le=void 0,p});let[d]=await Promise.all([At(t,n,_,l.signal,b),le]),w=Re(d,o,a,i,s);_e({type:"points",id:e,vertices:w},[w.buffer])}catch(d){_e({type:"error",id:e,error:String(d),aborted:l.signal.aborted})}finally{te.delete(e)}}
|
|
4
4
|
|
|
5
|
-
//# debugId=
|
|
5
|
+
//# debugId=286CD78B703EC4EA64756E2164756E21
|
|
6
6
|
//# sourceMappingURL=decoder.worker.js.map
|