barcode-detector 1.0.4 → 2.0.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/LICENSE +1 -1
- package/README.md +251 -63
- package/dist/cjs/BarcodeDetector.d.ts +35 -0
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/pure.d.ts +1 -0
- package/dist/cjs/pure.js +3 -0
- package/dist/cjs/side-effects.d.ts +24 -0
- package/dist/cjs/side-effects.js +1 -0
- package/dist/cjs/utils.d.ts +9 -0
- package/dist/es/BarcodeDetector.d.ts +35 -0
- package/dist/es/index.d.ts +2 -0
- package/dist/es/index.js +6 -0
- package/dist/es/pure.d.ts +1 -0
- package/dist/es/pure.js +1930 -0
- package/dist/es/side-effects.d.ts +24 -0
- package/dist/es/side-effects.js +7 -0
- package/dist/es/utils.d.ts +9 -0
- package/dist/iife/index.js +3 -0
- package/dist/iife/pure.js +3 -0
- package/dist/iife/side-effects.js +3 -0
- package/package.json +89 -32
- package/dist/BarcodeDetector.d.ts +0 -2
- package/dist/BarcodeDetectorJsqr.d.ts +0 -10
- package/dist/BarcodeDetectorZXing.d.ts +0 -8
- package/dist/SleepyWorker.d.ts +0 -7
- package/dist/barcode-detector.js +0 -2
- package/dist/barcode-detector.js.map +0 -1
- package/dist/barcode-detector.mjs +0 -2
- package/dist/barcode-detector.mjs.map +0 -1
- package/dist/barcode-detector.umd.js +0 -2
- package/dist/barcode-detector.umd.js.map +0 -1
- package/dist/basic-types.d.ts +0 -14
- package/dist/image-data.d.ts +0 -1
- package/example_codes/aztec.gif +0 -0
- package/example_codes/codabar.png +0 -0
- package/example_codes/code_128.gif +0 -0
- package/example_codes/code_39.png +0 -0
- package/example_codes/code_93.png +0 -0
- package/example_codes/data_matrix.png +0 -0
- package/example_codes/ean_13.png +0 -0
- package/example_codes/ean_8.png +0 -0
- package/example_codes/ift.png +0 -0
- package/example_codes/multi_qr_code.jpeg +0 -0
- package/example_codes/pdf417.png +0 -0
- package/example_codes/qr_code.png +0 -0
- package/example_codes/upc_a.png +0 -0
- package/example_codes/upc_e.png +0 -0
- package/example_codes/upca.gif +0 -0
- package/example_codes/upca.jpeg +0 -0
- package/src/BarcodeDetector.ts +0 -3
- package/src/BarcodeDetectorJsqr.ts +0 -73
- package/src/BarcodeDetectorZXing.ts +0 -114
- package/src/SleepyWorker.ts +0 -30
- package/src/basic-types.ts +0 -33
- package/src/image-data.ts +0 -130
- package/src/worker/build.sh +0 -27
- package/src/worker/inline-worker.js +0 -3
- package/src/worker/tsconfig.json +0 -6
- package/src/worker/worker.ts +0 -57
package/dist/es/pure.js
ADDED
|
@@ -0,0 +1,1930 @@
|
|
|
1
|
+
var ke = (c, p, i) => {
|
|
2
|
+
if (!p.has(c))
|
|
3
|
+
throw TypeError("Cannot " + i);
|
|
4
|
+
};
|
|
5
|
+
var Be = (c, p, i) => (ke(c, p, "read from private field"), i ? i.call(c) : p.get(c)), Ue = (c, p, i) => {
|
|
6
|
+
if (p.has(c))
|
|
7
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
+
p instanceof WeakSet ? p.add(c) : p.set(c, i);
|
|
9
|
+
}, Ve = (c, p, i, g) => (ke(c, p, "write to private field"), g ? g.call(c, i) : p.set(c, i), i);
|
|
10
|
+
const Le = [
|
|
11
|
+
"aztec",
|
|
12
|
+
"code_128",
|
|
13
|
+
"code_39",
|
|
14
|
+
"code_93",
|
|
15
|
+
"codabar",
|
|
16
|
+
"data_matrix",
|
|
17
|
+
"ean_13",
|
|
18
|
+
"ean_8",
|
|
19
|
+
"itf",
|
|
20
|
+
"pdf417",
|
|
21
|
+
"qr_code",
|
|
22
|
+
"upc_a",
|
|
23
|
+
"upc_e",
|
|
24
|
+
"unknown"
|
|
25
|
+
];
|
|
26
|
+
function Ia(c) {
|
|
27
|
+
if (Xe(c))
|
|
28
|
+
return {
|
|
29
|
+
width: c.naturalWidth,
|
|
30
|
+
height: c.naturalHeight
|
|
31
|
+
};
|
|
32
|
+
if (qe(c))
|
|
33
|
+
return {
|
|
34
|
+
width: c.width.baseVal.value,
|
|
35
|
+
height: c.height.baseVal.value
|
|
36
|
+
};
|
|
37
|
+
if (Ze(c))
|
|
38
|
+
return {
|
|
39
|
+
width: c.videoWidth,
|
|
40
|
+
height: c.videoHeight
|
|
41
|
+
};
|
|
42
|
+
if (Je(c))
|
|
43
|
+
return {
|
|
44
|
+
width: c.width,
|
|
45
|
+
height: c.height
|
|
46
|
+
};
|
|
47
|
+
if (tr(c))
|
|
48
|
+
return {
|
|
49
|
+
width: c.displayWidth,
|
|
50
|
+
height: c.displayHeight
|
|
51
|
+
};
|
|
52
|
+
if (Qe(c))
|
|
53
|
+
return {
|
|
54
|
+
width: c.width,
|
|
55
|
+
height: c.height
|
|
56
|
+
};
|
|
57
|
+
if (Ke(c))
|
|
58
|
+
return {
|
|
59
|
+
width: c.width,
|
|
60
|
+
height: c.height
|
|
61
|
+
};
|
|
62
|
+
throw new TypeError(
|
|
63
|
+
"The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'."
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
function Xe(c) {
|
|
67
|
+
try {
|
|
68
|
+
return c instanceof HTMLImageElement;
|
|
69
|
+
} catch {
|
|
70
|
+
return !1;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
function qe(c) {
|
|
74
|
+
try {
|
|
75
|
+
return c instanceof SVGImageElement;
|
|
76
|
+
} catch {
|
|
77
|
+
return !1;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
function Ze(c) {
|
|
81
|
+
try {
|
|
82
|
+
return c instanceof HTMLVideoElement;
|
|
83
|
+
} catch {
|
|
84
|
+
return !1;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
function Qe(c) {
|
|
88
|
+
try {
|
|
89
|
+
return c instanceof HTMLCanvasElement;
|
|
90
|
+
} catch {
|
|
91
|
+
return !1;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
function Je(c) {
|
|
95
|
+
try {
|
|
96
|
+
return c instanceof ImageBitmap;
|
|
97
|
+
} catch {
|
|
98
|
+
return !1;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
function Ke(c) {
|
|
102
|
+
try {
|
|
103
|
+
return c instanceof OffscreenCanvas;
|
|
104
|
+
} catch {
|
|
105
|
+
return !1;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
function tr(c) {
|
|
109
|
+
try {
|
|
110
|
+
return c instanceof VideoFrame;
|
|
111
|
+
} catch {
|
|
112
|
+
return !1;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
function Wa(c) {
|
|
116
|
+
try {
|
|
117
|
+
return c instanceof Blob;
|
|
118
|
+
} catch {
|
|
119
|
+
return !1;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
function Ha(c) {
|
|
123
|
+
try {
|
|
124
|
+
return c instanceof ImageData;
|
|
125
|
+
} catch {
|
|
126
|
+
return !1;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
function ka(c, p) {
|
|
130
|
+
try {
|
|
131
|
+
const i = new OffscreenCanvas(c, p);
|
|
132
|
+
if (i.getContext("2d") instanceof OffscreenCanvasRenderingContext2D)
|
|
133
|
+
return i;
|
|
134
|
+
throw void 0;
|
|
135
|
+
} catch {
|
|
136
|
+
const i = document.createElement("canvas");
|
|
137
|
+
return i.width = c, i.height = p, i;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
async function er(c) {
|
|
141
|
+
if (Xe(c) && !await La(c))
|
|
142
|
+
throw new DOMException(
|
|
143
|
+
"Failed to load or decode HTMLImageElement.",
|
|
144
|
+
"InvalidStateError"
|
|
145
|
+
);
|
|
146
|
+
if (qe(c) && !await za(c))
|
|
147
|
+
throw new DOMException(
|
|
148
|
+
"Failed to load or decode SVGImageElement.",
|
|
149
|
+
"InvalidStateError"
|
|
150
|
+
);
|
|
151
|
+
if (tr(c) && Ya(c))
|
|
152
|
+
throw new DOMException("VideoFrame is closed.", "InvalidStateError");
|
|
153
|
+
if (Ze(c) && (c.readyState === 0 || c.readyState === 1))
|
|
154
|
+
throw new DOMException("Invalid element or state.", "InvalidStateError");
|
|
155
|
+
if (Je(c) && Ga(c))
|
|
156
|
+
throw new DOMException(
|
|
157
|
+
"The image source is detached.",
|
|
158
|
+
"InvalidStateError"
|
|
159
|
+
);
|
|
160
|
+
const { width: p, height: i } = Ia(c);
|
|
161
|
+
if (p === 0 || i === 0)
|
|
162
|
+
return null;
|
|
163
|
+
const w = ka(p, i).getContext("2d");
|
|
164
|
+
w.drawImage(c, 0, 0);
|
|
165
|
+
try {
|
|
166
|
+
return w.getImageData(0, 0, p, i);
|
|
167
|
+
} catch {
|
|
168
|
+
throw new DOMException("Source would taint origin.", "SecurityError");
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
async function Ba(c) {
|
|
172
|
+
let p;
|
|
173
|
+
try {
|
|
174
|
+
if (createImageBitmap)
|
|
175
|
+
p = await createImageBitmap(c);
|
|
176
|
+
else {
|
|
177
|
+
p = new Image();
|
|
178
|
+
let g = "";
|
|
179
|
+
try {
|
|
180
|
+
g = URL.createObjectURL(c), p.src = g, await p.decode();
|
|
181
|
+
} finally {
|
|
182
|
+
URL.revokeObjectURL(g);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
} catch {
|
|
186
|
+
throw new DOMException(
|
|
187
|
+
"Failed to load or decode Blob.",
|
|
188
|
+
"InvalidStateError"
|
|
189
|
+
);
|
|
190
|
+
}
|
|
191
|
+
return await er(p);
|
|
192
|
+
}
|
|
193
|
+
function Ua(c) {
|
|
194
|
+
const { width: p, height: i } = c;
|
|
195
|
+
if (p === 0 || i === 0)
|
|
196
|
+
return null;
|
|
197
|
+
const g = c.getContext("2d");
|
|
198
|
+
try {
|
|
199
|
+
return g.getImageData(0, 0, p, i);
|
|
200
|
+
} catch {
|
|
201
|
+
throw new DOMException("Source would taint origin.", "SecurityError");
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
async function Va(c) {
|
|
205
|
+
if (Wa(c))
|
|
206
|
+
return await Ba(c);
|
|
207
|
+
if (Ha(c)) {
|
|
208
|
+
if (Na(c))
|
|
209
|
+
throw new DOMException(
|
|
210
|
+
"The image data has been detached.",
|
|
211
|
+
"InvalidStateError"
|
|
212
|
+
);
|
|
213
|
+
return c;
|
|
214
|
+
}
|
|
215
|
+
return Qe(c) || Ke(c) ? Ua(c) : await er(c);
|
|
216
|
+
}
|
|
217
|
+
async function La(c) {
|
|
218
|
+
try {
|
|
219
|
+
return await c.decode(), !0;
|
|
220
|
+
} catch {
|
|
221
|
+
return !1;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
async function za(c) {
|
|
225
|
+
var p;
|
|
226
|
+
try {
|
|
227
|
+
return await ((p = c.decode) == null ? void 0 : p.call(c)), !0;
|
|
228
|
+
} catch {
|
|
229
|
+
return !1;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
function Ya(c) {
|
|
233
|
+
return c.format === null;
|
|
234
|
+
}
|
|
235
|
+
function Na(c) {
|
|
236
|
+
return c.data.buffer.byteLength === 0;
|
|
237
|
+
}
|
|
238
|
+
function Ga(c) {
|
|
239
|
+
return c.width === 0 && c.height === 0;
|
|
240
|
+
}
|
|
241
|
+
function ze(c, p) {
|
|
242
|
+
return c instanceof DOMException ? new DOMException(`${p}: ${c.message}`, c.name) : c instanceof Error ? new c.constructor(`${p}: ${c.message}`) : new Error(`${p}: ${c}`);
|
|
243
|
+
}
|
|
244
|
+
const Ye = (c) => {
|
|
245
|
+
let p;
|
|
246
|
+
const i = /* @__PURE__ */ new Set(), g = (M, Y) => {
|
|
247
|
+
const B = typeof M == "function" ? M(p) : M;
|
|
248
|
+
if (!Object.is(B, p)) {
|
|
249
|
+
const j = p;
|
|
250
|
+
p = (Y != null ? Y : typeof B != "object") ? B : Object.assign({}, p, B), i.forEach((N) => N(p, j));
|
|
251
|
+
}
|
|
252
|
+
}, w = () => p, E = { setState: g, getState: w, subscribe: (M) => (i.add(M), () => i.delete(M)), destroy: () => {
|
|
253
|
+
i.clear();
|
|
254
|
+
} };
|
|
255
|
+
return p = c(g, w, E), E;
|
|
256
|
+
}, Xa = (c) => c ? Ye(c) : Ye, qa = {
|
|
257
|
+
locateFile: (c, p) => {
|
|
258
|
+
var i;
|
|
259
|
+
const g = (i = c.match(/_(.+?)\.wasm$/)) == null ? void 0 : i[1];
|
|
260
|
+
return g ? `https://cdn.jsdelivr.net/npm/@sec-ant/zxing-wasm@2.1.4/dist/${g}/${c}` : p + c;
|
|
261
|
+
}
|
|
262
|
+
}, ft = Xa()(() => ({
|
|
263
|
+
zxingModuleWeakMap: /* @__PURE__ */ new WeakMap(),
|
|
264
|
+
zxingModuleOverrides: qa
|
|
265
|
+
}));
|
|
266
|
+
function no(c) {
|
|
267
|
+
ft.setState({
|
|
268
|
+
zxingModuleOverrides: c
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
function rr(c, p = ft.getState().zxingModuleOverrides) {
|
|
272
|
+
const { zxingModuleWeakMap: i } = ft.getState(), g = i.get(
|
|
273
|
+
c
|
|
274
|
+
);
|
|
275
|
+
if (g && Object.is(p, ft.getState().zxingModuleOverrides))
|
|
276
|
+
return g;
|
|
277
|
+
{
|
|
278
|
+
ft.setState({
|
|
279
|
+
zxingModuleOverrides: p
|
|
280
|
+
});
|
|
281
|
+
const w = c(p);
|
|
282
|
+
return i.set(c, w), w;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
const Ne = [
|
|
286
|
+
"Aztec",
|
|
287
|
+
"Codabar",
|
|
288
|
+
"Code128",
|
|
289
|
+
"Code39",
|
|
290
|
+
"Code93",
|
|
291
|
+
"DataBar",
|
|
292
|
+
"DataBarExpanded",
|
|
293
|
+
"DataMatrix",
|
|
294
|
+
"EAN-13",
|
|
295
|
+
"EAN-8",
|
|
296
|
+
"ITF",
|
|
297
|
+
"Linear-Codes",
|
|
298
|
+
"Matrix-Codes",
|
|
299
|
+
"MaxiCode",
|
|
300
|
+
"MicroQRCode",
|
|
301
|
+
"None",
|
|
302
|
+
"PDF417",
|
|
303
|
+
"QRCode",
|
|
304
|
+
"UPC-A",
|
|
305
|
+
"UPC-E"
|
|
306
|
+
], nt = {
|
|
307
|
+
tryHarder: !0,
|
|
308
|
+
formats: [],
|
|
309
|
+
maxSymbols: 255
|
|
310
|
+
};
|
|
311
|
+
async function Za(c, {
|
|
312
|
+
tryHarder: p = nt.tryHarder,
|
|
313
|
+
formats: i = nt.formats,
|
|
314
|
+
maxSymbols: g = nt.maxSymbols
|
|
315
|
+
} = nt, w) {
|
|
316
|
+
const E = await rr(
|
|
317
|
+
w,
|
|
318
|
+
ft.getState().zxingModuleOverrides
|
|
319
|
+
), {
|
|
320
|
+
data: M,
|
|
321
|
+
width: Y,
|
|
322
|
+
height: B,
|
|
323
|
+
data: { byteLength: j }
|
|
324
|
+
} = c, N = E._malloc(j);
|
|
325
|
+
E.HEAP8.set(M, N);
|
|
326
|
+
const X = E.readBarcodesFromPixmap(
|
|
327
|
+
N,
|
|
328
|
+
Y,
|
|
329
|
+
B,
|
|
330
|
+
p,
|
|
331
|
+
Qa(i),
|
|
332
|
+
g
|
|
333
|
+
);
|
|
334
|
+
E._free(N);
|
|
335
|
+
const V = [];
|
|
336
|
+
for (let U = 0; U < X.size(); ++U) {
|
|
337
|
+
const q = X.get(U);
|
|
338
|
+
V.push({
|
|
339
|
+
...q,
|
|
340
|
+
format: Ja(q.format)
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
return V;
|
|
344
|
+
}
|
|
345
|
+
function Qa(c) {
|
|
346
|
+
return c.join("|");
|
|
347
|
+
}
|
|
348
|
+
function Ja(c) {
|
|
349
|
+
const p = Ge(c);
|
|
350
|
+
let i = 0, g = Ne.length - 1;
|
|
351
|
+
for (; i <= g; ) {
|
|
352
|
+
const w = Math.floor((i + g) / 2), E = Ne[w], M = Ge(E);
|
|
353
|
+
if (M === p)
|
|
354
|
+
return E;
|
|
355
|
+
M < p ? i = w + 1 : g = w - 1;
|
|
356
|
+
}
|
|
357
|
+
return "None";
|
|
358
|
+
}
|
|
359
|
+
function Ge(c) {
|
|
360
|
+
return c.toLowerCase().replace(/_-\[\]/g, "");
|
|
361
|
+
}
|
|
362
|
+
var nr = (() => {
|
|
363
|
+
var c = import.meta.url;
|
|
364
|
+
return function(p = {}) {
|
|
365
|
+
var i = p, g, w;
|
|
366
|
+
i.ready = new Promise((t, e) => {
|
|
367
|
+
g = t, w = e;
|
|
368
|
+
});
|
|
369
|
+
var E = Object.assign({}, i), M = "./this.program", Y = typeof window == "object", B = typeof importScripts == "function";
|
|
370
|
+
typeof process == "object" && typeof process.versions == "object" && process.versions.node;
|
|
371
|
+
var j = "";
|
|
372
|
+
function N(t) {
|
|
373
|
+
return i.locateFile ? i.locateFile(t, j) : j + t;
|
|
374
|
+
}
|
|
375
|
+
var X;
|
|
376
|
+
(Y || B) && (B ? j = self.location.href : typeof document < "u" && document.currentScript && (j = document.currentScript.src), c && (j = c), j.indexOf("blob:") !== 0 ? j = j.substr(0, j.replace(/[?#].*/, "").lastIndexOf("/") + 1) : j = "", B && (X = (t) => {
|
|
377
|
+
var e = new XMLHttpRequest();
|
|
378
|
+
return e.open("GET", t, !1), e.responseType = "arraybuffer", e.send(null), new Uint8Array(e.response);
|
|
379
|
+
})), i.print || console.log.bind(console);
|
|
380
|
+
var V = i.printErr || console.error.bind(console);
|
|
381
|
+
Object.assign(i, E), E = null, i.arguments && i.arguments, i.thisProgram && (M = i.thisProgram), i.quit && i.quit;
|
|
382
|
+
var U;
|
|
383
|
+
i.wasmBinary && (U = i.wasmBinary), i.noExitRuntime, typeof WebAssembly != "object" && _t("no native wasm support detected");
|
|
384
|
+
var q, dt = !1, L, W, ht, Ct, H, A, qt, Zt;
|
|
385
|
+
function Qt() {
|
|
386
|
+
var t = q.buffer;
|
|
387
|
+
i.HEAP8 = L = new Int8Array(t), i.HEAP16 = ht = new Int16Array(t), i.HEAPU8 = W = new Uint8Array(t), i.HEAPU16 = Ct = new Uint16Array(t), i.HEAP32 = H = new Int32Array(t), i.HEAPU32 = A = new Uint32Array(t), i.HEAPF32 = qt = new Float32Array(t), i.HEAPF64 = Zt = new Float64Array(t);
|
|
388
|
+
}
|
|
389
|
+
var Jt, Kt = [], te = [], ee = [];
|
|
390
|
+
function or() {
|
|
391
|
+
if (i.preRun)
|
|
392
|
+
for (typeof i.preRun == "function" && (i.preRun = [i.preRun]); i.preRun.length; )
|
|
393
|
+
ur(i.preRun.shift());
|
|
394
|
+
It(Kt);
|
|
395
|
+
}
|
|
396
|
+
function ir() {
|
|
397
|
+
It(te);
|
|
398
|
+
}
|
|
399
|
+
function sr() {
|
|
400
|
+
if (i.postRun)
|
|
401
|
+
for (typeof i.postRun == "function" && (i.postRun = [i.postRun]); i.postRun.length; )
|
|
402
|
+
lr(i.postRun.shift());
|
|
403
|
+
It(ee);
|
|
404
|
+
}
|
|
405
|
+
function ur(t) {
|
|
406
|
+
Kt.unshift(t);
|
|
407
|
+
}
|
|
408
|
+
function cr(t) {
|
|
409
|
+
te.unshift(t);
|
|
410
|
+
}
|
|
411
|
+
function lr(t) {
|
|
412
|
+
ee.unshift(t);
|
|
413
|
+
}
|
|
414
|
+
var at = 0, pt = null;
|
|
415
|
+
function fr(t) {
|
|
416
|
+
at++, i.monitorRunDependencies && i.monitorRunDependencies(at);
|
|
417
|
+
}
|
|
418
|
+
function dr(t) {
|
|
419
|
+
if (at--, i.monitorRunDependencies && i.monitorRunDependencies(at), at == 0 && pt) {
|
|
420
|
+
var e = pt;
|
|
421
|
+
pt = null, e();
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
function _t(t) {
|
|
425
|
+
i.onAbort && i.onAbort(t), t = "Aborted(" + t + ")", V(t), dt = !0, t += ". Build with -sASSERTIONS for more info.";
|
|
426
|
+
var e = new WebAssembly.RuntimeError(t);
|
|
427
|
+
throw w(e), e;
|
|
428
|
+
}
|
|
429
|
+
var hr = "data:application/octet-stream;base64,";
|
|
430
|
+
function re(t) {
|
|
431
|
+
return t.startsWith(hr);
|
|
432
|
+
}
|
|
433
|
+
var ot;
|
|
434
|
+
i.locateFile ? (ot = "zxing_reader.wasm", re(ot) || (ot = N(ot))) : ot = new URL("/reader/zxing_reader.wasm", self.location).href;
|
|
435
|
+
function ne(t) {
|
|
436
|
+
if (t == ot && U)
|
|
437
|
+
return new Uint8Array(U);
|
|
438
|
+
if (X)
|
|
439
|
+
return X(t);
|
|
440
|
+
throw "both async and sync fetching of the wasm failed";
|
|
441
|
+
}
|
|
442
|
+
function pr(t) {
|
|
443
|
+
return !U && (Y || B) && typeof fetch == "function" ? fetch(t, { credentials: "same-origin" }).then((e) => {
|
|
444
|
+
if (!e.ok)
|
|
445
|
+
throw "failed to load wasm binary file at '" + t + "'";
|
|
446
|
+
return e.arrayBuffer();
|
|
447
|
+
}).catch(() => ne(t)) : Promise.resolve().then(() => ne(t));
|
|
448
|
+
}
|
|
449
|
+
function ae(t, e, r) {
|
|
450
|
+
return pr(t).then((n) => WebAssembly.instantiate(n, e)).then((n) => n).then(r, (n) => {
|
|
451
|
+
V(`failed to asynchronously prepare wasm: ${n}`), _t(n);
|
|
452
|
+
});
|
|
453
|
+
}
|
|
454
|
+
function yr(t, e, r, n) {
|
|
455
|
+
return !t && typeof WebAssembly.instantiateStreaming == "function" && !re(e) && typeof fetch == "function" ? fetch(e, { credentials: "same-origin" }).then((a) => {
|
|
456
|
+
var o = WebAssembly.instantiateStreaming(a, r);
|
|
457
|
+
return o.then(n, function(s) {
|
|
458
|
+
return V(`wasm streaming compile failed: ${s}`), V("falling back to ArrayBuffer instantiation"), ae(e, r, n);
|
|
459
|
+
});
|
|
460
|
+
}) : ae(e, r, n);
|
|
461
|
+
}
|
|
462
|
+
function mr() {
|
|
463
|
+
var t = { a: na };
|
|
464
|
+
function e(n, a) {
|
|
465
|
+
var o = n.exports;
|
|
466
|
+
return S = o, q = S.qa, Qt(), Jt = S.ua, cr(S.ra), dr(), o;
|
|
467
|
+
}
|
|
468
|
+
fr();
|
|
469
|
+
function r(n) {
|
|
470
|
+
e(n.instance);
|
|
471
|
+
}
|
|
472
|
+
if (i.instantiateWasm)
|
|
473
|
+
try {
|
|
474
|
+
return i.instantiateWasm(t, e);
|
|
475
|
+
} catch (n) {
|
|
476
|
+
V(`Module.instantiateWasm callback failed with error: ${n}`), w(n);
|
|
477
|
+
}
|
|
478
|
+
return yr(U, ot, t, r).catch(w), {};
|
|
479
|
+
}
|
|
480
|
+
var It = (t) => {
|
|
481
|
+
for (; t.length > 0; )
|
|
482
|
+
t.shift()(i);
|
|
483
|
+
}, Tt = [], Pt = 0, vr = (t) => {
|
|
484
|
+
var e = new Et(t);
|
|
485
|
+
return e.get_caught() || (e.set_caught(!0), Pt--), e.set_rethrown(!1), Tt.push(e), Me(e.excPtr), e.get_exception_ptr();
|
|
486
|
+
}, Z = 0, gr = () => {
|
|
487
|
+
$(0, 0);
|
|
488
|
+
var t = Tt.pop();
|
|
489
|
+
Oe(t.excPtr), Z = 0;
|
|
490
|
+
};
|
|
491
|
+
function Et(t) {
|
|
492
|
+
this.excPtr = t, this.ptr = t - 24, this.set_type = function(e) {
|
|
493
|
+
A[this.ptr + 4 >> 2] = e;
|
|
494
|
+
}, this.get_type = function() {
|
|
495
|
+
return A[this.ptr + 4 >> 2];
|
|
496
|
+
}, this.set_destructor = function(e) {
|
|
497
|
+
A[this.ptr + 8 >> 2] = e;
|
|
498
|
+
}, this.get_destructor = function() {
|
|
499
|
+
return A[this.ptr + 8 >> 2];
|
|
500
|
+
}, this.set_caught = function(e) {
|
|
501
|
+
e = e ? 1 : 0, L[this.ptr + 12 >> 0] = e;
|
|
502
|
+
}, this.get_caught = function() {
|
|
503
|
+
return L[this.ptr + 12 >> 0] != 0;
|
|
504
|
+
}, this.set_rethrown = function(e) {
|
|
505
|
+
e = e ? 1 : 0, L[this.ptr + 13 >> 0] = e;
|
|
506
|
+
}, this.get_rethrown = function() {
|
|
507
|
+
return L[this.ptr + 13 >> 0] != 0;
|
|
508
|
+
}, this.init = function(e, r) {
|
|
509
|
+
this.set_adjusted_ptr(0), this.set_type(e), this.set_destructor(r);
|
|
510
|
+
}, this.set_adjusted_ptr = function(e) {
|
|
511
|
+
A[this.ptr + 16 >> 2] = e;
|
|
512
|
+
}, this.get_adjusted_ptr = function() {
|
|
513
|
+
return A[this.ptr + 16 >> 2];
|
|
514
|
+
}, this.get_exception_ptr = function() {
|
|
515
|
+
var e = Re(this.get_type());
|
|
516
|
+
if (e)
|
|
517
|
+
return A[this.excPtr >> 2];
|
|
518
|
+
var r = this.get_adjusted_ptr();
|
|
519
|
+
return r !== 0 ? r : this.excPtr;
|
|
520
|
+
};
|
|
521
|
+
}
|
|
522
|
+
var wr = (t) => {
|
|
523
|
+
throw Z || (Z = t), Z;
|
|
524
|
+
}, Wt = (t) => {
|
|
525
|
+
var e = Z;
|
|
526
|
+
if (!e)
|
|
527
|
+
return $t(0), 0;
|
|
528
|
+
var r = new Et(e);
|
|
529
|
+
r.set_adjusted_ptr(e);
|
|
530
|
+
var n = r.get_type();
|
|
531
|
+
if (!n)
|
|
532
|
+
return $t(0), e;
|
|
533
|
+
for (var a in t) {
|
|
534
|
+
var o = t[a];
|
|
535
|
+
if (o === 0 || o === n)
|
|
536
|
+
break;
|
|
537
|
+
var s = r.ptr + 16;
|
|
538
|
+
if (je(o, n, s))
|
|
539
|
+
return $t(o), e;
|
|
540
|
+
}
|
|
541
|
+
return $t(n), e;
|
|
542
|
+
}, $r = () => Wt([]), br = (t) => Wt([t]), Cr = (t, e) => Wt([t, e]), _r = (t) => {
|
|
543
|
+
var e = new Et(t).get_exception_ptr();
|
|
544
|
+
return e;
|
|
545
|
+
}, Tr = () => {
|
|
546
|
+
var t = Tt.pop();
|
|
547
|
+
t || _t("no exception to throw");
|
|
548
|
+
var e = t.excPtr;
|
|
549
|
+
throw t.get_rethrown() || (Tt.push(t), t.set_rethrown(!0), t.set_caught(!1), Pt++), Z = e, Z;
|
|
550
|
+
}, Pr = (t, e, r) => {
|
|
551
|
+
var n = new Et(t);
|
|
552
|
+
throw n.init(e, r), Z = t, Pt++, Z;
|
|
553
|
+
}, Er = () => Pt, xt = {}, oe = (t) => {
|
|
554
|
+
for (; t.length; ) {
|
|
555
|
+
var e = t.pop(), r = t.pop();
|
|
556
|
+
r(e);
|
|
557
|
+
}
|
|
558
|
+
};
|
|
559
|
+
function Ht(t) {
|
|
560
|
+
return this.fromWireType(H[t >> 2]);
|
|
561
|
+
}
|
|
562
|
+
var ct = {}, it = {}, Dt = {}, ie = void 0, At = (t) => {
|
|
563
|
+
throw new ie(t);
|
|
564
|
+
}, st = (t, e, r) => {
|
|
565
|
+
t.forEach(function(u) {
|
|
566
|
+
Dt[u] = e;
|
|
567
|
+
});
|
|
568
|
+
function n(u) {
|
|
569
|
+
var l = r(u);
|
|
570
|
+
l.length !== t.length && At("Mismatched type converter count");
|
|
571
|
+
for (var f = 0; f < t.length; ++f)
|
|
572
|
+
Q(t[f], l[f]);
|
|
573
|
+
}
|
|
574
|
+
var a = new Array(e.length), o = [], s = 0;
|
|
575
|
+
e.forEach((u, l) => {
|
|
576
|
+
it.hasOwnProperty(u) ? a[l] = it[u] : (o.push(u), ct.hasOwnProperty(u) || (ct[u] = []), ct[u].push(() => {
|
|
577
|
+
a[l] = it[u], ++s, s === o.length && n(a);
|
|
578
|
+
}));
|
|
579
|
+
}), o.length === 0 && n(a);
|
|
580
|
+
}, xr = (t) => {
|
|
581
|
+
var e = xt[t];
|
|
582
|
+
delete xt[t];
|
|
583
|
+
var r = e.rawConstructor, n = e.rawDestructor, a = e.fields, o = a.map((s) => s.getterReturnType).concat(a.map((s) => s.setterArgumentType));
|
|
584
|
+
st([t], o, (s) => {
|
|
585
|
+
var u = {};
|
|
586
|
+
return a.forEach((l, f) => {
|
|
587
|
+
var h = l.fieldName, m = s[f], v = l.getter, _ = l.getterContext, x = s[f + a.length], R = l.setter, D = l.setterContext;
|
|
588
|
+
u[h] = { read: (I) => m.fromWireType(v(_, I)), write: (I, d) => {
|
|
589
|
+
var y = [];
|
|
590
|
+
R(D, I, x.toWireType(y, d)), oe(y);
|
|
591
|
+
} };
|
|
592
|
+
}), [{ name: e.name, fromWireType: (l) => {
|
|
593
|
+
var f = {};
|
|
594
|
+
for (var h in u)
|
|
595
|
+
f[h] = u[h].read(l);
|
|
596
|
+
return n(l), f;
|
|
597
|
+
}, toWireType: (l, f) => {
|
|
598
|
+
for (var h in u)
|
|
599
|
+
if (!(h in f))
|
|
600
|
+
throw new TypeError(`Missing field: "${h}"`);
|
|
601
|
+
var m = r();
|
|
602
|
+
for (h in u)
|
|
603
|
+
u[h].write(m, f[h]);
|
|
604
|
+
return l !== null && l.push(n, m), m;
|
|
605
|
+
}, argPackAdvance: J, readValueFromPointer: Ht, destructorFunction: n }];
|
|
606
|
+
});
|
|
607
|
+
}, Dr = (t, e, r, n, a) => {
|
|
608
|
+
}, Ar = () => {
|
|
609
|
+
for (var t = new Array(256), e = 0; e < 256; ++e)
|
|
610
|
+
t[e] = String.fromCharCode(e);
|
|
611
|
+
se = t;
|
|
612
|
+
}, se = void 0, k = (t) => {
|
|
613
|
+
for (var e = "", r = t; W[r]; )
|
|
614
|
+
e += se[W[r++]];
|
|
615
|
+
return e;
|
|
616
|
+
}, lt = void 0, T = (t) => {
|
|
617
|
+
throw new lt(t);
|
|
618
|
+
};
|
|
619
|
+
function Sr(t, e, r = {}) {
|
|
620
|
+
var n = e.name;
|
|
621
|
+
if (t || T(`type "${n}" must have a positive integer typeid pointer`), it.hasOwnProperty(t)) {
|
|
622
|
+
if (r.ignoreDuplicateRegistrations)
|
|
623
|
+
return;
|
|
624
|
+
T(`Cannot register type '${n}' twice`);
|
|
625
|
+
}
|
|
626
|
+
if (it[t] = e, delete Dt[t], ct.hasOwnProperty(t)) {
|
|
627
|
+
var a = ct[t];
|
|
628
|
+
delete ct[t], a.forEach((o) => o());
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
function Q(t, e, r = {}) {
|
|
632
|
+
if (!("argPackAdvance" in e))
|
|
633
|
+
throw new TypeError("registerType registeredInstance requires argPackAdvance");
|
|
634
|
+
return Sr(t, e, r);
|
|
635
|
+
}
|
|
636
|
+
var J = 8, Fr = (t, e, r, n) => {
|
|
637
|
+
e = k(e), Q(t, { name: e, fromWireType: function(a) {
|
|
638
|
+
return !!a;
|
|
639
|
+
}, toWireType: function(a, o) {
|
|
640
|
+
return o ? r : n;
|
|
641
|
+
}, argPackAdvance: J, readValueFromPointer: function(a) {
|
|
642
|
+
return this.fromWireType(W[a]);
|
|
643
|
+
}, destructorFunction: null });
|
|
644
|
+
};
|
|
645
|
+
function Or(t) {
|
|
646
|
+
if (!(this instanceof et) || !(t instanceof et))
|
|
647
|
+
return !1;
|
|
648
|
+
for (var e = this.$$.ptrType.registeredClass, r = this.$$.ptr, n = t.$$.ptrType.registeredClass, a = t.$$.ptr; e.baseClass; )
|
|
649
|
+
r = e.upcast(r), e = e.baseClass;
|
|
650
|
+
for (; n.baseClass; )
|
|
651
|
+
a = n.upcast(a), n = n.baseClass;
|
|
652
|
+
return e === n && r === a;
|
|
653
|
+
}
|
|
654
|
+
var Mr = (t) => ({ count: t.count, deleteScheduled: t.deleteScheduled, preservePointerOnDelete: t.preservePointerOnDelete, ptr: t.ptr, ptrType: t.ptrType, smartPtr: t.smartPtr, smartPtrType: t.smartPtrType }), kt = (t) => {
|
|
655
|
+
function e(r) {
|
|
656
|
+
return r.$$.ptrType.registeredClass.name;
|
|
657
|
+
}
|
|
658
|
+
T(e(t) + " instance already deleted");
|
|
659
|
+
}, Bt = !1, ue = (t) => {
|
|
660
|
+
}, jr = (t) => {
|
|
661
|
+
t.smartPtr ? t.smartPtrType.rawDestructor(t.smartPtr) : t.ptrType.registeredClass.rawDestructor(t.ptr);
|
|
662
|
+
}, ce = (t) => {
|
|
663
|
+
t.count.value -= 1;
|
|
664
|
+
var e = t.count.value === 0;
|
|
665
|
+
e && jr(t);
|
|
666
|
+
}, le = (t, e, r) => {
|
|
667
|
+
if (e === r)
|
|
668
|
+
return t;
|
|
669
|
+
if (r.baseClass === void 0)
|
|
670
|
+
return null;
|
|
671
|
+
var n = le(t, e, r.baseClass);
|
|
672
|
+
return n === null ? null : r.downcast(n);
|
|
673
|
+
}, fe = {}, Rr = () => Object.keys(vt).length, Ir = () => {
|
|
674
|
+
var t = [];
|
|
675
|
+
for (var e in vt)
|
|
676
|
+
vt.hasOwnProperty(e) && t.push(vt[e]);
|
|
677
|
+
return t;
|
|
678
|
+
}, yt = [], Ut = () => {
|
|
679
|
+
for (; yt.length; ) {
|
|
680
|
+
var t = yt.pop();
|
|
681
|
+
t.$$.deleteScheduled = !1, t.delete();
|
|
682
|
+
}
|
|
683
|
+
}, mt = void 0, Wr = (t) => {
|
|
684
|
+
mt = t, yt.length && mt && mt(Ut);
|
|
685
|
+
}, Hr = () => {
|
|
686
|
+
i.getInheritedInstanceCount = Rr, i.getLiveInheritedInstances = Ir, i.flushPendingDeletes = Ut, i.setDelayFunction = Wr;
|
|
687
|
+
}, vt = {}, kr = (t, e) => {
|
|
688
|
+
for (e === void 0 && T("ptr should not be undefined"); t.baseClass; )
|
|
689
|
+
e = t.upcast(e), t = t.baseClass;
|
|
690
|
+
return e;
|
|
691
|
+
}, Br = (t, e) => (e = kr(t, e), vt[e]), St = (t, e) => {
|
|
692
|
+
(!e.ptrType || !e.ptr) && At("makeClassHandle requires ptr and ptrType");
|
|
693
|
+
var r = !!e.smartPtrType, n = !!e.smartPtr;
|
|
694
|
+
return r !== n && At("Both smartPtrType and smartPtr must be specified"), e.count = { value: 1 }, gt(Object.create(t, { $$: { value: e } }));
|
|
695
|
+
};
|
|
696
|
+
function Ur(t) {
|
|
697
|
+
var e = this.getPointee(t);
|
|
698
|
+
if (!e)
|
|
699
|
+
return this.destructor(t), null;
|
|
700
|
+
var r = Br(this.registeredClass, e);
|
|
701
|
+
if (r !== void 0) {
|
|
702
|
+
if (r.$$.count.value === 0)
|
|
703
|
+
return r.$$.ptr = e, r.$$.smartPtr = t, r.clone();
|
|
704
|
+
var n = r.clone();
|
|
705
|
+
return this.destructor(t), n;
|
|
706
|
+
}
|
|
707
|
+
function a() {
|
|
708
|
+
return this.isSmartPointer ? St(this.registeredClass.instancePrototype, { ptrType: this.pointeeType, ptr: e, smartPtrType: this, smartPtr: t }) : St(this.registeredClass.instancePrototype, { ptrType: this, ptr: t });
|
|
709
|
+
}
|
|
710
|
+
var o = this.registeredClass.getActualType(e), s = fe[o];
|
|
711
|
+
if (!s)
|
|
712
|
+
return a.call(this);
|
|
713
|
+
var u;
|
|
714
|
+
this.isConst ? u = s.constPointerType : u = s.pointerType;
|
|
715
|
+
var l = le(e, this.registeredClass, u.registeredClass);
|
|
716
|
+
return l === null ? a.call(this) : this.isSmartPointer ? St(u.registeredClass.instancePrototype, { ptrType: u, ptr: l, smartPtrType: this, smartPtr: t }) : St(u.registeredClass.instancePrototype, { ptrType: u, ptr: l });
|
|
717
|
+
}
|
|
718
|
+
var gt = (t) => typeof FinalizationRegistry > "u" ? (gt = (e) => e, t) : (Bt = new FinalizationRegistry((e) => {
|
|
719
|
+
ce(e.$$);
|
|
720
|
+
}), gt = (e) => {
|
|
721
|
+
var r = e.$$, n = !!r.smartPtr;
|
|
722
|
+
if (n) {
|
|
723
|
+
var a = { $$: r };
|
|
724
|
+
Bt.register(e, a, e);
|
|
725
|
+
}
|
|
726
|
+
return e;
|
|
727
|
+
}, ue = (e) => Bt.unregister(e), gt(t));
|
|
728
|
+
function Vr() {
|
|
729
|
+
if (this.$$.ptr || kt(this), this.$$.preservePointerOnDelete)
|
|
730
|
+
return this.$$.count.value += 1, this;
|
|
731
|
+
var t = gt(Object.create(Object.getPrototypeOf(this), { $$: { value: Mr(this.$$) } }));
|
|
732
|
+
return t.$$.count.value += 1, t.$$.deleteScheduled = !1, t;
|
|
733
|
+
}
|
|
734
|
+
function Lr() {
|
|
735
|
+
this.$$.ptr || kt(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && T("Object already scheduled for deletion"), ue(this), ce(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0);
|
|
736
|
+
}
|
|
737
|
+
function zr() {
|
|
738
|
+
return !this.$$.ptr;
|
|
739
|
+
}
|
|
740
|
+
function Yr() {
|
|
741
|
+
return this.$$.ptr || kt(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && T("Object already scheduled for deletion"), yt.push(this), yt.length === 1 && mt && mt(Ut), this.$$.deleteScheduled = !0, this;
|
|
742
|
+
}
|
|
743
|
+
var Nr = () => {
|
|
744
|
+
et.prototype.isAliasOf = Or, et.prototype.clone = Vr, et.prototype.delete = Lr, et.prototype.isDeleted = zr, et.prototype.deleteLater = Yr;
|
|
745
|
+
};
|
|
746
|
+
function et() {
|
|
747
|
+
}
|
|
748
|
+
var Gr = 48, Xr = 57, de = (t) => {
|
|
749
|
+
if (t === void 0)
|
|
750
|
+
return "_unknown";
|
|
751
|
+
t = t.replace(/[^a-zA-Z0-9_]/g, "$");
|
|
752
|
+
var e = t.charCodeAt(0);
|
|
753
|
+
return e >= Gr && e <= Xr ? `_${t}` : t;
|
|
754
|
+
};
|
|
755
|
+
function he(t, e) {
|
|
756
|
+
return t = de(t), { [t]: function() {
|
|
757
|
+
return e.apply(this, arguments);
|
|
758
|
+
} }[t];
|
|
759
|
+
}
|
|
760
|
+
var pe = (t, e, r) => {
|
|
761
|
+
if (t[e].overloadTable === void 0) {
|
|
762
|
+
var n = t[e];
|
|
763
|
+
t[e] = function() {
|
|
764
|
+
return t[e].overloadTable.hasOwnProperty(arguments.length) || T(`Function '${r}' called with an invalid number of arguments (${arguments.length}) - expects one of (${t[e].overloadTable})!`), t[e].overloadTable[arguments.length].apply(this, arguments);
|
|
765
|
+
}, t[e].overloadTable = [], t[e].overloadTable[n.argCount] = n;
|
|
766
|
+
}
|
|
767
|
+
}, ye = (t, e, r) => {
|
|
768
|
+
i.hasOwnProperty(t) ? ((r === void 0 || i[t].overloadTable !== void 0 && i[t].overloadTable[r] !== void 0) && T(`Cannot register public name '${t}' twice`), pe(i, t, t), i.hasOwnProperty(r) && T(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`), i[t].overloadTable[r] = e) : (i[t] = e, r !== void 0 && (i[t].numArguments = r));
|
|
769
|
+
};
|
|
770
|
+
function qr(t, e, r, n, a, o, s, u) {
|
|
771
|
+
this.name = t, this.constructor = e, this.instancePrototype = r, this.rawDestructor = n, this.baseClass = a, this.getActualType = o, this.upcast = s, this.downcast = u, this.pureVirtualFunctions = [];
|
|
772
|
+
}
|
|
773
|
+
var Vt = (t, e, r) => {
|
|
774
|
+
for (; e !== r; )
|
|
775
|
+
e.upcast || T(`Expected null or instance of ${r.name}, got an instance of ${e.name}`), t = e.upcast(t), e = e.baseClass;
|
|
776
|
+
return t;
|
|
777
|
+
};
|
|
778
|
+
function Zr(t, e) {
|
|
779
|
+
if (e === null)
|
|
780
|
+
return this.isReference && T(`null is not a valid ${this.name}`), 0;
|
|
781
|
+
e.$$ || T(`Cannot pass "${Yt(e)}" as a ${this.name}`), e.$$.ptr || T(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
782
|
+
var r = e.$$.ptrType.registeredClass, n = Vt(e.$$.ptr, r, this.registeredClass);
|
|
783
|
+
return n;
|
|
784
|
+
}
|
|
785
|
+
function Qr(t, e) {
|
|
786
|
+
var r;
|
|
787
|
+
if (e === null)
|
|
788
|
+
return this.isReference && T(`null is not a valid ${this.name}`), this.isSmartPointer ? (r = this.rawConstructor(), t !== null && t.push(this.rawDestructor, r), r) : 0;
|
|
789
|
+
e.$$ || T(`Cannot pass "${Yt(e)}" as a ${this.name}`), e.$$.ptr || T(`Cannot pass deleted object as a pointer of type ${this.name}`), !this.isConst && e.$$.ptrType.isConst && T(`Cannot convert argument of type ${e.$$.smartPtrType ? e.$$.smartPtrType.name : e.$$.ptrType.name} to parameter type ${this.name}`);
|
|
790
|
+
var n = e.$$.ptrType.registeredClass;
|
|
791
|
+
if (r = Vt(e.$$.ptr, n, this.registeredClass), this.isSmartPointer)
|
|
792
|
+
switch (e.$$.smartPtr === void 0 && T("Passing raw pointer to smart pointer is illegal"), this.sharingPolicy) {
|
|
793
|
+
case 0:
|
|
794
|
+
e.$$.smartPtrType === this ? r = e.$$.smartPtr : T(`Cannot convert argument of type ${e.$$.smartPtrType ? e.$$.smartPtrType.name : e.$$.ptrType.name} to parameter type ${this.name}`);
|
|
795
|
+
break;
|
|
796
|
+
case 1:
|
|
797
|
+
r = e.$$.smartPtr;
|
|
798
|
+
break;
|
|
799
|
+
case 2:
|
|
800
|
+
if (e.$$.smartPtrType === this)
|
|
801
|
+
r = e.$$.smartPtr;
|
|
802
|
+
else {
|
|
803
|
+
var a = e.clone();
|
|
804
|
+
r = this.rawShare(r, rt.toHandle(() => a.delete())), t !== null && t.push(this.rawDestructor, r);
|
|
805
|
+
}
|
|
806
|
+
break;
|
|
807
|
+
default:
|
|
808
|
+
T("Unsupporting sharing policy");
|
|
809
|
+
}
|
|
810
|
+
return r;
|
|
811
|
+
}
|
|
812
|
+
function Jr(t, e) {
|
|
813
|
+
if (e === null)
|
|
814
|
+
return this.isReference && T(`null is not a valid ${this.name}`), 0;
|
|
815
|
+
e.$$ || T(`Cannot pass "${Yt(e)}" as a ${this.name}`), e.$$.ptr || T(`Cannot pass deleted object as a pointer of type ${this.name}`), e.$$.ptrType.isConst && T(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);
|
|
816
|
+
var r = e.$$.ptrType.registeredClass, n = Vt(e.$$.ptr, r, this.registeredClass);
|
|
817
|
+
return n;
|
|
818
|
+
}
|
|
819
|
+
function me(t) {
|
|
820
|
+
return this.fromWireType(A[t >> 2]);
|
|
821
|
+
}
|
|
822
|
+
function Kr(t) {
|
|
823
|
+
return this.rawGetPointee && (t = this.rawGetPointee(t)), t;
|
|
824
|
+
}
|
|
825
|
+
function tn(t) {
|
|
826
|
+
this.rawDestructor && this.rawDestructor(t);
|
|
827
|
+
}
|
|
828
|
+
var en = (t) => {
|
|
829
|
+
t !== null && t.delete();
|
|
830
|
+
}, rn = () => {
|
|
831
|
+
K.prototype.getPointee = Kr, K.prototype.destructor = tn, K.prototype.argPackAdvance = J, K.prototype.readValueFromPointer = me, K.prototype.deleteObject = en, K.prototype.fromWireType = Ur;
|
|
832
|
+
};
|
|
833
|
+
function K(t, e, r, n, a, o, s, u, l, f, h) {
|
|
834
|
+
this.name = t, this.registeredClass = e, this.isReference = r, this.isConst = n, this.isSmartPointer = a, this.pointeeType = o, this.sharingPolicy = s, this.rawGetPointee = u, this.rawConstructor = l, this.rawShare = f, this.rawDestructor = h, !a && e.baseClass === void 0 ? n ? (this.toWireType = Zr, this.destructorFunction = null) : (this.toWireType = Jr, this.destructorFunction = null) : this.toWireType = Qr;
|
|
835
|
+
}
|
|
836
|
+
var ve = (t, e, r) => {
|
|
837
|
+
i.hasOwnProperty(t) || At("Replacing nonexistant public symbol"), i[t].overloadTable !== void 0 && r !== void 0 ? i[t].overloadTable[r] = e : (i[t] = e, i[t].argCount = r);
|
|
838
|
+
}, nn = (t, e, r) => {
|
|
839
|
+
var n = i["dynCall_" + t];
|
|
840
|
+
return r && r.length ? n.apply(null, [e].concat(r)) : n.call(null, e);
|
|
841
|
+
}, Ft = [], P = (t) => {
|
|
842
|
+
var e = Ft[t];
|
|
843
|
+
return e || (t >= Ft.length && (Ft.length = t + 1), Ft[t] = e = Jt.get(t)), e;
|
|
844
|
+
}, an = (t, e, r) => {
|
|
845
|
+
if (t.includes("j"))
|
|
846
|
+
return nn(t, e, r);
|
|
847
|
+
var n = P(e).apply(null, r);
|
|
848
|
+
return n;
|
|
849
|
+
}, on = (t, e) => {
|
|
850
|
+
var r = [];
|
|
851
|
+
return function() {
|
|
852
|
+
return r.length = 0, Object.assign(r, arguments), an(t, e, r);
|
|
853
|
+
};
|
|
854
|
+
}, G = (t, e) => {
|
|
855
|
+
t = k(t);
|
|
856
|
+
function r() {
|
|
857
|
+
return t.includes("j") ? on(t, e) : P(e);
|
|
858
|
+
}
|
|
859
|
+
var n = r();
|
|
860
|
+
return typeof n != "function" && T(`unknown function pointer with signature ${t}: ${e}`), n;
|
|
861
|
+
}, sn = (t, e) => {
|
|
862
|
+
var r = he(e, function(n) {
|
|
863
|
+
this.name = e, this.message = n;
|
|
864
|
+
var a = new Error(n).stack;
|
|
865
|
+
a !== void 0 && (this.stack = this.toString() + `
|
|
866
|
+
` + a.replace(/^Error(:[^\n]*)?\n/, ""));
|
|
867
|
+
});
|
|
868
|
+
return r.prototype = Object.create(t.prototype), r.prototype.constructor = r, r.prototype.toString = function() {
|
|
869
|
+
return this.message === void 0 ? this.name : `${this.name}: ${this.message}`;
|
|
870
|
+
}, r;
|
|
871
|
+
}, ge = void 0, we = (t) => {
|
|
872
|
+
var e = Fe(t), r = k(e);
|
|
873
|
+
return tt(e), r;
|
|
874
|
+
}, Ot = (t, e) => {
|
|
875
|
+
var r = [], n = {};
|
|
876
|
+
function a(o) {
|
|
877
|
+
if (!n[o] && !it[o]) {
|
|
878
|
+
if (Dt[o]) {
|
|
879
|
+
Dt[o].forEach(a);
|
|
880
|
+
return;
|
|
881
|
+
}
|
|
882
|
+
r.push(o), n[o] = !0;
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
throw e.forEach(a), new ge(`${t}: ` + r.map(we).join([", "]));
|
|
886
|
+
}, un = (t, e, r, n, a, o, s, u, l, f, h, m, v) => {
|
|
887
|
+
h = k(h), o = G(a, o), u && (u = G(s, u)), f && (f = G(l, f)), v = G(m, v);
|
|
888
|
+
var _ = de(h);
|
|
889
|
+
ye(_, function() {
|
|
890
|
+
Ot(`Cannot construct ${h} due to unbound types`, [n]);
|
|
891
|
+
}), st([t, e, r], n ? [n] : [], function(x) {
|
|
892
|
+
x = x[0];
|
|
893
|
+
var R, D;
|
|
894
|
+
n ? (R = x.registeredClass, D = R.instancePrototype) : D = et.prototype;
|
|
895
|
+
var I = he(_, function() {
|
|
896
|
+
if (Object.getPrototypeOf(this) !== d)
|
|
897
|
+
throw new lt("Use 'new' to construct " + h);
|
|
898
|
+
if (y.constructor_body === void 0)
|
|
899
|
+
throw new lt(h + " has no accessible constructor");
|
|
900
|
+
var Rt = y.constructor_body[arguments.length];
|
|
901
|
+
if (Rt === void 0)
|
|
902
|
+
throw new lt(`Tried to invoke ctor of ${h} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(y.constructor_body).toString()}) parameters instead!`);
|
|
903
|
+
return Rt.apply(this, arguments);
|
|
904
|
+
}), d = Object.create(D, { constructor: { value: I } });
|
|
905
|
+
I.prototype = d;
|
|
906
|
+
var y = new qr(h, I, d, v, R, o, u, f);
|
|
907
|
+
y.baseClass && (y.baseClass.__derivedClasses === void 0 && (y.baseClass.__derivedClasses = []), y.baseClass.__derivedClasses.push(y));
|
|
908
|
+
var F = new K(h, y, !0, !1, !1), O = new K(h + "*", y, !1, !1, !1), ut = new K(h + " const*", y, !1, !0, !1);
|
|
909
|
+
return fe[t] = { pointerType: O, constPointerType: ut }, ve(_, I), [F, O, ut];
|
|
910
|
+
});
|
|
911
|
+
}, Lt = (t, e) => {
|
|
912
|
+
for (var r = [], n = 0; n < t; n++)
|
|
913
|
+
r.push(A[e + n * 4 >> 2]);
|
|
914
|
+
return r;
|
|
915
|
+
};
|
|
916
|
+
function zt(t, e, r, n, a, o) {
|
|
917
|
+
var s = e.length;
|
|
918
|
+
s < 2 && T("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
919
|
+
for (var u = e[1] !== null && r !== null, l = !1, f = 1; f < e.length; ++f)
|
|
920
|
+
if (e[f] !== null && e[f].destructorFunction === void 0) {
|
|
921
|
+
l = !0;
|
|
922
|
+
break;
|
|
923
|
+
}
|
|
924
|
+
var h = e[0].name !== "void", m = s - 2, v = new Array(m), _ = [], x = [];
|
|
925
|
+
return function() {
|
|
926
|
+
arguments.length !== m && T(`function ${t} called with ${arguments.length} arguments, expected ${m}`), x.length = 0;
|
|
927
|
+
var R;
|
|
928
|
+
_.length = u ? 2 : 1, _[0] = a, u && (R = e[1].toWireType(x, this), _[1] = R);
|
|
929
|
+
for (var D = 0; D < m; ++D)
|
|
930
|
+
v[D] = e[D + 2].toWireType(x, arguments[D]), _.push(v[D]);
|
|
931
|
+
var I = n.apply(null, _);
|
|
932
|
+
function d(y) {
|
|
933
|
+
if (l)
|
|
934
|
+
oe(x);
|
|
935
|
+
else
|
|
936
|
+
for (var F = u ? 1 : 2; F < e.length; F++) {
|
|
937
|
+
var O = F === 1 ? R : v[F - 2];
|
|
938
|
+
e[F].destructorFunction !== null && e[F].destructorFunction(O);
|
|
939
|
+
}
|
|
940
|
+
if (h)
|
|
941
|
+
return e[0].fromWireType(y);
|
|
942
|
+
}
|
|
943
|
+
return d(I);
|
|
944
|
+
};
|
|
945
|
+
}
|
|
946
|
+
var cn = (t, e, r, n, a, o) => {
|
|
947
|
+
var s = Lt(e, r);
|
|
948
|
+
a = G(n, a), st([], [t], function(u) {
|
|
949
|
+
u = u[0];
|
|
950
|
+
var l = `constructor ${u.name}`;
|
|
951
|
+
if (u.registeredClass.constructor_body === void 0 && (u.registeredClass.constructor_body = []), u.registeredClass.constructor_body[e - 1] !== void 0)
|
|
952
|
+
throw new lt(`Cannot register multiple constructors with identical number of parameters (${e - 1}) for class '${u.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
953
|
+
return u.registeredClass.constructor_body[e - 1] = () => {
|
|
954
|
+
Ot(`Cannot construct ${u.name} due to unbound types`, s);
|
|
955
|
+
}, st([], s, (f) => (f.splice(1, 0, null), u.registeredClass.constructor_body[e - 1] = zt(l, f, null, a, o), [])), [];
|
|
956
|
+
});
|
|
957
|
+
}, ln = (t, e, r, n, a, o, s, u, l) => {
|
|
958
|
+
var f = Lt(r, n);
|
|
959
|
+
e = k(e), o = G(a, o), st([], [t], function(h) {
|
|
960
|
+
h = h[0];
|
|
961
|
+
var m = `${h.name}.${e}`;
|
|
962
|
+
e.startsWith("@@") && (e = Symbol[e.substring(2)]), u && h.registeredClass.pureVirtualFunctions.push(e);
|
|
963
|
+
function v() {
|
|
964
|
+
Ot(`Cannot call ${m} due to unbound types`, f);
|
|
965
|
+
}
|
|
966
|
+
var _ = h.registeredClass.instancePrototype, x = _[e];
|
|
967
|
+
return x === void 0 || x.overloadTable === void 0 && x.className !== h.name && x.argCount === r - 2 ? (v.argCount = r - 2, v.className = h.name, _[e] = v) : (pe(_, e, m), _[e].overloadTable[r - 2] = v), st([], f, function(R) {
|
|
968
|
+
var D = zt(m, R, h, o, s);
|
|
969
|
+
return _[e].overloadTable === void 0 ? (D.argCount = r - 2, _[e] = D) : _[e].overloadTable[r - 2] = D, [];
|
|
970
|
+
}), [];
|
|
971
|
+
});
|
|
972
|
+
};
|
|
973
|
+
function fn() {
|
|
974
|
+
Object.assign($e.prototype, { get(t) {
|
|
975
|
+
return this.allocated[t];
|
|
976
|
+
}, has(t) {
|
|
977
|
+
return this.allocated[t] !== void 0;
|
|
978
|
+
}, allocate(t) {
|
|
979
|
+
var e = this.freelist.pop() || this.allocated.length;
|
|
980
|
+
return this.allocated[e] = t, e;
|
|
981
|
+
}, free(t) {
|
|
982
|
+
this.allocated[t] = void 0, this.freelist.push(t);
|
|
983
|
+
} });
|
|
984
|
+
}
|
|
985
|
+
function $e() {
|
|
986
|
+
this.allocated = [void 0], this.freelist = [];
|
|
987
|
+
}
|
|
988
|
+
var z = new $e(), be = (t) => {
|
|
989
|
+
t >= z.reserved && --z.get(t).refcount === 0 && z.free(t);
|
|
990
|
+
}, dn = () => {
|
|
991
|
+
for (var t = 0, e = z.reserved; e < z.allocated.length; ++e)
|
|
992
|
+
z.allocated[e] !== void 0 && ++t;
|
|
993
|
+
return t;
|
|
994
|
+
}, hn = () => {
|
|
995
|
+
z.allocated.push({ value: void 0 }, { value: null }, { value: !0 }, { value: !1 }), z.reserved = z.allocated.length, i.count_emval_handles = dn;
|
|
996
|
+
}, rt = { toValue: (t) => (t || T("Cannot use deleted val. handle = " + t), z.get(t).value), toHandle: (t) => {
|
|
997
|
+
switch (t) {
|
|
998
|
+
case void 0:
|
|
999
|
+
return 1;
|
|
1000
|
+
case null:
|
|
1001
|
+
return 2;
|
|
1002
|
+
case !0:
|
|
1003
|
+
return 3;
|
|
1004
|
+
case !1:
|
|
1005
|
+
return 4;
|
|
1006
|
+
default:
|
|
1007
|
+
return z.allocate({ refcount: 1, value: t });
|
|
1008
|
+
}
|
|
1009
|
+
} }, pn = (t, e) => {
|
|
1010
|
+
e = k(e), Q(t, { name: e, fromWireType: (r) => {
|
|
1011
|
+
var n = rt.toValue(r);
|
|
1012
|
+
return be(r), n;
|
|
1013
|
+
}, toWireType: (r, n) => rt.toHandle(n), argPackAdvance: J, readValueFromPointer: Ht, destructorFunction: null });
|
|
1014
|
+
}, Yt = (t) => {
|
|
1015
|
+
if (t === null)
|
|
1016
|
+
return "null";
|
|
1017
|
+
var e = typeof t;
|
|
1018
|
+
return e === "object" || e === "array" || e === "function" ? t.toString() : "" + t;
|
|
1019
|
+
}, yn = (t, e) => {
|
|
1020
|
+
switch (e) {
|
|
1021
|
+
case 4:
|
|
1022
|
+
return function(r) {
|
|
1023
|
+
return this.fromWireType(qt[r >> 2]);
|
|
1024
|
+
};
|
|
1025
|
+
case 8:
|
|
1026
|
+
return function(r) {
|
|
1027
|
+
return this.fromWireType(Zt[r >> 3]);
|
|
1028
|
+
};
|
|
1029
|
+
default:
|
|
1030
|
+
throw new TypeError(`invalid float width (${e}): ${t}`);
|
|
1031
|
+
}
|
|
1032
|
+
}, mn = (t, e, r) => {
|
|
1033
|
+
e = k(e), Q(t, { name: e, fromWireType: (n) => n, toWireType: (n, a) => a, argPackAdvance: J, readValueFromPointer: yn(e, r), destructorFunction: null });
|
|
1034
|
+
}, vn = (t, e, r, n, a, o, s) => {
|
|
1035
|
+
var u = Lt(e, r);
|
|
1036
|
+
t = k(t), a = G(n, a), ye(t, function() {
|
|
1037
|
+
Ot(`Cannot call ${t} due to unbound types`, u);
|
|
1038
|
+
}, e - 1), st([], u, function(l) {
|
|
1039
|
+
var f = [l[0], null].concat(l.slice(1));
|
|
1040
|
+
return ve(t, zt(t, f, null, a, o), e - 1), [];
|
|
1041
|
+
});
|
|
1042
|
+
}, gn = (t, e, r) => {
|
|
1043
|
+
switch (e) {
|
|
1044
|
+
case 1:
|
|
1045
|
+
return r ? (n) => L[n >> 0] : (n) => W[n >> 0];
|
|
1046
|
+
case 2:
|
|
1047
|
+
return r ? (n) => ht[n >> 1] : (n) => Ct[n >> 1];
|
|
1048
|
+
case 4:
|
|
1049
|
+
return r ? (n) => H[n >> 2] : (n) => A[n >> 2];
|
|
1050
|
+
default:
|
|
1051
|
+
throw new TypeError(`invalid integer width (${e}): ${t}`);
|
|
1052
|
+
}
|
|
1053
|
+
}, wn = (t, e, r, n, a) => {
|
|
1054
|
+
e = k(e);
|
|
1055
|
+
var o = (h) => h;
|
|
1056
|
+
if (n === 0) {
|
|
1057
|
+
var s = 32 - 8 * r;
|
|
1058
|
+
o = (h) => h << s >>> s;
|
|
1059
|
+
}
|
|
1060
|
+
var u = e.includes("unsigned"), l = (h, m) => {
|
|
1061
|
+
}, f;
|
|
1062
|
+
u ? f = function(h, m) {
|
|
1063
|
+
return l(m, this.name), m >>> 0;
|
|
1064
|
+
} : f = function(h, m) {
|
|
1065
|
+
return l(m, this.name), m;
|
|
1066
|
+
}, Q(t, { name: e, fromWireType: o, toWireType: f, argPackAdvance: J, readValueFromPointer: gn(e, r, n !== 0), destructorFunction: null });
|
|
1067
|
+
}, $n = (t, e, r) => {
|
|
1068
|
+
var n = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array], a = n[e];
|
|
1069
|
+
function o(s) {
|
|
1070
|
+
var u = A[s >> 2], l = A[s + 4 >> 2];
|
|
1071
|
+
return new a(L.buffer, l, u);
|
|
1072
|
+
}
|
|
1073
|
+
r = k(r), Q(t, { name: r, fromWireType: o, argPackAdvance: J, readValueFromPointer: o }, { ignoreDuplicateRegistrations: !0 });
|
|
1074
|
+
}, Ce = (t, e, r, n) => {
|
|
1075
|
+
if (!(n > 0))
|
|
1076
|
+
return 0;
|
|
1077
|
+
for (var a = r, o = r + n - 1, s = 0; s < t.length; ++s) {
|
|
1078
|
+
var u = t.charCodeAt(s);
|
|
1079
|
+
if (u >= 55296 && u <= 57343) {
|
|
1080
|
+
var l = t.charCodeAt(++s);
|
|
1081
|
+
u = 65536 + ((u & 1023) << 10) | l & 1023;
|
|
1082
|
+
}
|
|
1083
|
+
if (u <= 127) {
|
|
1084
|
+
if (r >= o)
|
|
1085
|
+
break;
|
|
1086
|
+
e[r++] = u;
|
|
1087
|
+
} else if (u <= 2047) {
|
|
1088
|
+
if (r + 1 >= o)
|
|
1089
|
+
break;
|
|
1090
|
+
e[r++] = 192 | u >> 6, e[r++] = 128 | u & 63;
|
|
1091
|
+
} else if (u <= 65535) {
|
|
1092
|
+
if (r + 2 >= o)
|
|
1093
|
+
break;
|
|
1094
|
+
e[r++] = 224 | u >> 12, e[r++] = 128 | u >> 6 & 63, e[r++] = 128 | u & 63;
|
|
1095
|
+
} else {
|
|
1096
|
+
if (r + 3 >= o)
|
|
1097
|
+
break;
|
|
1098
|
+
e[r++] = 240 | u >> 18, e[r++] = 128 | u >> 12 & 63, e[r++] = 128 | u >> 6 & 63, e[r++] = 128 | u & 63;
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
return e[r] = 0, r - a;
|
|
1102
|
+
}, bn = (t, e, r) => Ce(t, W, e, r), _e = (t) => {
|
|
1103
|
+
for (var e = 0, r = 0; r < t.length; ++r) {
|
|
1104
|
+
var n = t.charCodeAt(r);
|
|
1105
|
+
n <= 127 ? e++ : n <= 2047 ? e += 2 : n >= 55296 && n <= 57343 ? (e += 4, ++r) : e += 3;
|
|
1106
|
+
}
|
|
1107
|
+
return e;
|
|
1108
|
+
}, Te = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0, Cn = (t, e, r) => {
|
|
1109
|
+
for (var n = e + r, a = e; t[a] && !(a >= n); )
|
|
1110
|
+
++a;
|
|
1111
|
+
if (a - e > 16 && t.buffer && Te)
|
|
1112
|
+
return Te.decode(t.subarray(e, a));
|
|
1113
|
+
for (var o = ""; e < a; ) {
|
|
1114
|
+
var s = t[e++];
|
|
1115
|
+
if (!(s & 128)) {
|
|
1116
|
+
o += String.fromCharCode(s);
|
|
1117
|
+
continue;
|
|
1118
|
+
}
|
|
1119
|
+
var u = t[e++] & 63;
|
|
1120
|
+
if ((s & 224) == 192) {
|
|
1121
|
+
o += String.fromCharCode((s & 31) << 6 | u);
|
|
1122
|
+
continue;
|
|
1123
|
+
}
|
|
1124
|
+
var l = t[e++] & 63;
|
|
1125
|
+
if ((s & 240) == 224 ? s = (s & 15) << 12 | u << 6 | l : s = (s & 7) << 18 | u << 12 | l << 6 | t[e++] & 63, s < 65536)
|
|
1126
|
+
o += String.fromCharCode(s);
|
|
1127
|
+
else {
|
|
1128
|
+
var f = s - 65536;
|
|
1129
|
+
o += String.fromCharCode(55296 | f >> 10, 56320 | f & 1023);
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
return o;
|
|
1133
|
+
}, Nt = (t, e) => t ? Cn(W, t, e) : "", _n = (t, e) => {
|
|
1134
|
+
e = k(e);
|
|
1135
|
+
var r = e === "std::string";
|
|
1136
|
+
Q(t, { name: e, fromWireType: (n) => {
|
|
1137
|
+
var a = A[n >> 2], o = n + 4, s;
|
|
1138
|
+
if (r)
|
|
1139
|
+
for (var u = o, l = 0; l <= a; ++l) {
|
|
1140
|
+
var f = o + l;
|
|
1141
|
+
if (l == a || W[f] == 0) {
|
|
1142
|
+
var h = f - u, m = Nt(u, h);
|
|
1143
|
+
s === void 0 ? s = m : (s += String.fromCharCode(0), s += m), u = f + 1;
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
else {
|
|
1147
|
+
for (var v = new Array(a), l = 0; l < a; ++l)
|
|
1148
|
+
v[l] = String.fromCharCode(W[o + l]);
|
|
1149
|
+
s = v.join("");
|
|
1150
|
+
}
|
|
1151
|
+
return tt(n), s;
|
|
1152
|
+
}, toWireType: (n, a) => {
|
|
1153
|
+
a instanceof ArrayBuffer && (a = new Uint8Array(a));
|
|
1154
|
+
var o, s = typeof a == "string";
|
|
1155
|
+
s || a instanceof Uint8Array || a instanceof Uint8ClampedArray || a instanceof Int8Array || T("Cannot pass non-string to std::string"), r && s ? o = _e(a) : o = a.length;
|
|
1156
|
+
var u = Xt(4 + o + 1), l = u + 4;
|
|
1157
|
+
if (A[u >> 2] = o, r && s)
|
|
1158
|
+
bn(a, l, o + 1);
|
|
1159
|
+
else if (s)
|
|
1160
|
+
for (var f = 0; f < o; ++f) {
|
|
1161
|
+
var h = a.charCodeAt(f);
|
|
1162
|
+
h > 255 && (tt(l), T("String has UTF-16 code units that do not fit in 8 bits")), W[l + f] = h;
|
|
1163
|
+
}
|
|
1164
|
+
else
|
|
1165
|
+
for (var f = 0; f < o; ++f)
|
|
1166
|
+
W[l + f] = a[f];
|
|
1167
|
+
return n !== null && n.push(tt, u), u;
|
|
1168
|
+
}, argPackAdvance: J, readValueFromPointer: me, destructorFunction: (n) => tt(n) });
|
|
1169
|
+
}, Pe = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, Tn = (t, e) => {
|
|
1170
|
+
for (var r = t, n = r >> 1, a = n + e / 2; !(n >= a) && Ct[n]; )
|
|
1171
|
+
++n;
|
|
1172
|
+
if (r = n << 1, r - t > 32 && Pe)
|
|
1173
|
+
return Pe.decode(W.subarray(t, r));
|
|
1174
|
+
for (var o = "", s = 0; !(s >= e / 2); ++s) {
|
|
1175
|
+
var u = ht[t + s * 2 >> 1];
|
|
1176
|
+
if (u == 0)
|
|
1177
|
+
break;
|
|
1178
|
+
o += String.fromCharCode(u);
|
|
1179
|
+
}
|
|
1180
|
+
return o;
|
|
1181
|
+
}, Pn = (t, e, r) => {
|
|
1182
|
+
if (r === void 0 && (r = 2147483647), r < 2)
|
|
1183
|
+
return 0;
|
|
1184
|
+
r -= 2;
|
|
1185
|
+
for (var n = e, a = r < t.length * 2 ? r / 2 : t.length, o = 0; o < a; ++o) {
|
|
1186
|
+
var s = t.charCodeAt(o);
|
|
1187
|
+
ht[e >> 1] = s, e += 2;
|
|
1188
|
+
}
|
|
1189
|
+
return ht[e >> 1] = 0, e - n;
|
|
1190
|
+
}, En = (t) => t.length * 2, xn = (t, e) => {
|
|
1191
|
+
for (var r = 0, n = ""; !(r >= e / 4); ) {
|
|
1192
|
+
var a = H[t + r * 4 >> 2];
|
|
1193
|
+
if (a == 0)
|
|
1194
|
+
break;
|
|
1195
|
+
if (++r, a >= 65536) {
|
|
1196
|
+
var o = a - 65536;
|
|
1197
|
+
n += String.fromCharCode(55296 | o >> 10, 56320 | o & 1023);
|
|
1198
|
+
} else
|
|
1199
|
+
n += String.fromCharCode(a);
|
|
1200
|
+
}
|
|
1201
|
+
return n;
|
|
1202
|
+
}, Dn = (t, e, r) => {
|
|
1203
|
+
if (r === void 0 && (r = 2147483647), r < 4)
|
|
1204
|
+
return 0;
|
|
1205
|
+
for (var n = e, a = n + r - 4, o = 0; o < t.length; ++o) {
|
|
1206
|
+
var s = t.charCodeAt(o);
|
|
1207
|
+
if (s >= 55296 && s <= 57343) {
|
|
1208
|
+
var u = t.charCodeAt(++o);
|
|
1209
|
+
s = 65536 + ((s & 1023) << 10) | u & 1023;
|
|
1210
|
+
}
|
|
1211
|
+
if (H[e >> 2] = s, e += 4, e + 4 > a)
|
|
1212
|
+
break;
|
|
1213
|
+
}
|
|
1214
|
+
return H[e >> 2] = 0, e - n;
|
|
1215
|
+
}, An = (t) => {
|
|
1216
|
+
for (var e = 0, r = 0; r < t.length; ++r) {
|
|
1217
|
+
var n = t.charCodeAt(r);
|
|
1218
|
+
n >= 55296 && n <= 57343 && ++r, e += 4;
|
|
1219
|
+
}
|
|
1220
|
+
return e;
|
|
1221
|
+
}, Sn = (t, e, r) => {
|
|
1222
|
+
r = k(r);
|
|
1223
|
+
var n, a, o, s, u;
|
|
1224
|
+
e === 2 ? (n = Tn, a = Pn, s = En, o = () => Ct, u = 1) : e === 4 && (n = xn, a = Dn, s = An, o = () => A, u = 2), Q(t, { name: r, fromWireType: (l) => {
|
|
1225
|
+
for (var f = A[l >> 2], h = o(), m, v = l + 4, _ = 0; _ <= f; ++_) {
|
|
1226
|
+
var x = l + 4 + _ * e;
|
|
1227
|
+
if (_ == f || h[x >> u] == 0) {
|
|
1228
|
+
var R = x - v, D = n(v, R);
|
|
1229
|
+
m === void 0 ? m = D : (m += String.fromCharCode(0), m += D), v = x + e;
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
return tt(l), m;
|
|
1233
|
+
}, toWireType: (l, f) => {
|
|
1234
|
+
typeof f != "string" && T(`Cannot pass non-string to C++ string type ${r}`);
|
|
1235
|
+
var h = s(f), m = Xt(4 + h + e);
|
|
1236
|
+
return A[m >> 2] = h >> u, a(f, m + 4, h + e), l !== null && l.push(tt, m), m;
|
|
1237
|
+
}, argPackAdvance: J, readValueFromPointer: Ht, destructorFunction: (l) => tt(l) });
|
|
1238
|
+
}, Fn = (t, e, r, n, a, o) => {
|
|
1239
|
+
xt[t] = { name: k(e), rawConstructor: G(r, n), rawDestructor: G(a, o), fields: [] };
|
|
1240
|
+
}, On = (t, e, r, n, a, o, s, u, l, f) => {
|
|
1241
|
+
xt[t].fields.push({ fieldName: k(e), getterReturnType: r, getter: G(n, a), getterContext: o, setterArgumentType: s, setter: G(u, l), setterContext: f });
|
|
1242
|
+
}, Mn = (t, e) => {
|
|
1243
|
+
e = k(e), Q(t, { isVoid: !0, name: e, argPackAdvance: 0, fromWireType: () => {
|
|
1244
|
+
}, toWireType: (r, n) => {
|
|
1245
|
+
} });
|
|
1246
|
+
}, jn = {}, Rn = (t) => {
|
|
1247
|
+
var e = jn[t];
|
|
1248
|
+
return e === void 0 ? k(t) : e;
|
|
1249
|
+
}, Ee = () => {
|
|
1250
|
+
if (typeof globalThis == "object")
|
|
1251
|
+
return globalThis;
|
|
1252
|
+
function t(e) {
|
|
1253
|
+
e.$$$embind_global$$$ = e;
|
|
1254
|
+
var r = typeof $$$embind_global$$$ == "object" && e.$$$embind_global$$$ == e;
|
|
1255
|
+
return r || delete e.$$$embind_global$$$, r;
|
|
1256
|
+
}
|
|
1257
|
+
if (typeof $$$embind_global$$$ == "object" || (typeof global == "object" && t(global) ? $$$embind_global$$$ = global : typeof self == "object" && t(self) && ($$$embind_global$$$ = self), typeof $$$embind_global$$$ == "object"))
|
|
1258
|
+
return $$$embind_global$$$;
|
|
1259
|
+
throw Error("unable to get global object.");
|
|
1260
|
+
}, In = (t) => t === 0 ? rt.toHandle(Ee()) : (t = Rn(t), rt.toHandle(Ee()[t])), Wn = (t) => {
|
|
1261
|
+
t > 4 && (z.get(t).refcount += 1);
|
|
1262
|
+
}, xe = (t, e) => {
|
|
1263
|
+
var r = it[t];
|
|
1264
|
+
return r === void 0 && T(e + " has unknown type " + we(t)), r;
|
|
1265
|
+
}, Hn = (t) => {
|
|
1266
|
+
var e = new Array(t + 1);
|
|
1267
|
+
return function(r, n, a) {
|
|
1268
|
+
e[0] = r;
|
|
1269
|
+
for (var o = 0; o < t; ++o) {
|
|
1270
|
+
var s = xe(A[n + o * 4 >> 2], "parameter " + o);
|
|
1271
|
+
e[o + 1] = s.readValueFromPointer(a), a += s.argPackAdvance;
|
|
1272
|
+
}
|
|
1273
|
+
var u = new (r.bind.apply(r, e))();
|
|
1274
|
+
return rt.toHandle(u);
|
|
1275
|
+
};
|
|
1276
|
+
}, De = {}, kn = (t, e, r, n) => {
|
|
1277
|
+
t = rt.toValue(t);
|
|
1278
|
+
var a = De[e];
|
|
1279
|
+
return a || (a = Hn(e), De[e] = a), a(t, r, n);
|
|
1280
|
+
}, Bn = (t, e) => {
|
|
1281
|
+
t = xe(t, "_emval_take_value");
|
|
1282
|
+
var r = t.readValueFromPointer(e);
|
|
1283
|
+
return rt.toHandle(r);
|
|
1284
|
+
}, Un = () => {
|
|
1285
|
+
_t("");
|
|
1286
|
+
}, Vn = (t, e, r) => W.copyWithin(t, e, e + r), Ln = () => 2147483648, zn = (t) => {
|
|
1287
|
+
var e = q.buffer, r = (t - e.byteLength + 65535) / 65536;
|
|
1288
|
+
try {
|
|
1289
|
+
return q.grow(r), Qt(), 1;
|
|
1290
|
+
} catch {
|
|
1291
|
+
}
|
|
1292
|
+
}, Yn = (t) => {
|
|
1293
|
+
var e = W.length;
|
|
1294
|
+
t >>>= 0;
|
|
1295
|
+
var r = Ln();
|
|
1296
|
+
if (t > r)
|
|
1297
|
+
return !1;
|
|
1298
|
+
for (var n = (l, f) => l + (f - l % f) % f, a = 1; a <= 4; a *= 2) {
|
|
1299
|
+
var o = e * (1 + 0.2 / a);
|
|
1300
|
+
o = Math.min(o, t + 100663296);
|
|
1301
|
+
var s = Math.min(r, n(Math.max(t, o), 65536)), u = zn(s);
|
|
1302
|
+
if (u)
|
|
1303
|
+
return !0;
|
|
1304
|
+
}
|
|
1305
|
+
return !1;
|
|
1306
|
+
}, Gt = {}, Nn = () => M || "./this.program", wt = () => {
|
|
1307
|
+
if (!wt.strings) {
|
|
1308
|
+
var t = (typeof navigator == "object" && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", e = { USER: "web_user", LOGNAME: "web_user", PATH: "/", PWD: "/", HOME: "/home/web_user", LANG: t, _: Nn() };
|
|
1309
|
+
for (var r in Gt)
|
|
1310
|
+
Gt[r] === void 0 ? delete e[r] : e[r] = Gt[r];
|
|
1311
|
+
var n = [];
|
|
1312
|
+
for (var r in e)
|
|
1313
|
+
n.push(`${r}=${e[r]}`);
|
|
1314
|
+
wt.strings = n;
|
|
1315
|
+
}
|
|
1316
|
+
return wt.strings;
|
|
1317
|
+
}, Gn = (t, e) => {
|
|
1318
|
+
for (var r = 0; r < t.length; ++r)
|
|
1319
|
+
L[e++ >> 0] = t.charCodeAt(r);
|
|
1320
|
+
L[e >> 0] = 0;
|
|
1321
|
+
}, Xn = (t, e) => {
|
|
1322
|
+
var r = 0;
|
|
1323
|
+
return wt().forEach((n, a) => {
|
|
1324
|
+
var o = e + r;
|
|
1325
|
+
A[t + a * 4 >> 2] = o, Gn(n, o), r += n.length + 1;
|
|
1326
|
+
}), 0;
|
|
1327
|
+
}, qn = (t, e) => {
|
|
1328
|
+
var r = wt();
|
|
1329
|
+
A[t >> 2] = r.length;
|
|
1330
|
+
var n = 0;
|
|
1331
|
+
return r.forEach((a) => n += a.length + 1), A[e >> 2] = n, 0;
|
|
1332
|
+
}, Zn = (t) => t, Mt = (t) => t % 4 === 0 && (t % 100 !== 0 || t % 400 === 0), Qn = (t, e) => {
|
|
1333
|
+
for (var r = 0, n = 0; n <= e; r += t[n++])
|
|
1334
|
+
;
|
|
1335
|
+
return r;
|
|
1336
|
+
}, Ae = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Se = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Jn = (t, e) => {
|
|
1337
|
+
for (var r = new Date(t.getTime()); e > 0; ) {
|
|
1338
|
+
var n = Mt(r.getFullYear()), a = r.getMonth(), o = (n ? Ae : Se)[a];
|
|
1339
|
+
if (e > o - r.getDate())
|
|
1340
|
+
e -= o - r.getDate() + 1, r.setDate(1), a < 11 ? r.setMonth(a + 1) : (r.setMonth(0), r.setFullYear(r.getFullYear() + 1));
|
|
1341
|
+
else
|
|
1342
|
+
return r.setDate(r.getDate() + e), r;
|
|
1343
|
+
}
|
|
1344
|
+
return r;
|
|
1345
|
+
};
|
|
1346
|
+
function Kn(t, e, r) {
|
|
1347
|
+
var n = r > 0 ? r : _e(t) + 1, a = new Array(n), o = Ce(t, a, 0, a.length);
|
|
1348
|
+
return e && (a.length = o), a;
|
|
1349
|
+
}
|
|
1350
|
+
var ta = (t, e) => {
|
|
1351
|
+
L.set(t, e);
|
|
1352
|
+
}, ea = (t, e, r, n) => {
|
|
1353
|
+
var a = A[n + 40 >> 2], o = { tm_sec: H[n >> 2], tm_min: H[n + 4 >> 2], tm_hour: H[n + 8 >> 2], tm_mday: H[n + 12 >> 2], tm_mon: H[n + 16 >> 2], tm_year: H[n + 20 >> 2], tm_wday: H[n + 24 >> 2], tm_yday: H[n + 28 >> 2], tm_isdst: H[n + 32 >> 2], tm_gmtoff: H[n + 36 >> 2], tm_zone: a ? Nt(a) : "" }, s = Nt(r), u = { "%c": "%a %b %d %H:%M:%S %Y", "%D": "%m/%d/%y", "%F": "%Y-%m-%d", "%h": "%b", "%r": "%I:%M:%S %p", "%R": "%H:%M", "%T": "%H:%M:%S", "%x": "%m/%d/%y", "%X": "%H:%M:%S", "%Ec": "%c", "%EC": "%C", "%Ex": "%m/%d/%y", "%EX": "%H:%M:%S", "%Ey": "%y", "%EY": "%Y", "%Od": "%d", "%Oe": "%e", "%OH": "%H", "%OI": "%I", "%Om": "%m", "%OM": "%M", "%OS": "%S", "%Ou": "%u", "%OU": "%U", "%OV": "%V", "%Ow": "%w", "%OW": "%W", "%Oy": "%y" };
|
|
1354
|
+
for (var l in u)
|
|
1355
|
+
s = s.replace(new RegExp(l, "g"), u[l]);
|
|
1356
|
+
var f = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], h = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
|
1357
|
+
function m(d, y, F) {
|
|
1358
|
+
for (var O = typeof d == "number" ? d.toString() : d || ""; O.length < y; )
|
|
1359
|
+
O = F[0] + O;
|
|
1360
|
+
return O;
|
|
1361
|
+
}
|
|
1362
|
+
function v(d, y) {
|
|
1363
|
+
return m(d, y, "0");
|
|
1364
|
+
}
|
|
1365
|
+
function _(d, y) {
|
|
1366
|
+
function F(ut) {
|
|
1367
|
+
return ut < 0 ? -1 : ut > 0 ? 1 : 0;
|
|
1368
|
+
}
|
|
1369
|
+
var O;
|
|
1370
|
+
return (O = F(d.getFullYear() - y.getFullYear())) === 0 && (O = F(d.getMonth() - y.getMonth())) === 0 && (O = F(d.getDate() - y.getDate())), O;
|
|
1371
|
+
}
|
|
1372
|
+
function x(d) {
|
|
1373
|
+
switch (d.getDay()) {
|
|
1374
|
+
case 0:
|
|
1375
|
+
return new Date(d.getFullYear() - 1, 11, 29);
|
|
1376
|
+
case 1:
|
|
1377
|
+
return d;
|
|
1378
|
+
case 2:
|
|
1379
|
+
return new Date(d.getFullYear(), 0, 3);
|
|
1380
|
+
case 3:
|
|
1381
|
+
return new Date(d.getFullYear(), 0, 2);
|
|
1382
|
+
case 4:
|
|
1383
|
+
return new Date(d.getFullYear(), 0, 1);
|
|
1384
|
+
case 5:
|
|
1385
|
+
return new Date(d.getFullYear() - 1, 11, 31);
|
|
1386
|
+
case 6:
|
|
1387
|
+
return new Date(d.getFullYear() - 1, 11, 30);
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
function R(d) {
|
|
1391
|
+
var y = Jn(new Date(d.tm_year + 1900, 0, 1), d.tm_yday), F = new Date(y.getFullYear(), 0, 4), O = new Date(y.getFullYear() + 1, 0, 4), ut = x(F), Rt = x(O);
|
|
1392
|
+
return _(ut, y) <= 0 ? _(Rt, y) <= 0 ? y.getFullYear() + 1 : y.getFullYear() : y.getFullYear() - 1;
|
|
1393
|
+
}
|
|
1394
|
+
var D = { "%a": (d) => f[d.tm_wday].substring(0, 3), "%A": (d) => f[d.tm_wday], "%b": (d) => h[d.tm_mon].substring(0, 3), "%B": (d) => h[d.tm_mon], "%C": (d) => {
|
|
1395
|
+
var y = d.tm_year + 1900;
|
|
1396
|
+
return v(y / 100 | 0, 2);
|
|
1397
|
+
}, "%d": (d) => v(d.tm_mday, 2), "%e": (d) => m(d.tm_mday, 2, " "), "%g": (d) => R(d).toString().substring(2), "%G": (d) => R(d), "%H": (d) => v(d.tm_hour, 2), "%I": (d) => {
|
|
1398
|
+
var y = d.tm_hour;
|
|
1399
|
+
return y == 0 ? y = 12 : y > 12 && (y -= 12), v(y, 2);
|
|
1400
|
+
}, "%j": (d) => v(d.tm_mday + Qn(Mt(d.tm_year + 1900) ? Ae : Se, d.tm_mon - 1), 3), "%m": (d) => v(d.tm_mon + 1, 2), "%M": (d) => v(d.tm_min, 2), "%n": () => `
|
|
1401
|
+
`, "%p": (d) => d.tm_hour >= 0 && d.tm_hour < 12 ? "AM" : "PM", "%S": (d) => v(d.tm_sec, 2), "%t": () => " ", "%u": (d) => d.tm_wday || 7, "%U": (d) => {
|
|
1402
|
+
var y = d.tm_yday + 7 - d.tm_wday;
|
|
1403
|
+
return v(Math.floor(y / 7), 2);
|
|
1404
|
+
}, "%V": (d) => {
|
|
1405
|
+
var y = Math.floor((d.tm_yday + 7 - (d.tm_wday + 6) % 7) / 7);
|
|
1406
|
+
if ((d.tm_wday + 371 - d.tm_yday - 2) % 7 <= 2 && y++, y) {
|
|
1407
|
+
if (y == 53) {
|
|
1408
|
+
var F = (d.tm_wday + 371 - d.tm_yday) % 7;
|
|
1409
|
+
F != 4 && (F != 3 || !Mt(d.tm_year)) && (y = 1);
|
|
1410
|
+
}
|
|
1411
|
+
} else {
|
|
1412
|
+
y = 52;
|
|
1413
|
+
var O = (d.tm_wday + 7 - d.tm_yday - 1) % 7;
|
|
1414
|
+
(O == 4 || O == 5 && Mt(d.tm_year % 400 - 1)) && y++;
|
|
1415
|
+
}
|
|
1416
|
+
return v(y, 2);
|
|
1417
|
+
}, "%w": (d) => d.tm_wday, "%W": (d) => {
|
|
1418
|
+
var y = d.tm_yday + 7 - (d.tm_wday + 6) % 7;
|
|
1419
|
+
return v(Math.floor(y / 7), 2);
|
|
1420
|
+
}, "%y": (d) => (d.tm_year + 1900).toString().substring(2), "%Y": (d) => d.tm_year + 1900, "%z": (d) => {
|
|
1421
|
+
var y = d.tm_gmtoff, F = y >= 0;
|
|
1422
|
+
return y = Math.abs(y) / 60, y = y / 60 * 100 + y % 60, (F ? "+" : "-") + ("0000" + y).slice(-4);
|
|
1423
|
+
}, "%Z": (d) => d.tm_zone, "%%": () => "%" };
|
|
1424
|
+
s = s.replace(/%%/g, "\0\0");
|
|
1425
|
+
for (var l in D)
|
|
1426
|
+
s.includes(l) && (s = s.replace(new RegExp(l, "g"), D[l](o)));
|
|
1427
|
+
s = s.replace(/\0\0/g, "%");
|
|
1428
|
+
var I = Kn(s, !1);
|
|
1429
|
+
return I.length > e ? 0 : (ta(I, t), I.length - 1);
|
|
1430
|
+
}, ra = (t, e, r, n, a) => ea(t, e, r, n);
|
|
1431
|
+
ie = i.InternalError = class extends Error {
|
|
1432
|
+
constructor(t) {
|
|
1433
|
+
super(t), this.name = "InternalError";
|
|
1434
|
+
}
|
|
1435
|
+
}, Ar(), lt = i.BindingError = class extends Error {
|
|
1436
|
+
constructor(t) {
|
|
1437
|
+
super(t), this.name = "BindingError";
|
|
1438
|
+
}
|
|
1439
|
+
}, Nr(), Hr(), rn(), ge = i.UnboundTypeError = sn(Error, "UnboundTypeError"), fn(), hn();
|
|
1440
|
+
var na = { q: vr, u: gr, a: $r, h: br, l: Cr, I: _r, P: Tr, n: Pr, ba: Er, d: wr, oa: xr, Y: Dr, fa: Fr, na: un, ma: cn, D: ln, ea: pn, W: mn, J: vn, w: wn, s: $n, V: _n, L: Sn, Q: Fn, pa: On, ga: Mn, U: be, la: In, R: Wn, ia: kn, ka: Bn, K: Un, da: Vn, ca: Yn, $: Xn, aa: qn, H: Ca, T: Fa, B: Ta, p: wa, b: aa, C: ba, ha: Ea, c: ca, j: fa, i: sa, x: _a, O: $a, v: va, G: Da, N: Aa, A: Pa, F: Oa, Z: ja, X: Ra, k: la, f: ua, e: ia, g: oa, M: Sa, m: ma, o: da, S: ha, t: ya, ja: ga, y: xa, r: pa, E: Ma, z: Zn, _: ra }, S = mr(), tt = i._free = (t) => (tt = i._free = S.sa)(t), Xt = i._malloc = (t) => (Xt = i._malloc = S.ta)(t), Fe = (t) => (Fe = S.va)(t);
|
|
1441
|
+
i.__embind_initialize_bindings = () => (i.__embind_initialize_bindings = S.wa)();
|
|
1442
|
+
var $ = (t, e) => ($ = S.xa)(t, e), $t = (t) => ($t = S.ya)(t), b = () => (b = S.za)(), C = (t) => (C = S.Aa)(t), Oe = (t) => (Oe = S.Ba)(t), Me = (t) => (Me = S.Ca)(t), je = (t, e, r) => (je = S.Da)(t, e, r), Re = (t) => (Re = S.Ea)(t);
|
|
1443
|
+
i.dynCall_viijii = (t, e, r, n, a, o, s) => (i.dynCall_viijii = S.Fa)(t, e, r, n, a, o, s);
|
|
1444
|
+
var Ie = i.dynCall_jiii = (t, e, r, n) => (Ie = i.dynCall_jiii = S.Ga)(t, e, r, n), We = i.dynCall_jiiii = (t, e, r, n, a) => (We = i.dynCall_jiiii = S.Ha)(t, e, r, n, a);
|
|
1445
|
+
i.dynCall_iiiiij = (t, e, r, n, a, o, s) => (i.dynCall_iiiiij = S.Ia)(t, e, r, n, a, o, s), i.dynCall_iiiiijj = (t, e, r, n, a, o, s, u, l) => (i.dynCall_iiiiijj = S.Ja)(t, e, r, n, a, o, s, u, l), i.dynCall_iiiiiijj = (t, e, r, n, a, o, s, u, l, f) => (i.dynCall_iiiiiijj = S.Ka)(t, e, r, n, a, o, s, u, l, f);
|
|
1446
|
+
function aa(t, e) {
|
|
1447
|
+
var r = b();
|
|
1448
|
+
try {
|
|
1449
|
+
return P(t)(e);
|
|
1450
|
+
} catch (n) {
|
|
1451
|
+
if (C(r), n !== n + 0)
|
|
1452
|
+
throw n;
|
|
1453
|
+
$(1, 0);
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
function oa(t, e, r, n) {
|
|
1457
|
+
var a = b();
|
|
1458
|
+
try {
|
|
1459
|
+
P(t)(e, r, n);
|
|
1460
|
+
} catch (o) {
|
|
1461
|
+
if (C(a), o !== o + 0)
|
|
1462
|
+
throw o;
|
|
1463
|
+
$(1, 0);
|
|
1464
|
+
}
|
|
1465
|
+
}
|
|
1466
|
+
function ia(t, e, r) {
|
|
1467
|
+
var n = b();
|
|
1468
|
+
try {
|
|
1469
|
+
P(t)(e, r);
|
|
1470
|
+
} catch (a) {
|
|
1471
|
+
if (C(n), a !== a + 0)
|
|
1472
|
+
throw a;
|
|
1473
|
+
$(1, 0);
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
function sa(t, e, r, n, a) {
|
|
1477
|
+
var o = b();
|
|
1478
|
+
try {
|
|
1479
|
+
return P(t)(e, r, n, a);
|
|
1480
|
+
} catch (s) {
|
|
1481
|
+
if (C(o), s !== s + 0)
|
|
1482
|
+
throw s;
|
|
1483
|
+
$(1, 0);
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
1486
|
+
function ua(t, e) {
|
|
1487
|
+
var r = b();
|
|
1488
|
+
try {
|
|
1489
|
+
P(t)(e);
|
|
1490
|
+
} catch (n) {
|
|
1491
|
+
if (C(r), n !== n + 0)
|
|
1492
|
+
throw n;
|
|
1493
|
+
$(1, 0);
|
|
1494
|
+
}
|
|
1495
|
+
}
|
|
1496
|
+
function ca(t, e, r) {
|
|
1497
|
+
var n = b();
|
|
1498
|
+
try {
|
|
1499
|
+
return P(t)(e, r);
|
|
1500
|
+
} catch (a) {
|
|
1501
|
+
if (C(n), a !== a + 0)
|
|
1502
|
+
throw a;
|
|
1503
|
+
$(1, 0);
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1506
|
+
function la(t) {
|
|
1507
|
+
var e = b();
|
|
1508
|
+
try {
|
|
1509
|
+
P(t)();
|
|
1510
|
+
} catch (r) {
|
|
1511
|
+
if (C(e), r !== r + 0)
|
|
1512
|
+
throw r;
|
|
1513
|
+
$(1, 0);
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1516
|
+
function fa(t, e, r, n) {
|
|
1517
|
+
var a = b();
|
|
1518
|
+
try {
|
|
1519
|
+
return P(t)(e, r, n);
|
|
1520
|
+
} catch (o) {
|
|
1521
|
+
if (C(a), o !== o + 0)
|
|
1522
|
+
throw o;
|
|
1523
|
+
$(1, 0);
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
function da(t, e, r, n, a, o) {
|
|
1527
|
+
var s = b();
|
|
1528
|
+
try {
|
|
1529
|
+
P(t)(e, r, n, a, o);
|
|
1530
|
+
} catch (u) {
|
|
1531
|
+
if (C(s), u !== u + 0)
|
|
1532
|
+
throw u;
|
|
1533
|
+
$(1, 0);
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
function ha(t, e, r, n, a, o, s) {
|
|
1537
|
+
var u = b();
|
|
1538
|
+
try {
|
|
1539
|
+
P(t)(e, r, n, a, o, s);
|
|
1540
|
+
} catch (l) {
|
|
1541
|
+
if (C(u), l !== l + 0)
|
|
1542
|
+
throw l;
|
|
1543
|
+
$(1, 0);
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
function pa(t, e, r, n, a, o, s, u, l, f, h) {
|
|
1547
|
+
var m = b();
|
|
1548
|
+
try {
|
|
1549
|
+
P(t)(e, r, n, a, o, s, u, l, f, h);
|
|
1550
|
+
} catch (v) {
|
|
1551
|
+
if (C(m), v !== v + 0)
|
|
1552
|
+
throw v;
|
|
1553
|
+
$(1, 0);
|
|
1554
|
+
}
|
|
1555
|
+
}
|
|
1556
|
+
function ya(t, e, r, n, a, o, s, u) {
|
|
1557
|
+
var l = b();
|
|
1558
|
+
try {
|
|
1559
|
+
P(t)(e, r, n, a, o, s, u);
|
|
1560
|
+
} catch (f) {
|
|
1561
|
+
if (C(l), f !== f + 0)
|
|
1562
|
+
throw f;
|
|
1563
|
+
$(1, 0);
|
|
1564
|
+
}
|
|
1565
|
+
}
|
|
1566
|
+
function ma(t, e, r, n, a) {
|
|
1567
|
+
var o = b();
|
|
1568
|
+
try {
|
|
1569
|
+
P(t)(e, r, n, a);
|
|
1570
|
+
} catch (s) {
|
|
1571
|
+
if (C(o), s !== s + 0)
|
|
1572
|
+
throw s;
|
|
1573
|
+
$(1, 0);
|
|
1574
|
+
}
|
|
1575
|
+
}
|
|
1576
|
+
function va(t, e, r, n, a, o, s) {
|
|
1577
|
+
var u = b();
|
|
1578
|
+
try {
|
|
1579
|
+
return P(t)(e, r, n, a, o, s);
|
|
1580
|
+
} catch (l) {
|
|
1581
|
+
if (C(u), l !== l + 0)
|
|
1582
|
+
throw l;
|
|
1583
|
+
$(1, 0);
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
function ga(t, e, r, n, a, o, s, u, l) {
|
|
1587
|
+
var f = b();
|
|
1588
|
+
try {
|
|
1589
|
+
P(t)(e, r, n, a, o, s, u, l);
|
|
1590
|
+
} catch (h) {
|
|
1591
|
+
if (C(f), h !== h + 0)
|
|
1592
|
+
throw h;
|
|
1593
|
+
$(1, 0);
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1596
|
+
function wa(t) {
|
|
1597
|
+
var e = b();
|
|
1598
|
+
try {
|
|
1599
|
+
return P(t)();
|
|
1600
|
+
} catch (r) {
|
|
1601
|
+
if (C(e), r !== r + 0)
|
|
1602
|
+
throw r;
|
|
1603
|
+
$(1, 0);
|
|
1604
|
+
}
|
|
1605
|
+
}
|
|
1606
|
+
function $a(t, e, r, n, a, o, s) {
|
|
1607
|
+
var u = b();
|
|
1608
|
+
try {
|
|
1609
|
+
return P(t)(e, r, n, a, o, s);
|
|
1610
|
+
} catch (l) {
|
|
1611
|
+
if (C(u), l !== l + 0)
|
|
1612
|
+
throw l;
|
|
1613
|
+
$(1, 0);
|
|
1614
|
+
}
|
|
1615
|
+
}
|
|
1616
|
+
function ba(t, e, r, n) {
|
|
1617
|
+
var a = b();
|
|
1618
|
+
try {
|
|
1619
|
+
return P(t)(e, r, n);
|
|
1620
|
+
} catch (o) {
|
|
1621
|
+
if (C(a), o !== o + 0)
|
|
1622
|
+
throw o;
|
|
1623
|
+
$(1, 0);
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
function Ca(t, e, r, n) {
|
|
1627
|
+
var a = b();
|
|
1628
|
+
try {
|
|
1629
|
+
return P(t)(e, r, n);
|
|
1630
|
+
} catch (o) {
|
|
1631
|
+
if (C(a), o !== o + 0)
|
|
1632
|
+
throw o;
|
|
1633
|
+
$(1, 0);
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
function _a(t, e, r, n, a, o) {
|
|
1637
|
+
var s = b();
|
|
1638
|
+
try {
|
|
1639
|
+
return P(t)(e, r, n, a, o);
|
|
1640
|
+
} catch (u) {
|
|
1641
|
+
if (C(s), u !== u + 0)
|
|
1642
|
+
throw u;
|
|
1643
|
+
$(1, 0);
|
|
1644
|
+
}
|
|
1645
|
+
}
|
|
1646
|
+
function Ta(t, e, r, n, a, o) {
|
|
1647
|
+
var s = b();
|
|
1648
|
+
try {
|
|
1649
|
+
return P(t)(e, r, n, a, o);
|
|
1650
|
+
} catch (u) {
|
|
1651
|
+
if (C(s), u !== u + 0)
|
|
1652
|
+
throw u;
|
|
1653
|
+
$(1, 0);
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1656
|
+
function Pa(t, e, r, n, a, o, s, u, l, f) {
|
|
1657
|
+
var h = b();
|
|
1658
|
+
try {
|
|
1659
|
+
return P(t)(e, r, n, a, o, s, u, l, f);
|
|
1660
|
+
} catch (m) {
|
|
1661
|
+
if (C(h), m !== m + 0)
|
|
1662
|
+
throw m;
|
|
1663
|
+
$(1, 0);
|
|
1664
|
+
}
|
|
1665
|
+
}
|
|
1666
|
+
function Ea(t, e, r) {
|
|
1667
|
+
var n = b();
|
|
1668
|
+
try {
|
|
1669
|
+
return P(t)(e, r);
|
|
1670
|
+
} catch (a) {
|
|
1671
|
+
if (C(n), a !== a + 0)
|
|
1672
|
+
throw a;
|
|
1673
|
+
$(1, 0);
|
|
1674
|
+
}
|
|
1675
|
+
}
|
|
1676
|
+
function xa(t, e, r, n, a, o, s, u, l, f) {
|
|
1677
|
+
var h = b();
|
|
1678
|
+
try {
|
|
1679
|
+
P(t)(e, r, n, a, o, s, u, l, f);
|
|
1680
|
+
} catch (m) {
|
|
1681
|
+
if (C(h), m !== m + 0)
|
|
1682
|
+
throw m;
|
|
1683
|
+
$(1, 0);
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
function Da(t, e, r, n, a, o, s, u) {
|
|
1687
|
+
var l = b();
|
|
1688
|
+
try {
|
|
1689
|
+
return P(t)(e, r, n, a, o, s, u);
|
|
1690
|
+
} catch (f) {
|
|
1691
|
+
if (C(l), f !== f + 0)
|
|
1692
|
+
throw f;
|
|
1693
|
+
$(1, 0);
|
|
1694
|
+
}
|
|
1695
|
+
}
|
|
1696
|
+
function Aa(t, e, r, n, a, o, s, u, l) {
|
|
1697
|
+
var f = b();
|
|
1698
|
+
try {
|
|
1699
|
+
return P(t)(e, r, n, a, o, s, u, l);
|
|
1700
|
+
} catch (h) {
|
|
1701
|
+
if (C(f), h !== h + 0)
|
|
1702
|
+
throw h;
|
|
1703
|
+
$(1, 0);
|
|
1704
|
+
}
|
|
1705
|
+
}
|
|
1706
|
+
function Sa(t, e, r, n, a, o, s) {
|
|
1707
|
+
var u = b();
|
|
1708
|
+
try {
|
|
1709
|
+
P(t)(e, r, n, a, o, s);
|
|
1710
|
+
} catch (l) {
|
|
1711
|
+
if (C(u), l !== l + 0)
|
|
1712
|
+
throw l;
|
|
1713
|
+
$(1, 0);
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
function Fa(t, e, r, n) {
|
|
1717
|
+
var a = b();
|
|
1718
|
+
try {
|
|
1719
|
+
return P(t)(e, r, n);
|
|
1720
|
+
} catch (o) {
|
|
1721
|
+
if (C(a), o !== o + 0)
|
|
1722
|
+
throw o;
|
|
1723
|
+
$(1, 0);
|
|
1724
|
+
}
|
|
1725
|
+
}
|
|
1726
|
+
function Oa(t, e, r, n, a, o, s, u, l, f, h, m) {
|
|
1727
|
+
var v = b();
|
|
1728
|
+
try {
|
|
1729
|
+
return P(t)(e, r, n, a, o, s, u, l, f, h, m);
|
|
1730
|
+
} catch (_) {
|
|
1731
|
+
if (C(v), _ !== _ + 0)
|
|
1732
|
+
throw _;
|
|
1733
|
+
$(1, 0);
|
|
1734
|
+
}
|
|
1735
|
+
}
|
|
1736
|
+
function Ma(t, e, r, n, a, o, s, u, l, f, h, m, v, _, x, R) {
|
|
1737
|
+
var D = b();
|
|
1738
|
+
try {
|
|
1739
|
+
P(t)(e, r, n, a, o, s, u, l, f, h, m, v, _, x, R);
|
|
1740
|
+
} catch (I) {
|
|
1741
|
+
if (C(D), I !== I + 0)
|
|
1742
|
+
throw I;
|
|
1743
|
+
$(1, 0);
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
function ja(t, e, r, n) {
|
|
1747
|
+
var a = b();
|
|
1748
|
+
try {
|
|
1749
|
+
return Ie(t, e, r, n);
|
|
1750
|
+
} catch (o) {
|
|
1751
|
+
if (C(a), o !== o + 0)
|
|
1752
|
+
throw o;
|
|
1753
|
+
$(1, 0);
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
function Ra(t, e, r, n, a) {
|
|
1757
|
+
var o = b();
|
|
1758
|
+
try {
|
|
1759
|
+
return We(t, e, r, n, a);
|
|
1760
|
+
} catch (s) {
|
|
1761
|
+
if (C(o), s !== s + 0)
|
|
1762
|
+
throw s;
|
|
1763
|
+
$(1, 0);
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1766
|
+
var jt;
|
|
1767
|
+
pt = function t() {
|
|
1768
|
+
jt || He(), jt || (pt = t);
|
|
1769
|
+
};
|
|
1770
|
+
function He() {
|
|
1771
|
+
if (at > 0 || (or(), at > 0))
|
|
1772
|
+
return;
|
|
1773
|
+
function t() {
|
|
1774
|
+
jt || (jt = !0, i.calledRun = !0, !dt && (ir(), g(i), i.onRuntimeInitialized && i.onRuntimeInitialized(), sr()));
|
|
1775
|
+
}
|
|
1776
|
+
i.setStatus ? (i.setStatus("Running..."), setTimeout(function() {
|
|
1777
|
+
setTimeout(function() {
|
|
1778
|
+
i.setStatus("");
|
|
1779
|
+
}, 1), t();
|
|
1780
|
+
}, 1)) : t();
|
|
1781
|
+
}
|
|
1782
|
+
if (i.preInit)
|
|
1783
|
+
for (typeof i.preInit == "function" && (i.preInit = [i.preInit]); i.preInit.length > 0; )
|
|
1784
|
+
i.preInit.pop()();
|
|
1785
|
+
return He(), p.ready;
|
|
1786
|
+
};
|
|
1787
|
+
})();
|
|
1788
|
+
function Ka(c) {
|
|
1789
|
+
return rr(nr, c);
|
|
1790
|
+
}
|
|
1791
|
+
async function to(c, {
|
|
1792
|
+
tryHarder: p = nt.tryHarder,
|
|
1793
|
+
formats: i = nt.formats,
|
|
1794
|
+
maxSymbols: g = nt.maxSymbols
|
|
1795
|
+
} = nt) {
|
|
1796
|
+
return Za(
|
|
1797
|
+
c,
|
|
1798
|
+
{
|
|
1799
|
+
tryHarder: p,
|
|
1800
|
+
formats: i,
|
|
1801
|
+
maxSymbols: g
|
|
1802
|
+
},
|
|
1803
|
+
nr
|
|
1804
|
+
);
|
|
1805
|
+
}
|
|
1806
|
+
const ar = /* @__PURE__ */ new Map([
|
|
1807
|
+
["aztec", "Aztec"],
|
|
1808
|
+
["code_128", "Code128"],
|
|
1809
|
+
["code_39", "Code39"],
|
|
1810
|
+
["code_93", "Code93"],
|
|
1811
|
+
["codabar", "Codabar"],
|
|
1812
|
+
["data_matrix", "DataMatrix"],
|
|
1813
|
+
["ean_13", "EAN-13"],
|
|
1814
|
+
["ean_8", "EAN-8"],
|
|
1815
|
+
["itf", "ITF"],
|
|
1816
|
+
["pdf417", "PDF417"],
|
|
1817
|
+
["qr_code", "QRCode"],
|
|
1818
|
+
["upc_a", "UPC-A"],
|
|
1819
|
+
["upc_e", "UPC-E"]
|
|
1820
|
+
]);
|
|
1821
|
+
function eo(c) {
|
|
1822
|
+
for (const [p, i] of ar)
|
|
1823
|
+
if (c === i)
|
|
1824
|
+
return p;
|
|
1825
|
+
return "unknown";
|
|
1826
|
+
}
|
|
1827
|
+
var bt;
|
|
1828
|
+
class ao extends EventTarget {
|
|
1829
|
+
constructor(i = {}) {
|
|
1830
|
+
var g;
|
|
1831
|
+
super();
|
|
1832
|
+
Ue(this, bt, void 0);
|
|
1833
|
+
try {
|
|
1834
|
+
const w = (g = i == null ? void 0 : i.formats) == null ? void 0 : g.filter(
|
|
1835
|
+
(E) => E !== "unknown"
|
|
1836
|
+
);
|
|
1837
|
+
if ((w == null ? void 0 : w.length) === 0)
|
|
1838
|
+
throw new TypeError("Hint option provided, but is empty.");
|
|
1839
|
+
w == null || w.forEach((E) => {
|
|
1840
|
+
if (!Le.includes(E))
|
|
1841
|
+
throw new TypeError(
|
|
1842
|
+
`Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${E}' is not a valid enum value of type BarcodeFormat.`
|
|
1843
|
+
);
|
|
1844
|
+
}), Ve(this, bt, w != null ? w : []), Ka().then((E) => {
|
|
1845
|
+
this.dispatchEvent(
|
|
1846
|
+
new CustomEvent("load", {
|
|
1847
|
+
detail: E
|
|
1848
|
+
})
|
|
1849
|
+
);
|
|
1850
|
+
}).catch((E) => {
|
|
1851
|
+
this.dispatchEvent(new CustomEvent("error", { detail: E }));
|
|
1852
|
+
});
|
|
1853
|
+
} catch (w) {
|
|
1854
|
+
throw ze(
|
|
1855
|
+
w,
|
|
1856
|
+
"Failed to construct 'BarcodeDetector'"
|
|
1857
|
+
);
|
|
1858
|
+
}
|
|
1859
|
+
}
|
|
1860
|
+
static async getSupportedFormats() {
|
|
1861
|
+
return Le.filter((i) => i !== "unknown");
|
|
1862
|
+
}
|
|
1863
|
+
async detect(i) {
|
|
1864
|
+
try {
|
|
1865
|
+
const g = await Va(i);
|
|
1866
|
+
if (g === null)
|
|
1867
|
+
return [];
|
|
1868
|
+
let w;
|
|
1869
|
+
try {
|
|
1870
|
+
w = await to(g, {
|
|
1871
|
+
tryHarder: !0,
|
|
1872
|
+
formats: Be(this, bt).map(
|
|
1873
|
+
(E) => ar.get(E)
|
|
1874
|
+
)
|
|
1875
|
+
});
|
|
1876
|
+
} catch {
|
|
1877
|
+
throw new DOMException(
|
|
1878
|
+
"Barcode detection service unavailable. Use 'setZXingModuleOverrides' in offline or strict CSP environments.",
|
|
1879
|
+
"NotSupportedError"
|
|
1880
|
+
);
|
|
1881
|
+
}
|
|
1882
|
+
return w.map((E) => {
|
|
1883
|
+
const {
|
|
1884
|
+
topLeft: { x: M, y: Y },
|
|
1885
|
+
topRight: { x: B, y: j },
|
|
1886
|
+
bottomLeft: { x: N, y: X },
|
|
1887
|
+
bottomRight: { x: V, y: U }
|
|
1888
|
+
} = E.position, q = Math.min(M, B, N, V), dt = Math.min(Y, j, X, U), L = Math.max(M, B, N, V), W = Math.max(Y, j, X, U);
|
|
1889
|
+
return {
|
|
1890
|
+
boundingBox: new DOMRectReadOnly(
|
|
1891
|
+
q,
|
|
1892
|
+
dt,
|
|
1893
|
+
L - q,
|
|
1894
|
+
W - dt
|
|
1895
|
+
),
|
|
1896
|
+
rawValue: new TextDecoder().decode(E.bytes),
|
|
1897
|
+
format: eo(E.format),
|
|
1898
|
+
cornerPoints: [
|
|
1899
|
+
{
|
|
1900
|
+
x: M,
|
|
1901
|
+
y: Y
|
|
1902
|
+
},
|
|
1903
|
+
{
|
|
1904
|
+
x: B,
|
|
1905
|
+
y: j
|
|
1906
|
+
},
|
|
1907
|
+
{
|
|
1908
|
+
x: V,
|
|
1909
|
+
y: U
|
|
1910
|
+
},
|
|
1911
|
+
{
|
|
1912
|
+
x: N,
|
|
1913
|
+
y: X
|
|
1914
|
+
}
|
|
1915
|
+
]
|
|
1916
|
+
};
|
|
1917
|
+
});
|
|
1918
|
+
} catch (g) {
|
|
1919
|
+
throw ze(
|
|
1920
|
+
g,
|
|
1921
|
+
"Failed to execute 'detect' on 'BarcodeDetector'"
|
|
1922
|
+
);
|
|
1923
|
+
}
|
|
1924
|
+
}
|
|
1925
|
+
}
|
|
1926
|
+
bt = new WeakMap();
|
|
1927
|
+
export {
|
|
1928
|
+
ao as BarcodeDetector,
|
|
1929
|
+
no as setZXingModuleOverrides
|
|
1930
|
+
};
|