glassjar 0.8.0 → 0.9.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/dist/assets/{worker-DKKpKTP_.js → worker-bkz0CBX9.js} +1 -1
- package/dist/engine_bg.wasm +0 -0
- package/dist/glassjar.js +281 -219
- package/dist/glassjar.umd.cjs +5 -5
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/python-packages.d.ts +7 -0
- package/dist/python-packages.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/glassjar.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
function
|
|
1
|
+
function OA(Q) {
|
|
2
2
|
return Q && Q.__esModule && Object.prototype.hasOwnProperty.call(Q, "default") ? Q.default : Q;
|
|
3
3
|
}
|
|
4
|
-
var
|
|
5
|
-
function
|
|
6
|
-
if (
|
|
7
|
-
|
|
4
|
+
var e = { exports: {} }, FA;
|
|
5
|
+
function xA() {
|
|
6
|
+
if (FA) return e.exports;
|
|
7
|
+
FA = 1;
|
|
8
8
|
var Q = typeof Reflect == "object" ? Reflect : null, A = Q && typeof Q.apply == "function" ? Q.apply : function(i, F, M) {
|
|
9
9
|
return Function.prototype.apply.call(i, F, M);
|
|
10
10
|
}, I;
|
|
@@ -22,7 +22,7 @@ function OA() {
|
|
|
22
22
|
function B() {
|
|
23
23
|
B.init.call(this);
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
e.exports = B, e.exports.once = s, B.EventEmitter = B, B.prototype._events = void 0, B.prototype._eventsCount = 0, B.prototype._maxListeners = void 0;
|
|
26
26
|
var E = 10;
|
|
27
27
|
function D(o) {
|
|
28
28
|
if (typeof o != "function")
|
|
@@ -70,8 +70,8 @@ function OA() {
|
|
|
70
70
|
if (typeof t == "function")
|
|
71
71
|
A(t, this, F);
|
|
72
72
|
else
|
|
73
|
-
for (var
|
|
74
|
-
A(
|
|
73
|
+
for (var NA = t.length, pA = R(t, NA), M = 0; M < NA; ++M)
|
|
74
|
+
A(pA[M], this, F);
|
|
75
75
|
return !0;
|
|
76
76
|
};
|
|
77
77
|
function N(o, i, F, M) {
|
|
@@ -195,10 +195,10 @@ function OA() {
|
|
|
195
195
|
function S() {
|
|
196
196
|
typeof o.removeListener == "function" && o.removeListener("error", y), F([].slice.call(arguments));
|
|
197
197
|
}
|
|
198
|
-
V(o, i, S, { once: !0 }), i !== "error" &&
|
|
198
|
+
V(o, i, S, { once: !0 }), i !== "error" && u(o, y, { once: !0 });
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function u(o, i, F) {
|
|
202
202
|
typeof o.on == "function" && V(o, "error", i, F);
|
|
203
203
|
}
|
|
204
204
|
function V(o, i, F, M) {
|
|
@@ -211,14 +211,14 @@ function OA() {
|
|
|
211
211
|
else
|
|
212
212
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof o);
|
|
213
213
|
}
|
|
214
|
-
return
|
|
214
|
+
return e.exports;
|
|
215
215
|
}
|
|
216
|
-
var
|
|
217
|
-
const
|
|
218
|
-
class
|
|
216
|
+
var jA = xA();
|
|
217
|
+
const cA = /* @__PURE__ */ OA(jA);
|
|
218
|
+
class EA {
|
|
219
219
|
__destroy_into_raw() {
|
|
220
220
|
const A = this.__wbg_ptr;
|
|
221
|
-
return this.__wbg_ptr = 0,
|
|
221
|
+
return this.__wbg_ptr = 0, kA.unregister(this), A;
|
|
222
222
|
}
|
|
223
223
|
free() {
|
|
224
224
|
const A = this.__destroy_into_raw();
|
|
@@ -243,7 +243,7 @@ class BA {
|
|
|
243
243
|
}
|
|
244
244
|
constructor() {
|
|
245
245
|
const A = G.dapadapter_new();
|
|
246
|
-
return this.__wbg_ptr = A >>> 0,
|
|
246
|
+
return this.__wbg_ptr = A >>> 0, kA.register(this, this.__wbg_ptr, this), this;
|
|
247
247
|
}
|
|
248
248
|
/**
|
|
249
249
|
* @param {Function} callback
|
|
@@ -268,16 +268,16 @@ class BA {
|
|
|
268
268
|
G.dapadapter_setFilterInternals(this.__wbg_ptr, A);
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
|
-
Symbol.dispose && (
|
|
272
|
-
class
|
|
271
|
+
Symbol.dispose && (EA.prototype[Symbol.dispose] = EA.prototype.free);
|
|
272
|
+
class n {
|
|
273
273
|
static __wrap(A) {
|
|
274
274
|
A = A >>> 0;
|
|
275
|
-
const I = Object.create(
|
|
276
|
-
return I.__wbg_ptr = A,
|
|
275
|
+
const I = Object.create(n.prototype);
|
|
276
|
+
return I.__wbg_ptr = A, KA.register(I, I.__wbg_ptr, I), I;
|
|
277
277
|
}
|
|
278
278
|
__destroy_into_raw() {
|
|
279
279
|
const A = this.__wbg_ptr;
|
|
280
|
-
return this.__wbg_ptr = 0,
|
|
280
|
+
return this.__wbg_ptr = 0, KA.unregister(this), A;
|
|
281
281
|
}
|
|
282
282
|
free() {
|
|
283
283
|
const A = this.__destroy_into_raw();
|
|
@@ -291,8 +291,8 @@ class r {
|
|
|
291
291
|
G.trap___wbg_wasmer_trap();
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
|
-
Symbol.dispose && (
|
|
295
|
-
function
|
|
294
|
+
Symbol.dispose && (n.prototype[Symbol.dispose] = n.prototype.free);
|
|
295
|
+
function dA() {
|
|
296
296
|
let Q, A;
|
|
297
297
|
try {
|
|
298
298
|
const I = G.cpp_exception_hash();
|
|
@@ -301,12 +301,12 @@ function jA() {
|
|
|
301
301
|
G.__wbindgen_free(Q, A, 1);
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function GA(Q) {
|
|
305
305
|
const A = T(Q, G.__wbindgen_malloc, G.__wbindgen_realloc), I = d, g = G.prefetch_urls(A, I);
|
|
306
|
-
var C =
|
|
306
|
+
var C = lA(g[0], g[1]).slice();
|
|
307
307
|
return G.__wbindgen_free(g[0], g[1] * 4, 4), C;
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
function WA() {
|
|
310
310
|
return {
|
|
311
311
|
__proto__: null,
|
|
312
312
|
"./engine_bg.js": {
|
|
@@ -333,7 +333,7 @@ function dA() {
|
|
|
333
333
|
return x(g) ? 16777215 : g ? 1 : 0;
|
|
334
334
|
},
|
|
335
335
|
__wbg___wbindgen_debug_string_0bc8482c6e3508ae: function(A, I) {
|
|
336
|
-
const g =
|
|
336
|
+
const g = DA(I), C = T(g, G.__wbindgen_malloc, G.__wbindgen_realloc), B = d;
|
|
337
337
|
a().setInt32(A + 4, B, !0), a().setInt32(A + 0, C, !0);
|
|
338
338
|
},
|
|
339
339
|
__wbg___wbindgen_function_table_5ae7216dfcbcc506: function() {
|
|
@@ -735,7 +735,7 @@ function dA() {
|
|
|
735
735
|
const w = g.a;
|
|
736
736
|
g.a = 0;
|
|
737
737
|
try {
|
|
738
|
-
return
|
|
738
|
+
return zA(w, g.b, E, D);
|
|
739
739
|
} finally {
|
|
740
740
|
g.a = w;
|
|
741
741
|
}
|
|
@@ -755,7 +755,7 @@ function dA() {
|
|
|
755
755
|
return new Uint8Array(A);
|
|
756
756
|
},
|
|
757
757
|
__wbg_new_from_slice_a3d2629dc1826784: function(A, I) {
|
|
758
|
-
return new Uint8Array(
|
|
758
|
+
return new Uint8Array(_(A, I));
|
|
759
759
|
},
|
|
760
760
|
__wbg_new_no_args_1c7c842f08d00ebb: function(A, I) {
|
|
761
761
|
return new Function(q(A, I));
|
|
@@ -812,7 +812,7 @@ function dA() {
|
|
|
812
812
|
return A.process;
|
|
813
813
|
},
|
|
814
814
|
__wbg_prototypesetcall_bdcdcc5842e4d77d: function(A, I, g) {
|
|
815
|
-
Uint8Array.prototype.set.call(
|
|
815
|
+
Uint8Array.prototype.set.call(_(A, I), g);
|
|
816
816
|
},
|
|
817
817
|
__wbg_push_8ffdcb2063340ba5: function(A, I) {
|
|
818
818
|
return A.push(I);
|
|
@@ -869,7 +869,7 @@ function dA() {
|
|
|
869
869
|
}, arguments);
|
|
870
870
|
},
|
|
871
871
|
__wbg_set_cc56eefd2dd91957: function(A, I, g) {
|
|
872
|
-
A.set(
|
|
872
|
+
A.set(_(I, g));
|
|
873
873
|
},
|
|
874
874
|
__wbg_set_f43e577aea94465b: function(A, I, g) {
|
|
875
875
|
A[I >>> 0] = g;
|
|
@@ -895,19 +895,19 @@ function dA() {
|
|
|
895
895
|
},
|
|
896
896
|
__wbg_static_accessor_GLOBAL_12837167ad935116: function() {
|
|
897
897
|
const A = typeof global > "u" ? null : global;
|
|
898
|
-
return x(A) ? 0 :
|
|
898
|
+
return x(A) ? 0 : f(A);
|
|
899
899
|
},
|
|
900
900
|
__wbg_static_accessor_GLOBAL_THIS_e628e89ab3b1c95f: function() {
|
|
901
901
|
const A = typeof globalThis > "u" ? null : globalThis;
|
|
902
|
-
return x(A) ? 0 :
|
|
902
|
+
return x(A) ? 0 : f(A);
|
|
903
903
|
},
|
|
904
904
|
__wbg_static_accessor_SELF_a621d3dfbb60d0ce: function() {
|
|
905
905
|
const A = typeof self > "u" ? null : self;
|
|
906
|
-
return x(A) ? 0 :
|
|
906
|
+
return x(A) ? 0 : f(A);
|
|
907
907
|
},
|
|
908
908
|
__wbg_static_accessor_WINDOW_f8727f0cf888e0bd: function() {
|
|
909
909
|
const A = typeof window > "u" ? null : window;
|
|
910
|
-
return x(A) ? 0 :
|
|
910
|
+
return x(A) ? 0 : f(A);
|
|
911
911
|
},
|
|
912
912
|
__wbg_store_d1d951c98d9bed41: function() {
|
|
913
913
|
return J(function(A, I, g) {
|
|
@@ -931,7 +931,7 @@ function dA() {
|
|
|
931
931
|
return A.toString();
|
|
932
932
|
},
|
|
933
933
|
__wbg_trap_new: function(A) {
|
|
934
|
-
return
|
|
934
|
+
return n.__wrap(A);
|
|
935
935
|
},
|
|
936
936
|
__wbg_validate_71c2d02a71bda62f: function() {
|
|
937
937
|
return J(function(A) {
|
|
@@ -956,22 +956,22 @@ function dA() {
|
|
|
956
956
|
console.warn(A, I, g);
|
|
957
957
|
},
|
|
958
958
|
__wbindgen_cast_0000000000000001: function(A, I) {
|
|
959
|
-
return
|
|
959
|
+
return PA(A, I, G.wasm_bindgen_36932265c58943ab___closure__destroy___dyn_core_37ee0ce0c4cd57d5___ops__function__Fn__web_sys_ca373f7aaf47173f___features__gen_MessageEvent__MessageEvent____Output_______, ZA);
|
|
960
960
|
},
|
|
961
961
|
__wbindgen_cast_0000000000000002: function(A, I) {
|
|
962
|
-
return z(A, I, G.wasm_bindgen_36932265c58943ab___closure__destroy___dyn_core_37ee0ce0c4cd57d5___ops__function__Fn__web_sys_ca373f7aaf47173f___features__gen_MessageEvent__MessageEvent____Output_______,
|
|
962
|
+
return z(A, I, G.wasm_bindgen_36932265c58943ab___closure__destroy___dyn_core_37ee0ce0c4cd57d5___ops__function__Fn__web_sys_ca373f7aaf47173f___features__gen_MessageEvent__MessageEvent____Output_______, TA);
|
|
963
963
|
},
|
|
964
964
|
__wbindgen_cast_0000000000000003: function(A, I) {
|
|
965
|
-
return z(A, I, G.wasm_bindgen_36932265c58943ab___closure__destroy___dyn_for__a__core_37ee0ce0c4cd57d5___ops__function__FnMut____a_js_sys_9eaf8169b8189500___Array____Output___core_37ee0ce0c4cd57d5___result__Result_js_sys_9eaf8169b8189500___Array__wasm_bindgen_36932265c58943ab___JsValue___,
|
|
965
|
+
return z(A, I, G.wasm_bindgen_36932265c58943ab___closure__destroy___dyn_for__a__core_37ee0ce0c4cd57d5___ops__function__FnMut____a_js_sys_9eaf8169b8189500___Array____Output___core_37ee0ce0c4cd57d5___result__Result_js_sys_9eaf8169b8189500___Array__wasm_bindgen_36932265c58943ab___JsValue___, MA);
|
|
966
966
|
},
|
|
967
967
|
__wbindgen_cast_0000000000000004: function(A, I) {
|
|
968
|
-
return z(A, I, G.wasm_bindgen_36932265c58943ab___closure__destroy___dyn_for__a__core_37ee0ce0c4cd57d5___ops__function__FnMut____a_js_sys_9eaf8169b8189500___Array____Output___core_37ee0ce0c4cd57d5___result__Result_js_sys_9eaf8169b8189500___Array__wasm_bindgen_36932265c58943ab___JsValue___,
|
|
968
|
+
return z(A, I, G.wasm_bindgen_36932265c58943ab___closure__destroy___dyn_for__a__core_37ee0ce0c4cd57d5___ops__function__FnMut____a_js_sys_9eaf8169b8189500___Array____Output___core_37ee0ce0c4cd57d5___result__Result_js_sys_9eaf8169b8189500___Array__wasm_bindgen_36932265c58943ab___JsValue___, MA);
|
|
969
969
|
},
|
|
970
970
|
__wbindgen_cast_0000000000000005: function(A, I) {
|
|
971
|
-
return z(A, I, G.wasm_bindgen_36932265c58943ab___closure__destroy___dyn_for__a__core_37ee0ce0c4cd57d5___ops__function__FnMut____a_js_sys_9eaf8169b8189500___Array____Output___core_37ee0ce0c4cd57d5___result__Result_js_sys_9eaf8169b8189500___Array__wasm_bindgen_36932265c58943ab___JsValue___,
|
|
971
|
+
return z(A, I, G.wasm_bindgen_36932265c58943ab___closure__destroy___dyn_for__a__core_37ee0ce0c4cd57d5___ops__function__FnMut____a_js_sys_9eaf8169b8189500___Array____Output___core_37ee0ce0c4cd57d5___result__Result_js_sys_9eaf8169b8189500___Array__wasm_bindgen_36932265c58943ab___JsValue___, tA);
|
|
972
972
|
},
|
|
973
973
|
__wbindgen_cast_0000000000000006: function(A, I) {
|
|
974
|
-
return z(A, I, G.wasm_bindgen_36932265c58943ab___closure__destroy___dyn_core_37ee0ce0c4cd57d5___ops__function__FnMut__wasm_bindgen_36932265c58943ab___JsValue____Output_______,
|
|
974
|
+
return z(A, I, G.wasm_bindgen_36932265c58943ab___closure__destroy___dyn_core_37ee0ce0c4cd57d5___ops__function__FnMut__wasm_bindgen_36932265c58943ab___JsValue____Output_______, VA);
|
|
975
975
|
},
|
|
976
976
|
__wbindgen_cast_0000000000000007: function(A) {
|
|
977
977
|
return A;
|
|
@@ -980,7 +980,7 @@ function dA() {
|
|
|
980
980
|
return A;
|
|
981
981
|
},
|
|
982
982
|
__wbindgen_cast_0000000000000009: function(A, I) {
|
|
983
|
-
return
|
|
983
|
+
return _(A, I);
|
|
984
984
|
},
|
|
985
985
|
__wbindgen_cast_000000000000000a: function(A, I) {
|
|
986
986
|
return q(A, I);
|
|
@@ -998,42 +998,42 @@ function dA() {
|
|
|
998
998
|
}
|
|
999
999
|
};
|
|
1000
1000
|
}
|
|
1001
|
-
function
|
|
1001
|
+
function ZA(Q, A, I) {
|
|
1002
1002
|
G.wasm_bindgen_36932265c58943ab___convert__closures_____invoke___web_sys_ca373f7aaf47173f___features__gen_MessageEvent__MessageEvent_____(Q, A, I);
|
|
1003
1003
|
}
|
|
1004
|
-
function
|
|
1004
|
+
function TA(Q, A, I) {
|
|
1005
1005
|
G.wasm_bindgen_36932265c58943ab___convert__closures_____invoke___web_sys_ca373f7aaf47173f___features__gen_MessageEvent__MessageEvent______1_(Q, A, I);
|
|
1006
1006
|
}
|
|
1007
|
-
function
|
|
1007
|
+
function VA(Q, A, I) {
|
|
1008
1008
|
G.wasm_bindgen_36932265c58943ab___convert__closures_____invoke___wasm_bindgen_36932265c58943ab___JsValue_____(Q, A, I);
|
|
1009
1009
|
}
|
|
1010
|
-
function
|
|
1010
|
+
function tA(Q, A, I) {
|
|
1011
1011
|
const g = G.wasm_bindgen_36932265c58943ab___convert__closures________invoke___js_sys_9eaf8169b8189500___Array__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_36932265c58943ab___JsValue__(Q, A, I);
|
|
1012
1012
|
if (g[1])
|
|
1013
|
-
throw
|
|
1013
|
+
throw wA(g[0]);
|
|
1014
1014
|
}
|
|
1015
|
-
function
|
|
1015
|
+
function MA(Q, A, I) {
|
|
1016
1016
|
const g = G.wasm_bindgen_36932265c58943ab___convert__closures________invoke___js_sys_9eaf8169b8189500___Array__core_37ee0ce0c4cd57d5___result__Result_js_sys_9eaf8169b8189500___Array__wasm_bindgen_36932265c58943ab___JsValue__(Q, A, I);
|
|
1017
1017
|
if (g[2])
|
|
1018
|
-
throw
|
|
1019
|
-
return
|
|
1018
|
+
throw wA(g[1]);
|
|
1019
|
+
return wA(g[0]);
|
|
1020
1020
|
}
|
|
1021
|
-
function
|
|
1021
|
+
function zA(Q, A, I, g) {
|
|
1022
1022
|
G.wasm_bindgen_36932265c58943ab___convert__closures_____invoke___wasm_bindgen_36932265c58943ab___JsValue__wasm_bindgen_36932265c58943ab___JsValue_____(Q, A, I, g);
|
|
1023
1023
|
}
|
|
1024
|
-
const
|
|
1024
|
+
const kA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1025
1025
|
}, unregister: () => {
|
|
1026
|
-
} } : new FinalizationRegistry((Q) => G.__wbg_dapadapter_free(Q >>> 0, 1)),
|
|
1026
|
+
} } : new FinalizationRegistry((Q) => G.__wbg_dapadapter_free(Q >>> 0, 1)), KA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1027
1027
|
}, unregister: () => {
|
|
1028
1028
|
} } : new FinalizationRegistry((Q) => G.__wbg_trap_free(Q >>> 0, 1));
|
|
1029
|
-
function
|
|
1029
|
+
function f(Q) {
|
|
1030
1030
|
const A = G.__externref_table_alloc();
|
|
1031
1031
|
return G.__wbindgen_externrefs.set(A, Q), A;
|
|
1032
1032
|
}
|
|
1033
|
-
const
|
|
1033
|
+
const gA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1034
1034
|
}, unregister: () => {
|
|
1035
1035
|
} } : new FinalizationRegistry((Q) => Q.dtor(Q.a, Q.b));
|
|
1036
|
-
function
|
|
1036
|
+
function DA(Q) {
|
|
1037
1037
|
const A = typeof Q;
|
|
1038
1038
|
if (A == "number" || A == "boolean" || Q == null)
|
|
1039
1039
|
return `${Q}`;
|
|
@@ -1050,9 +1050,9 @@ function EA(Q) {
|
|
|
1050
1050
|
if (Array.isArray(Q)) {
|
|
1051
1051
|
const C = Q.length;
|
|
1052
1052
|
let B = "[";
|
|
1053
|
-
C > 0 && (B +=
|
|
1053
|
+
C > 0 && (B += DA(Q[0]));
|
|
1054
1054
|
for (let E = 1; E < C; E++)
|
|
1055
|
-
B += ", " +
|
|
1055
|
+
B += ", " + DA(Q[E]);
|
|
1056
1056
|
return B += "]", B;
|
|
1057
1057
|
}
|
|
1058
1058
|
const I = /\[object ([^\]]+)\]/.exec(toString.call(Q));
|
|
@@ -1070,39 +1070,39 @@ function EA(Q) {
|
|
|
1070
1070
|
return Q instanceof Error ? `${Q.name}: ${Q.message}
|
|
1071
1071
|
${Q.stack}` : g;
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1073
|
+
function lA(Q, A) {
|
|
1074
1074
|
Q = Q >>> 0;
|
|
1075
1075
|
const I = a(), g = [];
|
|
1076
1076
|
for (let C = Q; C < Q + 4 * A; C += 4)
|
|
1077
1077
|
g.push(G.__wbindgen_externrefs.get(I.getUint32(C, !0)));
|
|
1078
1078
|
return G.__externref_drop_slice(Q, A), g;
|
|
1079
1079
|
}
|
|
1080
|
-
function
|
|
1081
|
-
return Q = Q >>> 0,
|
|
1080
|
+
function _(Q, A) {
|
|
1081
|
+
return Q = Q >>> 0, m().subarray(Q / 1, Q / 1 + A);
|
|
1082
1082
|
}
|
|
1083
1083
|
let Z = null;
|
|
1084
1084
|
function a() {
|
|
1085
1085
|
return (Z === null || Z.buffer.detached === !0 || Z.buffer.detached === void 0 && Z.buffer !== G.memory.buffer) && (Z = new DataView(G.memory.buffer)), Z;
|
|
1086
1086
|
}
|
|
1087
1087
|
function q(Q, A) {
|
|
1088
|
-
return Q = Q >>> 0,
|
|
1088
|
+
return Q = Q >>> 0, bA(Q, A);
|
|
1089
1089
|
}
|
|
1090
|
-
let
|
|
1091
|
-
function
|
|
1092
|
-
return (
|
|
1090
|
+
let b = null;
|
|
1091
|
+
function m() {
|
|
1092
|
+
return (b === null || b.byteLength === 0) && (b = new Uint8Array(G.memory.buffer)), b;
|
|
1093
1093
|
}
|
|
1094
1094
|
function J(Q, A) {
|
|
1095
1095
|
try {
|
|
1096
1096
|
return Q.apply(this, A);
|
|
1097
1097
|
} catch (I) {
|
|
1098
|
-
const g =
|
|
1098
|
+
const g = f(I);
|
|
1099
1099
|
G.__wbindgen_exn_store(g);
|
|
1100
1100
|
}
|
|
1101
1101
|
}
|
|
1102
1102
|
function x(Q) {
|
|
1103
1103
|
return Q == null;
|
|
1104
1104
|
}
|
|
1105
|
-
function
|
|
1105
|
+
function PA(Q, A, I, g) {
|
|
1106
1106
|
const C = { a: Q, b: A, cnt: 1, dtor: I }, B = (...E) => {
|
|
1107
1107
|
C.cnt++;
|
|
1108
1108
|
try {
|
|
@@ -1112,8 +1112,8 @@ function lA(Q, A, I, g) {
|
|
|
1112
1112
|
}
|
|
1113
1113
|
};
|
|
1114
1114
|
return B._wbg_cb_unref = () => {
|
|
1115
|
-
--C.cnt === 0 && (C.dtor(C.a, C.b), C.a = 0,
|
|
1116
|
-
},
|
|
1115
|
+
--C.cnt === 0 && (C.dtor(C.a, C.b), C.a = 0, gA.unregister(C));
|
|
1116
|
+
}, gA.register(B, C, C), B;
|
|
1117
1117
|
}
|
|
1118
1118
|
function z(Q, A, I, g) {
|
|
1119
1119
|
const C = { a: Q, b: A, cnt: 1, dtor: I }, B = (...E) => {
|
|
@@ -1127,16 +1127,16 @@ function z(Q, A, I, g) {
|
|
|
1127
1127
|
}
|
|
1128
1128
|
};
|
|
1129
1129
|
return B._wbg_cb_unref = () => {
|
|
1130
|
-
--C.cnt === 0 && (C.dtor(C.a, C.b), C.a = 0,
|
|
1131
|
-
},
|
|
1130
|
+
--C.cnt === 0 && (C.dtor(C.a, C.b), C.a = 0, gA.unregister(C));
|
|
1131
|
+
}, gA.register(B, C, C), B;
|
|
1132
1132
|
}
|
|
1133
1133
|
function T(Q, A, I) {
|
|
1134
1134
|
if (I === void 0) {
|
|
1135
|
-
const D =
|
|
1136
|
-
return
|
|
1135
|
+
const D = X.encode(Q), w = A(D.length, 1) >>> 0;
|
|
1136
|
+
return m().subarray(w, w + D.length).set(D), d = D.length, w;
|
|
1137
1137
|
}
|
|
1138
1138
|
let g = Q.length, C = A(g, 1) >>> 0;
|
|
1139
|
-
const B =
|
|
1139
|
+
const B = m();
|
|
1140
1140
|
let E = 0;
|
|
1141
1141
|
for (; E < g; E++) {
|
|
1142
1142
|
const D = Q.charCodeAt(E);
|
|
@@ -1145,35 +1145,35 @@ function T(Q, A, I) {
|
|
|
1145
1145
|
}
|
|
1146
1146
|
if (E !== g) {
|
|
1147
1147
|
E !== 0 && (Q = Q.slice(E)), C = I(C, g, g = E + Q.length * 3, 1) >>> 0;
|
|
1148
|
-
const D =
|
|
1148
|
+
const D = m().subarray(C + E, C + g), w = X.encodeInto(Q, D);
|
|
1149
1149
|
E += w.written, C = I(C, g, E, 1) >>> 0;
|
|
1150
1150
|
}
|
|
1151
1151
|
return d = E, C;
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1153
|
+
function wA(Q) {
|
|
1154
1154
|
const A = G.__wbindgen_externrefs.get(Q);
|
|
1155
1155
|
return G.__externref_table_dealloc(Q), A;
|
|
1156
1156
|
}
|
|
1157
|
-
let
|
|
1158
|
-
|
|
1159
|
-
const
|
|
1160
|
-
let
|
|
1161
|
-
function
|
|
1162
|
-
return
|
|
1157
|
+
let AA = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 });
|
|
1158
|
+
AA.decode();
|
|
1159
|
+
const fA = 2146435072;
|
|
1160
|
+
let QA = 0;
|
|
1161
|
+
function bA(Q, A) {
|
|
1162
|
+
return QA += A, QA >= fA && (AA = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }), AA.decode(), QA = A), AA.decode(m().subarray(Q, Q + A));
|
|
1163
1163
|
}
|
|
1164
|
-
const
|
|
1165
|
-
"encodeInto" in
|
|
1166
|
-
const I =
|
|
1164
|
+
const X = new TextEncoder();
|
|
1165
|
+
"encodeInto" in X || (X.encodeInto = function(Q, A) {
|
|
1166
|
+
const I = X.encode(Q);
|
|
1167
1167
|
return A.set(I), {
|
|
1168
1168
|
read: Q.length,
|
|
1169
1169
|
written: I.length
|
|
1170
1170
|
};
|
|
1171
1171
|
});
|
|
1172
1172
|
let d = 0, G;
|
|
1173
|
-
function
|
|
1174
|
-
return G = Q.exports, Z = null,
|
|
1173
|
+
function mA(Q, A) {
|
|
1174
|
+
return G = Q.exports, Z = null, b = null, G.__wbindgen_start(), G;
|
|
1175
1175
|
}
|
|
1176
|
-
async function
|
|
1176
|
+
async function XA(Q, A) {
|
|
1177
1177
|
if (typeof Response == "function" && Q instanceof Response) {
|
|
1178
1178
|
if (typeof WebAssembly.instantiateStreaming == "function")
|
|
1179
1179
|
try {
|
|
@@ -1200,21 +1200,21 @@ async function mA(Q, A) {
|
|
|
1200
1200
|
return !1;
|
|
1201
1201
|
}
|
|
1202
1202
|
}
|
|
1203
|
-
async function
|
|
1203
|
+
async function rA(Q) {
|
|
1204
1204
|
if (G !== void 0) return G;
|
|
1205
1205
|
Q !== void 0 && (Object.getPrototypeOf(Q) === Object.prototype ? { module_or_path: Q } = Q : console.warn("using deprecated parameters for the initialization function; pass a single object instead")), Q === void 0 && (Q = new URL("", import.meta.url));
|
|
1206
|
-
const A =
|
|
1206
|
+
const A = WA();
|
|
1207
1207
|
(typeof Q == "string" || typeof Request == "function" && Q instanceof Request || typeof URL == "function" && Q instanceof URL) && (Q = fetch(Q));
|
|
1208
|
-
const { instance: I, module: g } = await
|
|
1209
|
-
return
|
|
1208
|
+
const { instance: I, module: g } = await XA(await Q, A);
|
|
1209
|
+
return mA(I);
|
|
1210
1210
|
}
|
|
1211
|
-
const
|
|
1211
|
+
const nA = new URL("https://cdn.jsdelivr.net/npm/glassjar@0.9.0/dist/engine_bg.wasm"), vA = Object.freeze({
|
|
1212
1212
|
maxObjectBytes: 128 * 1024 * 1024,
|
|
1213
1213
|
maxEntries: 256,
|
|
1214
1214
|
maxMetadataBytes: 8 * 1024 * 1024,
|
|
1215
1215
|
maxEntryMetadataBytes: 1024 * 1024
|
|
1216
1216
|
});
|
|
1217
|
-
class
|
|
1217
|
+
class uA {
|
|
1218
1218
|
records = /* @__PURE__ */ new Map();
|
|
1219
1219
|
staged = /* @__PURE__ */ new Map();
|
|
1220
1220
|
stagingFailed = !1;
|
|
@@ -1224,7 +1224,7 @@ class vA {
|
|
|
1224
1224
|
oversized = 0;
|
|
1225
1225
|
limits;
|
|
1226
1226
|
constructor(A = {}) {
|
|
1227
|
-
this.limits = Object.freeze({ ...
|
|
1227
|
+
this.limits = Object.freeze({ ...vA, ...A });
|
|
1228
1228
|
for (const I of Object.values(this.limits))
|
|
1229
1229
|
if (!Number.isSafeInteger(I) || I < 0)
|
|
1230
1230
|
throw new RangeError("C++ cache limits must be nonnegative safe integers");
|
|
@@ -1274,7 +1274,7 @@ class vA {
|
|
|
1274
1274
|
if (this.stagingFailed) return !1;
|
|
1275
1275
|
const A = [...this.staged.values()];
|
|
1276
1276
|
for (const I of A) {
|
|
1277
|
-
if (!
|
|
1277
|
+
if (!eA(I.object)) return !1;
|
|
1278
1278
|
const g = await crypto.subtle.digest("SHA-256", I.object);
|
|
1279
1279
|
if (Array.from(
|
|
1280
1280
|
new Uint8Array(g),
|
|
@@ -1351,7 +1351,7 @@ class vA {
|
|
|
1351
1351
|
};
|
|
1352
1352
|
}
|
|
1353
1353
|
}
|
|
1354
|
-
function
|
|
1354
|
+
function eA(Q) {
|
|
1355
1355
|
if (!WebAssembly.validate(Q) || Q.length < 8) return !1;
|
|
1356
1356
|
let A = 8, I = !1;
|
|
1357
1357
|
const g = () => {
|
|
@@ -1392,7 +1392,7 @@ function c(Q) {
|
|
|
1392
1392
|
error: { type: typeof Q, message: String(Q) }
|
|
1393
1393
|
};
|
|
1394
1394
|
}
|
|
1395
|
-
class
|
|
1395
|
+
class _A {
|
|
1396
1396
|
name;
|
|
1397
1397
|
data;
|
|
1398
1398
|
constructor(A, I) {
|
|
@@ -1403,7 +1403,7 @@ class eA {
|
|
|
1403
1403
|
C.href = g, C.download = this.name, document.body.appendChild(C), C.click(), document.body.removeChild(C), URL.revokeObjectURL(g);
|
|
1404
1404
|
}
|
|
1405
1405
|
}
|
|
1406
|
-
class
|
|
1406
|
+
class $A extends cA {
|
|
1407
1407
|
/**
|
|
1408
1408
|
* Access to internal properties of the debugger.
|
|
1409
1409
|
* These are put under a special symbol so that they cannot be accessed by
|
|
@@ -1430,14 +1430,14 @@ class _A extends sA {
|
|
|
1430
1430
|
attach: this.attach.bind(this),
|
|
1431
1431
|
detach: this.detach.bind(this),
|
|
1432
1432
|
beginRun: () => this.dap.resetRun()
|
|
1433
|
-
}, this.onMessage = this.onMessage.bind(this), this.dap = new
|
|
1433
|
+
}, this.onMessage = this.onMessage.bind(this), this.dap = new EA(), this.dap.on(this.onMessage);
|
|
1434
1434
|
}
|
|
1435
1435
|
send(A) {
|
|
1436
1436
|
return this.dap.sendMessage(A);
|
|
1437
1437
|
}
|
|
1438
1438
|
artifactListener = (A) => {
|
|
1439
1439
|
if (A.data.type !== "artifact") return;
|
|
1440
|
-
const I = new
|
|
1440
|
+
const I = new _A(A.data.name, new Uint8Array(A.data.data));
|
|
1441
1441
|
this.emit("artifact", I);
|
|
1442
1442
|
};
|
|
1443
1443
|
attach(A) {
|
|
@@ -1450,27 +1450,27 @@ class _A extends sA {
|
|
|
1450
1450
|
this.emit("event", A);
|
|
1451
1451
|
}
|
|
1452
1452
|
}
|
|
1453
|
-
const
|
|
1454
|
-
function
|
|
1453
|
+
const AI = "glassjar-wasm:";
|
|
1454
|
+
function II(Q, A) {
|
|
1455
1455
|
const I = new URL(String(Q), A);
|
|
1456
1456
|
if (I.protocol !== "https:" && I.protocol !== "http:")
|
|
1457
1457
|
throw new TypeError(`Engine Wasm must be served over http(s), not ${I.protocol}`);
|
|
1458
1458
|
return I.href;
|
|
1459
1459
|
}
|
|
1460
|
-
function
|
|
1460
|
+
function gI(Q) {
|
|
1461
1461
|
return new Worker(
|
|
1462
|
-
"" + new URL("assets/worker-
|
|
1462
|
+
"" + new URL("assets/worker-bkz0CBX9.js", import.meta.url).href,
|
|
1463
1463
|
{
|
|
1464
1464
|
type: "module",
|
|
1465
1465
|
name: Q?.name
|
|
1466
1466
|
}
|
|
1467
1467
|
);
|
|
1468
1468
|
}
|
|
1469
|
-
function
|
|
1470
|
-
return new
|
|
1469
|
+
function CI(Q) {
|
|
1470
|
+
return new gI(Q ? { name: AI + Q } : void 0);
|
|
1471
1471
|
}
|
|
1472
|
-
const
|
|
1473
|
-
class
|
|
1472
|
+
const JI = "/dev/debugger-sh-host";
|
|
1473
|
+
class yA {
|
|
1474
1474
|
buffer = new SharedArrayBuffer(4 + 64 * 1024);
|
|
1475
1475
|
length = new Int32Array(this.buffer, 0, 1);
|
|
1476
1476
|
bytes = new Uint8Array(this.buffer, 4);
|
|
@@ -1478,7 +1478,7 @@ class KA {
|
|
|
1478
1478
|
Atomics.store(this.length, 0, A), Atomics.notify(this.length, 0);
|
|
1479
1479
|
}
|
|
1480
1480
|
}
|
|
1481
|
-
function
|
|
1481
|
+
function iA(Q) {
|
|
1482
1482
|
try {
|
|
1483
1483
|
return new Error(
|
|
1484
1484
|
`Host device callback failed: ${Q instanceof Error ? Q.message : String(Q)}`
|
|
@@ -1487,22 +1487,22 @@ function wA(Q) {
|
|
|
1487
1487
|
return new Error("Host device callback failed");
|
|
1488
1488
|
}
|
|
1489
1489
|
}
|
|
1490
|
-
function
|
|
1490
|
+
function UA(Q) {
|
|
1491
1491
|
try {
|
|
1492
1492
|
const A = Q?.();
|
|
1493
1493
|
if (A && typeof A.then == "function")
|
|
1494
1494
|
return Promise.resolve(A).catch(() => {
|
|
1495
1495
|
}), new TypeError("Host device cleanup must be synchronous");
|
|
1496
1496
|
} catch (A) {
|
|
1497
|
-
return
|
|
1497
|
+
return iA(A);
|
|
1498
1498
|
}
|
|
1499
1499
|
}
|
|
1500
|
-
class
|
|
1500
|
+
class QI {
|
|
1501
1501
|
constructor(A) {
|
|
1502
1502
|
this.onFailure = A;
|
|
1503
1503
|
}
|
|
1504
|
-
incoming = new
|
|
1505
|
-
outgoing = new
|
|
1504
|
+
incoming = new yA();
|
|
1505
|
+
outgoing = new yA();
|
|
1506
1506
|
workerStart = {
|
|
1507
1507
|
guest_to_host: this.incoming.buffer,
|
|
1508
1508
|
host_to_guest: this.outgoing.buffer
|
|
@@ -1527,14 +1527,14 @@ class CI {
|
|
|
1527
1527
|
write: (g) => this.write(g)
|
|
1528
1528
|
});
|
|
1529
1529
|
} catch (g) {
|
|
1530
|
-
throw
|
|
1530
|
+
throw iA(g);
|
|
1531
1531
|
}
|
|
1532
1532
|
if (I !== void 0 && typeof I != "function")
|
|
1533
1533
|
throw Promise.resolve(I).catch(() => {
|
|
1534
1534
|
}), new TypeError("Host device opener must return a cleanup function or undefined");
|
|
1535
1535
|
if (typeof I == "function")
|
|
1536
1536
|
if (this.abort.signal.aborted) {
|
|
1537
|
-
const g =
|
|
1537
|
+
const g = UA(I);
|
|
1538
1538
|
if (g) throw g;
|
|
1539
1539
|
} else this.cleanup = I;
|
|
1540
1540
|
}
|
|
@@ -1582,16 +1582,16 @@ class CI {
|
|
|
1582
1582
|
}
|
|
1583
1583
|
};
|
|
1584
1584
|
fail(A) {
|
|
1585
|
-
this.abort.signal.aborted || (this.close(), this.onFailure(
|
|
1585
|
+
this.abort.signal.aborted || (this.close(), this.onFailure(iA(A)));
|
|
1586
1586
|
}
|
|
1587
1587
|
close() {
|
|
1588
1588
|
if (this.abort.signal.aborted) return;
|
|
1589
1589
|
this.worker?.removeEventListener("message", this.onMessage), this.worker = void 0, this.incoming.publish(-1), this.outgoing.publish(-1), this.abort.abort(), this.listeners.clear();
|
|
1590
1590
|
const A = this.cleanup;
|
|
1591
|
-
return this.cleanup = void 0,
|
|
1591
|
+
return this.cleanup = void 0, UA(A);
|
|
1592
1592
|
}
|
|
1593
1593
|
}
|
|
1594
|
-
const
|
|
1594
|
+
const BI = [
|
|
1595
1595
|
"__future__",
|
|
1596
1596
|
"_abc",
|
|
1597
1597
|
"_aix_support",
|
|
@@ -1896,11 +1896,16 @@ const QI = [
|
|
|
1896
1896
|
"zipimport",
|
|
1897
1897
|
"zlib",
|
|
1898
1898
|
"zoneinfo"
|
|
1899
|
-
],
|
|
1900
|
-
|
|
1901
|
-
|
|
1899
|
+
], IA = "3.15.2", EI = "/usr/local/lib/python3.15/site-packages", RA = "https://pypi.org/pypi", DI = "files.pythonhosted.org", l = {
|
|
1900
|
+
packages: 50,
|
|
1901
|
+
downloadBytes: 60 * 1024 * 1024,
|
|
1902
|
+
files: 5e3,
|
|
1903
|
+
unpackedBytes: 200 * 1024 * 1024
|
|
1904
|
+
}, wI = {
|
|
1905
|
+
python_version: IA.split(".").slice(0, 2).join("."),
|
|
1906
|
+
python_full_version: IA,
|
|
1902
1907
|
implementation_name: "cpython",
|
|
1903
|
-
implementation_version:
|
|
1908
|
+
implementation_version: IA,
|
|
1904
1909
|
platform_python_implementation: "CPython",
|
|
1905
1910
|
os_name: "posix",
|
|
1906
1911
|
sys_platform: "wasi",
|
|
@@ -1908,7 +1913,7 @@ const QI = [
|
|
|
1908
1913
|
platform_machine: "wasm32",
|
|
1909
1914
|
platform_release: "0.0.0",
|
|
1910
1915
|
platform_version: "0.0.0"
|
|
1911
|
-
},
|
|
1916
|
+
}, YA = {
|
|
1912
1917
|
yaml: "PyYAML",
|
|
1913
1918
|
bs4: "beautifulsoup4",
|
|
1914
1919
|
dateutil: "python-dateutil",
|
|
@@ -1926,11 +1931,11 @@ const QI = [
|
|
|
1926
1931
|
skimage: "scikit-image",
|
|
1927
1932
|
google: "protobuf",
|
|
1928
1933
|
_pytest: "pytest"
|
|
1929
|
-
},
|
|
1934
|
+
}, iI = new Set(BI), JA = /^[A-Za-z0-9]([A-Za-z0-9._-]*[A-Za-z0-9])?$/;
|
|
1930
1935
|
function W(Q) {
|
|
1931
1936
|
return Q.toLowerCase().replace(/[-_.]+/g, "-");
|
|
1932
1937
|
}
|
|
1933
|
-
function
|
|
1938
|
+
function oI(Q) {
|
|
1934
1939
|
const A = /* @__PURE__ */ new Set();
|
|
1935
1940
|
for (const I of Q.split(`
|
|
1936
1941
|
`)) {
|
|
@@ -1947,7 +1952,7 @@ function iI(Q) {
|
|
|
1947
1952
|
}
|
|
1948
1953
|
return A;
|
|
1949
1954
|
}
|
|
1950
|
-
function
|
|
1955
|
+
function NI(Q) {
|
|
1951
1956
|
const A = /* @__PURE__ */ new Set(), I = [];
|
|
1952
1957
|
let g = "";
|
|
1953
1958
|
const C = (E, D) => {
|
|
@@ -1957,9 +1962,10 @@ function oI(Q) {
|
|
|
1957
1962
|
C(Q, "");
|
|
1958
1963
|
const B = /* @__PURE__ */ new Map();
|
|
1959
1964
|
for (const E of I)
|
|
1960
|
-
for (const D of
|
|
1961
|
-
if (
|
|
1962
|
-
|
|
1965
|
+
for (const D of oI(E)) {
|
|
1966
|
+
if (iI.has(D) || A.has(D) || D.startsWith("_") && !(D in YA))
|
|
1967
|
+
continue;
|
|
1968
|
+
const w = YA[D] ?? D;
|
|
1963
1969
|
B.set(W(w), w);
|
|
1964
1970
|
}
|
|
1965
1971
|
for (const E of g.split(`
|
|
@@ -1971,7 +1977,7 @@ function oI(Q) {
|
|
|
1971
1977
|
}
|
|
1972
1978
|
return [...B.values()].sort();
|
|
1973
1979
|
}
|
|
1974
|
-
function
|
|
1980
|
+
function v(Q) {
|
|
1975
1981
|
const A = /^v?(?:\d+!)?(\d+(?:\.\d+)*)(?:[-_.]?(a|b|c|rc|alpha|beta|pre|preview)[-_.]?(\d*))?(?:-(\d+)|[-_.]?(?:post|rev|r)[-_.]?(\d*))?(?:[-_.]?dev[-_.]?(\d*))?(?:\+[a-z0-9.]+)?$/i.exec(
|
|
1976
1982
|
Q.trim()
|
|
1977
1983
|
);
|
|
@@ -1985,7 +1991,7 @@ function n(Q) {
|
|
|
1985
1991
|
text: Q
|
|
1986
1992
|
};
|
|
1987
1993
|
}
|
|
1988
|
-
function
|
|
1994
|
+
function aA(Q, A) {
|
|
1989
1995
|
const I = Math.max(Q.release.length, A.release.length);
|
|
1990
1996
|
for (let E = 0; E < I; E++) {
|
|
1991
1997
|
const D = (Q.release[E] ?? 0) - (A.release[E] ?? 0);
|
|
@@ -2001,8 +2007,8 @@ function cA(Q, A) {
|
|
|
2001
2007
|
for (let E = 0; E < C.length; E++) if (C[E] !== B[E]) return Math.sign(C[E] - B[E]);
|
|
2002
2008
|
return 0;
|
|
2003
2009
|
}
|
|
2004
|
-
const
|
|
2005
|
-
function
|
|
2010
|
+
const hA = (Q) => Q.pre !== void 0 || Q.dev !== void 0;
|
|
2011
|
+
function oA(Q, A) {
|
|
2006
2012
|
for (const I of A.split(",")) {
|
|
2007
2013
|
const g = I.trim();
|
|
2008
2014
|
if (!g) continue;
|
|
@@ -2013,9 +2019,9 @@ function iA(Q, A) {
|
|
|
2013
2019
|
if (E.slice(0, -2).split(".").map(Number).every((U, h) => (Q.release[h] ?? 0) === U) !== (B === "==")) return !1;
|
|
2014
2020
|
continue;
|
|
2015
2021
|
}
|
|
2016
|
-
const D =
|
|
2022
|
+
const D = v(E);
|
|
2017
2023
|
if (!D) return !1;
|
|
2018
|
-
const w =
|
|
2024
|
+
const w = aA(Q, D);
|
|
2019
2025
|
if (B === "~=") {
|
|
2020
2026
|
const N = D.release.slice(0, Math.max(1, D.release.length - 1));
|
|
2021
2027
|
if (w < 0 || !N.every((k, U) => (Q.release[U] ?? 0) === k)) return !1;
|
|
@@ -2024,8 +2030,10 @@ function iA(Q, A) {
|
|
|
2024
2030
|
}
|
|
2025
2031
|
return !0;
|
|
2026
2032
|
}
|
|
2027
|
-
function
|
|
2028
|
-
const [A, I] = Q.split(";", 2).map((C) => C.trim()), g = /^([A-Za-z0-9][A-Za-z0-9._-]*)\s*(?:\[([^\]]*)\])?\s*\(?\s*([^)]*?)\s*\)?$/.exec(
|
|
2033
|
+
function SA(Q) {
|
|
2034
|
+
const [A, I] = Q.split(";", 2).map((C) => C.trim()), g = /^([A-Za-z0-9][A-Za-z0-9._-]*)\s*(?:\[([^\]]*)\])?\s*\(?\s*([^)]*?)\s*\)?$/.exec(
|
|
2035
|
+
A
|
|
2036
|
+
);
|
|
2029
2037
|
return !g || g[3].includes("@") ? null : {
|
|
2030
2038
|
name: g[1],
|
|
2031
2039
|
extras: (g[2] ?? "").split(",").map((C) => C.trim()).filter(Boolean),
|
|
@@ -2033,10 +2041,12 @@ function hA(Q) {
|
|
|
2033
2041
|
marker: I || void 0
|
|
2034
2042
|
};
|
|
2035
2043
|
}
|
|
2036
|
-
function
|
|
2037
|
-
const I = Q.match(
|
|
2044
|
+
function FI(Q, A = []) {
|
|
2045
|
+
const I = Q.match(
|
|
2046
|
+
/\(|\)|'[^']*'|"[^"]*"|===|==|!=|<=|>=|~=|<|>|\bnot\s+in\b|\bin\b|\band\b|\bor\b|[A-Za-z_][A-Za-z0-9_.]*/g
|
|
2047
|
+
) ?? [];
|
|
2038
2048
|
let g = 0;
|
|
2039
|
-
const C = (N) => /^['"]/.test(N) ? { text: N.slice(1, -1) } : N === "extra" ? { text: "", variable: "extra" } : { text:
|
|
2049
|
+
const C = (N) => /^['"]/.test(N) ? { text: N.slice(1, -1) } : N === "extra" ? { text: "", variable: "extra" } : { text: wI[N] ?? "", variable: N }, B = (N, k, U) => {
|
|
2040
2050
|
if (N.variable === "extra" || U.variable === "extra") {
|
|
2041
2051
|
const R = W((N.variable === "extra" ? U : N).text), H = A.some((j) => W(j) === R);
|
|
2042
2052
|
return k === "!=" ? !H : H;
|
|
@@ -2045,8 +2055,8 @@ function NI(Q, A = []) {
|
|
|
2045
2055
|
if (/^not\s+in$/.test(k)) return !U.text.includes(N.text);
|
|
2046
2056
|
if (!N.variable && U.variable)
|
|
2047
2057
|
return B(U, { "<": ">", ">": "<", "<=": ">=", ">=": "<=" }[k] ?? k, N);
|
|
2048
|
-
const h =
|
|
2049
|
-
return h && K && /version/.test(N.variable ?? "") ?
|
|
2058
|
+
const h = v(N.text), K = v(U.text);
|
|
2059
|
+
return h && K && /version/.test(N.variable ?? "") ? oA(h, `${k}${U.text}`) : k === "==" || k === "===" ? N.text === U.text : k === "!=" ? N.text !== U.text : !1;
|
|
2050
2060
|
}, E = () => {
|
|
2051
2061
|
if (I[g] === "(") {
|
|
2052
2062
|
g++;
|
|
@@ -2072,15 +2082,15 @@ function NI(Q, A = []) {
|
|
|
2072
2082
|
return !1;
|
|
2073
2083
|
}
|
|
2074
2084
|
}
|
|
2075
|
-
function
|
|
2085
|
+
function GI(Q) {
|
|
2076
2086
|
if (Q.packagetype !== "bdist_wheel" || Q.yanked) return !1;
|
|
2077
2087
|
const A = Q.filename.replace(/\.whl$/, "").split("-").slice(-3);
|
|
2078
2088
|
return A.length === 3 && A[1] === "none" && A[2] === "any" && A[0].split(".").some((I) => I === "py3" || I.startsWith("py3"));
|
|
2079
2089
|
}
|
|
2080
|
-
function
|
|
2081
|
-
return Q ?
|
|
2090
|
+
function MI(Q) {
|
|
2091
|
+
return Q ? oA(v(IA), Q.replace(/\s+/g, "")) : !0;
|
|
2082
2092
|
}
|
|
2083
|
-
class
|
|
2093
|
+
class kI {
|
|
2084
2094
|
constructor(A = (I, g) => fetch(I, g)) {
|
|
2085
2095
|
this.fetchImpl = A;
|
|
2086
2096
|
}
|
|
@@ -2090,7 +2100,7 @@ class MI {
|
|
|
2090
2100
|
project(A) {
|
|
2091
2101
|
const I = W(A);
|
|
2092
2102
|
let g = this.projects.get(I);
|
|
2093
|
-
return g || (g = this.fetchImpl(`${
|
|
2103
|
+
return g || (g = this.fetchImpl(`${RA}/${encodeURIComponent(I)}/json`).then(
|
|
2094
2104
|
async (C) => C.ok ? await C.json() : null,
|
|
2095
2105
|
() => null
|
|
2096
2106
|
), this.projects.set(I, g)), g;
|
|
@@ -2100,7 +2110,9 @@ class MI {
|
|
|
2100
2110
|
if (g.info.version === I) return Promise.resolve(g.info.requires_dist ?? []);
|
|
2101
2111
|
const C = `${W(A)}@${I}`;
|
|
2102
2112
|
let B = this.metadata.get(C);
|
|
2103
|
-
return B || (B = this.fetchImpl(
|
|
2113
|
+
return B || (B = this.fetchImpl(
|
|
2114
|
+
`${RA}/${encodeURIComponent(W(A))}/${encodeURIComponent(I)}/json`
|
|
2115
|
+
).then(
|
|
2104
2116
|
async (E) => E.ok ? (await E.json()).info.requires_dist ?? [] : [],
|
|
2105
2117
|
() => []
|
|
2106
2118
|
), this.metadata.set(C, B)), B;
|
|
@@ -2113,8 +2125,8 @@ class MI {
|
|
|
2113
2125
|
}) {
|
|
2114
2126
|
const g = /* @__PURE__ */ new Map(), C = [];
|
|
2115
2127
|
for (const B of A) {
|
|
2116
|
-
const E =
|
|
2117
|
-
E &&
|
|
2128
|
+
const E = SA(B);
|
|
2129
|
+
E && JA.test(E.name) && C.push({ requirement: E, top: !0 });
|
|
2118
2130
|
}
|
|
2119
2131
|
for (; C.length; ) {
|
|
2120
2132
|
const { requirement: B, top: E } = C.shift(), D = W(B.name);
|
|
@@ -2125,9 +2137,16 @@ class MI {
|
|
|
2125
2137
|
E && I({ kind: "skipped", message: `${B.name}: not found on PyPI` });
|
|
2126
2138
|
continue;
|
|
2127
2139
|
}
|
|
2128
|
-
const N = Object.entries(w.releases).map(([K, R]) => ({ version:
|
|
2140
|
+
const N = Object.entries(w.releases).map(([K, R]) => ({ version: v(K), files: R })).filter(
|
|
2141
|
+
(K) => K.version !== null && oA(K.version, B.specifiers)
|
|
2142
|
+
).sort((K, R) => aA(R.version, K.version)), U = [...N.filter((K) => !hA(K.version)), ...N.filter((K) => hA(K.version))].map((K) => ({
|
|
2143
|
+
version: K.version,
|
|
2144
|
+
wheel: K.files.find((R) => GI(R) && MI(R.requires_python))
|
|
2145
|
+
})).find((K) => K.wheel);
|
|
2129
2146
|
if (!U?.wheel) {
|
|
2130
|
-
const K = N.some(
|
|
2147
|
+
const K = N.some(
|
|
2148
|
+
(R) => R.files.some((H) => H.packagetype === "bdist_wheel")
|
|
2149
|
+
);
|
|
2131
2150
|
I({
|
|
2132
2151
|
kind: "skipped",
|
|
2133
2152
|
message: K ? `${w.info.name} has compiled code, which can't run in the browser` : `${w.info.name}: no Python 3.15 wheel on PyPI`
|
|
@@ -2135,11 +2154,21 @@ class MI {
|
|
|
2135
2154
|
continue;
|
|
2136
2155
|
}
|
|
2137
2156
|
const h = new URL(U.wheel.url);
|
|
2138
|
-
if (!(h.protocol !== "https:" || h.hostname !==
|
|
2139
|
-
g.set(D, {
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2157
|
+
if (!(h.protocol !== "https:" || h.hostname !== DI)) {
|
|
2158
|
+
g.set(D, {
|
|
2159
|
+
name: w.info.name,
|
|
2160
|
+
version: U.version.text,
|
|
2161
|
+
url: U.wheel.url,
|
|
2162
|
+
sha256: U.wheel.digests.sha256,
|
|
2163
|
+
size: U.wheel.size
|
|
2164
|
+
});
|
|
2165
|
+
for (const K of await this.requiresDist(
|
|
2166
|
+
B.name,
|
|
2167
|
+
U.version.text,
|
|
2168
|
+
w
|
|
2169
|
+
)) {
|
|
2170
|
+
const R = SA(K);
|
|
2171
|
+
!R || !JA.test(R.name) || R.marker && !FI(R.marker, B.extras) || C.push({ requirement: R, top: !1 });
|
|
2143
2172
|
}
|
|
2144
2173
|
}
|
|
2145
2174
|
}
|
|
@@ -2152,7 +2181,10 @@ class MI {
|
|
|
2152
2181
|
let C = 0, B = 0;
|
|
2153
2182
|
for (const E of A) {
|
|
2154
2183
|
if (C += E.size, C > l.downloadBytes) {
|
|
2155
|
-
I({
|
|
2184
|
+
I({
|
|
2185
|
+
kind: "skipped",
|
|
2186
|
+
message: `${E.name}: over the ${l.downloadBytes >> 20}MB package limit`
|
|
2187
|
+
});
|
|
2156
2188
|
break;
|
|
2157
2189
|
}
|
|
2158
2190
|
const D = `${E.url}#${E.sha256}`;
|
|
@@ -2162,12 +2194,15 @@ class MI {
|
|
|
2162
2194
|
try {
|
|
2163
2195
|
N = await w;
|
|
2164
2196
|
} catch (k) {
|
|
2165
|
-
I({
|
|
2197
|
+
I({
|
|
2198
|
+
kind: "skipped",
|
|
2199
|
+
message: `${E.name}: ${k instanceof Error ? k.message : String(k)}`
|
|
2200
|
+
});
|
|
2166
2201
|
continue;
|
|
2167
2202
|
}
|
|
2168
2203
|
for (const [k, U] of N) {
|
|
2169
2204
|
if (++B > l.files) break;
|
|
2170
|
-
g[`${
|
|
2205
|
+
g[`${EI}/${k}`] = U;
|
|
2171
2206
|
}
|
|
2172
2207
|
}
|
|
2173
2208
|
return g;
|
|
@@ -2177,10 +2212,10 @@ class MI {
|
|
|
2177
2212
|
if (!I.ok) throw new Error(`download failed (${I.status})`);
|
|
2178
2213
|
const g = new Uint8Array(await I.arrayBuffer());
|
|
2179
2214
|
if ([...new Uint8Array(await crypto.subtle.digest("SHA-256", g))].map((B) => B.toString(16).padStart(2, "0")).join("") !== A.sha256) throw new Error("download did not match PyPI's checksum");
|
|
2180
|
-
return
|
|
2215
|
+
return KI(await UI(g, l.unpackedBytes));
|
|
2181
2216
|
}
|
|
2182
2217
|
}
|
|
2183
|
-
function
|
|
2218
|
+
function KI(Q) {
|
|
2184
2219
|
const A = /* @__PURE__ */ new Map();
|
|
2185
2220
|
for (const [I, g] of Q) {
|
|
2186
2221
|
const C = /^[^/]+\.data\/(purelib|platlib)\/(.+)$/.exec(I);
|
|
@@ -2188,10 +2223,10 @@ function kI(Q) {
|
|
|
2188
2223
|
}
|
|
2189
2224
|
return A;
|
|
2190
2225
|
}
|
|
2191
|
-
function
|
|
2226
|
+
function yI(Q) {
|
|
2192
2227
|
return Q.length > 0 && !Q.startsWith("/") && !Q.includes("\\") && !Q.includes("\0") && !Q.split("/").some((A) => A === ".." || A === ".");
|
|
2193
2228
|
}
|
|
2194
|
-
async function
|
|
2229
|
+
async function UI(Q, A) {
|
|
2195
2230
|
const I = new DataView(Q.buffer, Q.byteOffset, Q.byteLength);
|
|
2196
2231
|
let g = -1;
|
|
2197
2232
|
for (let N = Q.length - 22; N >= Math.max(0, Q.length - 22 - 65535); N--)
|
|
@@ -2209,40 +2244,67 @@ async function yI(Q, A) {
|
|
|
2209
2244
|
if (I.getUint32(B, !0) !== 33639248) throw new Error("corrupt zip directory");
|
|
2210
2245
|
const k = I.getUint16(B + 10, !0), U = I.getUint32(B + 20, !0), h = I.getUint32(B + 24, !0), K = I.getUint16(B + 28, !0), R = I.getUint16(B + 30, !0), H = I.getUint16(B + 32, !0), j = I.getUint32(B + 42, !0), s = w.decode(Q.subarray(B + 46, B + 46 + K));
|
|
2211
2246
|
if (B += 46 + K + R + H, s.endsWith("/")) continue;
|
|
2212
|
-
if (!
|
|
2247
|
+
if (!yI(s)) throw new Error(`unsafe path in package: ${s}`);
|
|
2213
2248
|
if (D += h, D > A) throw new Error("package too large");
|
|
2214
|
-
const
|
|
2249
|
+
const u = j + 30 + I.getUint16(j + 26, !0) + I.getUint16(j + 28, !0), V = Q.subarray(u, u + U);
|
|
2215
2250
|
let o;
|
|
2216
2251
|
if (k === 0) o = V.slice();
|
|
2217
|
-
else if (k === 8)
|
|
2252
|
+
else if (k === 8)
|
|
2253
|
+
o = new Uint8Array(
|
|
2254
|
+
await new Response(
|
|
2255
|
+
new Blob([V.slice()]).stream().pipeThrough(new DecompressionStream("deflate-raw"))
|
|
2256
|
+
).arrayBuffer()
|
|
2257
|
+
);
|
|
2218
2258
|
else throw new Error(`unsupported compression in package: ${s}`);
|
|
2219
2259
|
if (o.length !== h) throw new Error(`corrupt entry in package: ${s}`);
|
|
2220
2260
|
E.set(s, o);
|
|
2221
2261
|
}
|
|
2222
2262
|
return E;
|
|
2223
2263
|
}
|
|
2224
|
-
const
|
|
2264
|
+
const P = {
|
|
2265
|
+
installer: void 0,
|
|
2266
|
+
sets: /* @__PURE__ */ new Map()
|
|
2267
|
+
};
|
|
2268
|
+
async function RI(Q, A = () => {
|
|
2269
|
+
}) {
|
|
2270
|
+
const I = NI(Q);
|
|
2271
|
+
if (!I.length) return {};
|
|
2272
|
+
const g = I.join(`
|
|
2273
|
+
`);
|
|
2274
|
+
let C = P.sets.get(g);
|
|
2275
|
+
if (!C) {
|
|
2276
|
+
P.installer ??= new kI();
|
|
2277
|
+
const D = P.installer, w = [], N = (k) => {
|
|
2278
|
+
k.kind === "skipped" ? w.push(k) : A(k);
|
|
2279
|
+
};
|
|
2280
|
+
C = D.resolve(I, N).then(async (k) => ({ files: await D.install(k, N), notes: w })), P.sets.set(g, C), C.catch(() => P.sets.delete(g));
|
|
2281
|
+
}
|
|
2282
|
+
const { files: B, notes: E } = await C;
|
|
2283
|
+
for (const D of E) A(D);
|
|
2284
|
+
return B;
|
|
2285
|
+
}
|
|
2286
|
+
const YI = [
|
|
2225
2287
|
"4847c7cda81eb51b1cec18fe40b396605579fe84e17eca2760702b8a9666e4e1"
|
|
2226
|
-
],
|
|
2288
|
+
], CA = Object.freeze({
|
|
2227
2289
|
compiler: "d6b8d6e4596136fc6ae451fe3b81b1be5a1829505cbc993179247c75a764ce87",
|
|
2228
2290
|
sysroot: "8745c6af23fd841fa507d0c73f6b6b8e8da1b4ec216a6339739a28b38ff7227b",
|
|
2229
2291
|
exceptions: "20986166552953de0e3ca5c1e9f341e7aec8b9ba54dcb244d0d2b2f9ca843ab4"
|
|
2230
2292
|
});
|
|
2231
|
-
function
|
|
2232
|
-
if (Q === "legacy") return { profile: Q, digests:
|
|
2233
|
-
if (Q === "stock-certified-v1" &&
|
|
2234
|
-
return { profile: Q, digests:
|
|
2293
|
+
function HA(Q = "legacy") {
|
|
2294
|
+
if (Q === "legacy") return { profile: Q, digests: CA };
|
|
2295
|
+
if (Q === "stock-certified-v1" && YI.length > 0)
|
|
2296
|
+
return { profile: Q, digests: CA };
|
|
2235
2297
|
throw new Error(`The ${Q} toolchain is not available in this build`);
|
|
2236
2298
|
}
|
|
2237
|
-
class
|
|
2299
|
+
class r {
|
|
2238
2300
|
#A;
|
|
2239
2301
|
hashCount = 3;
|
|
2240
2302
|
hashMs;
|
|
2241
2303
|
constructor(A, I) {
|
|
2242
2304
|
this.#A = A, this.hashMs = I;
|
|
2243
2305
|
}
|
|
2244
|
-
static async load(A, I, g, C =
|
|
2245
|
-
const E =
|
|
2306
|
+
static async load(A, I, g, C = CA.exceptions, B = "legacy") {
|
|
2307
|
+
const E = HA(B);
|
|
2246
2308
|
if (A.length !== 2) throw new Error("Missing C++ toolchain assets");
|
|
2247
2309
|
let D, w;
|
|
2248
2310
|
const N = await Promise.allSettled(
|
|
@@ -2260,7 +2322,7 @@ class X {
|
|
|
2260
2322
|
if (N[0].status === "rejected" || N[1].status === "rejected")
|
|
2261
2323
|
throw D?.error;
|
|
2262
2324
|
const [k, U] = [N[0].value, N[1].value], [h, K] = await Promise.allSettled([
|
|
2263
|
-
|
|
2325
|
+
r.ingestOwned(k, U, !1, C),
|
|
2264
2326
|
I ? (w ?? Promise.resolve(void 0)).then(
|
|
2265
2327
|
(H) => H ?? WebAssembly.compile(k)
|
|
2266
2328
|
) : Promise.resolve(void 0)
|
|
@@ -2276,19 +2338,19 @@ class X {
|
|
|
2276
2338
|
/** Captures even Buffer/subclass inputs before the first asynchronous boundary. */
|
|
2277
2339
|
static async fromBytes(A, I, g) {
|
|
2278
2340
|
const C = new Uint8Array(A), B = new Uint8Array(I);
|
|
2279
|
-
return
|
|
2341
|
+
return r.ingestOwned(
|
|
2280
2342
|
C,
|
|
2281
2343
|
B,
|
|
2282
2344
|
g,
|
|
2283
|
-
|
|
2345
|
+
CA.exceptions
|
|
2284
2346
|
);
|
|
2285
2347
|
}
|
|
2286
2348
|
static async ingestOwned(A, I, g, C) {
|
|
2287
|
-
const B = performance.now(), E = await Promise.allSettled([
|
|
2349
|
+
const B = performance.now(), E = await Promise.allSettled([LA(A), LA(I)]);
|
|
2288
2350
|
if (E[0].status === "rejected") throw E[0].reason;
|
|
2289
2351
|
if (E[1].status === "rejected") throw E[1].reason;
|
|
2290
2352
|
const [D, w] = [E[0].value, E[1].value], N = g ? await WebAssembly.compile(A) : void 0;
|
|
2291
|
-
return new
|
|
2353
|
+
return new r(
|
|
2292
2354
|
{ compiler: A, sysroot: I, compilerHash: D, sysrootHash: w, exceptionsHash: C, module: N },
|
|
2293
2355
|
performance.now() - B
|
|
2294
2356
|
);
|
|
@@ -2316,14 +2378,14 @@ class X {
|
|
|
2316
2378
|
}
|
|
2317
2379
|
}
|
|
2318
2380
|
}
|
|
2319
|
-
async function
|
|
2381
|
+
async function LA(Q) {
|
|
2320
2382
|
const A = await crypto.subtle.digest("SHA-256", Q);
|
|
2321
2383
|
return Array.from(new Uint8Array(A), (I) => I.toString(16).padStart(2, "0")).join("");
|
|
2322
2384
|
}
|
|
2323
|
-
let
|
|
2324
|
-
class
|
|
2325
|
-
stdout = new
|
|
2326
|
-
stderr = new
|
|
2385
|
+
let BA, $;
|
|
2386
|
+
class qA {
|
|
2387
|
+
stdout = new sA(1);
|
|
2388
|
+
stderr = new sA(2);
|
|
2327
2389
|
stdin = new O();
|
|
2328
2390
|
debugger;
|
|
2329
2391
|
lang;
|
|
@@ -2334,8 +2396,6 @@ class HA {
|
|
|
2334
2396
|
hostDevice;
|
|
2335
2397
|
options;
|
|
2336
2398
|
python;
|
|
2337
|
-
installer;
|
|
2338
|
-
installed;
|
|
2339
2399
|
retain;
|
|
2340
2400
|
idleTimeoutMs;
|
|
2341
2401
|
/** Absolute `EngineOptions.wasmUrl`, handed to each worker; unset uses the default. */
|
|
@@ -2366,20 +2426,20 @@ class HA {
|
|
|
2366
2426
|
latest;
|
|
2367
2427
|
cacheValidation;
|
|
2368
2428
|
static async create(A, I = {}) {
|
|
2369
|
-
const { wasmUrl: g, python: C, ...B } = I, E = g === void 0 ? void 0 :
|
|
2429
|
+
const { wasmUrl: g, python: C, ...B } = I, E = g === void 0 ? void 0 : II(g, globalThis.location?.href), D = structuredClone(B);
|
|
2370
2430
|
C && (D.python = {
|
|
2371
2431
|
packages: !!C.packages,
|
|
2372
2432
|
onPackageStatus: typeof C.onPackageStatus == "function" ? C.onPackageStatus : void 0
|
|
2373
2433
|
});
|
|
2374
2434
|
const w = E ?? null;
|
|
2375
|
-
if (
|
|
2435
|
+
if ($ !== void 0 && $ !== w)
|
|
2376
2436
|
throw new Error("The engine Wasm is already loaded from a different wasmUrl");
|
|
2377
|
-
|
|
2378
|
-
throw
|
|
2379
|
-
}), await
|
|
2380
|
-
const N = new
|
|
2437
|
+
$ = w, BA ??= rA({ module_or_path: E ?? nA }).catch((k) => {
|
|
2438
|
+
throw BA = void 0, $ = void 0, k;
|
|
2439
|
+
}), await BA;
|
|
2440
|
+
const N = new qA(A, D);
|
|
2381
2441
|
if (N.wasmUrl = E, A !== "c" && typeof window < "u" && typeof fetch < "u")
|
|
2382
|
-
for (const k of
|
|
2442
|
+
for (const k of GA(A))
|
|
2383
2443
|
fetch(k, { cache: "force-cache" }).then((U) => U.arrayBuffer()).catch(() => {
|
|
2384
2444
|
});
|
|
2385
2445
|
return N;
|
|
@@ -2396,13 +2456,13 @@ class HA {
|
|
|
2396
2456
|
throw new TypeError("C++ performance options require project and account identity");
|
|
2397
2457
|
if (g.compilerLifetime !== void 0 && !["idle", "project"].includes(g.compilerLifetime))
|
|
2398
2458
|
throw new TypeError("Invalid compiler lifetime");
|
|
2399
|
-
|
|
2459
|
+
HA(g.toolchainProfile), this.scope = Object.freeze({ ...g.scope }), this.options = Object.freeze({ ...g, scope: this.scope, idleTimeoutMs: C });
|
|
2400
2460
|
}
|
|
2401
2461
|
if (I.python) {
|
|
2402
2462
|
if (A !== "python") throw new TypeError("Python options require Python");
|
|
2403
2463
|
this.python = Object.freeze({ ...I.python });
|
|
2404
2464
|
}
|
|
2405
|
-
this.objects = new
|
|
2465
|
+
this.objects = new uA(typeof g?.objectCache == "object" ? g.objectCache : {}), this.debugger = new $A(), this.lang = A;
|
|
2406
2466
|
}
|
|
2407
2467
|
/** A retained worker reuses clang, compiled once on this thread and cloned to it. */
|
|
2408
2468
|
get cacheCompilerModule() {
|
|
@@ -2506,11 +2566,12 @@ class HA {
|
|
|
2506
2566
|
};
|
|
2507
2567
|
let I = {};
|
|
2508
2568
|
try {
|
|
2509
|
-
|
|
2510
|
-
`);
|
|
2511
|
-
g.length && this.installed?.key === C ? I = this.installed.files : g.length && (this.installer ??= new MI(), I = await this.installer.install(await this.installer.resolve(g, A), A), this.installed = { key: C, files: I });
|
|
2569
|
+
I = await RI(this.fs, A);
|
|
2512
2570
|
} catch (g) {
|
|
2513
|
-
A({
|
|
2571
|
+
A({
|
|
2572
|
+
kind: "skipped",
|
|
2573
|
+
message: `Packages: ${g instanceof Error ? g.message : String(g)}`
|
|
2574
|
+
});
|
|
2514
2575
|
}
|
|
2515
2576
|
return this.submit(!1, !1, !1, I);
|
|
2516
2577
|
}
|
|
@@ -2536,10 +2597,9 @@ class HA {
|
|
|
2536
2597
|
E = {
|
|
2537
2598
|
fs: B ? {} : structuredClone(this.fs),
|
|
2538
2599
|
binary_files: Object.fromEntries(
|
|
2539
|
-
Object.entries(B ? {} : { ...C, ...this.binaryFiles }).map(
|
|
2540
|
-
R,
|
|
2541
|
-
|
|
2542
|
-
])
|
|
2600
|
+
Object.entries(B ? {} : { ...C, ...this.binaryFiles }).map(
|
|
2601
|
+
([R, H]) => [R, new Uint8Array(H)]
|
|
2602
|
+
)
|
|
2543
2603
|
),
|
|
2544
2604
|
cpp_artifacts: structuredClone(K)
|
|
2545
2605
|
};
|
|
@@ -2612,7 +2672,7 @@ class HA {
|
|
|
2612
2672
|
return this.active === A && !A.settled;
|
|
2613
2673
|
}
|
|
2614
2674
|
makeWorker() {
|
|
2615
|
-
const A =
|
|
2675
|
+
const A = CI(this.wasmUrl), I = { worker: A, ready: !1, remove: () => {
|
|
2616
2676
|
} };
|
|
2617
2677
|
this.slot = I;
|
|
2618
2678
|
const g = (E) => {
|
|
@@ -2705,11 +2765,11 @@ class HA {
|
|
|
2705
2765
|
if (this.toolchain) return Promise.resolve(this.toolchain);
|
|
2706
2766
|
if (this.toolchainLoading) return this.toolchainLoading;
|
|
2707
2767
|
this.toolchainController = new AbortController();
|
|
2708
|
-
const A =
|
|
2709
|
-
|
|
2768
|
+
const A = r.load(
|
|
2769
|
+
GA("c"),
|
|
2710
2770
|
this.cacheCompilerModule,
|
|
2711
2771
|
this.toolchainController.signal,
|
|
2712
|
-
|
|
2772
|
+
dA(),
|
|
2713
2773
|
this.options?.toolchainProfile
|
|
2714
2774
|
);
|
|
2715
2775
|
return this.toolchainLoading = A, this.initializing.add(A), A.then(
|
|
@@ -2747,7 +2807,7 @@ class HA {
|
|
|
2747
2807
|
A.stats.workerReadyMs = performance.now() - A.startedAt;
|
|
2748
2808
|
const C = (B) => this.current(A) && B.scopeEpoch === A.scopeEpoch && B.operationId === A.operationId;
|
|
2749
2809
|
if (this.stdout[L].attach(g, C), this.stderr[L].attach(g, C), A.prepareOnly || this.debugger[L].beginRun(), A.opener) {
|
|
2750
|
-
if (A.device = new
|
|
2810
|
+
if (A.device = new QI((B) => this.finish(A, c(B))), A.device.attach(g), A.device.open(A.opener), !this.current(A)) return;
|
|
2751
2811
|
A.start.host_device = A.device.workerStart;
|
|
2752
2812
|
}
|
|
2753
2813
|
this.current(A) && (g.postMessage(A.start), A.start.fs = {}, A.start.binary_files = {}, A.start.cpp_artifacts = null, A.start.cpp_cache = null);
|
|
@@ -2777,7 +2837,7 @@ class HA {
|
|
|
2777
2837
|
A && (this.slot = void 0, A.remove(), this.stdout[L].detach(A.worker), this.stderr[L].detach(A.worker), A.worker.onerror = (I) => I.preventDefault(), A.worker.terminate(), this.retirements++);
|
|
2778
2838
|
}
|
|
2779
2839
|
}
|
|
2780
|
-
class
|
|
2840
|
+
class sA extends cA {
|
|
2781
2841
|
constructor(A) {
|
|
2782
2842
|
super(), this.mode = A, this.callback = ((I) => {
|
|
2783
2843
|
const g = I.data;
|
|
@@ -2854,10 +2914,12 @@ class O {
|
|
|
2854
2914
|
}
|
|
2855
2915
|
}
|
|
2856
2916
|
export {
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2917
|
+
_A as Artifact,
|
|
2918
|
+
$A as Debugger,
|
|
2919
|
+
qA as Engine,
|
|
2920
|
+
JI as HOST_DEVICE_PATH,
|
|
2921
|
+
EI as SITE_PACKAGES,
|
|
2861
2922
|
O as Stdin,
|
|
2862
|
-
|
|
2923
|
+
sA as Stdout,
|
|
2924
|
+
RI as pythonPackageFiles
|
|
2863
2925
|
};
|