tangram-core 0.2.0__cp313-cp313-win_amd64.whl
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.
- tangram_core/App.vue +335 -0
- tangram_core/__init__.py +5 -0
- tangram_core/__main__.py +141 -0
- tangram_core/_core.cp313-win_amd64.pyd +0 -0
- tangram_core/_core.pyi +38 -0
- tangram_core/api.ts +456 -0
- tangram_core/backend.py +335 -0
- tangram_core/colour.ts +71 -0
- tangram_core/config.py +122 -0
- tangram_core/dist-frontend/aggregation-layers.js +521 -0
- tangram_core/dist-frontend/aggregation-layers.js.map +1 -0
- tangram_core/dist-frontend/assets/_commonjsHelpers-CqkleIqs.js +2 -0
- tangram_core/dist-frontend/assets/_commonjsHelpers-CqkleIqs.js.map +1 -0
- tangram_core/dist-frontend/assets/array-utils-flat-wyE8tIYR.js +11 -0
- tangram_core/dist-frontend/assets/array-utils-flat-wyE8tIYR.js.map +1 -0
- tangram_core/dist-frontend/assets/assert-hrfsarFU.js +3 -0
- tangram_core/dist-frontend/assets/assert-hrfsarFU.js.map +1 -0
- tangram_core/dist-frontend/assets/b612-latin-400-italic-DePNXA0a.woff +0 -0
- tangram_core/dist-frontend/assets/b612-latin-400-italic-a-4GLPtl.woff2 +0 -0
- tangram_core/dist-frontend/assets/b612-latin-400-normal-CC98FVm_.woff2 +0 -0
- tangram_core/dist-frontend/assets/b612-latin-400-normal-JbZ7xwUX.woff +0 -0
- tangram_core/dist-frontend/assets/b612-latin-700-normal-B_Snq1wd.woff +0 -0
- tangram_core/dist-frontend/assets/b612-latin-700-normal-BinQrnoB.woff2 +0 -0
- tangram_core/dist-frontend/assets/clip-extension-DTCP51Ak.js +26 -0
- tangram_core/dist-frontend/assets/clip-extension-DTCP51Ak.js.map +1 -0
- tangram_core/dist-frontend/assets/color-CUNNsFV-.js +17 -0
- tangram_core/dist-frontend/assets/color-CUNNsFV-.js.map +1 -0
- tangram_core/dist-frontend/assets/cube-geometry-CzJ_uBWa.js +2 -0
- tangram_core/dist-frontend/assets/cube-geometry-CzJ_uBWa.js.map +1 -0
- tangram_core/dist-frontend/assets/deep-equal-uriyKJca.js +2 -0
- tangram_core/dist-frontend/assets/deep-equal-uriyKJca.js.map +1 -0
- tangram_core/dist-frontend/assets/fly-to-interpolator-DlKiy9_S.js +2 -0
- tangram_core/dist-frontend/assets/fly-to-interpolator-DlKiy9_S.js.map +1 -0
- tangram_core/dist-frontend/assets/geojson-layer-CLhXLxdI.js +1010 -0
- tangram_core/dist-frontend/assets/geojson-layer-CLhXLxdI.js.map +1 -0
- tangram_core/dist-frontend/assets/globe-view-DKhftlA1.js +94 -0
- tangram_core/dist-frontend/assets/globe-view-DKhftlA1.js.map +1 -0
- tangram_core/dist-frontend/assets/globe-viewport-CPES4D4P.js +2 -0
- tangram_core/dist-frontend/assets/globe-viewport-CPES4D4P.js.map +1 -0
- tangram_core/dist-frontend/assets/image-loader-ClbNCMXW.js +2 -0
- tangram_core/dist-frontend/assets/image-loader-ClbNCMXW.js.map +1 -0
- tangram_core/dist-frontend/assets/inconsolata-latin-400-normal-DTZQ6lD6.woff2 +0 -0
- tangram_core/dist-frontend/assets/inconsolata-latin-400-normal-HYADljCo.woff +0 -0
- tangram_core/dist-frontend/assets/inconsolata-latin-700-normal-ByjKuJjN.woff2 +0 -0
- tangram_core/dist-frontend/assets/inconsolata-latin-700-normal-DzgUY3Rl.woff +0 -0
- tangram_core/dist-frontend/assets/inconsolata-latin-ext-400-normal-BaHVOdFB.woff2 +0 -0
- tangram_core/dist-frontend/assets/inconsolata-latin-ext-400-normal-yvPjCxxx.woff +0 -0
- tangram_core/dist-frontend/assets/inconsolata-latin-ext-700-normal-D0Kpgs_9.woff2 +0 -0
- tangram_core/dist-frontend/assets/inconsolata-latin-ext-700-normal-Dlt-daqV.woff +0 -0
- tangram_core/dist-frontend/assets/inconsolata-vietnamese-400-normal-ByiM2lek.woff +0 -0
- tangram_core/dist-frontend/assets/inconsolata-vietnamese-400-normal-DfC_iMic.woff2 +0 -0
- tangram_core/dist-frontend/assets/inconsolata-vietnamese-700-normal-DLCFFAUf.woff +0 -0
- tangram_core/dist-frontend/assets/inconsolata-vietnamese-700-normal-DuasYmn8.woff2 +0 -0
- tangram_core/dist-frontend/assets/index-UPPakSLR.css +1 -0
- tangram_core/dist-frontend/assets/index-r8T0kY2p.js +821 -0
- tangram_core/dist-frontend/assets/index-r8T0kY2p.js.map +1 -0
- tangram_core/dist-frontend/assets/layer-DO63TrsS.js +555 -0
- tangram_core/dist-frontend/assets/layer-DO63TrsS.js.map +1 -0
- tangram_core/dist-frontend/assets/layer-extension-CZ3zsHuN.js +2 -0
- tangram_core/dist-frontend/assets/layer-extension-CZ3zsHuN.js.map +1 -0
- tangram_core/dist-frontend/assets/mesh-layers-BSECKarm.js +1123 -0
- tangram_core/dist-frontend/assets/mesh-layers-BSECKarm.js.map +1 -0
- tangram_core/dist-frontend/assets/orthographic-viewport-CzZmHDEZ.js +2 -0
- tangram_core/dist-frontend/assets/orthographic-viewport-CzZmHDEZ.js.map +1 -0
- tangram_core/dist-frontend/assets/pick-layers-pass-xhWsgZtf.js +2 -0
- tangram_core/dist-frontend/assets/pick-layers-pass-xhWsgZtf.js.map +1 -0
- tangram_core/dist-frontend/assets/project-CrvReKGW.js +760 -0
- tangram_core/dist-frontend/assets/project-CrvReKGW.js.map +1 -0
- tangram_core/dist-frontend/assets/roboto-condensed-cyrillic-400-italic-4qS3_zkX.woff2 +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-cyrillic-400-italic-CDK-EZBY.woff +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-cyrillic-400-normal-Bgns473E.woff +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-cyrillic-400-normal-_T2aQlWs.woff2 +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-cyrillic-500-normal-CvEVpWxD.woff +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-cyrillic-500-normal-s4PklZE0.woff2 +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-cyrillic-700-normal-9RN-Z7cI.woff2 +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-cyrillic-700-normal-BGMkBBYx.woff +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-cyrillic-ext-400-italic-C7erd-g8.woff +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-cyrillic-ext-400-italic-DR5R5TWx.woff2 +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-cyrillic-ext-400-normal-DGo1Ayjq.woff2 +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-cyrillic-ext-400-normal-WtM1l1qc.woff +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-cyrillic-ext-500-normal-C8FNIdXm.woff2 +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-cyrillic-ext-500-normal-TLDmfi3Q.woff +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-cyrillic-ext-700-normal-CTXjXnze.woff2 +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-cyrillic-ext-700-normal-CWPRiRXS.woff +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-greek-400-italic-CR6qj4Z4.woff2 +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-greek-400-italic-DHRaIs10.woff +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-greek-400-normal-D5vBSIyg.woff2 +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-greek-400-normal-FabMgVmk.woff +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-greek-500-normal-BIN62cw9.woff +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-greek-500-normal-Hsn-wDIp.woff2 +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-greek-700-normal-89Up2Xly.woff +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-greek-700-normal-DWMOA2VK.woff2 +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-latin-400-italic-D_BR-3LG.woff2 +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-latin-400-italic-om57GXsO.woff +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-latin-400-normal-BICmKrXV.woff2 +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-latin-400-normal-D2e7XwB1.woff +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-latin-500-normal-3p2daRJW.woff2 +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-latin-500-normal-Dc9bsamC.woff +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-latin-700-normal-BOl6B_hI.woff +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-latin-700-normal-DRbp0YnP.woff2 +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-latin-ext-400-italic-BXrkWnoY.woff +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-latin-ext-400-italic-Bhem1d5z.woff2 +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-latin-ext-400-normal-DT8nEsYA.woff +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-latin-ext-400-normal-OHaX69iP.woff2 +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-latin-ext-500-normal-CcSTXKtO.woff2 +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-latin-ext-500-normal-JgPl2bDS.woff +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-latin-ext-700-normal-B004qtqu.woff2 +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-latin-ext-700-normal-O6H_RRvN.woff +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-vietnamese-400-italic-BwUYFJ2t.woff2 +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-vietnamese-400-italic-DV8QogUk.woff +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-vietnamese-400-normal-0o1laQ-g.woff2 +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-vietnamese-400-normal-CPsdS8_S.woff +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-vietnamese-500-normal-G9shSJ2z.woff +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-vietnamese-500-normal-TFWhjk13.woff2 +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-vietnamese-700-normal-BtNeb9D6.woff +0 -0
- tangram_core/dist-frontend/assets/roboto-condensed-vietnamese-700-normal-D35V1G0s.woff2 +0 -0
- tangram_core/dist-frontend/assets/shader-BJmsOfPx.js +843 -0
- tangram_core/dist-frontend/assets/shader-BJmsOfPx.js.map +1 -0
- tangram_core/dist-frontend/assets/solid-polygon-layer-DiarVGxh.js +392 -0
- tangram_core/dist-frontend/assets/solid-polygon-layer-DiarVGxh.js.map +1 -0
- tangram_core/dist-frontend/assets/tesselator-49Dw9L5A.js +2 -0
- tangram_core/dist-frontend/assets/tesselator-49Dw9L5A.js.map +1 -0
- tangram_core/dist-frontend/assets/webgl-developer-tools-CZl8qVFg.js +7 -0
- tangram_core/dist-frontend/assets/webgl-developer-tools-CZl8qVFg.js.map +1 -0
- tangram_core/dist-frontend/assets/webgl-device-BY0-CUP6.js +3 -0
- tangram_core/dist-frontend/assets/webgl-device-BY0-CUP6.js.map +1 -0
- tangram_core/dist-frontend/assets/widget-BbOeHGj0.js +2 -0
- tangram_core/dist-frontend/assets/widget-BbOeHGj0.js.map +1 -0
- tangram_core/dist-frontend/core.js +60 -0
- tangram_core/dist-frontend/core.js.map +1 -0
- tangram_core/dist-frontend/extensions.js +609 -0
- tangram_core/dist-frontend/extensions.js.map +1 -0
- tangram_core/dist-frontend/favicon.ico +0 -0
- tangram_core/dist-frontend/favicon.png +0 -0
- tangram_core/dist-frontend/font-awesome.min.css +4 -0
- tangram_core/dist-frontend/fonts/FontAwesome.otf +0 -0
- tangram_core/dist-frontend/fonts/fontawesome-webfont.eot +0 -0
- tangram_core/dist-frontend/fonts/fontawesome-webfont.svg +2671 -0
- tangram_core/dist-frontend/fonts/fontawesome-webfont.ttf +0 -0
- tangram_core/dist-frontend/fonts/fontawesome-webfont.woff +0 -0
- tangram_core/dist-frontend/fonts/fontawesome-webfont.woff2 +0 -0
- tangram_core/dist-frontend/geo-layers.js +115 -0
- tangram_core/dist-frontend/geo-layers.js.map +1 -0
- tangram_core/dist-frontend/index.html +38 -0
- tangram_core/dist-frontend/json.js +3 -0
- tangram_core/dist-frontend/json.js.map +1 -0
- tangram_core/dist-frontend/layers.js +268 -0
- tangram_core/dist-frontend/layers.js.map +1 -0
- tangram_core/dist-frontend/lit-html.js +7 -0
- tangram_core/dist-frontend/lit-html.js.map +1 -0
- tangram_core/dist-frontend/mapbox.js +2 -0
- tangram_core/dist-frontend/mapbox.js.map +1 -0
- tangram_core/dist-frontend/maplibre-gl.js +59 -0
- tangram_core/dist-frontend/maplibre-gl.js.map +1 -0
- tangram_core/dist-frontend/mesh-layers.js +2 -0
- tangram_core/dist-frontend/mesh-layers.js.map +1 -0
- tangram_core/dist-frontend/rs1090_wasm.js +813 -0
- tangram_core/dist-frontend/rs1090_wasm_bg.wasm +0 -0
- tangram_core/dist-frontend/vue.esm-browser.prod.js +13 -0
- tangram_core/dist-frontend/widgets.js +3 -0
- tangram_core/dist-frontend/widgets.js.map +1 -0
- tangram_core/main.ts +16 -0
- tangram_core/plugin.py +70 -0
- tangram_core/plugin.ts +41 -0
- tangram_core/redis.py +89 -0
- tangram_core/user.css +114 -0
- tangram_core/vite-plugin-tangram.mjs +88 -0
- tangram_core-0.2.0.dist-info/METADATA +37 -0
- tangram_core-0.2.0.dist-info/RECORD +171 -0
- tangram_core-0.2.0.dist-info/WHEEL +4 -0
- tangram_core-0.2.0.dist-info/entry_points.txt +2 -0
|
@@ -0,0 +1,813 @@
|
|
|
1
|
+
let wasm;
|
|
2
|
+
|
|
3
|
+
let cachedUint8ArrayMemory0 = null;
|
|
4
|
+
|
|
5
|
+
function getUint8ArrayMemory0() {
|
|
6
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
7
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
8
|
+
}
|
|
9
|
+
return cachedUint8ArrayMemory0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
13
|
+
|
|
14
|
+
cachedTextDecoder.decode();
|
|
15
|
+
|
|
16
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
17
|
+
let numBytesDecoded = 0;
|
|
18
|
+
function decodeText(ptr, len) {
|
|
19
|
+
numBytesDecoded += len;
|
|
20
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
21
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
22
|
+
cachedTextDecoder.decode();
|
|
23
|
+
numBytesDecoded = len;
|
|
24
|
+
}
|
|
25
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function getStringFromWasm0(ptr, len) {
|
|
29
|
+
ptr = ptr >>> 0;
|
|
30
|
+
return decodeText(ptr, len);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
let heap = new Array(128).fill(undefined);
|
|
34
|
+
|
|
35
|
+
heap.push(undefined, null, true, false);
|
|
36
|
+
|
|
37
|
+
let heap_next = heap.length;
|
|
38
|
+
|
|
39
|
+
function addHeapObject(obj) {
|
|
40
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
41
|
+
const idx = heap_next;
|
|
42
|
+
heap_next = heap[idx];
|
|
43
|
+
|
|
44
|
+
heap[idx] = obj;
|
|
45
|
+
return idx;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function getObject(idx) { return heap[idx]; }
|
|
49
|
+
|
|
50
|
+
let WASM_VECTOR_LEN = 0;
|
|
51
|
+
|
|
52
|
+
const cachedTextEncoder = new TextEncoder();
|
|
53
|
+
|
|
54
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
55
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
56
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
57
|
+
view.set(buf);
|
|
58
|
+
return {
|
|
59
|
+
read: arg.length,
|
|
60
|
+
written: buf.length
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
66
|
+
|
|
67
|
+
if (realloc === undefined) {
|
|
68
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
69
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
70
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
71
|
+
WASM_VECTOR_LEN = buf.length;
|
|
72
|
+
return ptr;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
let len = arg.length;
|
|
76
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
77
|
+
|
|
78
|
+
const mem = getUint8ArrayMemory0();
|
|
79
|
+
|
|
80
|
+
let offset = 0;
|
|
81
|
+
|
|
82
|
+
for (; offset < len; offset++) {
|
|
83
|
+
const code = arg.charCodeAt(offset);
|
|
84
|
+
if (code > 0x7F) break;
|
|
85
|
+
mem[ptr + offset] = code;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (offset !== len) {
|
|
89
|
+
if (offset !== 0) {
|
|
90
|
+
arg = arg.slice(offset);
|
|
91
|
+
}
|
|
92
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
93
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
94
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
95
|
+
|
|
96
|
+
offset += ret.written;
|
|
97
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
WASM_VECTOR_LEN = offset;
|
|
101
|
+
return ptr;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
let cachedDataViewMemory0 = null;
|
|
105
|
+
|
|
106
|
+
function getDataViewMemory0() {
|
|
107
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
108
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
109
|
+
}
|
|
110
|
+
return cachedDataViewMemory0;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function handleError(f, args) {
|
|
114
|
+
try {
|
|
115
|
+
return f.apply(this, args);
|
|
116
|
+
} catch (e) {
|
|
117
|
+
wasm.__wbindgen_export_3(addHeapObject(e));
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
function dropObject(idx) {
|
|
122
|
+
if (idx < 132) return;
|
|
123
|
+
heap[idx] = heap_next;
|
|
124
|
+
heap_next = idx;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
function takeObject(idx) {
|
|
128
|
+
const ret = getObject(idx);
|
|
129
|
+
dropObject(idx);
|
|
130
|
+
return ret;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
function debugString(val) {
|
|
134
|
+
// primitive types
|
|
135
|
+
const type = typeof val;
|
|
136
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
137
|
+
return `${val}`;
|
|
138
|
+
}
|
|
139
|
+
if (type == 'string') {
|
|
140
|
+
return `"${val}"`;
|
|
141
|
+
}
|
|
142
|
+
if (type == 'symbol') {
|
|
143
|
+
const description = val.description;
|
|
144
|
+
if (description == null) {
|
|
145
|
+
return 'Symbol';
|
|
146
|
+
} else {
|
|
147
|
+
return `Symbol(${description})`;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
if (type == 'function') {
|
|
151
|
+
const name = val.name;
|
|
152
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
153
|
+
return `Function(${name})`;
|
|
154
|
+
} else {
|
|
155
|
+
return 'Function';
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
// objects
|
|
159
|
+
if (Array.isArray(val)) {
|
|
160
|
+
const length = val.length;
|
|
161
|
+
let debug = '[';
|
|
162
|
+
if (length > 0) {
|
|
163
|
+
debug += debugString(val[0]);
|
|
164
|
+
}
|
|
165
|
+
for(let i = 1; i < length; i++) {
|
|
166
|
+
debug += ', ' + debugString(val[i]);
|
|
167
|
+
}
|
|
168
|
+
debug += ']';
|
|
169
|
+
return debug;
|
|
170
|
+
}
|
|
171
|
+
// Test for built-in
|
|
172
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
173
|
+
let className;
|
|
174
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
175
|
+
className = builtInMatches[1];
|
|
176
|
+
} else {
|
|
177
|
+
// Failed to match the standard '[object ClassName]'
|
|
178
|
+
return toString.call(val);
|
|
179
|
+
}
|
|
180
|
+
if (className == 'Object') {
|
|
181
|
+
// we're a user defined class or Object
|
|
182
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
183
|
+
// easier than looping through ownProperties of `val`.
|
|
184
|
+
try {
|
|
185
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
186
|
+
} catch (_) {
|
|
187
|
+
return 'Object';
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
// errors
|
|
191
|
+
if (val instanceof Error) {
|
|
192
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
193
|
+
}
|
|
194
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
195
|
+
return className;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export function run() {
|
|
199
|
+
try {
|
|
200
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
201
|
+
wasm.run(retptr);
|
|
202
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
203
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
204
|
+
if (r1) {
|
|
205
|
+
throw takeObject(r0);
|
|
206
|
+
}
|
|
207
|
+
} finally {
|
|
208
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
let cachedFloat64ArrayMemory0 = null;
|
|
213
|
+
|
|
214
|
+
function getFloat64ArrayMemory0() {
|
|
215
|
+
if (cachedFloat64ArrayMemory0 === null || cachedFloat64ArrayMemory0.byteLength === 0) {
|
|
216
|
+
cachedFloat64ArrayMemory0 = new Float64Array(wasm.memory.buffer);
|
|
217
|
+
}
|
|
218
|
+
return cachedFloat64ArrayMemory0;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
function passArrayF64ToWasm0(arg, malloc) {
|
|
222
|
+
const ptr = malloc(arg.length * 8, 8) >>> 0;
|
|
223
|
+
getFloat64ArrayMemory0().set(arg, ptr / 8);
|
|
224
|
+
WASM_VECTOR_LEN = arg.length;
|
|
225
|
+
return ptr;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
function isLikeNone(x) {
|
|
229
|
+
return x === undefined || x === null;
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* @param {string} msg
|
|
233
|
+
* @param {Float64Array | null} [reference]
|
|
234
|
+
* @returns {any}
|
|
235
|
+
*/
|
|
236
|
+
export function decode(msg, reference) {
|
|
237
|
+
try {
|
|
238
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
239
|
+
const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
240
|
+
const len0 = WASM_VECTOR_LEN;
|
|
241
|
+
var ptr1 = isLikeNone(reference) ? 0 : passArrayF64ToWasm0(reference, wasm.__wbindgen_export_0);
|
|
242
|
+
var len1 = WASM_VECTOR_LEN;
|
|
243
|
+
wasm.decode(retptr, ptr0, len0, ptr1, len1);
|
|
244
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
245
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
246
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
247
|
+
if (r2) {
|
|
248
|
+
throw takeObject(r1);
|
|
249
|
+
}
|
|
250
|
+
return takeObject(r0);
|
|
251
|
+
} finally {
|
|
252
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* @param {string} msg
|
|
258
|
+
* @returns {any}
|
|
259
|
+
*/
|
|
260
|
+
export function decode_bds05(msg) {
|
|
261
|
+
try {
|
|
262
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
263
|
+
const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
264
|
+
const len0 = WASM_VECTOR_LEN;
|
|
265
|
+
wasm.decode_bds05(retptr, ptr0, len0);
|
|
266
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
267
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
268
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
269
|
+
if (r2) {
|
|
270
|
+
throw takeObject(r1);
|
|
271
|
+
}
|
|
272
|
+
return takeObject(r0);
|
|
273
|
+
} finally {
|
|
274
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* @param {string} msg
|
|
280
|
+
* @returns {any}
|
|
281
|
+
*/
|
|
282
|
+
export function decode_bds10(msg) {
|
|
283
|
+
try {
|
|
284
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
285
|
+
const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
286
|
+
const len0 = WASM_VECTOR_LEN;
|
|
287
|
+
wasm.decode_bds10(retptr, ptr0, len0);
|
|
288
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
289
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
290
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
291
|
+
if (r2) {
|
|
292
|
+
throw takeObject(r1);
|
|
293
|
+
}
|
|
294
|
+
return takeObject(r0);
|
|
295
|
+
} finally {
|
|
296
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* @param {string} msg
|
|
302
|
+
* @returns {any}
|
|
303
|
+
*/
|
|
304
|
+
export function decode_bds17(msg) {
|
|
305
|
+
try {
|
|
306
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
307
|
+
const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
308
|
+
const len0 = WASM_VECTOR_LEN;
|
|
309
|
+
wasm.decode_bds17(retptr, ptr0, len0);
|
|
310
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
311
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
312
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
313
|
+
if (r2) {
|
|
314
|
+
throw takeObject(r1);
|
|
315
|
+
}
|
|
316
|
+
return takeObject(r0);
|
|
317
|
+
} finally {
|
|
318
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* @param {string} msg
|
|
324
|
+
* @returns {any}
|
|
325
|
+
*/
|
|
326
|
+
export function decode_bds18(msg) {
|
|
327
|
+
try {
|
|
328
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
329
|
+
const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
330
|
+
const len0 = WASM_VECTOR_LEN;
|
|
331
|
+
wasm.decode_bds18(retptr, ptr0, len0);
|
|
332
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
333
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
334
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
335
|
+
if (r2) {
|
|
336
|
+
throw takeObject(r1);
|
|
337
|
+
}
|
|
338
|
+
return takeObject(r0);
|
|
339
|
+
} finally {
|
|
340
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* @param {string} msg
|
|
346
|
+
* @returns {any}
|
|
347
|
+
*/
|
|
348
|
+
export function decode_bds19(msg) {
|
|
349
|
+
try {
|
|
350
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
351
|
+
const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
352
|
+
const len0 = WASM_VECTOR_LEN;
|
|
353
|
+
wasm.decode_bds19(retptr, ptr0, len0);
|
|
354
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
355
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
356
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
357
|
+
if (r2) {
|
|
358
|
+
throw takeObject(r1);
|
|
359
|
+
}
|
|
360
|
+
return takeObject(r0);
|
|
361
|
+
} finally {
|
|
362
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* @param {string} msg
|
|
368
|
+
* @returns {any}
|
|
369
|
+
*/
|
|
370
|
+
export function decode_bds20(msg) {
|
|
371
|
+
try {
|
|
372
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
373
|
+
const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
374
|
+
const len0 = WASM_VECTOR_LEN;
|
|
375
|
+
wasm.decode_bds20(retptr, ptr0, len0);
|
|
376
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
377
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
378
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
379
|
+
if (r2) {
|
|
380
|
+
throw takeObject(r1);
|
|
381
|
+
}
|
|
382
|
+
return takeObject(r0);
|
|
383
|
+
} finally {
|
|
384
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* @param {string} msg
|
|
390
|
+
* @returns {any}
|
|
391
|
+
*/
|
|
392
|
+
export function decode_bds21(msg) {
|
|
393
|
+
try {
|
|
394
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
395
|
+
const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
396
|
+
const len0 = WASM_VECTOR_LEN;
|
|
397
|
+
wasm.decode_bds21(retptr, ptr0, len0);
|
|
398
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
399
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
400
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
401
|
+
if (r2) {
|
|
402
|
+
throw takeObject(r1);
|
|
403
|
+
}
|
|
404
|
+
return takeObject(r0);
|
|
405
|
+
} finally {
|
|
406
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* @param {string} msg
|
|
412
|
+
* @returns {any}
|
|
413
|
+
*/
|
|
414
|
+
export function decode_bds30(msg) {
|
|
415
|
+
try {
|
|
416
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
417
|
+
const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
418
|
+
const len0 = WASM_VECTOR_LEN;
|
|
419
|
+
wasm.decode_bds30(retptr, ptr0, len0);
|
|
420
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
421
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
422
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
423
|
+
if (r2) {
|
|
424
|
+
throw takeObject(r1);
|
|
425
|
+
}
|
|
426
|
+
return takeObject(r0);
|
|
427
|
+
} finally {
|
|
428
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* @param {string} msg
|
|
434
|
+
* @returns {any}
|
|
435
|
+
*/
|
|
436
|
+
export function decode_bds40(msg) {
|
|
437
|
+
try {
|
|
438
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
439
|
+
const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
440
|
+
const len0 = WASM_VECTOR_LEN;
|
|
441
|
+
wasm.decode_bds40(retptr, ptr0, len0);
|
|
442
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
443
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
444
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
445
|
+
if (r2) {
|
|
446
|
+
throw takeObject(r1);
|
|
447
|
+
}
|
|
448
|
+
return takeObject(r0);
|
|
449
|
+
} finally {
|
|
450
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* @param {string} msg
|
|
456
|
+
* @returns {any}
|
|
457
|
+
*/
|
|
458
|
+
export function decode_bds44(msg) {
|
|
459
|
+
try {
|
|
460
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
461
|
+
const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
462
|
+
const len0 = WASM_VECTOR_LEN;
|
|
463
|
+
wasm.decode_bds44(retptr, ptr0, len0);
|
|
464
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
465
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
466
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
467
|
+
if (r2) {
|
|
468
|
+
throw takeObject(r1);
|
|
469
|
+
}
|
|
470
|
+
return takeObject(r0);
|
|
471
|
+
} finally {
|
|
472
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* @param {string} msg
|
|
478
|
+
* @returns {any}
|
|
479
|
+
*/
|
|
480
|
+
export function decode_bds45(msg) {
|
|
481
|
+
try {
|
|
482
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
483
|
+
const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
484
|
+
const len0 = WASM_VECTOR_LEN;
|
|
485
|
+
wasm.decode_bds45(retptr, ptr0, len0);
|
|
486
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
487
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
488
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
489
|
+
if (r2) {
|
|
490
|
+
throw takeObject(r1);
|
|
491
|
+
}
|
|
492
|
+
return takeObject(r0);
|
|
493
|
+
} finally {
|
|
494
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* @param {string} msg
|
|
500
|
+
* @returns {any}
|
|
501
|
+
*/
|
|
502
|
+
export function decode_bds50(msg) {
|
|
503
|
+
try {
|
|
504
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
505
|
+
const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
506
|
+
const len0 = WASM_VECTOR_LEN;
|
|
507
|
+
wasm.decode_bds50(retptr, ptr0, len0);
|
|
508
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
509
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
510
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
511
|
+
if (r2) {
|
|
512
|
+
throw takeObject(r1);
|
|
513
|
+
}
|
|
514
|
+
return takeObject(r0);
|
|
515
|
+
} finally {
|
|
516
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* @param {string} msg
|
|
522
|
+
* @returns {any}
|
|
523
|
+
*/
|
|
524
|
+
export function decode_bds60(msg) {
|
|
525
|
+
try {
|
|
526
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
527
|
+
const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
528
|
+
const len0 = WASM_VECTOR_LEN;
|
|
529
|
+
wasm.decode_bds60(retptr, ptr0, len0);
|
|
530
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
531
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
532
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
533
|
+
if (r2) {
|
|
534
|
+
throw takeObject(r1);
|
|
535
|
+
}
|
|
536
|
+
return takeObject(r0);
|
|
537
|
+
} finally {
|
|
538
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* @param {string} msg
|
|
544
|
+
* @returns {any}
|
|
545
|
+
*/
|
|
546
|
+
export function decode_bds65(msg) {
|
|
547
|
+
try {
|
|
548
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
549
|
+
const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
550
|
+
const len0 = WASM_VECTOR_LEN;
|
|
551
|
+
wasm.decode_bds65(retptr, ptr0, len0);
|
|
552
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
553
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
554
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
555
|
+
if (r2) {
|
|
556
|
+
throw takeObject(r1);
|
|
557
|
+
}
|
|
558
|
+
return takeObject(r0);
|
|
559
|
+
} finally {
|
|
560
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* @param {string} icao24
|
|
566
|
+
* @param {string | null} [registration]
|
|
567
|
+
* @returns {any}
|
|
568
|
+
*/
|
|
569
|
+
export function aircraft_information(icao24, registration) {
|
|
570
|
+
try {
|
|
571
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
572
|
+
const ptr0 = passStringToWasm0(icao24, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
573
|
+
const len0 = WASM_VECTOR_LEN;
|
|
574
|
+
var ptr1 = isLikeNone(registration) ? 0 : passStringToWasm0(registration, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
575
|
+
var len1 = WASM_VECTOR_LEN;
|
|
576
|
+
wasm.aircraft_information(retptr, ptr0, len0, ptr1, len1);
|
|
577
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
578
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
579
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
580
|
+
if (r2) {
|
|
581
|
+
throw takeObject(r1);
|
|
582
|
+
}
|
|
583
|
+
return takeObject(r0);
|
|
584
|
+
} finally {
|
|
585
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* @param {string} query
|
|
591
|
+
* @returns {any}
|
|
592
|
+
*/
|
|
593
|
+
export function airport_information(query) {
|
|
594
|
+
try {
|
|
595
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
596
|
+
const ptr0 = passStringToWasm0(query, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
597
|
+
const len0 = WASM_VECTOR_LEN;
|
|
598
|
+
wasm.airport_information(retptr, ptr0, len0);
|
|
599
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
600
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
601
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
602
|
+
if (r2) {
|
|
603
|
+
throw takeObject(r1);
|
|
604
|
+
}
|
|
605
|
+
return takeObject(r0);
|
|
606
|
+
} finally {
|
|
607
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
|
|
612
|
+
|
|
613
|
+
async function __wbg_load(module, imports) {
|
|
614
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
615
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
616
|
+
try {
|
|
617
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
618
|
+
|
|
619
|
+
} catch (e) {
|
|
620
|
+
const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
|
|
621
|
+
|
|
622
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
623
|
+
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", e);
|
|
624
|
+
|
|
625
|
+
} else {
|
|
626
|
+
throw e;
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
const bytes = await module.arrayBuffer();
|
|
632
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
633
|
+
|
|
634
|
+
} else {
|
|
635
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
636
|
+
|
|
637
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
638
|
+
return { instance, module };
|
|
639
|
+
|
|
640
|
+
} else {
|
|
641
|
+
return instance;
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
function __wbg_get_imports() {
|
|
647
|
+
const imports = {};
|
|
648
|
+
imports.wbg = {};
|
|
649
|
+
imports.wbg.__wbg_Error_e17e777aac105295 = function(arg0, arg1) {
|
|
650
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
651
|
+
return addHeapObject(ret);
|
|
652
|
+
};
|
|
653
|
+
imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
|
|
654
|
+
const ret = String(getObject(arg1));
|
|
655
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
656
|
+
const len1 = WASM_VECTOR_LEN;
|
|
657
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
658
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
659
|
+
};
|
|
660
|
+
imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
661
|
+
let deferred0_0;
|
|
662
|
+
let deferred0_1;
|
|
663
|
+
try {
|
|
664
|
+
deferred0_0 = arg0;
|
|
665
|
+
deferred0_1 = arg1;
|
|
666
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
667
|
+
} finally {
|
|
668
|
+
wasm.__wbindgen_export_2(deferred0_0, deferred0_1, 1);
|
|
669
|
+
}
|
|
670
|
+
};
|
|
671
|
+
imports.wbg.__wbg_fromEntries_90d06c670ebbfb45 = function() { return handleError(function (arg0) {
|
|
672
|
+
const ret = Object.fromEntries(getObject(arg0));
|
|
673
|
+
return addHeapObject(ret);
|
|
674
|
+
}, arguments) };
|
|
675
|
+
imports.wbg.__wbg_new_19c25a3f2fa63a02 = function() {
|
|
676
|
+
const ret = new Object();
|
|
677
|
+
return addHeapObject(ret);
|
|
678
|
+
};
|
|
679
|
+
imports.wbg.__wbg_new_1f3a344cf3123716 = function() {
|
|
680
|
+
const ret = new Array();
|
|
681
|
+
return addHeapObject(ret);
|
|
682
|
+
};
|
|
683
|
+
imports.wbg.__wbg_new_2ff1f68f3676ea53 = function() {
|
|
684
|
+
const ret = new Map();
|
|
685
|
+
return addHeapObject(ret);
|
|
686
|
+
};
|
|
687
|
+
imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
|
|
688
|
+
const ret = new Error();
|
|
689
|
+
return addHeapObject(ret);
|
|
690
|
+
};
|
|
691
|
+
imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
692
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
693
|
+
};
|
|
694
|
+
imports.wbg.__wbg_set_90f6c0f7bd8c0415 = function(arg0, arg1, arg2) {
|
|
695
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
696
|
+
};
|
|
697
|
+
imports.wbg.__wbg_set_b7f1cf4fae26fe2a = function(arg0, arg1, arg2) {
|
|
698
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
699
|
+
return addHeapObject(ret);
|
|
700
|
+
};
|
|
701
|
+
imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
702
|
+
const ret = getObject(arg1).stack;
|
|
703
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
704
|
+
const len1 = WASM_VECTOR_LEN;
|
|
705
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
706
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
707
|
+
};
|
|
708
|
+
imports.wbg.__wbg_wbindgendebugstring_99ef257a3ddda34d = function(arg0, arg1) {
|
|
709
|
+
const ret = debugString(getObject(arg1));
|
|
710
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
711
|
+
const len1 = WASM_VECTOR_LEN;
|
|
712
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
713
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
714
|
+
};
|
|
715
|
+
imports.wbg.__wbg_wbindgenisstring_d4fa939789f003b0 = function(arg0) {
|
|
716
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
717
|
+
return ret;
|
|
718
|
+
};
|
|
719
|
+
imports.wbg.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function(arg0, arg1) {
|
|
720
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
721
|
+
};
|
|
722
|
+
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
723
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
724
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
725
|
+
return addHeapObject(ret);
|
|
726
|
+
};
|
|
727
|
+
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
728
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
729
|
+
const ret = arg0;
|
|
730
|
+
return addHeapObject(ret);
|
|
731
|
+
};
|
|
732
|
+
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
733
|
+
const ret = getObject(arg0);
|
|
734
|
+
return addHeapObject(ret);
|
|
735
|
+
};
|
|
736
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
737
|
+
takeObject(arg0);
|
|
738
|
+
};
|
|
739
|
+
|
|
740
|
+
return imports;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
function __wbg_init_memory(imports, memory) {
|
|
744
|
+
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
function __wbg_finalize_init(instance, module) {
|
|
748
|
+
wasm = instance.exports;
|
|
749
|
+
__wbg_init.__wbindgen_wasm_module = module;
|
|
750
|
+
cachedDataViewMemory0 = null;
|
|
751
|
+
cachedFloat64ArrayMemory0 = null;
|
|
752
|
+
cachedUint8ArrayMemory0 = null;
|
|
753
|
+
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
return wasm;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
function initSync(module) {
|
|
760
|
+
if (wasm !== undefined) return wasm;
|
|
761
|
+
|
|
762
|
+
|
|
763
|
+
if (typeof module !== 'undefined') {
|
|
764
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
765
|
+
({module} = module)
|
|
766
|
+
} else {
|
|
767
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
const imports = __wbg_get_imports();
|
|
772
|
+
|
|
773
|
+
__wbg_init_memory(imports);
|
|
774
|
+
|
|
775
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
776
|
+
module = new WebAssembly.Module(module);
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
780
|
+
|
|
781
|
+
return __wbg_finalize_init(instance, module);
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
async function __wbg_init(module_or_path) {
|
|
785
|
+
if (wasm !== undefined) return wasm;
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
if (typeof module_or_path !== 'undefined') {
|
|
789
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
790
|
+
({module_or_path} = module_or_path)
|
|
791
|
+
} else {
|
|
792
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
if (typeof module_or_path === 'undefined') {
|
|
797
|
+
module_or_path = new URL('rs1090_wasm_bg.wasm', import.meta.url);
|
|
798
|
+
}
|
|
799
|
+
const imports = __wbg_get_imports();
|
|
800
|
+
|
|
801
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
802
|
+
module_or_path = fetch(module_or_path);
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
__wbg_init_memory(imports);
|
|
806
|
+
|
|
807
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
808
|
+
|
|
809
|
+
return __wbg_finalize_init(instance, module);
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
export { initSync };
|
|
813
|
+
export default __wbg_init;
|