@iyulab/u-insight 0.12.2 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +96 -7
- package/node/u_insight.cjs +41 -41
- package/node/u_insight_bg.wasm +0 -0
- package/package.json +1 -1
- package/u_insight_bg.js +41 -41
- package/u_insight_bg.wasm +0 -0
package/README.md
CHANGED
|
@@ -7,6 +7,19 @@
|
|
|
7
7
|
|
|
8
8
|
A statistical analysis and data profiling engine in Rust with C FFI bindings.
|
|
9
9
|
|
|
10
|
+
## What's New in 0.14.0 (Unreleased)
|
|
11
|
+
|
|
12
|
+
- **26 new FFI functions** exposing `u-analytics` domains that were already a
|
|
13
|
+
dependency but not previously reachable from outside this crate: Mann-Kendall
|
|
14
|
+
trend test, kernel density estimation, the full SPC control chart family
|
|
15
|
+
(X-bar-R/S, Individual-MR, P/NP/C/U, Laney P'/U', G/T), process capability
|
|
16
|
+
(Cp/Cpk/Pp/Ppk/Cpm, Box-Cox, percentile-based, sigma↔PPM), and Weibull
|
|
17
|
+
reliability analysis (MLE/MRR fitting, survival, hazard, MTBF, B-life). See
|
|
18
|
+
the C FFI section below and `CHANGELOG.md` for the full function list.
|
|
19
|
+
- Matching C# bindings for all of the above, including the binding's first
|
|
20
|
+
`double?`-based optional parameters/return values (`ProcessCapability`,
|
|
21
|
+
`PpmToSigma`, etc.), converting to/from `NaN` only at the P/Invoke boundary.
|
|
22
|
+
|
|
10
23
|
## What's New in 0.9.1
|
|
11
24
|
|
|
12
25
|
- **BREAKING — Rust**: `InsightError::NonNumericColumn` variant removed. The 0.9.0 audit redirected all internal call sites to `DegenerateData`, leaving the variant unused. Removed per `Delete over deprecate` policy. External `match` arms over `InsightError` must drop the corresponding branch.
|
|
@@ -129,6 +142,7 @@ u-insight builds as `cdylib` + `staticlib` for cross-language interop. A C heade
|
|
|
129
142
|
| Function | Description |
|
|
130
143
|
|----------|-------------|
|
|
131
144
|
| `insight_profile_csv` | Profile a CSV string → opaque context |
|
|
145
|
+
| `insight_profile_json` | Profile a JSON string → opaque context |
|
|
132
146
|
| `insight_profile_free` | Free profile context |
|
|
133
147
|
| `insight_profile_row_count` | Row count from profile |
|
|
134
148
|
| `insight_profile_col_count` | Column count from profile |
|
|
@@ -144,6 +158,7 @@ u-insight builds as `cdylib` + `staticlib` for cross-language interop. A C heade
|
|
|
144
158
|
| `insight_hierarchical` | Hierarchical Agglomerative clustering (4 linkages) |
|
|
145
159
|
| `insight_hdbscan` | HDBSCAN clustering with membership probabilities |
|
|
146
160
|
| `insight_gap_statistic` | Gap statistic for optimal K selection |
|
|
161
|
+
| `insight_silhouette` | Silhouette score for cluster validation |
|
|
147
162
|
|
|
148
163
|
### Dimensionality Reduction
|
|
149
164
|
|
|
@@ -173,6 +188,63 @@ u-insight builds as `cdylib` + `staticlib` for cross-language interop. A C heade
|
|
|
173
188
|
|----------|-------------|
|
|
174
189
|
| `insight_distribution` | Normality testing (KS, JB, SW, AD) |
|
|
175
190
|
|
|
191
|
+
### Changepoint Detection
|
|
192
|
+
|
|
193
|
+
| Function | Description |
|
|
194
|
+
|----------|-------------|
|
|
195
|
+
| `insight_pelt` | PELT changepoint detection (univariate) |
|
|
196
|
+
| `insight_pelt_multi` | PELT changepoint detection (multivariate) |
|
|
197
|
+
|
|
198
|
+
### Trend & Density Estimation
|
|
199
|
+
|
|
200
|
+
| Function | Description |
|
|
201
|
+
|----------|-------------|
|
|
202
|
+
| `insight_mann_kendall` | Mann-Kendall trend test with Sen's slope |
|
|
203
|
+
| `insight_kde` | Gaussian kernel density estimation (Silverman/Scott/manual bandwidth) |
|
|
204
|
+
|
|
205
|
+
### SPC — Variables Control Charts
|
|
206
|
+
|
|
207
|
+
| Function | Description |
|
|
208
|
+
|----------|-------------|
|
|
209
|
+
| `insight_xbar_r_chart` | X-bar-R control chart (subgroup mean + range) |
|
|
210
|
+
| `insight_xbar_s_chart` | X-bar-S control chart (subgroup mean + std dev) |
|
|
211
|
+
| `insight_individual_mr_chart` | Individual-MR control chart |
|
|
212
|
+
|
|
213
|
+
### SPC — Attributes Control Charts
|
|
214
|
+
|
|
215
|
+
| Function | Description |
|
|
216
|
+
|----------|-------------|
|
|
217
|
+
| `insight_p_chart` | P chart (proportion nonconforming) |
|
|
218
|
+
| `insight_np_chart` | NP chart (count nonconforming, constant sample size) |
|
|
219
|
+
| `insight_c_chart` | C chart (defect count, constant area) |
|
|
220
|
+
| `insight_u_chart` | U chart (defects per unit, variable area) |
|
|
221
|
+
| `insight_laney_p_chart` | Laney P' chart (overdispersion-adjusted) |
|
|
222
|
+
| `insight_laney_u_chart` | Laney U' chart (overdispersion-adjusted) |
|
|
223
|
+
| `insight_g_chart` | G chart (rare-event, geometric distribution) |
|
|
224
|
+
| `insight_t_chart` | T chart (rare-event, exponential distribution) |
|
|
225
|
+
|
|
226
|
+
### Process Capability
|
|
227
|
+
|
|
228
|
+
| Function | Description |
|
|
229
|
+
|----------|-------------|
|
|
230
|
+
| `insight_process_capability` | Standard capability indices (Cp/Cpk/Pp/Ppk/Cpm) |
|
|
231
|
+
| `insight_boxcox_capability` | Non-normal capability via Box-Cox transformation |
|
|
232
|
+
| `insight_percentile_capability` | Percentile-based capability (ISO 22514-2) |
|
|
233
|
+
| `insight_sigma_to_ppm` | Sigma quality level → PPM defect rate |
|
|
234
|
+
| `insight_ppm_to_sigma` | PPM defect rate → sigma quality level |
|
|
235
|
+
|
|
236
|
+
### Weibull Reliability
|
|
237
|
+
|
|
238
|
+
| Function | Description |
|
|
239
|
+
|----------|-------------|
|
|
240
|
+
| `insight_weibull_mle` | Weibull parameter fitting (Maximum Likelihood Estimation) |
|
|
241
|
+
| `insight_weibull_mrr` | Weibull parameter fitting (Median Rank Regression) |
|
|
242
|
+
| `insight_weibull_reliability` | Reliability (survival) function R(t) |
|
|
243
|
+
| `insight_weibull_hazard_rate` | Hazard (instantaneous failure) rate |
|
|
244
|
+
| `insight_weibull_mtbf` | Mean Time Between Failures |
|
|
245
|
+
| `insight_weibull_time_to_reliability` | Time at which reliability drops to a given level |
|
|
246
|
+
| `insight_weibull_b_life` | B-life (time at which a given fraction has failed) |
|
|
247
|
+
|
|
176
248
|
### Feature Importance
|
|
177
249
|
|
|
178
250
|
| Function | Description |
|
|
@@ -192,6 +264,12 @@ u-insight builds as `cdylib` + `staticlib` for cross-language interop. A C heade
|
|
|
192
264
|
| `insight_free_anova_features` | Free ANOVA feature arrays |
|
|
193
265
|
| `insight_free_mi_features` | Free MI feature arrays |
|
|
194
266
|
| `insight_free_perm_features` | Free permutation importance arrays |
|
|
267
|
+
| `insight_free_pelt_result` | Free PELT changepoint results |
|
|
268
|
+
| `insight_free_kde_result` | Free KDE results |
|
|
269
|
+
| `insight_free_variables_chart_result` | Free variables control chart results |
|
|
270
|
+
| `insight_free_attribute_chart_result` | Free attributes control chart results |
|
|
271
|
+
| `insight_free_laney_chart_result` | Free Laney P'/U' chart results |
|
|
272
|
+
| `insight_free_rare_event_chart_result` | Free G/T chart results |
|
|
195
273
|
|
|
196
274
|
### Error & Version
|
|
197
275
|
|
|
@@ -201,7 +279,7 @@ u-insight builds as `cdylib` + `staticlib` for cross-language interop. A C heade
|
|
|
201
279
|
| `insight_clear_error` | Clear error state |
|
|
202
280
|
| `insight_version` | Library version string |
|
|
203
281
|
|
|
204
|
-
All FFI functions use `catch_unwind` to prevent panics from crossing the FFI boundary.
|
|
282
|
+
All FFI functions that accept data pointers use `catch_unwind` to prevent panics from crossing the FFI boundary. A handful of pure closed-form scalar conversions (e.g. `insight_sigma_to_ppm`, `insight_weibull_reliability`) skip the `catch_unwind`/error-code ceremony and return the value directly, since they cannot panic and have no data to validate.
|
|
205
283
|
|
|
206
284
|
## C# Binding (UInsight)
|
|
207
285
|
|
|
@@ -224,18 +302,18 @@ Console.WriteLine($"K={result.K}, WCSS={result.Wcss:F2}");
|
|
|
224
302
|
|
|
225
303
|
The binding is in `bindings/csharp/UInsight/` with:
|
|
226
304
|
|
|
227
|
-
- `Interop/NativeLibrary.cs` — `[LibraryImport]` declarations for all
|
|
228
|
-
- `Interop/NativeStructs.cs` — `[StructLayout]` mappings for all
|
|
305
|
+
- `Interop/NativeLibrary.cs` — `[LibraryImport]` declarations for all 67 FFI functions
|
|
306
|
+
- `Interop/NativeStructs.cs` — `[StructLayout]` mappings for all 35 C structs
|
|
229
307
|
- `InsightClient.cs` — High-level managed API (automatic memory management)
|
|
230
308
|
- `InsightException.cs` — Error code to exception conversion
|
|
231
309
|
|
|
232
310
|
## Test Status
|
|
233
311
|
|
|
234
312
|
```
|
|
235
|
-
|
|
313
|
+
474 lib tests + 53 doc-tests = 527 total
|
|
236
314
|
0 clippy warnings
|
|
237
315
|
Build: lib + cdylib + staticlib
|
|
238
|
-
C header: auto-generated via cbindgen (
|
|
316
|
+
C header: auto-generated via cbindgen (35 structs, 67 functions)
|
|
239
317
|
```
|
|
240
318
|
|
|
241
319
|
## Scope & Non-Goals
|
|
@@ -257,7 +335,7 @@ C header: auto-generated via cbindgen (20 structs, 32 functions)
|
|
|
257
335
|
|
|
258
336
|
## Requirements
|
|
259
337
|
|
|
260
|
-
- Rust 1.
|
|
338
|
+
- Rust 1.85+
|
|
261
339
|
- Dependencies: `u-analytics`, `u-numflow`
|
|
262
340
|
|
|
263
341
|
## WebAssembly / npm
|
|
@@ -334,7 +412,18 @@ DBSCAN density-based clustering. `config`: `{ "epsilon": 1.5, "min_samples": 3 }
|
|
|
334
412
|
|
|
335
413
|
#### `hierarchical(data, config) -> HierarchicalResult`
|
|
336
414
|
|
|
337
|
-
Hierarchical agglomerative clustering. `config`: `{ "linkage": "ward", "n_clusters": 3 }` or `{ "linkage": "single", "distance_threshold": 5.0 }`.
|
|
415
|
+
Hierarchical agglomerative clustering (nearest-neighbor-chain, **O(n²)** time / O(n²) memory). `config`: `{ "linkage": "ward", "n_clusters": 3 }` or `{ "linkage": "single", "distance_threshold": 5.0 }`.
|
|
416
|
+
|
|
417
|
+
**Config fields:**
|
|
418
|
+
- `linkage` — `"single" | "complete" | "average" | "ward"` (default `"ward"`).
|
|
419
|
+
- `n_clusters` — flat clusters to extract (mutually exclusive with `distance_threshold`).
|
|
420
|
+
- `distance_threshold` — dendrogram cut height (mutually exclusive with `n_clusters`).
|
|
421
|
+
- `max_points` — memory guard; inputs with more points are rejected before allocating the O(n²) distance matrix. Omit for the default (`10000`, ≈400 MB matrix); set `0` to disable. Raise it for large native batches; lower it for tight memory (e.g. a browser tab).
|
|
422
|
+
|
|
423
|
+
```js
|
|
424
|
+
// large dataset on a memory-constrained page: cap it explicitly
|
|
425
|
+
hierarchical(data, { linkage: "ward", n_clusters: 3, max_points: 5000 });
|
|
426
|
+
```
|
|
338
427
|
|
|
339
428
|
**Output:**
|
|
340
429
|
```json
|
package/node/u_insight.cjs
CHANGED
|
@@ -387,7 +387,7 @@ exports.vif_diagnostic = vif_diagnostic;
|
|
|
387
387
|
function __wbg_get_imports() {
|
|
388
388
|
const import0 = {
|
|
389
389
|
__proto__: null,
|
|
390
|
-
|
|
390
|
+
__wbg_Error_67e7344beaa85059: function(arg0, arg1) {
|
|
391
391
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
392
392
|
return ret;
|
|
393
393
|
},
|
|
@@ -398,56 +398,56 @@ function __wbg_get_imports() {
|
|
|
398
398
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
399
399
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
400
400
|
},
|
|
401
|
-
|
|
401
|
+
__wbg___wbindgen_bigint_get_as_i64_b482365c149396c8: function(arg0, arg1) {
|
|
402
402
|
const v = arg1;
|
|
403
403
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
404
404
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
405
405
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
406
406
|
},
|
|
407
|
-
|
|
407
|
+
__wbg___wbindgen_boolean_get_7a12af2b3f899c5a: function(arg0) {
|
|
408
408
|
const v = arg0;
|
|
409
409
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
410
410
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
411
411
|
},
|
|
412
|
-
|
|
412
|
+
__wbg___wbindgen_debug_string_0e68cf47c9cbd9b0: function(arg0, arg1) {
|
|
413
413
|
const ret = debugString(arg1);
|
|
414
414
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
415
415
|
const len1 = WASM_VECTOR_LEN;
|
|
416
416
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
417
417
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
418
418
|
},
|
|
419
|
-
|
|
419
|
+
__wbg___wbindgen_in_50072d4d6e45c193: function(arg0, arg1) {
|
|
420
420
|
const ret = arg0 in arg1;
|
|
421
421
|
return ret;
|
|
422
422
|
},
|
|
423
|
-
|
|
423
|
+
__wbg___wbindgen_is_bigint_60fc0336cb14f5d7: function(arg0) {
|
|
424
424
|
const ret = typeof(arg0) === 'bigint';
|
|
425
425
|
return ret;
|
|
426
426
|
},
|
|
427
|
-
|
|
427
|
+
__wbg___wbindgen_is_function_fcda5e3902d732fe: function(arg0) {
|
|
428
428
|
const ret = typeof(arg0) === 'function';
|
|
429
429
|
return ret;
|
|
430
430
|
},
|
|
431
|
-
|
|
431
|
+
__wbg___wbindgen_is_object_edb6b15aa3afe12e: function(arg0) {
|
|
432
432
|
const val = arg0;
|
|
433
433
|
const ret = typeof(val) === 'object' && val !== null;
|
|
434
434
|
return ret;
|
|
435
435
|
},
|
|
436
|
-
|
|
436
|
+
__wbg___wbindgen_jsval_eq_9fdcd3c0a860dd3b: function(arg0, arg1) {
|
|
437
437
|
const ret = arg0 === arg1;
|
|
438
438
|
return ret;
|
|
439
439
|
},
|
|
440
|
-
|
|
440
|
+
__wbg___wbindgen_jsval_loose_eq_3c30021c243b64cd: function(arg0, arg1) {
|
|
441
441
|
const ret = arg0 == arg1;
|
|
442
442
|
return ret;
|
|
443
443
|
},
|
|
444
|
-
|
|
444
|
+
__wbg___wbindgen_number_get_1dc732b810cb937c: function(arg0, arg1) {
|
|
445
445
|
const obj = arg1;
|
|
446
446
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
447
447
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
448
448
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
449
449
|
},
|
|
450
|
-
|
|
450
|
+
__wbg___wbindgen_string_get_92ab86bb19cbc12f: function(arg0, arg1) {
|
|
451
451
|
const obj = arg1;
|
|
452
452
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
453
453
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -455,34 +455,34 @@ function __wbg_get_imports() {
|
|
|
455
455
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
456
456
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
457
457
|
},
|
|
458
|
-
|
|
458
|
+
__wbg___wbindgen_throw_5d9e815e6fdf150f: function(arg0, arg1) {
|
|
459
459
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
460
460
|
},
|
|
461
|
-
|
|
461
|
+
__wbg_call_269c5566fbede3eb: function() { return handleError(function (arg0, arg1) {
|
|
462
462
|
const ret = arg0.call(arg1);
|
|
463
463
|
return ret;
|
|
464
464
|
}, arguments); },
|
|
465
|
-
|
|
465
|
+
__wbg_done_cffed884d87aa22e: function(arg0) {
|
|
466
466
|
const ret = arg0.done;
|
|
467
467
|
return ret;
|
|
468
468
|
},
|
|
469
|
-
|
|
469
|
+
__wbg_entries_972a87586902cf87: function(arg0) {
|
|
470
470
|
const ret = Object.entries(arg0);
|
|
471
471
|
return ret;
|
|
472
472
|
},
|
|
473
|
-
|
|
473
|
+
__wbg_get_6cf5a4d4d8ad3c5a: function() { return handleError(function (arg0, arg1) {
|
|
474
474
|
const ret = Reflect.get(arg0, arg1);
|
|
475
475
|
return ret;
|
|
476
476
|
}, arguments); },
|
|
477
|
-
|
|
477
|
+
__wbg_get_b1f0ab13c737f856: function(arg0, arg1) {
|
|
478
478
|
const ret = arg0[arg1 >>> 0];
|
|
479
479
|
return ret;
|
|
480
480
|
},
|
|
481
|
-
|
|
481
|
+
__wbg_get_unchecked_363572bdd397d473: function(arg0, arg1) {
|
|
482
482
|
const ret = arg0[arg1 >>> 0];
|
|
483
483
|
return ret;
|
|
484
484
|
},
|
|
485
|
-
|
|
485
|
+
__wbg_instanceof_ArrayBuffer_d4ff01f8247925ae: function(arg0) {
|
|
486
486
|
let result;
|
|
487
487
|
try {
|
|
488
488
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -492,7 +492,7 @@ function __wbg_get_imports() {
|
|
|
492
492
|
const ret = result;
|
|
493
493
|
return ret;
|
|
494
494
|
},
|
|
495
|
-
|
|
495
|
+
__wbg_instanceof_Map_1ff6a2b54c899f0d: function(arg0) {
|
|
496
496
|
let result;
|
|
497
497
|
try {
|
|
498
498
|
result = arg0 instanceof Map;
|
|
@@ -502,7 +502,7 @@ function __wbg_get_imports() {
|
|
|
502
502
|
const ret = result;
|
|
503
503
|
return ret;
|
|
504
504
|
},
|
|
505
|
-
|
|
505
|
+
__wbg_instanceof_Uint8Array_598adc0fef426aa8: function(arg0) {
|
|
506
506
|
let result;
|
|
507
507
|
try {
|
|
508
508
|
result = arg0 instanceof Uint8Array;
|
|
@@ -512,75 +512,75 @@ function __wbg_get_imports() {
|
|
|
512
512
|
const ret = result;
|
|
513
513
|
return ret;
|
|
514
514
|
},
|
|
515
|
-
|
|
515
|
+
__wbg_isArray_5674713bb7b79043: function(arg0) {
|
|
516
516
|
const ret = Array.isArray(arg0);
|
|
517
517
|
return ret;
|
|
518
518
|
},
|
|
519
|
-
|
|
519
|
+
__wbg_isSafeInteger_8f51c743827d1ec5: function(arg0) {
|
|
520
520
|
const ret = Number.isSafeInteger(arg0);
|
|
521
521
|
return ret;
|
|
522
522
|
},
|
|
523
|
-
|
|
523
|
+
__wbg_iterator_22ddeb808cf55a6f: function() {
|
|
524
524
|
const ret = Symbol.iterator;
|
|
525
525
|
return ret;
|
|
526
526
|
},
|
|
527
|
-
|
|
527
|
+
__wbg_length_31bdaf014f5fbde2: function(arg0) {
|
|
528
528
|
const ret = arg0.length;
|
|
529
529
|
return ret;
|
|
530
530
|
},
|
|
531
|
-
|
|
531
|
+
__wbg_length_4e1adc0d42e23620: function(arg0) {
|
|
532
532
|
const ret = arg0.length;
|
|
533
533
|
return ret;
|
|
534
534
|
},
|
|
535
|
-
|
|
535
|
+
__wbg_new_1da3429bc3c4541c: function(arg0) {
|
|
536
536
|
const ret = new Uint8Array(arg0);
|
|
537
537
|
return ret;
|
|
538
538
|
},
|
|
539
|
-
|
|
539
|
+
__wbg_new_bebc3f4757acf305: function() {
|
|
540
540
|
const ret = new Object();
|
|
541
541
|
return ret;
|
|
542
542
|
},
|
|
543
|
-
|
|
543
|
+
__wbg_new_ffa92086ea89f79c: function() {
|
|
544
544
|
const ret = new Array();
|
|
545
545
|
return ret;
|
|
546
546
|
},
|
|
547
|
-
|
|
547
|
+
__wbg_next_95053e306b1c3aed: function(arg0) {
|
|
548
548
|
const ret = arg0.next;
|
|
549
549
|
return ret;
|
|
550
550
|
},
|
|
551
|
-
|
|
551
|
+
__wbg_next_f31ecb8646d2c605: function() { return handleError(function (arg0) {
|
|
552
552
|
const ret = arg0.next();
|
|
553
553
|
return ret;
|
|
554
554
|
}, arguments); },
|
|
555
|
-
|
|
555
|
+
__wbg_prototypesetcall_ae9f5e7459250748: function(arg0, arg1, arg2) {
|
|
556
556
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
557
557
|
},
|
|
558
|
+
__wbg_set_13d25b81ab403f5e: function(arg0, arg1, arg2) {
|
|
559
|
+
arg0[arg1 >>> 0] = arg2;
|
|
560
|
+
},
|
|
558
561
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
559
562
|
arg0[arg1] = arg2;
|
|
560
563
|
},
|
|
561
|
-
|
|
562
|
-
arg0[arg1 >>> 0] = arg2;
|
|
563
|
-
},
|
|
564
|
-
__wbg_value_f3625092ee4b37f4: function(arg0) {
|
|
564
|
+
__wbg_value_c227f843d21da141: function(arg0) {
|
|
565
565
|
const ret = arg0.value;
|
|
566
566
|
return ret;
|
|
567
567
|
},
|
|
568
|
-
|
|
568
|
+
__wbindgen_generic_0000000000000001: function(arg0) {
|
|
569
569
|
// Cast intrinsic for `F64 -> Externref`.
|
|
570
570
|
const ret = arg0;
|
|
571
571
|
return ret;
|
|
572
572
|
},
|
|
573
|
-
|
|
573
|
+
__wbindgen_generic_0000000000000002: function(arg0) {
|
|
574
574
|
// Cast intrinsic for `I64 -> Externref`.
|
|
575
575
|
const ret = arg0;
|
|
576
576
|
return ret;
|
|
577
577
|
},
|
|
578
|
-
|
|
578
|
+
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
579
579
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
580
580
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
581
581
|
return ret;
|
|
582
582
|
},
|
|
583
|
-
|
|
583
|
+
__wbindgen_generic_0000000000000004: function(arg0) {
|
|
584
584
|
// Cast intrinsic for `U64 -> Externref`.
|
|
585
585
|
const ret = BigInt.asUintN(64, arg0);
|
|
586
586
|
return ret;
|
package/node/u_insight_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/u_insight_bg.js
CHANGED
|
@@ -367,7 +367,7 @@ export function vif_diagnostic(data) {
|
|
|
367
367
|
}
|
|
368
368
|
return takeFromExternrefTable0(ret[0]);
|
|
369
369
|
}
|
|
370
|
-
export function
|
|
370
|
+
export function __wbg_Error_67e7344beaa85059(arg0, arg1) {
|
|
371
371
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
372
372
|
return ret;
|
|
373
373
|
}
|
|
@@ -378,56 +378,56 @@ export function __wbg_String_8564e559799eccda(arg0, arg1) {
|
|
|
378
378
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
379
379
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
380
380
|
}
|
|
381
|
-
export function
|
|
381
|
+
export function __wbg___wbindgen_bigint_get_as_i64_b482365c149396c8(arg0, arg1) {
|
|
382
382
|
const v = arg1;
|
|
383
383
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
384
384
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
385
385
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
386
386
|
}
|
|
387
|
-
export function
|
|
387
|
+
export function __wbg___wbindgen_boolean_get_7a12af2b3f899c5a(arg0) {
|
|
388
388
|
const v = arg0;
|
|
389
389
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
390
390
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
391
391
|
}
|
|
392
|
-
export function
|
|
392
|
+
export function __wbg___wbindgen_debug_string_0e68cf47c9cbd9b0(arg0, arg1) {
|
|
393
393
|
const ret = debugString(arg1);
|
|
394
394
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
395
395
|
const len1 = WASM_VECTOR_LEN;
|
|
396
396
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
397
397
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
398
398
|
}
|
|
399
|
-
export function
|
|
399
|
+
export function __wbg___wbindgen_in_50072d4d6e45c193(arg0, arg1) {
|
|
400
400
|
const ret = arg0 in arg1;
|
|
401
401
|
return ret;
|
|
402
402
|
}
|
|
403
|
-
export function
|
|
403
|
+
export function __wbg___wbindgen_is_bigint_60fc0336cb14f5d7(arg0) {
|
|
404
404
|
const ret = typeof(arg0) === 'bigint';
|
|
405
405
|
return ret;
|
|
406
406
|
}
|
|
407
|
-
export function
|
|
407
|
+
export function __wbg___wbindgen_is_function_fcda5e3902d732fe(arg0) {
|
|
408
408
|
const ret = typeof(arg0) === 'function';
|
|
409
409
|
return ret;
|
|
410
410
|
}
|
|
411
|
-
export function
|
|
411
|
+
export function __wbg___wbindgen_is_object_edb6b15aa3afe12e(arg0) {
|
|
412
412
|
const val = arg0;
|
|
413
413
|
const ret = typeof(val) === 'object' && val !== null;
|
|
414
414
|
return ret;
|
|
415
415
|
}
|
|
416
|
-
export function
|
|
416
|
+
export function __wbg___wbindgen_jsval_eq_9fdcd3c0a860dd3b(arg0, arg1) {
|
|
417
417
|
const ret = arg0 === arg1;
|
|
418
418
|
return ret;
|
|
419
419
|
}
|
|
420
|
-
export function
|
|
420
|
+
export function __wbg___wbindgen_jsval_loose_eq_3c30021c243b64cd(arg0, arg1) {
|
|
421
421
|
const ret = arg0 == arg1;
|
|
422
422
|
return ret;
|
|
423
423
|
}
|
|
424
|
-
export function
|
|
424
|
+
export function __wbg___wbindgen_number_get_1dc732b810cb937c(arg0, arg1) {
|
|
425
425
|
const obj = arg1;
|
|
426
426
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
427
427
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
428
428
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
429
429
|
}
|
|
430
|
-
export function
|
|
430
|
+
export function __wbg___wbindgen_string_get_92ab86bb19cbc12f(arg0, arg1) {
|
|
431
431
|
const obj = arg1;
|
|
432
432
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
433
433
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -435,34 +435,34 @@ export function __wbg___wbindgen_string_get_72bdf95d3ae505b1(arg0, arg1) {
|
|
|
435
435
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
436
436
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
437
437
|
}
|
|
438
|
-
export function
|
|
438
|
+
export function __wbg___wbindgen_throw_5d9e815e6fdf150f(arg0, arg1) {
|
|
439
439
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
440
440
|
}
|
|
441
|
-
export function
|
|
441
|
+
export function __wbg_call_269c5566fbede3eb() { return handleError(function (arg0, arg1) {
|
|
442
442
|
const ret = arg0.call(arg1);
|
|
443
443
|
return ret;
|
|
444
444
|
}, arguments); }
|
|
445
|
-
export function
|
|
445
|
+
export function __wbg_done_cffed884d87aa22e(arg0) {
|
|
446
446
|
const ret = arg0.done;
|
|
447
447
|
return ret;
|
|
448
448
|
}
|
|
449
|
-
export function
|
|
449
|
+
export function __wbg_entries_972a87586902cf87(arg0) {
|
|
450
450
|
const ret = Object.entries(arg0);
|
|
451
451
|
return ret;
|
|
452
452
|
}
|
|
453
|
-
export function
|
|
453
|
+
export function __wbg_get_6cf5a4d4d8ad3c5a() { return handleError(function (arg0, arg1) {
|
|
454
454
|
const ret = Reflect.get(arg0, arg1);
|
|
455
455
|
return ret;
|
|
456
456
|
}, arguments); }
|
|
457
|
-
export function
|
|
457
|
+
export function __wbg_get_b1f0ab13c737f856(arg0, arg1) {
|
|
458
458
|
const ret = arg0[arg1 >>> 0];
|
|
459
459
|
return ret;
|
|
460
460
|
}
|
|
461
|
-
export function
|
|
461
|
+
export function __wbg_get_unchecked_363572bdd397d473(arg0, arg1) {
|
|
462
462
|
const ret = arg0[arg1 >>> 0];
|
|
463
463
|
return ret;
|
|
464
464
|
}
|
|
465
|
-
export function
|
|
465
|
+
export function __wbg_instanceof_ArrayBuffer_d4ff01f8247925ae(arg0) {
|
|
466
466
|
let result;
|
|
467
467
|
try {
|
|
468
468
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -472,7 +472,7 @@ export function __wbg_instanceof_ArrayBuffer_8f49811467741499(arg0) {
|
|
|
472
472
|
const ret = result;
|
|
473
473
|
return ret;
|
|
474
474
|
}
|
|
475
|
-
export function
|
|
475
|
+
export function __wbg_instanceof_Map_1ff6a2b54c899f0d(arg0) {
|
|
476
476
|
let result;
|
|
477
477
|
try {
|
|
478
478
|
result = arg0 instanceof Map;
|
|
@@ -482,7 +482,7 @@ export function __wbg_instanceof_Map_9fc06d9a951bcee6(arg0) {
|
|
|
482
482
|
const ret = result;
|
|
483
483
|
return ret;
|
|
484
484
|
}
|
|
485
|
-
export function
|
|
485
|
+
export function __wbg_instanceof_Uint8Array_598adc0fef426aa8(arg0) {
|
|
486
486
|
let result;
|
|
487
487
|
try {
|
|
488
488
|
result = arg0 instanceof Uint8Array;
|
|
@@ -492,75 +492,75 @@ export function __wbg_instanceof_Uint8Array_86f30649f63ef9c2(arg0) {
|
|
|
492
492
|
const ret = result;
|
|
493
493
|
return ret;
|
|
494
494
|
}
|
|
495
|
-
export function
|
|
495
|
+
export function __wbg_isArray_5674713bb7b79043(arg0) {
|
|
496
496
|
const ret = Array.isArray(arg0);
|
|
497
497
|
return ret;
|
|
498
498
|
}
|
|
499
|
-
export function
|
|
499
|
+
export function __wbg_isSafeInteger_8f51c743827d1ec5(arg0) {
|
|
500
500
|
const ret = Number.isSafeInteger(arg0);
|
|
501
501
|
return ret;
|
|
502
502
|
}
|
|
503
|
-
export function
|
|
503
|
+
export function __wbg_iterator_22ddeb808cf55a6f() {
|
|
504
504
|
const ret = Symbol.iterator;
|
|
505
505
|
return ret;
|
|
506
506
|
}
|
|
507
|
-
export function
|
|
507
|
+
export function __wbg_length_31bdaf014f5fbde2(arg0) {
|
|
508
508
|
const ret = arg0.length;
|
|
509
509
|
return ret;
|
|
510
510
|
}
|
|
511
|
-
export function
|
|
511
|
+
export function __wbg_length_4e1adc0d42e23620(arg0) {
|
|
512
512
|
const ret = arg0.length;
|
|
513
513
|
return ret;
|
|
514
514
|
}
|
|
515
|
-
export function
|
|
515
|
+
export function __wbg_new_1da3429bc3c4541c(arg0) {
|
|
516
516
|
const ret = new Uint8Array(arg0);
|
|
517
517
|
return ret;
|
|
518
518
|
}
|
|
519
|
-
export function
|
|
519
|
+
export function __wbg_new_bebc3f4757acf305() {
|
|
520
520
|
const ret = new Object();
|
|
521
521
|
return ret;
|
|
522
522
|
}
|
|
523
|
-
export function
|
|
523
|
+
export function __wbg_new_ffa92086ea89f79c() {
|
|
524
524
|
const ret = new Array();
|
|
525
525
|
return ret;
|
|
526
526
|
}
|
|
527
|
-
export function
|
|
527
|
+
export function __wbg_next_95053e306b1c3aed(arg0) {
|
|
528
528
|
const ret = arg0.next;
|
|
529
529
|
return ret;
|
|
530
530
|
}
|
|
531
|
-
export function
|
|
531
|
+
export function __wbg_next_f31ecb8646d2c605() { return handleError(function (arg0) {
|
|
532
532
|
const ret = arg0.next();
|
|
533
533
|
return ret;
|
|
534
534
|
}, arguments); }
|
|
535
|
-
export function
|
|
535
|
+
export function __wbg_prototypesetcall_ae9f5e7459250748(arg0, arg1, arg2) {
|
|
536
536
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
537
537
|
}
|
|
538
|
+
export function __wbg_set_13d25b81ab403f5e(arg0, arg1, arg2) {
|
|
539
|
+
arg0[arg1 >>> 0] = arg2;
|
|
540
|
+
}
|
|
538
541
|
export function __wbg_set_6be42768c690e380(arg0, arg1, arg2) {
|
|
539
542
|
arg0[arg1] = arg2;
|
|
540
543
|
}
|
|
541
|
-
export function
|
|
542
|
-
arg0[arg1 >>> 0] = arg2;
|
|
543
|
-
}
|
|
544
|
-
export function __wbg_value_f3625092ee4b37f4(arg0) {
|
|
544
|
+
export function __wbg_value_c227f843d21da141(arg0) {
|
|
545
545
|
const ret = arg0.value;
|
|
546
546
|
return ret;
|
|
547
547
|
}
|
|
548
|
-
export function
|
|
548
|
+
export function __wbindgen_generic_0000000000000001(arg0) {
|
|
549
549
|
// Cast intrinsic for `F64 -> Externref`.
|
|
550
550
|
const ret = arg0;
|
|
551
551
|
return ret;
|
|
552
552
|
}
|
|
553
|
-
export function
|
|
553
|
+
export function __wbindgen_generic_0000000000000002(arg0) {
|
|
554
554
|
// Cast intrinsic for `I64 -> Externref`.
|
|
555
555
|
const ret = arg0;
|
|
556
556
|
return ret;
|
|
557
557
|
}
|
|
558
|
-
export function
|
|
558
|
+
export function __wbindgen_generic_0000000000000003(arg0, arg1) {
|
|
559
559
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
560
560
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
561
561
|
return ret;
|
|
562
562
|
}
|
|
563
|
-
export function
|
|
563
|
+
export function __wbindgen_generic_0000000000000004(arg0) {
|
|
564
564
|
// Cast intrinsic for `U64 -> Externref`.
|
|
565
565
|
const ret = BigInt.asUintN(64, arg0);
|
|
566
566
|
return ret;
|
package/u_insight_bg.wasm
CHANGED
|
Binary file
|