barcode-detector 2.1.1 → 2.1.3
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/dist/cjs/BarcodeDetector.d.ts +2 -2
- package/dist/cjs/pure.js +3 -3
- package/dist/es/BarcodeDetector.d.ts +2 -2
- package/dist/es/pure.js +317 -314
- package/dist/iife/index.js +3 -3
- package/dist/iife/pure.js +3 -3
- package/dist/iife/side-effects.js +3 -3
- package/package.json +13 -13
package/dist/es/pure.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
var Ye = (i,
|
|
2
|
-
if (!
|
|
1
|
+
var Ye = (i, f, s) => {
|
|
2
|
+
if (!f.has(i))
|
|
3
3
|
throw TypeError("Cannot " + s);
|
|
4
4
|
};
|
|
5
|
-
var Kt = (i,
|
|
6
|
-
if (
|
|
5
|
+
var Kt = (i, f, s) => (Ye(i, f, "read from private field"), s ? s.call(i) : f.get(i)), ze = (i, f, s) => {
|
|
6
|
+
if (f.has(i))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
const
|
|
8
|
+
f instanceof WeakSet ? f.add(i) : f.set(i, s);
|
|
9
|
+
}, Ne = (i, f, s, w) => (Ye(i, f, "write to private field"), w ? w.call(i, s) : f.set(i, s), s);
|
|
10
|
+
const Ge = [
|
|
11
11
|
"aztec",
|
|
12
12
|
"code_128",
|
|
13
13
|
"code_39",
|
|
@@ -126,15 +126,15 @@ function Ca(i) {
|
|
|
126
126
|
return !1;
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
-
function _a(i,
|
|
129
|
+
function _a(i, f) {
|
|
130
130
|
try {
|
|
131
|
-
const s = new OffscreenCanvas(i,
|
|
131
|
+
const s = new OffscreenCanvas(i, f);
|
|
132
132
|
if (s.getContext("2d") instanceof OffscreenCanvasRenderingContext2D)
|
|
133
133
|
return s;
|
|
134
134
|
throw void 0;
|
|
135
135
|
} catch {
|
|
136
136
|
const s = document.createElement("canvas");
|
|
137
|
-
return s.width = i, s.height =
|
|
137
|
+
return s.width = i, s.height = f, s;
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
async function or(i) {
|
|
@@ -152,32 +152,32 @@ async function or(i) {
|
|
|
152
152
|
throw new DOMException("VideoFrame is closed.", "InvalidStateError");
|
|
153
153
|
if (Ke(i) && (i.readyState === 0 || i.readyState === 1))
|
|
154
154
|
throw new DOMException("Invalid element or state.", "InvalidStateError");
|
|
155
|
-
if (er(i) &&
|
|
155
|
+
if (er(i) && xa(i))
|
|
156
156
|
throw new DOMException(
|
|
157
157
|
"The image source is detached.",
|
|
158
158
|
"InvalidStateError"
|
|
159
159
|
);
|
|
160
|
-
const { width:
|
|
161
|
-
if (
|
|
160
|
+
const { width: f, height: s } = ba(i);
|
|
161
|
+
if (f === 0 || s === 0)
|
|
162
162
|
return null;
|
|
163
|
-
const v = _a(
|
|
163
|
+
const v = _a(f, s).getContext("2d");
|
|
164
164
|
v.drawImage(i, 0, 0);
|
|
165
165
|
try {
|
|
166
|
-
return v.getImageData(0, 0,
|
|
166
|
+
return v.getImageData(0, 0, f, s);
|
|
167
167
|
} catch {
|
|
168
168
|
throw new DOMException("Source would taint origin.", "SecurityError");
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
async function Ta(i) {
|
|
172
|
-
let
|
|
172
|
+
let f;
|
|
173
173
|
try {
|
|
174
|
-
if (createImageBitmap)
|
|
175
|
-
|
|
176
|
-
else if (Image) {
|
|
177
|
-
|
|
174
|
+
if (globalThis.createImageBitmap)
|
|
175
|
+
f = await createImageBitmap(i);
|
|
176
|
+
else if (globalThis.Image) {
|
|
177
|
+
f = new Image();
|
|
178
178
|
let w = "";
|
|
179
179
|
try {
|
|
180
|
-
w = URL.createObjectURL(i),
|
|
180
|
+
w = URL.createObjectURL(i), f.src = w, await f.decode();
|
|
181
181
|
} finally {
|
|
182
182
|
URL.revokeObjectURL(w);
|
|
183
183
|
}
|
|
@@ -189,15 +189,15 @@ async function Ta(i) {
|
|
|
189
189
|
"InvalidStateError"
|
|
190
190
|
);
|
|
191
191
|
}
|
|
192
|
-
return await or(
|
|
192
|
+
return await or(f);
|
|
193
193
|
}
|
|
194
194
|
function Pa(i) {
|
|
195
|
-
const { width:
|
|
196
|
-
if (
|
|
195
|
+
const { width: f, height: s } = i;
|
|
196
|
+
if (f === 0 || s === 0)
|
|
197
197
|
return null;
|
|
198
198
|
const w = i.getContext("2d");
|
|
199
199
|
try {
|
|
200
|
-
return w.getImageData(0, 0,
|
|
200
|
+
return w.getImageData(0, 0, f, s);
|
|
201
201
|
} catch {
|
|
202
202
|
throw new DOMException("Source would taint origin.", "SecurityError");
|
|
203
203
|
}
|
|
@@ -223,9 +223,9 @@ async function Aa(i) {
|
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
async function Oa(i) {
|
|
226
|
-
var
|
|
226
|
+
var f;
|
|
227
227
|
try {
|
|
228
|
-
return await ((
|
|
228
|
+
return await ((f = i.decode) == null ? void 0 : f.call(i)), !0;
|
|
229
229
|
} catch {
|
|
230
230
|
return !1;
|
|
231
231
|
}
|
|
@@ -236,11 +236,11 @@ function Da(i) {
|
|
|
236
236
|
function Fa(i) {
|
|
237
237
|
return i.data.buffer.byteLength === 0;
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function xa(i) {
|
|
240
240
|
return i.width === 0 && i.height === 0;
|
|
241
241
|
}
|
|
242
|
-
function Xe(i,
|
|
243
|
-
return i instanceof DOMException ? new DOMException(`${
|
|
242
|
+
function Xe(i, f) {
|
|
243
|
+
return i instanceof DOMException ? new DOMException(`${f}: ${i.message}`, i.name) : i instanceof Error ? new i.constructor(`${f}: ${i.message}`) : new Error(`${f}: ${i}`);
|
|
244
244
|
}
|
|
245
245
|
const qe = [
|
|
246
246
|
"Aztec",
|
|
@@ -264,28 +264,28 @@ const qe = [
|
|
|
264
264
|
"UPC-A",
|
|
265
265
|
"UPC-E"
|
|
266
266
|
];
|
|
267
|
-
function
|
|
267
|
+
function Sa(i) {
|
|
268
268
|
return i.join("|");
|
|
269
269
|
}
|
|
270
270
|
function Ma(i) {
|
|
271
|
-
const
|
|
271
|
+
const f = Ze(i);
|
|
272
272
|
let s = 0, w = qe.length - 1;
|
|
273
273
|
for (; s <= w; ) {
|
|
274
274
|
const v = Math.floor((s + w) / 2), $ = qe[v], H = Ze($);
|
|
275
|
-
if (H ===
|
|
275
|
+
if (H === f)
|
|
276
276
|
return $;
|
|
277
|
-
H <
|
|
277
|
+
H < f ? s = v + 1 : w = v - 1;
|
|
278
278
|
}
|
|
279
279
|
return "None";
|
|
280
280
|
}
|
|
281
281
|
function Ze(i) {
|
|
282
282
|
return i.toLowerCase().replace(/_-\[\]/g, "");
|
|
283
283
|
}
|
|
284
|
-
function
|
|
285
|
-
return i.Binarizer[
|
|
284
|
+
function Ia(i, f) {
|
|
285
|
+
return i.Binarizer[f];
|
|
286
286
|
}
|
|
287
|
-
function
|
|
288
|
-
return i.CharacterSet[
|
|
287
|
+
function ja(i, f) {
|
|
288
|
+
return i.CharacterSet[f];
|
|
289
289
|
}
|
|
290
290
|
const Ra = [
|
|
291
291
|
"Text",
|
|
@@ -298,13 +298,13 @@ const Ra = [
|
|
|
298
298
|
function Wa(i) {
|
|
299
299
|
return Ra[i.value];
|
|
300
300
|
}
|
|
301
|
-
function ka(i,
|
|
302
|
-
return i.EanAddOnSymbol[
|
|
301
|
+
function ka(i, f) {
|
|
302
|
+
return i.EanAddOnSymbol[f];
|
|
303
303
|
}
|
|
304
|
-
function Ha(i,
|
|
305
|
-
return i.TextMode[
|
|
304
|
+
function Ha(i, f) {
|
|
305
|
+
return i.TextMode[f];
|
|
306
306
|
}
|
|
307
|
-
const
|
|
307
|
+
const $t = {
|
|
308
308
|
formats: [],
|
|
309
309
|
tryHarder: !0,
|
|
310
310
|
tryRotate: !0,
|
|
@@ -325,19 +325,19 @@ const Mt = {
|
|
|
325
325
|
textMode: "Plain",
|
|
326
326
|
characterSet: "Unknown"
|
|
327
327
|
};
|
|
328
|
-
function ir(i,
|
|
328
|
+
function ir(i, f) {
|
|
329
329
|
return {
|
|
330
|
-
...
|
|
331
|
-
formats:
|
|
332
|
-
binarizer:
|
|
330
|
+
...f,
|
|
331
|
+
formats: Sa(f.formats),
|
|
332
|
+
binarizer: Ia(i, f.binarizer),
|
|
333
333
|
eanAddOnSymbol: ka(
|
|
334
334
|
i,
|
|
335
|
-
|
|
335
|
+
f.eanAddOnSymbol
|
|
336
336
|
),
|
|
337
|
-
textMode: Ha(i,
|
|
338
|
-
characterSet:
|
|
337
|
+
textMode: Ha(i, f.textMode),
|
|
338
|
+
characterSet: ja(
|
|
339
339
|
i,
|
|
340
|
-
|
|
340
|
+
f.characterSet
|
|
341
341
|
)
|
|
342
342
|
};
|
|
343
343
|
}
|
|
@@ -350,33 +350,35 @@ function sr(i) {
|
|
|
350
350
|
};
|
|
351
351
|
}
|
|
352
352
|
const Ba = {
|
|
353
|
-
locateFile: (i,
|
|
353
|
+
locateFile: (i, f) => {
|
|
354
354
|
const s = i.match(/_(.+?)\.wasm$/);
|
|
355
|
-
return s ? `https://fastly.jsdelivr.net/npm/zxing-wasm@1.0.0-rc.
|
|
355
|
+
return s ? `https://fastly.jsdelivr.net/npm/zxing-wasm@1.0.0-rc.7/dist/${s[1]}/${i}` : f + i;
|
|
356
356
|
}
|
|
357
357
|
};
|
|
358
358
|
let te = /* @__PURE__ */ new WeakMap();
|
|
359
|
-
function re(i,
|
|
359
|
+
function re(i, f) {
|
|
360
360
|
var s;
|
|
361
361
|
const w = te.get(i);
|
|
362
|
-
if (w != null && w.modulePromise && (
|
|
362
|
+
if (w != null && w.modulePromise && (f === void 0 || Object.is(f, w.moduleOverrides)))
|
|
363
363
|
return w.modulePromise;
|
|
364
|
-
const v = (s =
|
|
364
|
+
const v = (s = f != null ? f : w == null ? void 0 : w.moduleOverrides) != null ? s : Ba, $ = i({
|
|
365
|
+
...v
|
|
366
|
+
});
|
|
365
367
|
return te.set(i, {
|
|
366
368
|
moduleOverrides: v,
|
|
367
369
|
modulePromise: $
|
|
368
370
|
}), $;
|
|
369
371
|
}
|
|
370
|
-
function Ua(i,
|
|
372
|
+
function Ua(i, f) {
|
|
371
373
|
te.set(i, {
|
|
372
|
-
moduleOverrides:
|
|
374
|
+
moduleOverrides: f
|
|
373
375
|
});
|
|
374
376
|
}
|
|
375
|
-
async function Va(i,
|
|
377
|
+
async function Va(i, f, s = $t) {
|
|
376
378
|
const w = {
|
|
377
|
-
|
|
379
|
+
...$t,
|
|
378
380
|
...s
|
|
379
|
-
}, v = await re(i), { size: $ } =
|
|
381
|
+
}, v = await re(i), { size: $ } = f, H = new Uint8Array(await f.arrayBuffer()), L = v._malloc($);
|
|
380
382
|
v.HEAPU8.set(H, L);
|
|
381
383
|
const B = v.readBarcodesFromImage(
|
|
382
384
|
L,
|
|
@@ -391,16 +393,16 @@ async function Va(i, h, s = Mt) {
|
|
|
391
393
|
);
|
|
392
394
|
return O;
|
|
393
395
|
}
|
|
394
|
-
async function La(i,
|
|
396
|
+
async function La(i, f, s = $t) {
|
|
395
397
|
const w = {
|
|
396
|
-
|
|
398
|
+
...$t,
|
|
397
399
|
...s
|
|
398
400
|
}, v = await re(i), {
|
|
399
401
|
data: $,
|
|
400
402
|
width: H,
|
|
401
403
|
height: L,
|
|
402
404
|
data: { byteLength: B }
|
|
403
|
-
} =
|
|
405
|
+
} = f, O = v._malloc(B);
|
|
404
406
|
v.HEAPU8.set($, O);
|
|
405
407
|
const Y = v.readBarcodesFromPixmap(
|
|
406
408
|
O,
|
|
@@ -409,17 +411,18 @@ async function La(i, h, s = Mt) {
|
|
|
409
411
|
ir(v, w)
|
|
410
412
|
);
|
|
411
413
|
v._free(O);
|
|
412
|
-
const
|
|
414
|
+
const G = [];
|
|
413
415
|
for (let U = 0; U < Y.size(); ++U)
|
|
414
|
-
|
|
416
|
+
G.push(
|
|
415
417
|
sr(Y.get(U))
|
|
416
418
|
);
|
|
417
|
-
return
|
|
419
|
+
return G;
|
|
418
420
|
}
|
|
419
|
-
|
|
421
|
+
structuredClone($t);
|
|
422
|
+
var It = (() => {
|
|
420
423
|
var i = typeof document < "u" && document.currentScript ? document.currentScript.src : void 0;
|
|
421
|
-
return function(
|
|
422
|
-
var s =
|
|
424
|
+
return function(f = {}) {
|
|
425
|
+
var s = f, w, v;
|
|
423
426
|
s.ready = new Promise((t, e) => {
|
|
424
427
|
w = t, v = e;
|
|
425
428
|
});
|
|
@@ -429,18 +432,18 @@ var jt = (() => {
|
|
|
429
432
|
function Y(t) {
|
|
430
433
|
return s.locateFile ? s.locateFile(t, O) : O + t;
|
|
431
434
|
}
|
|
432
|
-
var
|
|
433
|
-
(L || B) && (B ? O = self.location.href : typeof document < "u" && document.currentScript && (O = document.currentScript.src), i && (O = i), O.indexOf("blob:") !== 0 ? O = O.substr(0, O.replace(/[?#].*/, "").lastIndexOf("/") + 1) : O = "", B && (
|
|
435
|
+
var G;
|
|
436
|
+
(L || B) && (B ? O = self.location.href : typeof document < "u" && document.currentScript && (O = document.currentScript.src), i && (O = i), O.indexOf("blob:") !== 0 ? O = O.substr(0, O.replace(/[?#].*/, "").lastIndexOf("/") + 1) : O = "", B && (G = (t) => {
|
|
434
437
|
var e = new XMLHttpRequest();
|
|
435
438
|
return e.open("GET", t, !1), e.responseType = "arraybuffer", e.send(null), new Uint8Array(e.response);
|
|
436
439
|
})), s.print || console.log.bind(console);
|
|
437
440
|
var U = s.printErr || console.error.bind(console);
|
|
438
441
|
Object.assign(s, $), $ = null, s.arguments && s.arguments, s.thisProgram && (H = s.thisProgram), s.quit && s.quit;
|
|
439
442
|
var Z;
|
|
440
|
-
s.wasmBinary && (Z = s.wasmBinary), typeof WebAssembly != "object" &&
|
|
443
|
+
s.wasmBinary && (Z = s.wasmBinary), typeof WebAssembly != "object" && ft("no native wasm support detected");
|
|
441
444
|
var tt, lt = !1;
|
|
442
|
-
function
|
|
443
|
-
t ||
|
|
445
|
+
function jt(t, e) {
|
|
446
|
+
t || ft(e);
|
|
444
447
|
}
|
|
445
448
|
var V, k, ot, dt, W, _, ne, ae;
|
|
446
449
|
function oe() {
|
|
@@ -460,29 +463,29 @@ var jt = (() => {
|
|
|
460
463
|
function lr() {
|
|
461
464
|
if (s.postRun)
|
|
462
465
|
for (typeof s.postRun == "function" && (s.postRun = [s.postRun]); s.postRun.length; )
|
|
463
|
-
|
|
466
|
+
fr(s.postRun.shift());
|
|
464
467
|
Rt(ue);
|
|
465
468
|
}
|
|
466
469
|
function dr(t) {
|
|
467
470
|
ie.unshift(t);
|
|
468
471
|
}
|
|
469
|
-
function
|
|
472
|
+
function hr(t) {
|
|
470
473
|
se.unshift(t);
|
|
471
474
|
}
|
|
472
|
-
function
|
|
475
|
+
function fr(t) {
|
|
473
476
|
ue.unshift(t);
|
|
474
477
|
}
|
|
475
|
-
var et = 0,
|
|
478
|
+
var et = 0, ht = null;
|
|
476
479
|
function pr(t) {
|
|
477
480
|
et++, s.monitorRunDependencies && s.monitorRunDependencies(et);
|
|
478
481
|
}
|
|
479
482
|
function mr(t) {
|
|
480
|
-
if (et--, s.monitorRunDependencies && s.monitorRunDependencies(et), et == 0 &&
|
|
481
|
-
var e =
|
|
482
|
-
|
|
483
|
+
if (et--, s.monitorRunDependencies && s.monitorRunDependencies(et), et == 0 && ht) {
|
|
484
|
+
var e = ht;
|
|
485
|
+
ht = null, e();
|
|
483
486
|
}
|
|
484
487
|
}
|
|
485
|
-
function
|
|
488
|
+
function ft(t) {
|
|
486
489
|
s.onAbort && s.onAbort(t), t = "Aborted(" + t + ")", U(t), lt = !0, t += ". Build with -sASSERTIONS for more info.";
|
|
487
490
|
var e = new WebAssembly.RuntimeError(t);
|
|
488
491
|
throw v(e), e;
|
|
@@ -492,8 +495,8 @@ var jt = (() => {
|
|
|
492
495
|
function le(t) {
|
|
493
496
|
if (t == it && Z)
|
|
494
497
|
return new Uint8Array(Z);
|
|
495
|
-
if (
|
|
496
|
-
return
|
|
498
|
+
if (G)
|
|
499
|
+
return G(t);
|
|
497
500
|
throw "both async and sync fetching of the wasm failed";
|
|
498
501
|
}
|
|
499
502
|
function vr(t) {
|
|
@@ -505,7 +508,7 @@ var jt = (() => {
|
|
|
505
508
|
}
|
|
506
509
|
function de(t, e, r) {
|
|
507
510
|
return vr(t).then((n) => WebAssembly.instantiate(n, e)).then((n) => n).then(r, (n) => {
|
|
508
|
-
U(`failed to asynchronously prepare wasm: ${n}`),
|
|
511
|
+
U(`failed to asynchronously prepare wasm: ${n}`), ft(n);
|
|
509
512
|
});
|
|
510
513
|
}
|
|
511
514
|
function gr(t, e, r, n) {
|
|
@@ -519,7 +522,7 @@ var jt = (() => {
|
|
|
519
522
|
function wr() {
|
|
520
523
|
var t = { a: ta };
|
|
521
524
|
function e(n, a) {
|
|
522
|
-
return E = n.exports, tt = E.fa, oe(), _e = E.ja,
|
|
525
|
+
return E = n.exports, tt = E.fa, oe(), _e = E.ja, hr(E.ga), mr(), E;
|
|
523
526
|
}
|
|
524
527
|
pr();
|
|
525
528
|
function r(n) {
|
|
@@ -538,12 +541,12 @@ var jt = (() => {
|
|
|
538
541
|
t.shift()(s);
|
|
539
542
|
};
|
|
540
543
|
s.noExitRuntime;
|
|
541
|
-
var
|
|
544
|
+
var bt = [], Ct = 0, $r = (t) => {
|
|
542
545
|
var e = new Wt(t);
|
|
543
|
-
return e.get_caught() || (e.set_caught(!0),
|
|
546
|
+
return e.get_caught() || (e.set_caught(!0), Ct--), e.set_rethrown(!1), bt.push(e), He(e.excPtr), e.get_exception_ptr();
|
|
544
547
|
}, J = 0, br = () => {
|
|
545
548
|
A(0, 0);
|
|
546
|
-
var t =
|
|
549
|
+
var t = bt.pop();
|
|
547
550
|
ke(t.excPtr), J = 0;
|
|
548
551
|
};
|
|
549
552
|
function Wt(t) {
|
|
@@ -598,14 +601,14 @@ var jt = (() => {
|
|
|
598
601
|
}
|
|
599
602
|
return wt(n), e;
|
|
600
603
|
}, _r = () => kt([]), Tr = (t) => kt([t]), Pr = (t, e) => kt([t, e]), Er = () => {
|
|
601
|
-
var t =
|
|
602
|
-
t ||
|
|
604
|
+
var t = bt.pop();
|
|
605
|
+
t || ft("no exception to throw");
|
|
603
606
|
var e = t.excPtr;
|
|
604
|
-
throw t.get_rethrown() || (
|
|
607
|
+
throw t.get_rethrown() || (bt.push(t), t.set_rethrown(!0), t.set_caught(!1), Ct++), J = e, J;
|
|
605
608
|
}, Ar = (t, e, r) => {
|
|
606
609
|
var n = new Wt(t);
|
|
607
|
-
throw n.init(e, r), J = t,
|
|
608
|
-
}, Or = () =>
|
|
610
|
+
throw n.init(e, r), J = t, Ct++, J;
|
|
611
|
+
}, Or = () => Ct, _t = {}, he = (t) => {
|
|
609
612
|
for (; t.length; ) {
|
|
610
613
|
var e = t.pop(), r = t.pop();
|
|
611
614
|
r(e);
|
|
@@ -614,17 +617,17 @@ var jt = (() => {
|
|
|
614
617
|
function Ht(t) {
|
|
615
618
|
return this.fromWireType(W[t >> 2]);
|
|
616
619
|
}
|
|
617
|
-
var st = {}, rt = {},
|
|
618
|
-
throw new
|
|
620
|
+
var st = {}, rt = {}, Tt = {}, fe, Pt = (t) => {
|
|
621
|
+
throw new fe(t);
|
|
619
622
|
}, nt = (t, e, r) => {
|
|
620
623
|
t.forEach(function(c) {
|
|
621
|
-
|
|
624
|
+
Tt[c] = e;
|
|
622
625
|
});
|
|
623
626
|
function n(c) {
|
|
624
627
|
var l = r(c);
|
|
625
|
-
l.length !== t.length &&
|
|
626
|
-
for (var
|
|
627
|
-
X(t[
|
|
628
|
+
l.length !== t.length && Pt("Mismatched type converter count");
|
|
629
|
+
for (var h = 0; h < t.length; ++h)
|
|
630
|
+
X(t[h], l[h]);
|
|
628
631
|
}
|
|
629
632
|
var a = new Array(e.length), o = [], u = 0;
|
|
630
633
|
e.forEach((c, l) => {
|
|
@@ -633,52 +636,52 @@ var jt = (() => {
|
|
|
633
636
|
}));
|
|
634
637
|
}), o.length === 0 && n(a);
|
|
635
638
|
}, Dr = (t) => {
|
|
636
|
-
var e =
|
|
637
|
-
delete
|
|
639
|
+
var e = _t[t];
|
|
640
|
+
delete _t[t];
|
|
638
641
|
var r = e.rawConstructor, n = e.rawDestructor, a = e.fields, o = a.map((u) => u.getterReturnType).concat(a.map((u) => u.setterArgumentType));
|
|
639
642
|
nt([t], o, (u) => {
|
|
640
643
|
var c = {};
|
|
641
|
-
return a.forEach((l,
|
|
642
|
-
var p = l.fieldName, y = u[
|
|
644
|
+
return a.forEach((l, h) => {
|
|
645
|
+
var p = l.fieldName, y = u[h], g = l.getter, b = l.getterContext, T = u[h + a.length], j = l.setter, P = l.setterContext;
|
|
643
646
|
c[p] = { read: (R) => y.fromWireType(g(b, R)), write: (R, d) => {
|
|
644
647
|
var m = [];
|
|
645
|
-
|
|
648
|
+
j(P, R, T.toWireType(m, d)), he(m);
|
|
646
649
|
} };
|
|
647
650
|
}), [{ name: e.name, fromWireType: (l) => {
|
|
648
|
-
var
|
|
651
|
+
var h = {};
|
|
649
652
|
for (var p in c)
|
|
650
|
-
|
|
651
|
-
return n(l),
|
|
652
|
-
}, toWireType: (l,
|
|
653
|
+
h[p] = c[p].read(l);
|
|
654
|
+
return n(l), h;
|
|
655
|
+
}, toWireType: (l, h) => {
|
|
653
656
|
for (var p in c)
|
|
654
|
-
if (!(p in
|
|
657
|
+
if (!(p in h))
|
|
655
658
|
throw new TypeError(`Missing field: "${p}"`);
|
|
656
659
|
var y = r();
|
|
657
660
|
for (p in c)
|
|
658
|
-
c[p].write(y,
|
|
661
|
+
c[p].write(y, h[p]);
|
|
659
662
|
return l !== null && l.push(n, y), y;
|
|
660
663
|
}, argPackAdvance: q, readValueFromPointer: Ht, destructorFunction: n }];
|
|
661
664
|
});
|
|
662
665
|
}, Fr = (t, e, r, n, a) => {
|
|
663
|
-
},
|
|
666
|
+
}, xr = () => {
|
|
664
667
|
for (var t = new Array(256), e = 0; e < 256; ++e)
|
|
665
668
|
t[e] = String.fromCharCode(e);
|
|
666
669
|
pe = t;
|
|
667
|
-
}, pe,
|
|
670
|
+
}, pe, I = (t) => {
|
|
668
671
|
for (var e = "", r = t; k[r]; )
|
|
669
672
|
e += pe[k[r++]];
|
|
670
673
|
return e;
|
|
671
674
|
}, ut, C = (t) => {
|
|
672
675
|
throw new ut(t);
|
|
673
676
|
};
|
|
674
|
-
function
|
|
677
|
+
function Sr(t, e, r = {}) {
|
|
675
678
|
var n = e.name;
|
|
676
679
|
if (t || C(`type "${n}" must have a positive integer typeid pointer`), rt.hasOwnProperty(t)) {
|
|
677
680
|
if (r.ignoreDuplicateRegistrations)
|
|
678
681
|
return;
|
|
679
682
|
C(`Cannot register type '${n}' twice`);
|
|
680
683
|
}
|
|
681
|
-
if (rt[t] = e, delete
|
|
684
|
+
if (rt[t] = e, delete Tt[t], st.hasOwnProperty(t)) {
|
|
682
685
|
var a = st[t];
|
|
683
686
|
delete st[t], a.forEach((o) => o());
|
|
684
687
|
}
|
|
@@ -686,28 +689,28 @@ var jt = (() => {
|
|
|
686
689
|
function X(t, e, r = {}) {
|
|
687
690
|
if (!("argPackAdvance" in e))
|
|
688
691
|
throw new TypeError("registerType registeredInstance requires argPackAdvance");
|
|
689
|
-
return
|
|
692
|
+
return Sr(t, e, r);
|
|
690
693
|
}
|
|
691
694
|
var q = 8, Mr = (t, e, r, n) => {
|
|
692
|
-
e =
|
|
695
|
+
e = I(e), X(t, { name: e, fromWireType: function(a) {
|
|
693
696
|
return !!a;
|
|
694
697
|
}, toWireType: function(a, o) {
|
|
695
698
|
return o ? r : n;
|
|
696
699
|
}, argPackAdvance: q, readValueFromPointer: function(a) {
|
|
697
700
|
return this.fromWireType(k[a]);
|
|
698
701
|
}, destructorFunction: null });
|
|
699
|
-
},
|
|
702
|
+
}, Ir = (t) => ({ count: t.count, deleteScheduled: t.deleteScheduled, preservePointerOnDelete: t.preservePointerOnDelete, ptr: t.ptr, ptrType: t.ptrType, smartPtr: t.smartPtr, smartPtrType: t.smartPtrType }), Bt = (t) => {
|
|
700
703
|
function e(r) {
|
|
701
704
|
return r.$$.ptrType.registeredClass.name;
|
|
702
705
|
}
|
|
703
706
|
C(e(t) + " instance already deleted");
|
|
704
707
|
}, Ut = !1, me = (t) => {
|
|
705
|
-
},
|
|
708
|
+
}, jr = (t) => {
|
|
706
709
|
t.smartPtr ? t.smartPtrType.rawDestructor(t.smartPtr) : t.ptrType.registeredClass.rawDestructor(t.ptr);
|
|
707
710
|
}, ye = (t) => {
|
|
708
711
|
t.count.value -= 1;
|
|
709
712
|
var e = t.count.value === 0;
|
|
710
|
-
e &&
|
|
713
|
+
e && jr(t);
|
|
711
714
|
}, ve = (t, e, r) => {
|
|
712
715
|
if (e === r)
|
|
713
716
|
return t;
|
|
@@ -733,10 +736,10 @@ var jt = (() => {
|
|
|
733
736
|
for (e === void 0 && C("ptr should not be undefined"); t.baseClass; )
|
|
734
737
|
e = t.upcast(e), t = t.baseClass;
|
|
735
738
|
return e;
|
|
736
|
-
}, Ur = (t, e) => (e = Br(t, e), yt[e]),
|
|
737
|
-
(!e.ptrType || !e.ptr) &&
|
|
739
|
+
}, Ur = (t, e) => (e = Br(t, e), yt[e]), Et = (t, e) => {
|
|
740
|
+
(!e.ptrType || !e.ptr) && Pt("makeClassHandle requires ptr and ptrType");
|
|
738
741
|
var r = !!e.smartPtrType, n = !!e.smartPtr;
|
|
739
|
-
return r !== n &&
|
|
742
|
+
return r !== n && Pt("Both smartPtrType and smartPtr must be specified"), e.count = { value: 1 }, vt(Object.create(t, { $$: { value: e } }));
|
|
740
743
|
};
|
|
741
744
|
function Vr(t) {
|
|
742
745
|
var e = this.getPointee(t);
|
|
@@ -750,7 +753,7 @@ var jt = (() => {
|
|
|
750
753
|
return this.destructor(t), n;
|
|
751
754
|
}
|
|
752
755
|
function a() {
|
|
753
|
-
return this.isSmartPointer ?
|
|
756
|
+
return this.isSmartPointer ? Et(this.registeredClass.instancePrototype, { ptrType: this.pointeeType, ptr: e, smartPtrType: this, smartPtr: t }) : Et(this.registeredClass.instancePrototype, { ptrType: this, ptr: t });
|
|
754
757
|
}
|
|
755
758
|
var o = this.registeredClass.getActualType(e), u = ge[o];
|
|
756
759
|
if (!u)
|
|
@@ -758,7 +761,7 @@ var jt = (() => {
|
|
|
758
761
|
var c;
|
|
759
762
|
this.isConst ? c = u.constPointerType : c = u.pointerType;
|
|
760
763
|
var l = ve(e, this.registeredClass, c.registeredClass);
|
|
761
|
-
return l === null ? a.call(this) : this.isSmartPointer ?
|
|
764
|
+
return l === null ? a.call(this) : this.isSmartPointer ? Et(c.registeredClass.instancePrototype, { ptrType: c, ptr: l, smartPtrType: this, smartPtr: t }) : Et(c.registeredClass.instancePrototype, { ptrType: c, ptr: l });
|
|
762
765
|
}
|
|
763
766
|
var vt = (t) => typeof FinalizationRegistry > "u" ? (vt = (e) => e, t) : (Ut = new FinalizationRegistry((e) => {
|
|
764
767
|
ye(e.$$);
|
|
@@ -770,8 +773,8 @@ var jt = (() => {
|
|
|
770
773
|
}
|
|
771
774
|
return e;
|
|
772
775
|
}, me = (e) => Ut.unregister(e), vt(t)), Lr = () => {
|
|
773
|
-
Object.assign(
|
|
774
|
-
if (!(this instanceof
|
|
776
|
+
Object.assign(At.prototype, { isAliasOf(t) {
|
|
777
|
+
if (!(this instanceof At) || !(t instanceof At))
|
|
775
778
|
return !1;
|
|
776
779
|
var e = this.$$.ptrType.registeredClass, r = this.$$.ptr;
|
|
777
780
|
t.$$ = t.$$;
|
|
@@ -783,7 +786,7 @@ var jt = (() => {
|
|
|
783
786
|
}, clone() {
|
|
784
787
|
if (this.$$.ptr || Bt(this), this.$$.preservePointerOnDelete)
|
|
785
788
|
return this.$$.count.value += 1, this;
|
|
786
|
-
var t = vt(Object.create(Object.getPrototypeOf(this), { $$: { value:
|
|
789
|
+
var t = vt(Object.create(Object.getPrototypeOf(this), { $$: { value: Ir(this.$$) } }));
|
|
787
790
|
return t.$$.count.value += 1, t.$$.deleteScheduled = !1, t;
|
|
788
791
|
}, delete() {
|
|
789
792
|
this.$$.ptr || Bt(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && C("Object already scheduled for deletion"), me(this), ye(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0);
|
|
@@ -793,7 +796,7 @@ var jt = (() => {
|
|
|
793
796
|
return this.$$.ptr || Bt(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && C("Object already scheduled for deletion"), pt.push(this), pt.length === 1 && mt && mt(Vt), this.$$.deleteScheduled = !0, this;
|
|
794
797
|
} });
|
|
795
798
|
};
|
|
796
|
-
function
|
|
799
|
+
function At() {
|
|
797
800
|
}
|
|
798
801
|
var Yr = 48, zr = 57, we = (t) => {
|
|
799
802
|
if (t === void 0)
|
|
@@ -817,7 +820,7 @@ var jt = (() => {
|
|
|
817
820
|
}, Yt = (t, e, r) => {
|
|
818
821
|
s.hasOwnProperty(t) ? ((r === void 0 || s[t].overloadTable !== void 0 && s[t].overloadTable[r] !== void 0) && C(`Cannot register public name '${t}' twice`), $e(s, t, t), s.hasOwnProperty(r) && C(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`), s[t].overloadTable[r] = e) : (s[t] = e, r !== void 0 && (s[t].numArguments = r));
|
|
819
822
|
};
|
|
820
|
-
function
|
|
823
|
+
function Nr(t, e, r, n, a, o, u, c) {
|
|
821
824
|
this.name = t, this.constructor = e, this.instancePrototype = r, this.rawDestructor = n, this.baseClass = a, this.getActualType = o, this.upcast = u, this.downcast = c, this.pureVirtualFunctions = [];
|
|
822
825
|
}
|
|
823
826
|
var zt = (t, e, r) => {
|
|
@@ -825,7 +828,7 @@ var jt = (() => {
|
|
|
825
828
|
e.upcast || C(`Expected null or instance of ${r.name}, got an instance of ${e.name}`), t = e.upcast(t), e = e.baseClass;
|
|
826
829
|
return t;
|
|
827
830
|
};
|
|
828
|
-
function
|
|
831
|
+
function Gr(t, e) {
|
|
829
832
|
if (e === null)
|
|
830
833
|
return this.isReference && C(`null is not a valid ${this.name}`), 0;
|
|
831
834
|
e.$$ || C(`Cannot pass "${qt(e)}" as a ${this.name}`), e.$$.ptr || C(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
@@ -870,7 +873,7 @@ var jt = (() => {
|
|
|
870
873
|
return this.fromWireType(_[t >> 2]);
|
|
871
874
|
}
|
|
872
875
|
var Zr = () => {
|
|
873
|
-
Object.assign(
|
|
876
|
+
Object.assign(Ot.prototype, { getPointee(t) {
|
|
874
877
|
return this.rawGetPointee && (t = this.rawGetPointee(t)), t;
|
|
875
878
|
}, destructor(t) {
|
|
876
879
|
this.rawDestructor && this.rawDestructor(t);
|
|
@@ -878,17 +881,17 @@ var jt = (() => {
|
|
|
878
881
|
t !== null && t.delete();
|
|
879
882
|
}, fromWireType: Vr });
|
|
880
883
|
};
|
|
881
|
-
function
|
|
882
|
-
this.name = t, this.registeredClass = e, this.isReference = r, this.isConst = n, this.isSmartPointer = a, this.pointeeType = o, this.sharingPolicy = u, this.rawGetPointee = c, this.rawConstructor = l, this.rawShare =
|
|
884
|
+
function Ot(t, e, r, n, a, o, u, c, l, h, p) {
|
|
885
|
+
this.name = t, this.registeredClass = e, this.isReference = r, this.isConst = n, this.isSmartPointer = a, this.pointeeType = o, this.sharingPolicy = u, this.rawGetPointee = c, this.rawConstructor = l, this.rawShare = h, this.rawDestructor = p, !a && e.baseClass === void 0 ? n ? (this.toWireType = Gr, this.destructorFunction = null) : (this.toWireType = qr, this.destructorFunction = null) : this.toWireType = Xr;
|
|
883
886
|
}
|
|
884
887
|
var Ce = (t, e, r) => {
|
|
885
|
-
s.hasOwnProperty(t) ||
|
|
888
|
+
s.hasOwnProperty(t) || Pt("Replacing nonexistant public symbol"), s[t].overloadTable !== void 0 && r !== void 0 ? s[t].overloadTable[r] = e : (s[t] = e, s[t].argCount = r);
|
|
886
889
|
}, Jr = (t, e, r) => {
|
|
887
890
|
var n = s["dynCall_" + t];
|
|
888
891
|
return r && r.length ? n.apply(null, [e].concat(r)) : n.call(null, e);
|
|
889
|
-
},
|
|
890
|
-
var e =
|
|
891
|
-
return e || (t >=
|
|
892
|
+
}, Dt = [], _e, D = (t) => {
|
|
893
|
+
var e = Dt[t];
|
|
894
|
+
return e || (t >= Dt.length && (Dt.length = t + 1), Dt[t] = e = _e.get(t)), e;
|
|
892
895
|
}, Qr = (t, e, r) => {
|
|
893
896
|
if (t.includes("j"))
|
|
894
897
|
return Jr(t, e, r);
|
|
@@ -899,8 +902,8 @@ var jt = (() => {
|
|
|
899
902
|
return function() {
|
|
900
903
|
return r.length = 0, Object.assign(r, arguments), Qr(t, e, r);
|
|
901
904
|
};
|
|
902
|
-
},
|
|
903
|
-
t =
|
|
905
|
+
}, N = (t, e) => {
|
|
906
|
+
t = I(t);
|
|
904
907
|
function r() {
|
|
905
908
|
return t.includes("j") ? Kr(t, e) : D(e);
|
|
906
909
|
}
|
|
@@ -917,73 +920,73 @@ var jt = (() => {
|
|
|
917
920
|
return this.message === void 0 ? this.name : `${this.name}: ${this.message}`;
|
|
918
921
|
}, r;
|
|
919
922
|
}, Te, Pe = (t) => {
|
|
920
|
-
var e = We(t), r =
|
|
923
|
+
var e = We(t), r = I(e);
|
|
921
924
|
return Q(e), r;
|
|
922
|
-
},
|
|
925
|
+
}, Ft = (t, e) => {
|
|
923
926
|
var r = [], n = {};
|
|
924
927
|
function a(o) {
|
|
925
928
|
if (!n[o] && !rt[o]) {
|
|
926
|
-
if (
|
|
927
|
-
|
|
929
|
+
if (Tt[o]) {
|
|
930
|
+
Tt[o].forEach(a);
|
|
928
931
|
return;
|
|
929
932
|
}
|
|
930
933
|
r.push(o), n[o] = !0;
|
|
931
934
|
}
|
|
932
935
|
}
|
|
933
936
|
throw e.forEach(a), new Te(`${t}: ` + r.map(Pe).join([", "]));
|
|
934
|
-
}, en = (t, e, r, n, a, o, u, c, l,
|
|
935
|
-
p =
|
|
937
|
+
}, en = (t, e, r, n, a, o, u, c, l, h, p, y, g) => {
|
|
938
|
+
p = I(p), o = N(a, o), c && (c = N(u, c)), h && (h = N(l, h)), g = N(y, g);
|
|
936
939
|
var b = we(p);
|
|
937
940
|
Yt(b, function() {
|
|
938
|
-
|
|
941
|
+
Ft(`Cannot construct ${p} due to unbound types`, [n]);
|
|
939
942
|
}), nt([t, e, r], n ? [n] : [], function(T) {
|
|
940
943
|
T = T[0];
|
|
941
|
-
var
|
|
942
|
-
n ? (
|
|
944
|
+
var j, P;
|
|
945
|
+
n ? (j = T.registeredClass, P = j.instancePrototype) : P = At.prototype;
|
|
943
946
|
var R = Lt(b, function() {
|
|
944
947
|
if (Object.getPrototypeOf(this) !== d)
|
|
945
948
|
throw new ut("Use 'new' to construct " + p);
|
|
946
949
|
if (m.constructor_body === void 0)
|
|
947
950
|
throw new ut(p + " has no accessible constructor");
|
|
948
|
-
var
|
|
949
|
-
if (
|
|
951
|
+
var Mt = m.constructor_body[arguments.length];
|
|
952
|
+
if (Mt === void 0)
|
|
950
953
|
throw new ut(`Tried to invoke ctor of ${p} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(m.constructor_body).toString()}) parameters instead!`);
|
|
951
|
-
return
|
|
954
|
+
return Mt.apply(this, arguments);
|
|
952
955
|
}), d = Object.create(P, { constructor: { value: R } });
|
|
953
956
|
R.prototype = d;
|
|
954
|
-
var m = new
|
|
957
|
+
var m = new Nr(p, R, d, g, j, o, c, h);
|
|
955
958
|
m.baseClass && (m.baseClass.__derivedClasses === void 0 && (m.baseClass.__derivedClasses = []), m.baseClass.__derivedClasses.push(m));
|
|
956
|
-
var
|
|
957
|
-
return ge[t] = { pointerType: M, constPointerType: at }, Ce(b, R), [
|
|
959
|
+
var S = new Ot(p, m, !0, !1, !1), M = new Ot(p + "*", m, !1, !1, !1), at = new Ot(p + " const*", m, !1, !0, !1);
|
|
960
|
+
return ge[t] = { pointerType: M, constPointerType: at }, Ce(b, R), [S, M, at];
|
|
958
961
|
});
|
|
959
|
-
},
|
|
962
|
+
}, Nt = (t, e) => {
|
|
960
963
|
for (var r = [], n = 0; n < t; n++)
|
|
961
964
|
r.push(_[e + n * 4 >> 2]);
|
|
962
965
|
return r;
|
|
963
966
|
};
|
|
964
|
-
function
|
|
967
|
+
function Gt(t, e, r, n, a, o) {
|
|
965
968
|
var u = e.length;
|
|
966
969
|
u < 2 && C("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
967
|
-
for (var c = e[1] !== null && r !== null, l = !1,
|
|
968
|
-
if (e[
|
|
970
|
+
for (var c = e[1] !== null && r !== null, l = !1, h = 1; h < e.length; ++h)
|
|
971
|
+
if (e[h] !== null && e[h].destructorFunction === void 0) {
|
|
969
972
|
l = !0;
|
|
970
973
|
break;
|
|
971
974
|
}
|
|
972
975
|
var p = e[0].name !== "void", y = u - 2, g = new Array(y), b = [], T = [];
|
|
973
976
|
return function() {
|
|
974
977
|
arguments.length !== y && C(`function ${t} called with ${arguments.length} arguments, expected ${y}`), T.length = 0;
|
|
975
|
-
var
|
|
976
|
-
b.length = c ? 2 : 1, b[0] = a, c && (
|
|
978
|
+
var j;
|
|
979
|
+
b.length = c ? 2 : 1, b[0] = a, c && (j = e[1].toWireType(T, this), b[1] = j);
|
|
977
980
|
for (var P = 0; P < y; ++P)
|
|
978
981
|
g[P] = e[P + 2].toWireType(T, arguments[P]), b.push(g[P]);
|
|
979
982
|
var R = n.apply(null, b);
|
|
980
983
|
function d(m) {
|
|
981
984
|
if (l)
|
|
982
|
-
|
|
985
|
+
he(T);
|
|
983
986
|
else
|
|
984
|
-
for (var
|
|
985
|
-
var M =
|
|
986
|
-
e[
|
|
987
|
+
for (var S = c ? 1 : 2; S < e.length; S++) {
|
|
988
|
+
var M = S === 1 ? j : g[S - 2];
|
|
989
|
+
e[S].destructorFunction !== null && e[S].destructorFunction(M);
|
|
987
990
|
}
|
|
988
991
|
if (p)
|
|
989
992
|
return e[0].fromWireType(m);
|
|
@@ -992,32 +995,32 @@ var jt = (() => {
|
|
|
992
995
|
};
|
|
993
996
|
}
|
|
994
997
|
var rn = (t, e, r, n, a, o) => {
|
|
995
|
-
var u =
|
|
996
|
-
a =
|
|
998
|
+
var u = Nt(e, r);
|
|
999
|
+
a = N(n, a), nt([], [t], function(c) {
|
|
997
1000
|
c = c[0];
|
|
998
1001
|
var l = `constructor ${c.name}`;
|
|
999
1002
|
if (c.registeredClass.constructor_body === void 0 && (c.registeredClass.constructor_body = []), c.registeredClass.constructor_body[e - 1] !== void 0)
|
|
1000
1003
|
throw new ut(`Cannot register multiple constructors with identical number of parameters (${e - 1}) for class '${c.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
1001
1004
|
return c.registeredClass.constructor_body[e - 1] = () => {
|
|
1002
|
-
|
|
1003
|
-
}, nt([], u, (
|
|
1005
|
+
Ft(`Cannot construct ${c.name} due to unbound types`, u);
|
|
1006
|
+
}, nt([], u, (h) => (h.splice(1, 0, null), c.registeredClass.constructor_body[e - 1] = Gt(l, h, null, a, o), [])), [];
|
|
1004
1007
|
});
|
|
1005
1008
|
}, Ee = (t) => {
|
|
1006
1009
|
t = t.trim();
|
|
1007
1010
|
const e = t.indexOf("(");
|
|
1008
|
-
return e !== -1 ? (
|
|
1011
|
+
return e !== -1 ? (jt(t[t.length - 1] == ")", "Parentheses for argument names should match."), t.substr(0, e)) : t;
|
|
1009
1012
|
}, nn = (t, e, r, n, a, o, u, c, l) => {
|
|
1010
|
-
var
|
|
1011
|
-
e =
|
|
1013
|
+
var h = Nt(r, n);
|
|
1014
|
+
e = I(e), e = Ee(e), o = N(a, o), nt([], [t], function(p) {
|
|
1012
1015
|
p = p[0];
|
|
1013
1016
|
var y = `${p.name}.${e}`;
|
|
1014
1017
|
e.startsWith("@@") && (e = Symbol[e.substring(2)]), c && p.registeredClass.pureVirtualFunctions.push(e);
|
|
1015
1018
|
function g() {
|
|
1016
|
-
|
|
1019
|
+
Ft(`Cannot call ${y} due to unbound types`, h);
|
|
1017
1020
|
}
|
|
1018
1021
|
var b = p.registeredClass.instancePrototype, T = b[e];
|
|
1019
|
-
return T === void 0 || T.overloadTable === void 0 && T.className !== p.name && T.argCount === r - 2 ? (g.argCount = r - 2, g.className = p.name, b[e] = g) : ($e(b, e, y), b[e].overloadTable[r - 2] = g), nt([],
|
|
1020
|
-
var P =
|
|
1022
|
+
return T === void 0 || T.overloadTable === void 0 && T.className !== p.name && T.argCount === r - 2 ? (g.argCount = r - 2, g.className = p.name, b[e] = g) : ($e(b, e, y), b[e].overloadTable[r - 2] = g), nt([], h, function(j) {
|
|
1023
|
+
var P = Gt(y, j, p, o, u);
|
|
1021
1024
|
return b[e].overloadTable === void 0 ? (P.argCount = r - 2, b[e] = P) : b[e].overloadTable[r - 2] = P, [];
|
|
1022
1025
|
}), [];
|
|
1023
1026
|
});
|
|
@@ -1059,7 +1062,7 @@ var jt = (() => {
|
|
|
1059
1062
|
return z.allocate({ refcount: 1, value: t });
|
|
1060
1063
|
}
|
|
1061
1064
|
} }, un = (t, e) => {
|
|
1062
|
-
e =
|
|
1065
|
+
e = I(e), X(t, { name: e, fromWireType: (r) => {
|
|
1063
1066
|
var n = K.toValue(r);
|
|
1064
1067
|
return Oe(r), n;
|
|
1065
1068
|
}, toWireType: (r, n) => K.toHandle(n), argPackAdvance: q, readValueFromPointer: Ht, destructorFunction: null });
|
|
@@ -1087,7 +1090,7 @@ var jt = (() => {
|
|
|
1087
1090
|
throw new TypeError(`invalid integer width (${e}): ${t}`);
|
|
1088
1091
|
}
|
|
1089
1092
|
}, ln = (t, e, r, n) => {
|
|
1090
|
-
e =
|
|
1093
|
+
e = I(e);
|
|
1091
1094
|
function a() {
|
|
1092
1095
|
}
|
|
1093
1096
|
a.values = {}, X(t, { name: e, constructor: a, fromWireType: function(o) {
|
|
@@ -1098,7 +1101,7 @@ var jt = (() => {
|
|
|
1098
1101
|
return r === void 0 && C(e + " has unknown type " + Pe(t)), r;
|
|
1099
1102
|
}, dn = (t, e, r) => {
|
|
1100
1103
|
var n = Xt(t, "enum");
|
|
1101
|
-
e =
|
|
1104
|
+
e = I(e);
|
|
1102
1105
|
var a = n.constructor, o = Object.create(n.constructor.prototype, { value: { value: r }, constructor: { value: Lt(`${n.name}_${e}`, function() {
|
|
1103
1106
|
}) } });
|
|
1104
1107
|
a.values[r] = o, a[e] = o;
|
|
@@ -1107,7 +1110,7 @@ var jt = (() => {
|
|
|
1107
1110
|
return "null";
|
|
1108
1111
|
var e = typeof t;
|
|
1109
1112
|
return e === "object" || e === "array" || e === "function" ? t.toString() : "" + t;
|
|
1110
|
-
},
|
|
1113
|
+
}, hn = (t, e) => {
|
|
1111
1114
|
switch (e) {
|
|
1112
1115
|
case 4:
|
|
1113
1116
|
return function(r) {
|
|
@@ -1120,15 +1123,15 @@ var jt = (() => {
|
|
|
1120
1123
|
default:
|
|
1121
1124
|
throw new TypeError(`invalid float width (${e}): ${t}`);
|
|
1122
1125
|
}
|
|
1123
|
-
},
|
|
1124
|
-
e =
|
|
1126
|
+
}, fn = (t, e, r) => {
|
|
1127
|
+
e = I(e), X(t, { name: e, fromWireType: (n) => n, toWireType: (n, a) => a, argPackAdvance: q, readValueFromPointer: hn(e, r), destructorFunction: null });
|
|
1125
1128
|
}, pn = (t, e, r, n, a, o, u) => {
|
|
1126
|
-
var c =
|
|
1127
|
-
t =
|
|
1128
|
-
|
|
1129
|
+
var c = Nt(e, r);
|
|
1130
|
+
t = I(t), t = Ee(t), a = N(n, a), Yt(t, function() {
|
|
1131
|
+
Ft(`Cannot call ${t} due to unbound types`, c);
|
|
1129
1132
|
}, e - 1), nt([], c, function(l) {
|
|
1130
|
-
var
|
|
1131
|
-
return Ce(t,
|
|
1133
|
+
var h = [l[0], null].concat(l.slice(1));
|
|
1134
|
+
return Ce(t, Gt(t, h, null, a, o), e - 1), [];
|
|
1132
1135
|
});
|
|
1133
1136
|
}, mn = (t, e, r) => {
|
|
1134
1137
|
switch (e) {
|
|
@@ -1142,26 +1145,26 @@ var jt = (() => {
|
|
|
1142
1145
|
throw new TypeError(`invalid integer width (${e}): ${t}`);
|
|
1143
1146
|
}
|
|
1144
1147
|
}, yn = (t, e, r, n, a) => {
|
|
1145
|
-
e =
|
|
1148
|
+
e = I(e);
|
|
1146
1149
|
var o = (p) => p;
|
|
1147
1150
|
if (n === 0) {
|
|
1148
1151
|
var u = 32 - 8 * r;
|
|
1149
1152
|
o = (p) => p << u >>> u;
|
|
1150
1153
|
}
|
|
1151
1154
|
var c = e.includes("unsigned"), l = (p, y) => {
|
|
1152
|
-
},
|
|
1153
|
-
c ?
|
|
1155
|
+
}, h;
|
|
1156
|
+
c ? h = function(p, y) {
|
|
1154
1157
|
return l(y, this.name), y >>> 0;
|
|
1155
|
-
} :
|
|
1158
|
+
} : h = function(p, y) {
|
|
1156
1159
|
return l(y, this.name), y;
|
|
1157
|
-
}, X(t, { name: e, fromWireType: o, toWireType:
|
|
1160
|
+
}, X(t, { name: e, fromWireType: o, toWireType: h, argPackAdvance: q, readValueFromPointer: mn(e, r, n !== 0), destructorFunction: null });
|
|
1158
1161
|
}, vn = (t, e, r) => {
|
|
1159
1162
|
var n = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array], a = n[e];
|
|
1160
1163
|
function o(u) {
|
|
1161
1164
|
var c = _[u >> 2], l = _[u + 4 >> 2];
|
|
1162
1165
|
return new a(V.buffer, l, c);
|
|
1163
1166
|
}
|
|
1164
|
-
r =
|
|
1167
|
+
r = I(r), X(t, { name: r, fromWireType: o, argPackAdvance: q, readValueFromPointer: o }, { ignoreDuplicateRegistrations: !0 });
|
|
1165
1168
|
}, De = (t, e, r, n) => {
|
|
1166
1169
|
if (!(n > 0))
|
|
1167
1170
|
return 0;
|
|
@@ -1196,11 +1199,11 @@ var jt = (() => {
|
|
|
1196
1199
|
n <= 127 ? e++ : n <= 2047 ? e += 2 : n >= 55296 && n <= 57343 ? (e += 4, ++r) : e += 3;
|
|
1197
1200
|
}
|
|
1198
1201
|
return e;
|
|
1199
|
-
},
|
|
1202
|
+
}, xe = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0, wn = (t, e, r) => {
|
|
1200
1203
|
for (var n = e + r, a = e; t[a] && !(a >= n); )
|
|
1201
1204
|
++a;
|
|
1202
|
-
if (a - e > 16 && t.buffer &&
|
|
1203
|
-
return
|
|
1205
|
+
if (a - e > 16 && t.buffer && xe)
|
|
1206
|
+
return xe.decode(t.subarray(e, a));
|
|
1204
1207
|
for (var o = ""; e < a; ) {
|
|
1205
1208
|
var u = t[e++];
|
|
1206
1209
|
if (!(u & 128)) {
|
|
@@ -1216,22 +1219,22 @@ var jt = (() => {
|
|
|
1216
1219
|
if ((u & 240) == 224 ? u = (u & 15) << 12 | c << 6 | l : u = (u & 7) << 18 | c << 12 | l << 6 | t[e++] & 63, u < 65536)
|
|
1217
1220
|
o += String.fromCharCode(u);
|
|
1218
1221
|
else {
|
|
1219
|
-
var
|
|
1220
|
-
o += String.fromCharCode(55296 |
|
|
1222
|
+
var h = u - 65536;
|
|
1223
|
+
o += String.fromCharCode(55296 | h >> 10, 56320 | h & 1023);
|
|
1221
1224
|
}
|
|
1222
1225
|
}
|
|
1223
1226
|
return o;
|
|
1224
1227
|
}, Zt = (t, e) => t ? wn(k, t, e) : "", $n = (t, e) => {
|
|
1225
|
-
e =
|
|
1228
|
+
e = I(e);
|
|
1226
1229
|
var r = e === "std::string";
|
|
1227
1230
|
X(t, { name: e, fromWireType(n) {
|
|
1228
1231
|
var a = _[n >> 2], o = n + 4, u;
|
|
1229
1232
|
if (r)
|
|
1230
1233
|
for (var c = o, l = 0; l <= a; ++l) {
|
|
1231
|
-
var
|
|
1232
|
-
if (l == a || k[
|
|
1233
|
-
var p =
|
|
1234
|
-
u === void 0 ? u = y : (u +=
|
|
1234
|
+
var h = o + l;
|
|
1235
|
+
if (l == a || k[h] == 0) {
|
|
1236
|
+
var p = h - c, y = Zt(c, p);
|
|
1237
|
+
u === void 0 ? u = y : (u += "\0", u += y), c = h + 1;
|
|
1235
1238
|
}
|
|
1236
1239
|
}
|
|
1237
1240
|
else {
|
|
@@ -1248,22 +1251,22 @@ var jt = (() => {
|
|
|
1248
1251
|
if (_[c >> 2] = o, r && u)
|
|
1249
1252
|
gn(a, l, o + 1);
|
|
1250
1253
|
else if (u)
|
|
1251
|
-
for (var
|
|
1252
|
-
var p = a.charCodeAt(
|
|
1253
|
-
p > 255 && (Q(l), C("String has UTF-16 code units that do not fit in 8 bits")), k[l +
|
|
1254
|
+
for (var h = 0; h < o; ++h) {
|
|
1255
|
+
var p = a.charCodeAt(h);
|
|
1256
|
+
p > 255 && (Q(l), C("String has UTF-16 code units that do not fit in 8 bits")), k[l + h] = p;
|
|
1254
1257
|
}
|
|
1255
1258
|
else
|
|
1256
|
-
for (var
|
|
1257
|
-
k[l +
|
|
1259
|
+
for (var h = 0; h < o; ++h)
|
|
1260
|
+
k[l + h] = a[h];
|
|
1258
1261
|
return n !== null && n.push(Q, c), c;
|
|
1259
1262
|
}, argPackAdvance: q, readValueFromPointer: be, destructorFunction(n) {
|
|
1260
1263
|
Q(n);
|
|
1261
1264
|
} });
|
|
1262
|
-
},
|
|
1265
|
+
}, Se = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, bn = (t, e) => {
|
|
1263
1266
|
for (var r = t, n = r >> 1, a = n + e / 2; !(n >= a) && dt[n]; )
|
|
1264
1267
|
++n;
|
|
1265
|
-
if (r = n << 1, r - t > 32 &&
|
|
1266
|
-
return
|
|
1268
|
+
if (r = n << 1, r - t > 32 && Se)
|
|
1269
|
+
return Se.decode(k.subarray(t, r));
|
|
1267
1270
|
for (var o = "", u = 0; !(u >= e / 2); ++u) {
|
|
1268
1271
|
var c = ot[t + u * 2 >> 1];
|
|
1269
1272
|
if (c == 0)
|
|
@@ -1312,35 +1315,35 @@ var jt = (() => {
|
|
|
1312
1315
|
}
|
|
1313
1316
|
return e;
|
|
1314
1317
|
}, An = (t, e, r) => {
|
|
1315
|
-
r =
|
|
1318
|
+
r = I(r);
|
|
1316
1319
|
var n, a, o, u, c;
|
|
1317
1320
|
e === 2 ? (n = bn, a = Cn, u = _n, o = () => dt, c = 1) : e === 4 && (n = Tn, a = Pn, u = En, o = () => _, c = 2), X(t, { name: r, fromWireType: (l) => {
|
|
1318
|
-
for (var
|
|
1321
|
+
for (var h = _[l >> 2], p = o(), y, g = l + 4, b = 0; b <= h; ++b) {
|
|
1319
1322
|
var T = l + 4 + b * e;
|
|
1320
|
-
if (b ==
|
|
1321
|
-
var
|
|
1322
|
-
y === void 0 ? y = P : (y +=
|
|
1323
|
+
if (b == h || p[T >> c] == 0) {
|
|
1324
|
+
var j = T - g, P = n(g, j);
|
|
1325
|
+
y === void 0 ? y = P : (y += "\0", y += P), g = T + e;
|
|
1323
1326
|
}
|
|
1324
1327
|
}
|
|
1325
1328
|
return Q(l), y;
|
|
1326
|
-
}, toWireType: (l,
|
|
1327
|
-
typeof
|
|
1328
|
-
var p = u(
|
|
1329
|
-
return _[y >> 2] = p >> c, a(
|
|
1329
|
+
}, toWireType: (l, h) => {
|
|
1330
|
+
typeof h != "string" && C(`Cannot pass non-string to C++ string type ${r}`);
|
|
1331
|
+
var p = u(h), y = Qt(4 + p + e);
|
|
1332
|
+
return _[y >> 2] = p >> c, a(h, y + 4, p + e), l !== null && l.push(Q, y), y;
|
|
1330
1333
|
}, argPackAdvance: q, readValueFromPointer: Ht, destructorFunction(l) {
|
|
1331
1334
|
Q(l);
|
|
1332
1335
|
} });
|
|
1333
1336
|
}, On = (t, e, r, n, a, o) => {
|
|
1334
|
-
|
|
1335
|
-
}, Dn = (t, e, r, n, a, o, u, c, l,
|
|
1336
|
-
|
|
1337
|
+
_t[t] = { name: I(e), rawConstructor: N(r, n), rawDestructor: N(a, o), fields: [] };
|
|
1338
|
+
}, Dn = (t, e, r, n, a, o, u, c, l, h) => {
|
|
1339
|
+
_t[t].fields.push({ fieldName: I(e), getterReturnType: r, getter: N(n, a), getterContext: o, setterArgumentType: u, setter: N(c, l), setterContext: h });
|
|
1337
1340
|
}, Fn = (t, e) => {
|
|
1338
|
-
e =
|
|
1341
|
+
e = I(e), X(t, { isVoid: !0, name: e, argPackAdvance: 0, fromWireType: () => {
|
|
1339
1342
|
}, toWireType: (r, n) => {
|
|
1340
1343
|
} });
|
|
1341
|
-
},
|
|
1342
|
-
var e =
|
|
1343
|
-
return e === void 0 ?
|
|
1344
|
+
}, xn = {}, Sn = (t) => {
|
|
1345
|
+
var e = xn[t];
|
|
1346
|
+
return e === void 0 ? I(t) : e;
|
|
1344
1347
|
}, Me = () => {
|
|
1345
1348
|
if (typeof globalThis == "object")
|
|
1346
1349
|
return globalThis;
|
|
@@ -1352,9 +1355,9 @@ var jt = (() => {
|
|
|
1352
1355
|
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"))
|
|
1353
1356
|
return $$$embind_global$$$;
|
|
1354
1357
|
throw Error("unable to get global object.");
|
|
1355
|
-
}, Mn = (t) => t === 0 ? K.toHandle(Me()) : (t =
|
|
1358
|
+
}, Mn = (t) => t === 0 ? K.toHandle(Me()) : (t = Sn(t), K.toHandle(Me()[t])), In = (t) => {
|
|
1356
1359
|
t > 4 && (z.get(t).refcount += 1);
|
|
1357
|
-
},
|
|
1360
|
+
}, jn = (t) => {
|
|
1358
1361
|
var e = new Array(t + 1);
|
|
1359
1362
|
return function(r, n, a) {
|
|
1360
1363
|
e[0] = r;
|
|
@@ -1365,16 +1368,16 @@ var jt = (() => {
|
|
|
1365
1368
|
var c = new (r.bind.apply(r, e))();
|
|
1366
1369
|
return K.toHandle(c);
|
|
1367
1370
|
};
|
|
1368
|
-
},
|
|
1371
|
+
}, Ie = {}, Rn = (t, e, r, n) => {
|
|
1369
1372
|
t = K.toValue(t);
|
|
1370
|
-
var a =
|
|
1371
|
-
return a || (a =
|
|
1373
|
+
var a = Ie[e];
|
|
1374
|
+
return a || (a = jn(e), Ie[e] = a), a(t, r, n);
|
|
1372
1375
|
}, Wn = (t, e) => {
|
|
1373
1376
|
t = Xt(t, "_emval_take_value");
|
|
1374
1377
|
var r = t.readValueFromPointer(e);
|
|
1375
1378
|
return K.toHandle(r);
|
|
1376
1379
|
}, kn = () => {
|
|
1377
|
-
|
|
1380
|
+
ft("");
|
|
1378
1381
|
}, Hn = (t, e, r) => k.copyWithin(t, e, e + r), Bn = () => 2147483648, Un = (t) => {
|
|
1379
1382
|
var e = tt.buffer, r = (t - e.byteLength + 65535) / 65536;
|
|
1380
1383
|
try {
|
|
@@ -1387,7 +1390,7 @@ var jt = (() => {
|
|
|
1387
1390
|
var r = Bn();
|
|
1388
1391
|
if (t > r)
|
|
1389
1392
|
return !1;
|
|
1390
|
-
for (var n = (l,
|
|
1393
|
+
for (var n = (l, h) => l + (h - l % h) % h, a = 1; a <= 4; a *= 2) {
|
|
1391
1394
|
var o = e * (1 + 0.2 / a);
|
|
1392
1395
|
o = Math.min(o, t + 100663296);
|
|
1393
1396
|
var u = Math.min(r, n(Math.max(t, o), 65536)), c = Un(u);
|
|
@@ -1416,18 +1419,18 @@ var jt = (() => {
|
|
|
1416
1419
|
var o = e + r;
|
|
1417
1420
|
_[t + a * 4 >> 2] = o, Yn(n, o), r += n.length + 1;
|
|
1418
1421
|
}), 0;
|
|
1419
|
-
},
|
|
1422
|
+
}, Nn = (t, e) => {
|
|
1420
1423
|
var r = gt();
|
|
1421
1424
|
_[t >> 2] = r.length;
|
|
1422
1425
|
var n = 0;
|
|
1423
1426
|
return r.forEach((a) => n += a.length + 1), _[e >> 2] = n, 0;
|
|
1424
|
-
},
|
|
1427
|
+
}, Gn = (t) => t, xt = (t) => t % 4 === 0 && (t % 100 !== 0 || t % 400 === 0), Xn = (t, e) => {
|
|
1425
1428
|
for (var r = 0, n = 0; n <= e; r += t[n++])
|
|
1426
1429
|
;
|
|
1427
1430
|
return r;
|
|
1428
|
-
},
|
|
1431
|
+
}, je = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Re = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], qn = (t, e) => {
|
|
1429
1432
|
for (var r = new Date(t.getTime()); e > 0; ) {
|
|
1430
|
-
var n =
|
|
1433
|
+
var n = xt(r.getFullYear()), a = r.getMonth(), o = (n ? je : Re)[a];
|
|
1431
1434
|
if (e > o - r.getDate())
|
|
1432
1435
|
e -= o - r.getDate() + 1, r.setDate(1), a < 11 ? r.setMonth(a + 1) : (r.setMonth(0), r.setFullYear(r.getFullYear() + 1));
|
|
1433
1436
|
else
|
|
@@ -1445,21 +1448,21 @@ var jt = (() => {
|
|
|
1445
1448
|
var a = _[n + 40 >> 2], o = { tm_sec: W[n >> 2], tm_min: W[n + 4 >> 2], tm_hour: W[n + 8 >> 2], tm_mday: W[n + 12 >> 2], tm_mon: W[n + 16 >> 2], tm_year: W[n + 20 >> 2], tm_wday: W[n + 24 >> 2], tm_yday: W[n + 28 >> 2], tm_isdst: W[n + 32 >> 2], tm_gmtoff: W[n + 36 >> 2], tm_zone: a ? Zt(a) : "" }, u = Zt(r), c = { "%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" };
|
|
1446
1449
|
for (var l in c)
|
|
1447
1450
|
u = u.replace(new RegExp(l, "g"), c[l]);
|
|
1448
|
-
var
|
|
1449
|
-
function y(d, m,
|
|
1451
|
+
var h = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], p = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
|
1452
|
+
function y(d, m, S) {
|
|
1450
1453
|
for (var M = typeof d == "number" ? d.toString() : d || ""; M.length < m; )
|
|
1451
|
-
M =
|
|
1454
|
+
M = S[0] + M;
|
|
1452
1455
|
return M;
|
|
1453
1456
|
}
|
|
1454
1457
|
function g(d, m) {
|
|
1455
1458
|
return y(d, m, "0");
|
|
1456
1459
|
}
|
|
1457
1460
|
function b(d, m) {
|
|
1458
|
-
function
|
|
1461
|
+
function S(at) {
|
|
1459
1462
|
return at < 0 ? -1 : at > 0 ? 1 : 0;
|
|
1460
1463
|
}
|
|
1461
1464
|
var M;
|
|
1462
|
-
return (M =
|
|
1465
|
+
return (M = S(d.getFullYear() - m.getFullYear())) === 0 && (M = S(d.getMonth() - m.getMonth())) === 0 && (M = S(d.getDate() - m.getDate())), M;
|
|
1463
1466
|
}
|
|
1464
1467
|
function T(d) {
|
|
1465
1468
|
switch (d.getDay()) {
|
|
@@ -1479,17 +1482,17 @@ var jt = (() => {
|
|
|
1479
1482
|
return new Date(d.getFullYear() - 1, 11, 30);
|
|
1480
1483
|
}
|
|
1481
1484
|
}
|
|
1482
|
-
function
|
|
1483
|
-
var m = qn(new Date(d.tm_year + 1900, 0, 1), d.tm_yday),
|
|
1484
|
-
return b(at, m) <= 0 ? b(
|
|
1485
|
+
function j(d) {
|
|
1486
|
+
var m = qn(new Date(d.tm_year + 1900, 0, 1), d.tm_yday), S = new Date(m.getFullYear(), 0, 4), M = new Date(m.getFullYear() + 1, 0, 4), at = T(S), Mt = T(M);
|
|
1487
|
+
return b(at, m) <= 0 ? b(Mt, m) <= 0 ? m.getFullYear() + 1 : m.getFullYear() : m.getFullYear() - 1;
|
|
1485
1488
|
}
|
|
1486
|
-
var P = { "%a": (d) =>
|
|
1489
|
+
var P = { "%a": (d) => h[d.tm_wday].substring(0, 3), "%A": (d) => h[d.tm_wday], "%b": (d) => p[d.tm_mon].substring(0, 3), "%B": (d) => p[d.tm_mon], "%C": (d) => {
|
|
1487
1490
|
var m = d.tm_year + 1900;
|
|
1488
1491
|
return g(m / 100 | 0, 2);
|
|
1489
|
-
}, "%d": (d) => g(d.tm_mday, 2), "%e": (d) => y(d.tm_mday, 2, " "), "%g": (d) =>
|
|
1492
|
+
}, "%d": (d) => g(d.tm_mday, 2), "%e": (d) => y(d.tm_mday, 2, " "), "%g": (d) => j(d).toString().substring(2), "%G": (d) => j(d), "%H": (d) => g(d.tm_hour, 2), "%I": (d) => {
|
|
1490
1493
|
var m = d.tm_hour;
|
|
1491
1494
|
return m == 0 ? m = 12 : m > 12 && (m -= 12), g(m, 2);
|
|
1492
|
-
}, "%j": (d) => g(d.tm_mday + Xn(
|
|
1495
|
+
}, "%j": (d) => g(d.tm_mday + Xn(xt(d.tm_year + 1900) ? je : Re, d.tm_mon - 1), 3), "%m": (d) => g(d.tm_mon + 1, 2), "%M": (d) => g(d.tm_min, 2), "%n": () => `
|
|
1493
1496
|
`, "%p": (d) => d.tm_hour >= 0 && d.tm_hour < 12 ? "AM" : "PM", "%S": (d) => g(d.tm_sec, 2), "%t": () => " ", "%u": (d) => d.tm_wday || 7, "%U": (d) => {
|
|
1494
1497
|
var m = d.tm_yday + 7 - d.tm_wday;
|
|
1495
1498
|
return g(Math.floor(m / 7), 2);
|
|
@@ -1497,21 +1500,21 @@ var jt = (() => {
|
|
|
1497
1500
|
var m = Math.floor((d.tm_yday + 7 - (d.tm_wday + 6) % 7) / 7);
|
|
1498
1501
|
if ((d.tm_wday + 371 - d.tm_yday - 2) % 7 <= 2 && m++, m) {
|
|
1499
1502
|
if (m == 53) {
|
|
1500
|
-
var
|
|
1501
|
-
|
|
1503
|
+
var S = (d.tm_wday + 371 - d.tm_yday) % 7;
|
|
1504
|
+
S != 4 && (S != 3 || !xt(d.tm_year)) && (m = 1);
|
|
1502
1505
|
}
|
|
1503
1506
|
} else {
|
|
1504
1507
|
m = 52;
|
|
1505
1508
|
var M = (d.tm_wday + 7 - d.tm_yday - 1) % 7;
|
|
1506
|
-
(M == 4 || M == 5 &&
|
|
1509
|
+
(M == 4 || M == 5 && xt(d.tm_year % 400 - 1)) && m++;
|
|
1507
1510
|
}
|
|
1508
1511
|
return g(m, 2);
|
|
1509
1512
|
}, "%w": (d) => d.tm_wday, "%W": (d) => {
|
|
1510
1513
|
var m = d.tm_yday + 7 - (d.tm_wday + 6) % 7;
|
|
1511
1514
|
return g(Math.floor(m / 7), 2);
|
|
1512
1515
|
}, "%y": (d) => (d.tm_year + 1900).toString().substring(2), "%Y": (d) => d.tm_year + 1900, "%z": (d) => {
|
|
1513
|
-
var m = d.tm_gmtoff,
|
|
1514
|
-
return m = Math.abs(m) / 60, m = m / 60 * 100 + m % 60, (
|
|
1516
|
+
var m = d.tm_gmtoff, S = m >= 0;
|
|
1517
|
+
return m = Math.abs(m) / 60, m = m / 60 * 100 + m % 60, (S ? "+" : "-") + ("0000" + m).slice(-4);
|
|
1515
1518
|
}, "%Z": (d) => d.tm_zone, "%%": () => "%" };
|
|
1516
1519
|
u = u.replace(/%%/g, "\0\0");
|
|
1517
1520
|
for (var l in P)
|
|
@@ -1520,27 +1523,27 @@ var jt = (() => {
|
|
|
1520
1523
|
var R = Zn(u, !1);
|
|
1521
1524
|
return R.length > e ? 0 : (Jn(R, t), R.length - 1);
|
|
1522
1525
|
}, Kn = (t, e, r, n, a) => Qn(t, e, r, n);
|
|
1523
|
-
|
|
1526
|
+
fe = s.InternalError = class extends Error {
|
|
1524
1527
|
constructor(t) {
|
|
1525
1528
|
super(t), this.name = "InternalError";
|
|
1526
1529
|
}
|
|
1527
|
-
},
|
|
1530
|
+
}, xr(), ut = s.BindingError = class extends Error {
|
|
1528
1531
|
constructor(t) {
|
|
1529
1532
|
super(t), this.name = "BindingError";
|
|
1530
1533
|
}
|
|
1531
1534
|
}, Lr(), Hr(), Zr(), Te = s.UnboundTypeError = tn(Error, "UnboundTypeError"), an(), sn();
|
|
1532
|
-
var ta = { s: $r, v: br, b: _r, g: Tr, q: Pr, I: Er, f: Ar, T: Or, d: Cr, ba: Dr, P: Fr, Y: Mr, aa: en, $: rn, w: nn, X: un, x: ln, h: dn, K:
|
|
1535
|
+
var ta = { s: $r, v: br, b: _r, g: Tr, q: Pr, I: Er, f: Ar, T: Or, d: Cr, ba: Dr, P: Fr, Y: Mr, aa: en, $: rn, w: nn, X: un, x: ln, h: dn, K: fn, L: pn, t: yn, n: vn, J: $n, C: An, A: On, ca: Dn, Z: Fn, ea: Oe, da: Mn, M: In, V: Rn, _: Wn, B: kn, W: Hn, U: Vn, R: zn, S: Nn, D: ma, E: pa, m: ya, a: ea, e: oa, o: ua, k: aa, G: ha, u: la, F: fa, z: ga, O: $a, l: ia, j: sa, c: na, p: ra, H: da, r: va, i: ca, y: wa, N: Gn, Q: Kn }, E = wr(), Q = s._free = (t) => (Q = s._free = E.ha)(t), Qt = s._malloc = (t) => (Qt = s._malloc = E.ia)(t), We = (t) => (We = E.ka)(t);
|
|
1533
1536
|
s.__embind_initialize_bindings = () => (s.__embind_initialize_bindings = E.la)();
|
|
1534
|
-
var A = (t, e) => (A = E.ma)(t, e), wt = (t) => (wt = E.na)(t), F = () => (F = E.oa)(),
|
|
1537
|
+
var A = (t, e) => (A = E.ma)(t, e), wt = (t) => (wt = E.na)(t), F = () => (F = E.oa)(), x = (t) => (x = E.pa)(t), ke = (t) => (ke = E.qa)(t), He = (t) => (He = E.ra)(t), Be = (t, e, r) => (Be = E.sa)(t, e, r), Ue = (t) => (Ue = E.ta)(t);
|
|
1535
1538
|
s.dynCall_viijii = (t, e, r, n, a, o, u) => (s.dynCall_viijii = E.ua)(t, e, r, n, a, o, u);
|
|
1536
1539
|
var Ve = s.dynCall_jiiii = (t, e, r, n, a) => (Ve = s.dynCall_jiiii = E.va)(t, e, r, n, a);
|
|
1537
|
-
s.dynCall_iiiiij = (t, e, r, n, a, o, u) => (s.dynCall_iiiiij = E.wa)(t, e, r, n, a, o, u), s.dynCall_iiiiijj = (t, e, r, n, a, o, u, c, l) => (s.dynCall_iiiiijj = E.xa)(t, e, r, n, a, o, u, c, l), s.dynCall_iiiiiijj = (t, e, r, n, a, o, u, c, l,
|
|
1540
|
+
s.dynCall_iiiiij = (t, e, r, n, a, o, u) => (s.dynCall_iiiiij = E.wa)(t, e, r, n, a, o, u), s.dynCall_iiiiijj = (t, e, r, n, a, o, u, c, l) => (s.dynCall_iiiiijj = E.xa)(t, e, r, n, a, o, u, c, l), s.dynCall_iiiiiijj = (t, e, r, n, a, o, u, c, l, h) => (s.dynCall_iiiiiijj = E.ya)(t, e, r, n, a, o, u, c, l, h);
|
|
1538
1541
|
function ea(t, e) {
|
|
1539
1542
|
var r = F();
|
|
1540
1543
|
try {
|
|
1541
1544
|
return D(t)(e);
|
|
1542
1545
|
} catch (n) {
|
|
1543
|
-
if (
|
|
1546
|
+
if (x(r), n !== n + 0)
|
|
1544
1547
|
throw n;
|
|
1545
1548
|
A(1, 0);
|
|
1546
1549
|
}
|
|
@@ -1550,7 +1553,7 @@ var jt = (() => {
|
|
|
1550
1553
|
try {
|
|
1551
1554
|
D(t)(e, r, n);
|
|
1552
1555
|
} catch (o) {
|
|
1553
|
-
if (
|
|
1556
|
+
if (x(a), o !== o + 0)
|
|
1554
1557
|
throw o;
|
|
1555
1558
|
A(1, 0);
|
|
1556
1559
|
}
|
|
@@ -1560,7 +1563,7 @@ var jt = (() => {
|
|
|
1560
1563
|
try {
|
|
1561
1564
|
D(t)(e, r);
|
|
1562
1565
|
} catch (a) {
|
|
1563
|
-
if (
|
|
1566
|
+
if (x(n), a !== a + 0)
|
|
1564
1567
|
throw a;
|
|
1565
1568
|
A(1, 0);
|
|
1566
1569
|
}
|
|
@@ -1570,7 +1573,7 @@ var jt = (() => {
|
|
|
1570
1573
|
try {
|
|
1571
1574
|
return D(t)(e, r, n, a);
|
|
1572
1575
|
} catch (u) {
|
|
1573
|
-
if (
|
|
1576
|
+
if (x(o), u !== u + 0)
|
|
1574
1577
|
throw u;
|
|
1575
1578
|
A(1, 0);
|
|
1576
1579
|
}
|
|
@@ -1580,7 +1583,7 @@ var jt = (() => {
|
|
|
1580
1583
|
try {
|
|
1581
1584
|
return D(t)(e, r);
|
|
1582
1585
|
} catch (a) {
|
|
1583
|
-
if (
|
|
1586
|
+
if (x(n), a !== a + 0)
|
|
1584
1587
|
throw a;
|
|
1585
1588
|
A(1, 0);
|
|
1586
1589
|
}
|
|
@@ -1590,7 +1593,7 @@ var jt = (() => {
|
|
|
1590
1593
|
try {
|
|
1591
1594
|
D(t)();
|
|
1592
1595
|
} catch (r) {
|
|
1593
|
-
if (
|
|
1596
|
+
if (x(e), r !== r + 0)
|
|
1594
1597
|
throw r;
|
|
1595
1598
|
A(1, 0);
|
|
1596
1599
|
}
|
|
@@ -1600,7 +1603,7 @@ var jt = (() => {
|
|
|
1600
1603
|
try {
|
|
1601
1604
|
D(t)(e);
|
|
1602
1605
|
} catch (n) {
|
|
1603
|
-
if (
|
|
1606
|
+
if (x(r), n !== n + 0)
|
|
1604
1607
|
throw n;
|
|
1605
1608
|
A(1, 0);
|
|
1606
1609
|
}
|
|
@@ -1610,17 +1613,17 @@ var jt = (() => {
|
|
|
1610
1613
|
try {
|
|
1611
1614
|
return D(t)(e, r, n);
|
|
1612
1615
|
} catch (o) {
|
|
1613
|
-
if (
|
|
1616
|
+
if (x(a), o !== o + 0)
|
|
1614
1617
|
throw o;
|
|
1615
1618
|
A(1, 0);
|
|
1616
1619
|
}
|
|
1617
1620
|
}
|
|
1618
|
-
function ca(t, e, r, n, a, o, u, c, l,
|
|
1621
|
+
function ca(t, e, r, n, a, o, u, c, l, h, p) {
|
|
1619
1622
|
var y = F();
|
|
1620
1623
|
try {
|
|
1621
|
-
D(t)(e, r, n, a, o, u, c, l,
|
|
1624
|
+
D(t)(e, r, n, a, o, u, c, l, h, p);
|
|
1622
1625
|
} catch (g) {
|
|
1623
|
-
if (
|
|
1626
|
+
if (x(y), g !== g + 0)
|
|
1624
1627
|
throw g;
|
|
1625
1628
|
A(1, 0);
|
|
1626
1629
|
}
|
|
@@ -1630,7 +1633,7 @@ var jt = (() => {
|
|
|
1630
1633
|
try {
|
|
1631
1634
|
return D(t)(e, r, n, a, o, u);
|
|
1632
1635
|
} catch (l) {
|
|
1633
|
-
if (
|
|
1636
|
+
if (x(c), l !== l + 0)
|
|
1634
1637
|
throw l;
|
|
1635
1638
|
A(1, 0);
|
|
1636
1639
|
}
|
|
@@ -1640,28 +1643,28 @@ var jt = (() => {
|
|
|
1640
1643
|
try {
|
|
1641
1644
|
D(t)(e, r, n, a);
|
|
1642
1645
|
} catch (u) {
|
|
1643
|
-
if (
|
|
1646
|
+
if (x(o), u !== u + 0)
|
|
1644
1647
|
throw u;
|
|
1645
1648
|
A(1, 0);
|
|
1646
1649
|
}
|
|
1647
1650
|
}
|
|
1648
|
-
function
|
|
1651
|
+
function ha(t, e, r, n, a, o) {
|
|
1649
1652
|
var u = F();
|
|
1650
1653
|
try {
|
|
1651
1654
|
return D(t)(e, r, n, a, o);
|
|
1652
1655
|
} catch (c) {
|
|
1653
|
-
if (
|
|
1656
|
+
if (x(u), c !== c + 0)
|
|
1654
1657
|
throw c;
|
|
1655
1658
|
A(1, 0);
|
|
1656
1659
|
}
|
|
1657
1660
|
}
|
|
1658
|
-
function
|
|
1661
|
+
function fa(t, e, r, n, a, o, u, c) {
|
|
1659
1662
|
var l = F();
|
|
1660
1663
|
try {
|
|
1661
1664
|
return D(t)(e, r, n, a, o, u, c);
|
|
1662
|
-
} catch (
|
|
1663
|
-
if (
|
|
1664
|
-
throw
|
|
1665
|
+
} catch (h) {
|
|
1666
|
+
if (x(l), h !== h + 0)
|
|
1667
|
+
throw h;
|
|
1665
1668
|
A(1, 0);
|
|
1666
1669
|
}
|
|
1667
1670
|
}
|
|
@@ -1670,7 +1673,7 @@ var jt = (() => {
|
|
|
1670
1673
|
try {
|
|
1671
1674
|
return D(t)(e, r, n);
|
|
1672
1675
|
} catch (o) {
|
|
1673
|
-
if (
|
|
1676
|
+
if (x(a), o !== o + 0)
|
|
1674
1677
|
throw o;
|
|
1675
1678
|
A(1, 0);
|
|
1676
1679
|
}
|
|
@@ -1680,7 +1683,7 @@ var jt = (() => {
|
|
|
1680
1683
|
try {
|
|
1681
1684
|
return D(t)(e, r, n);
|
|
1682
1685
|
} catch (o) {
|
|
1683
|
-
if (
|
|
1686
|
+
if (x(a), o !== o + 0)
|
|
1684
1687
|
throw o;
|
|
1685
1688
|
A(1, 0);
|
|
1686
1689
|
}
|
|
@@ -1690,7 +1693,7 @@ var jt = (() => {
|
|
|
1690
1693
|
try {
|
|
1691
1694
|
return D(t)();
|
|
1692
1695
|
} catch (r) {
|
|
1693
|
-
if (
|
|
1696
|
+
if (x(e), r !== r + 0)
|
|
1694
1697
|
throw r;
|
|
1695
1698
|
A(1, 0);
|
|
1696
1699
|
}
|
|
@@ -1699,28 +1702,28 @@ var jt = (() => {
|
|
|
1699
1702
|
var l = F();
|
|
1700
1703
|
try {
|
|
1701
1704
|
D(t)(e, r, n, a, o, u, c);
|
|
1702
|
-
} catch (
|
|
1703
|
-
if (
|
|
1704
|
-
throw
|
|
1705
|
+
} catch (h) {
|
|
1706
|
+
if (x(l), h !== h + 0)
|
|
1707
|
+
throw h;
|
|
1705
1708
|
A(1, 0);
|
|
1706
1709
|
}
|
|
1707
1710
|
}
|
|
1708
|
-
function ga(t, e, r, n, a, o, u, c, l,
|
|
1711
|
+
function ga(t, e, r, n, a, o, u, c, l, h, p, y) {
|
|
1709
1712
|
var g = F();
|
|
1710
1713
|
try {
|
|
1711
|
-
return D(t)(e, r, n, a, o, u, c, l,
|
|
1714
|
+
return D(t)(e, r, n, a, o, u, c, l, h, p, y);
|
|
1712
1715
|
} catch (b) {
|
|
1713
|
-
if (
|
|
1716
|
+
if (x(g), b !== b + 0)
|
|
1714
1717
|
throw b;
|
|
1715
1718
|
A(1, 0);
|
|
1716
1719
|
}
|
|
1717
1720
|
}
|
|
1718
|
-
function wa(t, e, r, n, a, o, u, c, l,
|
|
1721
|
+
function wa(t, e, r, n, a, o, u, c, l, h, p, y, g, b, T, j) {
|
|
1719
1722
|
var P = F();
|
|
1720
1723
|
try {
|
|
1721
|
-
D(t)(e, r, n, a, o, u, c, l,
|
|
1724
|
+
D(t)(e, r, n, a, o, u, c, l, h, p, y, g, b, T, j);
|
|
1722
1725
|
} catch (R) {
|
|
1723
|
-
if (
|
|
1726
|
+
if (x(P), R !== R + 0)
|
|
1724
1727
|
throw R;
|
|
1725
1728
|
A(1, 0);
|
|
1726
1729
|
}
|
|
@@ -1730,14 +1733,14 @@ var jt = (() => {
|
|
|
1730
1733
|
try {
|
|
1731
1734
|
return Ve(t, e, r, n, a);
|
|
1732
1735
|
} catch (u) {
|
|
1733
|
-
if (
|
|
1736
|
+
if (x(o), u !== u + 0)
|
|
1734
1737
|
throw u;
|
|
1735
1738
|
A(1, 0);
|
|
1736
1739
|
}
|
|
1737
1740
|
}
|
|
1738
1741
|
var St;
|
|
1739
|
-
|
|
1740
|
-
St || Le(), St || (
|
|
1742
|
+
ht = function t() {
|
|
1743
|
+
St || Le(), St || (ht = t);
|
|
1741
1744
|
};
|
|
1742
1745
|
function Le() {
|
|
1743
1746
|
if (et > 0 || (ur(), et > 0))
|
|
@@ -1754,33 +1757,33 @@ var jt = (() => {
|
|
|
1754
1757
|
if (s.preInit)
|
|
1755
1758
|
for (typeof s.preInit == "function" && (s.preInit = [s.preInit]); s.preInit.length > 0; )
|
|
1756
1759
|
s.preInit.pop()();
|
|
1757
|
-
return Le(),
|
|
1760
|
+
return Le(), f.ready;
|
|
1758
1761
|
};
|
|
1759
1762
|
})();
|
|
1760
1763
|
function Ya(i) {
|
|
1761
1764
|
return re(
|
|
1762
|
-
|
|
1765
|
+
It,
|
|
1763
1766
|
i
|
|
1764
1767
|
);
|
|
1765
1768
|
}
|
|
1766
1769
|
function qa(i) {
|
|
1767
1770
|
return Ua(
|
|
1768
|
-
|
|
1771
|
+
It,
|
|
1769
1772
|
i
|
|
1770
1773
|
);
|
|
1771
1774
|
}
|
|
1772
|
-
async function za(i,
|
|
1775
|
+
async function za(i, f) {
|
|
1773
1776
|
return Va(
|
|
1774
|
-
|
|
1777
|
+
It,
|
|
1775
1778
|
i,
|
|
1776
|
-
|
|
1779
|
+
f
|
|
1777
1780
|
);
|
|
1778
1781
|
}
|
|
1779
|
-
async function
|
|
1782
|
+
async function Na(i, f) {
|
|
1780
1783
|
return La(
|
|
1781
|
-
|
|
1784
|
+
It,
|
|
1782
1785
|
i,
|
|
1783
|
-
|
|
1786
|
+
f
|
|
1784
1787
|
);
|
|
1785
1788
|
}
|
|
1786
1789
|
const ee = /* @__PURE__ */ new Map([
|
|
@@ -1798,10 +1801,10 @@ const ee = /* @__PURE__ */ new Map([
|
|
|
1798
1801
|
["upc_a", "UPC-A"],
|
|
1799
1802
|
["upc_e", "UPC-E"]
|
|
1800
1803
|
]);
|
|
1801
|
-
function
|
|
1802
|
-
for (const [
|
|
1804
|
+
function Ga(i) {
|
|
1805
|
+
for (const [f, s] of ee)
|
|
1803
1806
|
if (i === s)
|
|
1804
|
-
return
|
|
1807
|
+
return f;
|
|
1805
1808
|
return "unknown";
|
|
1806
1809
|
}
|
|
1807
1810
|
var ct;
|
|
@@ -1817,11 +1820,11 @@ class Za extends EventTarget {
|
|
|
1817
1820
|
if ((v == null ? void 0 : v.length) === 0)
|
|
1818
1821
|
throw new TypeError("Hint option provided, but is empty.");
|
|
1819
1822
|
v == null || v.forEach(($) => {
|
|
1820
|
-
if (!
|
|
1823
|
+
if (!Ge.includes($))
|
|
1821
1824
|
throw new TypeError(
|
|
1822
1825
|
`Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${$}' is not a valid enum value of type BarcodeFormat.`
|
|
1823
1826
|
);
|
|
1824
|
-
}),
|
|
1827
|
+
}), Ne(this, ct, v != null ? v : []), Ya().then(($) => {
|
|
1825
1828
|
this.dispatchEvent(
|
|
1826
1829
|
new CustomEvent("load", {
|
|
1827
1830
|
detail: $
|
|
@@ -1838,7 +1841,7 @@ class Za extends EventTarget {
|
|
|
1838
1841
|
}
|
|
1839
1842
|
}
|
|
1840
1843
|
static async getSupportedFormats() {
|
|
1841
|
-
return
|
|
1844
|
+
return Ge.filter((s) => s !== "unknown");
|
|
1842
1845
|
}
|
|
1843
1846
|
async detect(s) {
|
|
1844
1847
|
try {
|
|
@@ -1852,7 +1855,7 @@ class Za extends EventTarget {
|
|
|
1852
1855
|
formats: Kt(this, ct).map(
|
|
1853
1856
|
($) => ee.get($)
|
|
1854
1857
|
)
|
|
1855
|
-
}) : v = await
|
|
1858
|
+
}) : v = await Na(w, {
|
|
1856
1859
|
tryHarder: !0,
|
|
1857
1860
|
formats: Kt(this, ct).map(
|
|
1858
1861
|
($) => ee.get($)
|
|
@@ -1868,18 +1871,18 @@ class Za extends EventTarget {
|
|
|
1868
1871
|
const {
|
|
1869
1872
|
topLeft: { x: H, y: L },
|
|
1870
1873
|
topRight: { x: B, y: O },
|
|
1871
|
-
bottomLeft: { x: Y, y:
|
|
1874
|
+
bottomLeft: { x: Y, y: G },
|
|
1872
1875
|
bottomRight: { x: U, y: Z }
|
|
1873
|
-
} = $.position, tt = Math.min(H, B, Y, U), lt = Math.min(L, O,
|
|
1876
|
+
} = $.position, tt = Math.min(H, B, Y, U), lt = Math.min(L, O, G, Z), jt = Math.max(H, B, Y, U), V = Math.max(L, O, G, Z);
|
|
1874
1877
|
return {
|
|
1875
1878
|
boundingBox: new DOMRectReadOnly(
|
|
1876
1879
|
tt,
|
|
1877
1880
|
lt,
|
|
1878
|
-
|
|
1881
|
+
jt - tt,
|
|
1879
1882
|
V - lt
|
|
1880
1883
|
),
|
|
1881
1884
|
rawValue: $.text,
|
|
1882
|
-
format:
|
|
1885
|
+
format: Ga($.format),
|
|
1883
1886
|
cornerPoints: [
|
|
1884
1887
|
{
|
|
1885
1888
|
x: H,
|
|
@@ -1895,7 +1898,7 @@ class Za extends EventTarget {
|
|
|
1895
1898
|
},
|
|
1896
1899
|
{
|
|
1897
1900
|
x: Y,
|
|
1898
|
-
y:
|
|
1901
|
+
y: G
|
|
1899
1902
|
}
|
|
1900
1903
|
]
|
|
1901
1904
|
};
|