glassjar 0.6.0 → 0.7.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/glassjar.js
CHANGED
|
@@ -5,8 +5,8 @@ var b = { exports: {} }, BA;
|
|
|
5
5
|
function JA() {
|
|
6
6
|
if (BA) return b.exports;
|
|
7
7
|
BA = 1;
|
|
8
|
-
var Q = typeof Reflect == "object" ? Reflect : null, A = Q && typeof Q.apply == "function" ? Q.apply : function(E,
|
|
9
|
-
return Function.prototype.apply.call(E,
|
|
8
|
+
var Q = typeof Reflect == "object" ? Reflect : null, A = Q && typeof Q.apply == "function" ? Q.apply : function(E, o, k) {
|
|
9
|
+
return Function.prototype.apply.call(E, o, k);
|
|
10
10
|
}, g;
|
|
11
11
|
Q && typeof Q.ownKeys == "function" ? g = Q.ownKeys : Object.getOwnPropertySymbols ? g = function(E) {
|
|
12
12
|
return Object.getOwnPropertyNames(E).concat(Object.getOwnPropertySymbols(E));
|
|
@@ -22,7 +22,7 @@ function JA() {
|
|
|
22
22
|
function B() {
|
|
23
23
|
B.init.call(this);
|
|
24
24
|
}
|
|
25
|
-
b.exports = B, b.exports.once =
|
|
25
|
+
b.exports = B, b.exports.once = j, B.EventEmitter = B, B.prototype._events = void 0, B.prototype._eventsCount = 0, B.prototype._maxListeners = void 0;
|
|
26
26
|
var i = 10;
|
|
27
27
|
function D(w) {
|
|
28
28
|
if (typeof w != "function")
|
|
@@ -45,137 +45,137 @@ function JA() {
|
|
|
45
45
|
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + E + ".");
|
|
46
46
|
return this._maxListeners = E, this;
|
|
47
47
|
};
|
|
48
|
-
function
|
|
48
|
+
function N(w) {
|
|
49
49
|
return w._maxListeners === void 0 ? B.defaultMaxListeners : w._maxListeners;
|
|
50
50
|
}
|
|
51
51
|
B.prototype.getMaxListeners = function() {
|
|
52
|
-
return
|
|
52
|
+
return N(this);
|
|
53
53
|
}, B.prototype.emit = function(E) {
|
|
54
|
-
for (var
|
|
55
|
-
var
|
|
54
|
+
for (var o = [], k = 1; k < arguments.length; k++) o.push(arguments[k]);
|
|
55
|
+
var M = E === "error", R = this._events;
|
|
56
56
|
if (R !== void 0)
|
|
57
|
-
|
|
58
|
-
else if (!
|
|
57
|
+
M = M && R.error === void 0;
|
|
58
|
+
else if (!M)
|
|
59
59
|
return !1;
|
|
60
|
-
if (
|
|
61
|
-
var
|
|
62
|
-
if (
|
|
63
|
-
throw
|
|
64
|
-
var
|
|
65
|
-
throw
|
|
60
|
+
if (M) {
|
|
61
|
+
var G;
|
|
62
|
+
if (o.length > 0 && (G = o[0]), G instanceof Error)
|
|
63
|
+
throw G;
|
|
64
|
+
var H = new Error("Unhandled error." + (G ? " (" + G.message + ")" : ""));
|
|
65
|
+
throw H.context = G, H;
|
|
66
66
|
}
|
|
67
67
|
var W = R[E];
|
|
68
68
|
if (W === void 0)
|
|
69
69
|
return !1;
|
|
70
70
|
if (typeof W == "function")
|
|
71
|
-
A(W, this,
|
|
71
|
+
A(W, this, o);
|
|
72
72
|
else
|
|
73
|
-
for (var QA = W.length, YA =
|
|
74
|
-
A(YA[
|
|
73
|
+
for (var QA = W.length, YA = a(W, QA), k = 0; k < QA; ++k)
|
|
74
|
+
A(YA[k], this, o);
|
|
75
75
|
return !0;
|
|
76
76
|
};
|
|
77
|
-
function
|
|
78
|
-
var
|
|
79
|
-
if (D(
|
|
77
|
+
function y(w, E, o, k) {
|
|
78
|
+
var M, R, G;
|
|
79
|
+
if (D(o), R = w._events, R === void 0 ? (R = w._events = /* @__PURE__ */ Object.create(null), w._eventsCount = 0) : (R.newListener !== void 0 && (w.emit(
|
|
80
80
|
"newListener",
|
|
81
81
|
E,
|
|
82
|
-
|
|
83
|
-
), R = w._events),
|
|
84
|
-
|
|
85
|
-
else if (typeof
|
|
86
|
-
|
|
87
|
-
var
|
|
88
|
-
|
|
82
|
+
o.listener ? o.listener : o
|
|
83
|
+
), R = w._events), G = R[E]), G === void 0)
|
|
84
|
+
G = R[E] = o, ++w._eventsCount;
|
|
85
|
+
else if (typeof G == "function" ? G = R[E] = k ? [o, G] : [G, o] : k ? G.unshift(o) : G.push(o), M = N(w), M > 0 && G.length > M && !G.warned) {
|
|
86
|
+
G.warned = !0;
|
|
87
|
+
var H = new Error("Possible EventEmitter memory leak detected. " + G.length + " " + String(E) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
88
|
+
H.name = "MaxListenersExceededWarning", H.emitter = w, H.type = E, H.count = G.length, I(H);
|
|
89
89
|
}
|
|
90
90
|
return w;
|
|
91
91
|
}
|
|
92
|
-
B.prototype.addListener = function(E,
|
|
93
|
-
return
|
|
94
|
-
}, B.prototype.on = B.prototype.addListener, B.prototype.prependListener = function(E,
|
|
95
|
-
return
|
|
92
|
+
B.prototype.addListener = function(E, o) {
|
|
93
|
+
return y(this, E, o, !1);
|
|
94
|
+
}, B.prototype.on = B.prototype.addListener, B.prototype.prependListener = function(E, o) {
|
|
95
|
+
return y(this, E, o, !0);
|
|
96
96
|
};
|
|
97
97
|
function U() {
|
|
98
98
|
if (!this.fired)
|
|
99
99
|
return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
102
|
-
var
|
|
103
|
-
return
|
|
104
|
-
}
|
|
105
|
-
B.prototype.once = function(E,
|
|
106
|
-
return D(
|
|
107
|
-
}, B.prototype.prependOnceListener = function(E,
|
|
108
|
-
return D(
|
|
109
|
-
}, B.prototype.removeListener = function(E,
|
|
110
|
-
var
|
|
111
|
-
if (D(
|
|
101
|
+
function L(w, E, o) {
|
|
102
|
+
var k = { fired: !1, wrapFn: void 0, target: w, type: E, listener: o }, M = U.bind(k);
|
|
103
|
+
return M.listener = o, k.wrapFn = M, M;
|
|
104
|
+
}
|
|
105
|
+
B.prototype.once = function(E, o) {
|
|
106
|
+
return D(o), this.on(E, L(this, E, o)), this;
|
|
107
|
+
}, B.prototype.prependOnceListener = function(E, o) {
|
|
108
|
+
return D(o), this.prependListener(E, L(this, E, o)), this;
|
|
109
|
+
}, B.prototype.removeListener = function(E, o) {
|
|
110
|
+
var k, M, R, G, H;
|
|
111
|
+
if (D(o), M = this._events, M === void 0)
|
|
112
112
|
return this;
|
|
113
|
-
if (
|
|
113
|
+
if (k = M[E], k === void 0)
|
|
114
114
|
return this;
|
|
115
|
-
if (
|
|
116
|
-
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete
|
|
117
|
-
else if (typeof
|
|
118
|
-
for (R = -1,
|
|
119
|
-
if (
|
|
120
|
-
|
|
115
|
+
if (k === o || k.listener === o)
|
|
116
|
+
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete M[E], M.removeListener && this.emit("removeListener", E, k.listener || o));
|
|
117
|
+
else if (typeof k != "function") {
|
|
118
|
+
for (R = -1, G = k.length - 1; G >= 0; G--)
|
|
119
|
+
if (k[G] === o || k[G].listener === o) {
|
|
120
|
+
H = k[G].listener, R = G;
|
|
121
121
|
break;
|
|
122
122
|
}
|
|
123
123
|
if (R < 0)
|
|
124
124
|
return this;
|
|
125
|
-
R === 0 ?
|
|
125
|
+
R === 0 ? k.shift() : d(k, R), k.length === 1 && (M[E] = k[0]), M.removeListener !== void 0 && this.emit("removeListener", E, H || o);
|
|
126
126
|
}
|
|
127
127
|
return this;
|
|
128
128
|
}, B.prototype.off = B.prototype.removeListener, B.prototype.removeAllListeners = function(E) {
|
|
129
|
-
var
|
|
130
|
-
if (
|
|
129
|
+
var o, k, M;
|
|
130
|
+
if (k = this._events, k === void 0)
|
|
131
131
|
return this;
|
|
132
|
-
if (
|
|
133
|
-
return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) :
|
|
132
|
+
if (k.removeListener === void 0)
|
|
133
|
+
return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : k[E] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete k[E]), this;
|
|
134
134
|
if (arguments.length === 0) {
|
|
135
|
-
var R = Object.keys(
|
|
136
|
-
for (
|
|
137
|
-
|
|
135
|
+
var R = Object.keys(k), G;
|
|
136
|
+
for (M = 0; M < R.length; ++M)
|
|
137
|
+
G = R[M], G !== "removeListener" && this.removeAllListeners(G);
|
|
138
138
|
return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
|
|
139
139
|
}
|
|
140
|
-
if (
|
|
141
|
-
this.removeListener(E,
|
|
142
|
-
else if (
|
|
143
|
-
for (
|
|
144
|
-
this.removeListener(E,
|
|
140
|
+
if (o = k[E], typeof o == "function")
|
|
141
|
+
this.removeListener(E, o);
|
|
142
|
+
else if (o !== void 0)
|
|
143
|
+
for (M = o.length - 1; M >= 0; M--)
|
|
144
|
+
this.removeListener(E, o[M]);
|
|
145
145
|
return this;
|
|
146
146
|
};
|
|
147
|
-
function Y(w, E,
|
|
148
|
-
var
|
|
149
|
-
if (
|
|
147
|
+
function Y(w, E, o) {
|
|
148
|
+
var k = w._events;
|
|
149
|
+
if (k === void 0)
|
|
150
150
|
return [];
|
|
151
|
-
var
|
|
152
|
-
return
|
|
151
|
+
var M = k[E];
|
|
152
|
+
return M === void 0 ? [] : typeof M == "function" ? o ? [M.listener || M] : [M] : o ? v(M) : a(M, M.length);
|
|
153
153
|
}
|
|
154
154
|
B.prototype.listeners = function(E) {
|
|
155
155
|
return Y(this, E, !0);
|
|
156
156
|
}, B.prototype.rawListeners = function(E) {
|
|
157
157
|
return Y(this, E, !1);
|
|
158
158
|
}, B.listenerCount = function(w, E) {
|
|
159
|
-
return typeof w.listenerCount == "function" ? w.listenerCount(E) :
|
|
160
|
-
}, B.prototype.listenerCount =
|
|
161
|
-
function
|
|
159
|
+
return typeof w.listenerCount == "function" ? w.listenerCount(E) : c.call(w, E);
|
|
160
|
+
}, B.prototype.listenerCount = c;
|
|
161
|
+
function c(w) {
|
|
162
162
|
var E = this._events;
|
|
163
163
|
if (E !== void 0) {
|
|
164
|
-
var
|
|
165
|
-
if (typeof
|
|
164
|
+
var o = E[w];
|
|
165
|
+
if (typeof o == "function")
|
|
166
166
|
return 1;
|
|
167
|
-
if (
|
|
168
|
-
return
|
|
167
|
+
if (o !== void 0)
|
|
168
|
+
return o.length;
|
|
169
169
|
}
|
|
170
170
|
return 0;
|
|
171
171
|
}
|
|
172
172
|
B.prototype.eventNames = function() {
|
|
173
173
|
return this._eventsCount > 0 ? g(this._events) : [];
|
|
174
174
|
};
|
|
175
|
-
function
|
|
176
|
-
for (var
|
|
177
|
-
|
|
178
|
-
return
|
|
175
|
+
function a(w, E) {
|
|
176
|
+
for (var o = new Array(E), k = 0; k < E; ++k)
|
|
177
|
+
o[k] = w[k];
|
|
178
|
+
return o;
|
|
179
179
|
}
|
|
180
180
|
function d(w, E) {
|
|
181
181
|
for (; E + 1 < w.length; E++)
|
|
@@ -183,38 +183,38 @@ function JA() {
|
|
|
183
183
|
w.pop();
|
|
184
184
|
}
|
|
185
185
|
function v(w) {
|
|
186
|
-
for (var E = new Array(w.length),
|
|
187
|
-
E[
|
|
186
|
+
for (var E = new Array(w.length), o = 0; o < E.length; ++o)
|
|
187
|
+
E[o] = w[o].listener || w[o];
|
|
188
188
|
return E;
|
|
189
189
|
}
|
|
190
|
-
function
|
|
191
|
-
return new Promise(function(
|
|
192
|
-
function G
|
|
193
|
-
w.removeListener(E, R),
|
|
190
|
+
function j(w, E) {
|
|
191
|
+
return new Promise(function(o, k) {
|
|
192
|
+
function M(G) {
|
|
193
|
+
w.removeListener(E, R), k(G);
|
|
194
194
|
}
|
|
195
195
|
function R() {
|
|
196
|
-
typeof w.removeListener == "function" && w.removeListener("error",
|
|
196
|
+
typeof w.removeListener == "function" && w.removeListener("error", M), o([].slice.call(arguments));
|
|
197
197
|
}
|
|
198
|
-
CA(w, E, R, { once: !0 }), E !== "error" && RA(w,
|
|
198
|
+
CA(w, E, R, { once: !0 }), E !== "error" && RA(w, M, { once: !0 });
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
|
-
function RA(w, E,
|
|
202
|
-
typeof w.on == "function" && CA(w, "error", E,
|
|
201
|
+
function RA(w, E, o) {
|
|
202
|
+
typeof w.on == "function" && CA(w, "error", E, o);
|
|
203
203
|
}
|
|
204
|
-
function CA(w, E,
|
|
204
|
+
function CA(w, E, o, k) {
|
|
205
205
|
if (typeof w.on == "function")
|
|
206
|
-
|
|
206
|
+
k.once ? w.once(E, o) : w.on(E, o);
|
|
207
207
|
else if (typeof w.addEventListener == "function")
|
|
208
|
-
w.addEventListener(E, function
|
|
209
|
-
|
|
208
|
+
w.addEventListener(E, function M(R) {
|
|
209
|
+
k.once && w.removeEventListener(E, M), o(R);
|
|
210
210
|
});
|
|
211
211
|
else
|
|
212
212
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof w);
|
|
213
213
|
}
|
|
214
214
|
return b.exports;
|
|
215
215
|
}
|
|
216
|
-
var
|
|
217
|
-
const
|
|
216
|
+
var SA = JA();
|
|
217
|
+
const MA = /* @__PURE__ */ UA(SA);
|
|
218
218
|
class $ {
|
|
219
219
|
__destroy_into_raw() {
|
|
220
220
|
const A = this.__wbg_ptr;
|
|
@@ -222,7 +222,7 @@ class $ {
|
|
|
222
222
|
}
|
|
223
223
|
free() {
|
|
224
224
|
const A = this.__destroy_into_raw();
|
|
225
|
-
|
|
225
|
+
F.__wbg_dapadapter_free(A, 0);
|
|
226
226
|
}
|
|
227
227
|
/**
|
|
228
228
|
* Attaches a worker to the adapter.
|
|
@@ -233,46 +233,46 @@ class $ {
|
|
|
233
233
|
* @param {Worker} worker
|
|
234
234
|
*/
|
|
235
235
|
attach(A) {
|
|
236
|
-
|
|
236
|
+
F.dapadapter_attach(this.__wbg_ptr, A);
|
|
237
237
|
}
|
|
238
238
|
/**
|
|
239
239
|
* Retire the listener without borrowing session state (callbacks can synchronously Stop).
|
|
240
240
|
*/
|
|
241
241
|
detach() {
|
|
242
|
-
|
|
242
|
+
F.dapadapter_detach(this.__wbg_ptr);
|
|
243
243
|
}
|
|
244
244
|
constructor() {
|
|
245
|
-
const A =
|
|
245
|
+
const A = F.dapadapter_new();
|
|
246
246
|
return this.__wbg_ptr = A >>> 0, wA.register(this, this.__wbg_ptr, this), this;
|
|
247
247
|
}
|
|
248
248
|
/**
|
|
249
249
|
* @param {Function} callback
|
|
250
250
|
*/
|
|
251
251
|
on(A) {
|
|
252
|
-
|
|
252
|
+
F.dapadapter_on(this.__wbg_ptr, A);
|
|
253
253
|
}
|
|
254
254
|
resetRun() {
|
|
255
|
-
|
|
255
|
+
F.dapadapter_resetRun(this.__wbg_ptr);
|
|
256
256
|
}
|
|
257
257
|
/**
|
|
258
258
|
* @param {any} msg
|
|
259
259
|
* @returns {any}
|
|
260
260
|
*/
|
|
261
261
|
sendMessage(A) {
|
|
262
|
-
return
|
|
262
|
+
return F.dapadapter_sendMessage(this.__wbg_ptr, A);
|
|
263
263
|
}
|
|
264
264
|
/**
|
|
265
265
|
* @param {boolean} value
|
|
266
266
|
*/
|
|
267
267
|
setFilterInternals(A) {
|
|
268
|
-
|
|
268
|
+
F.dapadapter_setFilterInternals(this.__wbg_ptr, A);
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
271
|
Symbol.dispose && ($.prototype[Symbol.dispose] = $.prototype.free);
|
|
272
|
-
class
|
|
272
|
+
class P {
|
|
273
273
|
static __wrap(A) {
|
|
274
274
|
A = A >>> 0;
|
|
275
|
-
const g = Object.create(
|
|
275
|
+
const g = Object.create(P.prototype);
|
|
276
276
|
return g.__wbg_ptr = A, iA.register(g, g.__wbg_ptr, g), g;
|
|
277
277
|
}
|
|
278
278
|
__destroy_into_raw() {
|
|
@@ -281,32 +281,32 @@ class X {
|
|
|
281
281
|
}
|
|
282
282
|
free() {
|
|
283
283
|
const A = this.__destroy_into_raw();
|
|
284
|
-
|
|
284
|
+
F.__wbg_trap_free(A, 0);
|
|
285
285
|
}
|
|
286
286
|
/**
|
|
287
287
|
* A marker method to indicate that an object is an instance of the `Trap`
|
|
288
288
|
* class.
|
|
289
289
|
*/
|
|
290
290
|
static __wbg_wasmer_trap() {
|
|
291
|
-
|
|
291
|
+
F.trap___wbg_wasmer_trap();
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
|
-
Symbol.dispose && (
|
|
295
|
-
function
|
|
294
|
+
Symbol.dispose && (P.prototype[Symbol.dispose] = P.prototype.free);
|
|
295
|
+
function hA() {
|
|
296
296
|
let Q, A;
|
|
297
297
|
try {
|
|
298
|
-
const g =
|
|
299
|
-
return Q = g[0], A = g[1],
|
|
298
|
+
const g = F.cpp_exception_hash();
|
|
299
|
+
return Q = g[0], A = g[1], s(g[0], g[1]);
|
|
300
300
|
} finally {
|
|
301
|
-
|
|
301
|
+
F.__wbindgen_free(Q, A, 1);
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
304
|
function EA(Q) {
|
|
305
|
-
const A = x(Q,
|
|
306
|
-
var C =
|
|
307
|
-
return
|
|
305
|
+
const A = x(Q, F.__wbindgen_malloc, F.__wbindgen_realloc), g = V, I = F.prefetch_urls(A, g);
|
|
306
|
+
var C = GA(I[0], I[1]).slice();
|
|
307
|
+
return F.__wbindgen_free(I[0], I[1] * 4, 4), C;
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
function LA() {
|
|
310
310
|
return {
|
|
311
311
|
__proto__: null,
|
|
312
312
|
"./engine_bg.js": {
|
|
@@ -315,29 +315,29 @@ function hA() {
|
|
|
315
315
|
return BigInt(A);
|
|
316
316
|
},
|
|
317
317
|
__wbg_Error_8c4e43fe74559d73: function(A, g) {
|
|
318
|
-
return Error(
|
|
318
|
+
return Error(s(A, g));
|
|
319
319
|
},
|
|
320
320
|
__wbg_Number_04624de7d0e8332d: function(A) {
|
|
321
321
|
return Number(A);
|
|
322
322
|
},
|
|
323
323
|
__wbg_String_8f0eb39a4a4c2f66: function(A, g) {
|
|
324
|
-
const I = String(g), C = x(I,
|
|
325
|
-
|
|
324
|
+
const I = String(g), C = x(I, F.__wbindgen_malloc, F.__wbindgen_realloc), B = V;
|
|
325
|
+
h().setInt32(A + 4, B, !0), h().setInt32(A + 0, C, !0);
|
|
326
326
|
},
|
|
327
327
|
__wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2: function(A, g) {
|
|
328
328
|
const I = g, C = typeof I == "bigint" ? I : void 0;
|
|
329
|
-
|
|
329
|
+
h().setBigInt64(A + 8, p(C) ? BigInt(0) : C, !0), h().setInt32(A + 0, !p(C), !0);
|
|
330
330
|
},
|
|
331
331
|
__wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25: function(A) {
|
|
332
332
|
const g = A, I = typeof g == "boolean" ? g : void 0;
|
|
333
|
-
return
|
|
333
|
+
return p(I) ? 16777215 : I ? 1 : 0;
|
|
334
334
|
},
|
|
335
335
|
__wbg___wbindgen_debug_string_0bc8482c6e3508ae: function(A, g) {
|
|
336
|
-
const I = AA(g), C = x(I,
|
|
337
|
-
|
|
336
|
+
const I = AA(g), C = x(I, F.__wbindgen_malloc, F.__wbindgen_realloc), B = V;
|
|
337
|
+
h().setInt32(A + 4, B, !0), h().setInt32(A + 0, C, !0);
|
|
338
338
|
},
|
|
339
339
|
__wbg___wbindgen_function_table_5ae7216dfcbcc506: function() {
|
|
340
|
-
return
|
|
340
|
+
return F.__wbindgen_export;
|
|
341
341
|
},
|
|
342
342
|
__wbg___wbindgen_in_47fa6863be6f2f25: function(A, g) {
|
|
343
343
|
return A in g;
|
|
@@ -372,7 +372,7 @@ function hA() {
|
|
|
372
372
|
},
|
|
373
373
|
__wbg___wbindgen_number_get_8ff4255516ccad3e: function(A, g) {
|
|
374
374
|
const I = g, C = typeof I == "number" ? I : void 0;
|
|
375
|
-
|
|
375
|
+
h().setFloat64(A + 8, p(C) ? 0 : C, !0), h().setInt32(A + 0, !p(C), !0);
|
|
376
376
|
},
|
|
377
377
|
__wbg___wbindgen_rethrow_05525c567f154472: function(A) {
|
|
378
378
|
throw A;
|
|
@@ -382,32 +382,32 @@ function hA() {
|
|
|
382
382
|
},
|
|
383
383
|
__wbg___wbindgen_string_get_72fb696202c56729: function(A, g) {
|
|
384
384
|
const I = g, C = typeof I == "string" ? I : void 0;
|
|
385
|
-
var B =
|
|
386
|
-
|
|
385
|
+
var B = p(C) ? 0 : x(C, F.__wbindgen_malloc, F.__wbindgen_realloc), i = V;
|
|
386
|
+
h().setInt32(A + 4, i, !0), h().setInt32(A + 0, B, !0);
|
|
387
387
|
},
|
|
388
388
|
__wbg___wbindgen_throw_be289d5034ed271b: function(A, g) {
|
|
389
|
-
throw new Error(
|
|
389
|
+
throw new Error(s(A, g));
|
|
390
390
|
},
|
|
391
391
|
__wbg__wbg_cb_unref_d9b87ff7982e3b21: function(A) {
|
|
392
392
|
A._wbg_cb_unref();
|
|
393
393
|
},
|
|
394
394
|
__wbg_addEventListener_3acb0aad4483804c: function() {
|
|
395
|
-
return
|
|
396
|
-
A.addEventListener(
|
|
395
|
+
return K(function(A, g, I, C) {
|
|
396
|
+
A.addEventListener(s(g, I), C);
|
|
397
397
|
}, arguments);
|
|
398
398
|
},
|
|
399
399
|
__wbg_apply_2e22c45cb4f12415: function() {
|
|
400
|
-
return
|
|
400
|
+
return K(function(A, g, I) {
|
|
401
401
|
return Reflect.apply(A, g, I);
|
|
402
402
|
}, arguments);
|
|
403
403
|
},
|
|
404
404
|
__wbg_apply_ada2ee1a60ac7b3c: function() {
|
|
405
|
-
return
|
|
405
|
+
return K(function(A, g, I) {
|
|
406
406
|
return A.apply(g, I);
|
|
407
407
|
}, arguments);
|
|
408
408
|
},
|
|
409
409
|
__wbg_arrayBuffer_bb54076166006c39: function() {
|
|
410
|
-
return
|
|
410
|
+
return K(function(A) {
|
|
411
411
|
return A.arrayBuffer();
|
|
412
412
|
}, arguments);
|
|
413
413
|
},
|
|
@@ -427,17 +427,17 @@ function hA() {
|
|
|
427
427
|
return A.byteLength;
|
|
428
428
|
},
|
|
429
429
|
__wbg_call_389efe28435a9388: function() {
|
|
430
|
-
return
|
|
430
|
+
return K(function(A, g) {
|
|
431
431
|
return A.call(g);
|
|
432
432
|
}, arguments);
|
|
433
433
|
},
|
|
434
434
|
__wbg_call_4708e0c13bdc8e95: function() {
|
|
435
|
-
return
|
|
435
|
+
return K(function(A, g, I) {
|
|
436
436
|
return A.call(g, I);
|
|
437
437
|
}, arguments);
|
|
438
438
|
},
|
|
439
439
|
__wbg_compareExchange_b578410c358e695e: function() {
|
|
440
|
-
return
|
|
440
|
+
return K(function(A, g, I, C) {
|
|
441
441
|
return Atomics.compareExchange(A, g >>> 0, I, C);
|
|
442
442
|
}, arguments);
|
|
443
443
|
},
|
|
@@ -448,7 +448,7 @@ function hA() {
|
|
|
448
448
|
return A.crypto;
|
|
449
449
|
},
|
|
450
450
|
__wbg_customSections_193491b069139fb1: function(A, g, I) {
|
|
451
|
-
return WebAssembly.Module.customSections(A,
|
|
451
|
+
return WebAssembly.Module.customSections(A, s(g, I));
|
|
452
452
|
},
|
|
453
453
|
__wbg_data_5330da50312d0bc1: function(A) {
|
|
454
454
|
return A.data;
|
|
@@ -462,9 +462,9 @@ function hA() {
|
|
|
462
462
|
__wbg_error_7534b8e9a36f1ab4: function(A, g) {
|
|
463
463
|
let I, C;
|
|
464
464
|
try {
|
|
465
|
-
I = A, C = g, console.error(
|
|
465
|
+
I = A, C = g, console.error(s(A, g));
|
|
466
466
|
} finally {
|
|
467
|
-
|
|
467
|
+
F.__wbindgen_free(I, C, 1);
|
|
468
468
|
}
|
|
469
469
|
},
|
|
470
470
|
__wbg_exports_794a42000dacd046: function(A) {
|
|
@@ -474,18 +474,18 @@ function hA() {
|
|
|
474
474
|
return A.exports;
|
|
475
475
|
},
|
|
476
476
|
__wbg_fetch_d1488f40cef1e210: function(A, g, I) {
|
|
477
|
-
return A.fetch(
|
|
477
|
+
return A.fetch(s(g, I));
|
|
478
478
|
},
|
|
479
479
|
__wbg_from_bddd64e7d5ff6941: function(A) {
|
|
480
480
|
return Array.from(A);
|
|
481
481
|
},
|
|
482
482
|
__wbg_getPrototypeOf_2653517f1dc884d5: function() {
|
|
483
|
-
return
|
|
483
|
+
return K(function(A) {
|
|
484
484
|
return Reflect.getPrototypeOf(A);
|
|
485
485
|
}, arguments);
|
|
486
486
|
},
|
|
487
487
|
__wbg_getRandomValues_b3f15fcbfabb0f8b: function() {
|
|
488
|
-
return
|
|
488
|
+
return K(function(A, g) {
|
|
489
489
|
A.getRandomValues(g);
|
|
490
490
|
}, arguments);
|
|
491
491
|
},
|
|
@@ -499,7 +499,7 @@ function hA() {
|
|
|
499
499
|
return A.getUint32(g >>> 0, I !== 0);
|
|
500
500
|
},
|
|
501
501
|
__wbg_get_7efbcc3819719b0f: function() {
|
|
502
|
-
return
|
|
502
|
+
return K(function(A, g) {
|
|
503
503
|
return A.get(g >>> 0);
|
|
504
504
|
}, arguments);
|
|
505
505
|
},
|
|
@@ -507,7 +507,7 @@ function hA() {
|
|
|
507
507
|
return A[g >>> 0];
|
|
508
508
|
},
|
|
509
509
|
__wbg_get_b3ed3ad4be2bc8ac: function() {
|
|
510
|
-
return
|
|
510
|
+
return K(function(A, g) {
|
|
511
511
|
return Reflect.get(A, g);
|
|
512
512
|
}, arguments);
|
|
513
513
|
},
|
|
@@ -521,12 +521,12 @@ function hA() {
|
|
|
521
521
|
return A[g];
|
|
522
522
|
},
|
|
523
523
|
__wbg_grow_5d42bf28c2da22cb: function() {
|
|
524
|
-
return
|
|
524
|
+
return K(function(A, g) {
|
|
525
525
|
return A.grow(g >>> 0);
|
|
526
526
|
}, arguments);
|
|
527
527
|
},
|
|
528
528
|
__wbg_grow_d034989fce14cc8e: function() {
|
|
529
|
-
return
|
|
529
|
+
return K(function(A, g) {
|
|
530
530
|
return A.grow(g >>> 0);
|
|
531
531
|
}, arguments);
|
|
532
532
|
},
|
|
@@ -681,7 +681,7 @@ function hA() {
|
|
|
681
681
|
return A.length;
|
|
682
682
|
},
|
|
683
683
|
__wbg_load_eff64ff5e429a422: function() {
|
|
684
|
-
return
|
|
684
|
+
return K(function(A, g) {
|
|
685
685
|
return Atomics.load(A, g >>> 0);
|
|
686
686
|
}, arguments);
|
|
687
687
|
},
|
|
@@ -692,7 +692,7 @@ function hA() {
|
|
|
692
692
|
return A.msCrypto;
|
|
693
693
|
},
|
|
694
694
|
__wbg_new_0728bd2d4c5d41dd: function() {
|
|
695
|
-
return
|
|
695
|
+
return K(function(A) {
|
|
696
696
|
return new WebAssembly.Tag(A);
|
|
697
697
|
}, arguments);
|
|
698
698
|
},
|
|
@@ -712,17 +712,17 @@ function hA() {
|
|
|
712
712
|
return new Array();
|
|
713
713
|
},
|
|
714
714
|
__wbg_new_4a996a46a82782b6: function() {
|
|
715
|
-
return
|
|
715
|
+
return K(function(A, g) {
|
|
716
716
|
return new WebAssembly.Global(A, g);
|
|
717
717
|
}, arguments);
|
|
718
718
|
},
|
|
719
719
|
__wbg_new_57c27ff3ddf5b62c: function() {
|
|
720
|
-
return
|
|
720
|
+
return K(function(A) {
|
|
721
721
|
return new WebAssembly.Module(A);
|
|
722
722
|
}, arguments);
|
|
723
723
|
},
|
|
724
724
|
__wbg_new_67274f72d5abea37: function() {
|
|
725
|
-
return
|
|
725
|
+
return K(function(A) {
|
|
726
726
|
return new WebAssembly.Table(A);
|
|
727
727
|
}, arguments);
|
|
728
728
|
},
|
|
@@ -730,24 +730,24 @@ function hA() {
|
|
|
730
730
|
return new Error();
|
|
731
731
|
},
|
|
732
732
|
__wbg_new_a4e3cab1cdd635ba: function() {
|
|
733
|
-
return
|
|
733
|
+
return K(function(A, g) {
|
|
734
734
|
return new WebAssembly.Instance(A, g);
|
|
735
735
|
}, arguments);
|
|
736
736
|
},
|
|
737
737
|
__wbg_new_b061c0550d9f3281: function() {
|
|
738
|
-
return
|
|
738
|
+
return K(function(A) {
|
|
739
739
|
return new WebAssembly.Memory(A);
|
|
740
740
|
}, arguments);
|
|
741
741
|
},
|
|
742
742
|
__wbg_new_b5d9e2fb389fef91: function(A, g) {
|
|
743
743
|
try {
|
|
744
744
|
var I = { a: A, b: g }, C = (i, D) => {
|
|
745
|
-
const
|
|
745
|
+
const N = I.a;
|
|
746
746
|
I.a = 0;
|
|
747
747
|
try {
|
|
748
|
-
return qA(
|
|
748
|
+
return qA(N, I.b, i, D);
|
|
749
749
|
} finally {
|
|
750
|
-
I.a =
|
|
750
|
+
I.a = N;
|
|
751
751
|
}
|
|
752
752
|
};
|
|
753
753
|
return new Promise(C);
|
|
@@ -765,13 +765,13 @@ function hA() {
|
|
|
765
765
|
return new Uint8Array(A);
|
|
766
766
|
},
|
|
767
767
|
__wbg_new_from_slice_a3d2629dc1826784: function(A, g) {
|
|
768
|
-
return new Uint8Array(
|
|
768
|
+
return new Uint8Array(X(A, g));
|
|
769
769
|
},
|
|
770
770
|
__wbg_new_no_args_1c7c842f08d00ebb: function(A, g) {
|
|
771
|
-
return new Function(
|
|
771
|
+
return new Function(s(A, g));
|
|
772
772
|
},
|
|
773
773
|
__wbg_new_with_args_7bba34e94b1cfa40: function(A, g, I, C) {
|
|
774
|
-
return new Function(
|
|
774
|
+
return new Function(s(A, g), s(I, C));
|
|
775
775
|
},
|
|
776
776
|
__wbg_new_with_byte_offset_9120ba79e057895b: function(A, g) {
|
|
777
777
|
return new Uint8Array(A, g >>> 0);
|
|
@@ -789,7 +789,7 @@ function hA() {
|
|
|
789
789
|
return new Uint8Array(A >>> 0);
|
|
790
790
|
},
|
|
791
791
|
__wbg_next_3482f54c49e8af19: function() {
|
|
792
|
-
return
|
|
792
|
+
return K(function(A) {
|
|
793
793
|
return A.next();
|
|
794
794
|
}, arguments);
|
|
795
795
|
},
|
|
@@ -800,7 +800,7 @@ function hA() {
|
|
|
800
800
|
return A.node;
|
|
801
801
|
},
|
|
802
802
|
__wbg_notify_78a90977fab74963: function() {
|
|
803
|
-
return
|
|
803
|
+
return K(function(A, g) {
|
|
804
804
|
return Atomics.notify(A, g >>> 0);
|
|
805
805
|
}, arguments);
|
|
806
806
|
},
|
|
@@ -814,7 +814,7 @@ function hA() {
|
|
|
814
814
|
return A.ok;
|
|
815
815
|
},
|
|
816
816
|
__wbg_postMessage_2041f4e90af61318: function() {
|
|
817
|
-
return
|
|
817
|
+
return K(function(A, g) {
|
|
818
818
|
A.postMessage(g);
|
|
819
819
|
}, arguments);
|
|
820
820
|
},
|
|
@@ -822,7 +822,7 @@ function hA() {
|
|
|
822
822
|
return A.process;
|
|
823
823
|
},
|
|
824
824
|
__wbg_prototypesetcall_bdcdcc5842e4d77d: function(A, g, I) {
|
|
825
|
-
Uint8Array.prototype.set.call(
|
|
825
|
+
Uint8Array.prototype.set.call(X(A, g), I);
|
|
826
826
|
},
|
|
827
827
|
__wbg_push_8ffdcb2063340ba5: function(A, g) {
|
|
828
828
|
return A.push(g);
|
|
@@ -834,17 +834,17 @@ function hA() {
|
|
|
834
834
|
queueMicrotask(A);
|
|
835
835
|
},
|
|
836
836
|
__wbg_randomFillSync_f8c153b79f285817: function() {
|
|
837
|
-
return
|
|
837
|
+
return K(function(A, g) {
|
|
838
838
|
A.randomFillSync(g);
|
|
839
839
|
}, arguments);
|
|
840
840
|
},
|
|
841
841
|
__wbg_removeEventListener_e63328781a5b9af9: function() {
|
|
842
|
-
return
|
|
843
|
-
A.removeEventListener(
|
|
842
|
+
return K(function(A, g, I, C) {
|
|
843
|
+
A.removeEventListener(s(g, I), C);
|
|
844
844
|
}, arguments);
|
|
845
845
|
},
|
|
846
846
|
__wbg_require_b74f47fc2d022fd6: function() {
|
|
847
|
-
return
|
|
847
|
+
return K(function() {
|
|
848
848
|
return module.require;
|
|
849
849
|
}, arguments);
|
|
850
850
|
},
|
|
@@ -852,7 +852,7 @@ function hA() {
|
|
|
852
852
|
return Promise.resolve(A);
|
|
853
853
|
},
|
|
854
854
|
__wbg_setTimeout_e0aacd5a637418a6: function() {
|
|
855
|
-
return
|
|
855
|
+
return K(function(A, g, I) {
|
|
856
856
|
return A.setTimeout(g, I);
|
|
857
857
|
}, arguments);
|
|
858
858
|
},
|
|
@@ -860,7 +860,7 @@ function hA() {
|
|
|
860
860
|
A.setUint32(g >>> 0, I >>> 0, C !== 0);
|
|
861
861
|
},
|
|
862
862
|
__wbg_set_0af2522656c2a71b: function() {
|
|
863
|
-
return
|
|
863
|
+
return K(function(A, g, I) {
|
|
864
864
|
A.set(g >>> 0, I);
|
|
865
865
|
}, arguments);
|
|
866
866
|
},
|
|
@@ -874,12 +874,12 @@ function hA() {
|
|
|
874
874
|
A[g] = I;
|
|
875
875
|
},
|
|
876
876
|
__wbg_set_6cb8631f80447a67: function() {
|
|
877
|
-
return
|
|
877
|
+
return K(function(A, g, I) {
|
|
878
878
|
return Reflect.set(A, g, I);
|
|
879
879
|
}, arguments);
|
|
880
880
|
},
|
|
881
881
|
__wbg_set_cc56eefd2dd91957: function(A, g, I) {
|
|
882
|
-
A.set(
|
|
882
|
+
A.set(X(g, I));
|
|
883
883
|
},
|
|
884
884
|
__wbg_set_f43e577aea94465b: function(A, g, I) {
|
|
885
885
|
A[g >>> 0] = I;
|
|
@@ -900,27 +900,27 @@ function hA() {
|
|
|
900
900
|
return A.slice(g >>> 0, I >>> 0);
|
|
901
901
|
},
|
|
902
902
|
__wbg_stack_0ed75d68575b0f3c: function(A, g) {
|
|
903
|
-
const I = g.stack, C = x(I,
|
|
904
|
-
|
|
903
|
+
const I = g.stack, C = x(I, F.__wbindgen_malloc, F.__wbindgen_realloc), B = V;
|
|
904
|
+
h().setInt32(A + 4, B, !0), h().setInt32(A + 0, C, !0);
|
|
905
905
|
},
|
|
906
906
|
__wbg_static_accessor_GLOBAL_12837167ad935116: function() {
|
|
907
907
|
const A = typeof global > "u" ? null : global;
|
|
908
|
-
return
|
|
908
|
+
return p(A) ? 0 : Z(A);
|
|
909
909
|
},
|
|
910
910
|
__wbg_static_accessor_GLOBAL_THIS_e628e89ab3b1c95f: function() {
|
|
911
911
|
const A = typeof globalThis > "u" ? null : globalThis;
|
|
912
|
-
return
|
|
912
|
+
return p(A) ? 0 : Z(A);
|
|
913
913
|
},
|
|
914
914
|
__wbg_static_accessor_SELF_a621d3dfbb60d0ce: function() {
|
|
915
915
|
const A = typeof self > "u" ? null : self;
|
|
916
|
-
return
|
|
916
|
+
return p(A) ? 0 : Z(A);
|
|
917
917
|
},
|
|
918
918
|
__wbg_static_accessor_WINDOW_f8727f0cf888e0bd: function() {
|
|
919
919
|
const A = typeof window > "u" ? null : window;
|
|
920
|
-
return
|
|
920
|
+
return p(A) ? 0 : Z(A);
|
|
921
921
|
},
|
|
922
922
|
__wbg_store_d1d951c98d9bed41: function() {
|
|
923
|
-
return
|
|
923
|
+
return K(function(A, g, I) {
|
|
924
924
|
return Atomics.store(A, g >>> 0, I);
|
|
925
925
|
}, arguments);
|
|
926
926
|
},
|
|
@@ -934,17 +934,17 @@ function hA() {
|
|
|
934
934
|
return A.then(g);
|
|
935
935
|
},
|
|
936
936
|
__wbg_toString_56d946daff83867b: function(A, g, I) {
|
|
937
|
-
const C = g.toString(I), B = x(C,
|
|
938
|
-
|
|
937
|
+
const C = g.toString(I), B = x(C, F.__wbindgen_malloc, F.__wbindgen_realloc), i = V;
|
|
938
|
+
h().setInt32(A + 4, i, !0), h().setInt32(A + 0, B, !0);
|
|
939
939
|
},
|
|
940
940
|
__wbg_toString_964ff7fe6eca8362: function(A) {
|
|
941
941
|
return A.toString();
|
|
942
942
|
},
|
|
943
943
|
__wbg_trap_new: function(A) {
|
|
944
|
-
return
|
|
944
|
+
return P.__wrap(A);
|
|
945
945
|
},
|
|
946
946
|
__wbg_validate_71c2d02a71bda62f: function() {
|
|
947
|
-
return
|
|
947
|
+
return K(function(A) {
|
|
948
948
|
return WebAssembly.validate(A);
|
|
949
949
|
}, arguments);
|
|
950
950
|
},
|
|
@@ -958,7 +958,7 @@ function hA() {
|
|
|
958
958
|
return A.versions;
|
|
959
959
|
},
|
|
960
960
|
__wbg_wait_be5dae1e53f590f1: function() {
|
|
961
|
-
return
|
|
961
|
+
return K(function(A, g, I) {
|
|
962
962
|
return Atomics.wait(A, g >>> 0, I);
|
|
963
963
|
}, arguments);
|
|
964
964
|
},
|
|
@@ -966,22 +966,22 @@ function hA() {
|
|
|
966
966
|
console.warn(A, g, I);
|
|
967
967
|
},
|
|
968
968
|
__wbindgen_cast_0000000000000001: function(A, g) {
|
|
969
|
-
return
|
|
969
|
+
return T(A, g, F.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___, DA);
|
|
970
970
|
},
|
|
971
971
|
__wbindgen_cast_0000000000000002: function(A, g) {
|
|
972
|
-
return
|
|
972
|
+
return T(A, g, F.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___, DA);
|
|
973
973
|
},
|
|
974
974
|
__wbindgen_cast_0000000000000003: function(A, g) {
|
|
975
|
-
return
|
|
975
|
+
return T(A, g, F.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___, HA);
|
|
976
976
|
},
|
|
977
977
|
__wbindgen_cast_0000000000000004: function(A, g) {
|
|
978
|
-
return
|
|
978
|
+
return T(A, g, F.wasm_bindgen_36932265c58943ab___closure__destroy___dyn_core_37ee0ce0c4cd57d5___ops__function__FnMut__wasm_bindgen_36932265c58943ab___JsValue____Output_______, cA);
|
|
979
979
|
},
|
|
980
980
|
__wbindgen_cast_0000000000000005: function(A, g) {
|
|
981
|
-
return
|
|
981
|
+
return jA(A, g, F.wasm_bindgen_36932265c58943ab___closure__destroy___dyn_core_37ee0ce0c4cd57d5___ops__function__Fn__web_sys_ca373f7aaf47173f___features__gen_MessageEvent__MessageEvent____Output_______, sA);
|
|
982
982
|
},
|
|
983
983
|
__wbindgen_cast_0000000000000006: function(A, g) {
|
|
984
|
-
return
|
|
984
|
+
return T(A, g, F.wasm_bindgen_36932265c58943ab___closure__destroy___dyn_core_37ee0ce0c4cd57d5___ops__function__Fn__web_sys_ca373f7aaf47173f___features__gen_MessageEvent__MessageEvent____Output_______, aA);
|
|
985
985
|
},
|
|
986
986
|
__wbindgen_cast_0000000000000007: function(A) {
|
|
987
987
|
return A;
|
|
@@ -990,10 +990,10 @@ function hA() {
|
|
|
990
990
|
return A;
|
|
991
991
|
},
|
|
992
992
|
__wbindgen_cast_0000000000000009: function(A, g) {
|
|
993
|
-
return
|
|
993
|
+
return X(A, g);
|
|
994
994
|
},
|
|
995
995
|
__wbindgen_cast_000000000000000a: function(A, g) {
|
|
996
|
-
return
|
|
996
|
+
return s(A, g);
|
|
997
997
|
},
|
|
998
998
|
__wbindgen_cast_000000000000000b: function(A, g) {
|
|
999
999
|
return BigInt.asUintN(64, A) | BigInt.asUintN(64, g) << BigInt(64);
|
|
@@ -1002,47 +1002,47 @@ function hA() {
|
|
|
1002
1002
|
return BigInt.asUintN(64, A);
|
|
1003
1003
|
},
|
|
1004
1004
|
__wbindgen_cast_000000000000000d: function(A, g) {
|
|
1005
|
-
var I =
|
|
1006
|
-
return
|
|
1005
|
+
var I = GA(A, g).slice();
|
|
1006
|
+
return F.__wbindgen_free(A, g * 4, 4), I;
|
|
1007
1007
|
},
|
|
1008
1008
|
__wbindgen_init_externref_table: function() {
|
|
1009
|
-
const A =
|
|
1009
|
+
const A = F.__wbindgen_externrefs, g = A.grow(4);
|
|
1010
1010
|
A.set(0, void 0), A.set(g + 0, void 0), A.set(g + 1, null), A.set(g + 2, !0), A.set(g + 3, !1);
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
1013
1013
|
};
|
|
1014
1014
|
}
|
|
1015
|
-
function sA(Q, A, g) {
|
|
1016
|
-
k.wasm_bindgen_36932265c58943ab___convert__closures_____invoke___wasm_bindgen_36932265c58943ab___JsValue_____(Q, A, g);
|
|
1017
|
-
}
|
|
1018
1015
|
function cA(Q, A, g) {
|
|
1019
|
-
|
|
1016
|
+
F.wasm_bindgen_36932265c58943ab___convert__closures_____invoke___wasm_bindgen_36932265c58943ab___JsValue_____(Q, A, g);
|
|
1020
1017
|
}
|
|
1021
|
-
function
|
|
1022
|
-
|
|
1018
|
+
function sA(Q, A, g) {
|
|
1019
|
+
F.wasm_bindgen_36932265c58943ab___convert__closures_____invoke___web_sys_ca373f7aaf47173f___features__gen_MessageEvent__MessageEvent_____(Q, A, g);
|
|
1023
1020
|
}
|
|
1024
1021
|
function aA(Q, A, g) {
|
|
1025
|
-
|
|
1022
|
+
F.wasm_bindgen_36932265c58943ab___convert__closures_____invoke___web_sys_ca373f7aaf47173f___features__gen_MessageEvent__MessageEvent______1_(Q, A, g);
|
|
1023
|
+
}
|
|
1024
|
+
function HA(Q, A, g) {
|
|
1025
|
+
const I = F.wasm_bindgen_36932265c58943ab___convert__closures________invoke___js_sys_9eaf8169b8189500___Array__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_36932265c58943ab___JsValue__(Q, A, g);
|
|
1026
1026
|
if (I[1])
|
|
1027
1027
|
throw gA(I[0]);
|
|
1028
1028
|
}
|
|
1029
1029
|
function DA(Q, A, g) {
|
|
1030
|
-
const I =
|
|
1030
|
+
const I = F.wasm_bindgen_36932265c58943ab___convert__closures________invoke___js_sys_9eaf8169b8189500___Array__core_37ee0ce0c4cd57d5___result__Result_js_sys_9eaf8169b8189500___Array__wasm_bindgen_36932265c58943ab___JsValue__(Q, A, g);
|
|
1031
1031
|
if (I[2])
|
|
1032
1032
|
throw gA(I[1]);
|
|
1033
1033
|
return gA(I[0]);
|
|
1034
1034
|
}
|
|
1035
1035
|
function qA(Q, A, g, I) {
|
|
1036
|
-
|
|
1036
|
+
F.wasm_bindgen_36932265c58943ab___convert__closures_____invoke___wasm_bindgen_36932265c58943ab___JsValue__wasm_bindgen_36932265c58943ab___JsValue_____(Q, A, g, I);
|
|
1037
1037
|
}
|
|
1038
1038
|
const wA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1039
1039
|
}, unregister: () => {
|
|
1040
|
-
} } : new FinalizationRegistry((Q) =>
|
|
1040
|
+
} } : new FinalizationRegistry((Q) => F.__wbg_dapadapter_free(Q >>> 0, 1)), iA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1041
1041
|
}, unregister: () => {
|
|
1042
|
-
} } : new FinalizationRegistry((Q) =>
|
|
1043
|
-
function
|
|
1044
|
-
const A =
|
|
1045
|
-
return
|
|
1042
|
+
} } : new FinalizationRegistry((Q) => F.__wbg_trap_free(Q >>> 0, 1));
|
|
1043
|
+
function Z(Q) {
|
|
1044
|
+
const A = F.__externref_table_alloc();
|
|
1045
|
+
return F.__wbindgen_externrefs.set(A, Q), A;
|
|
1046
1046
|
}
|
|
1047
1047
|
const n = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1048
1048
|
}, unregister: () => {
|
|
@@ -1084,39 +1084,39 @@ function AA(Q) {
|
|
|
1084
1084
|
return Q instanceof Error ? `${Q.name}: ${Q.message}
|
|
1085
1085
|
${Q.stack}` : I;
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1087
|
+
function GA(Q, A) {
|
|
1088
1088
|
Q = Q >>> 0;
|
|
1089
|
-
const g =
|
|
1089
|
+
const g = h(), I = [];
|
|
1090
1090
|
for (let C = Q; C < Q + 4 * A; C += 4)
|
|
1091
|
-
I.push(
|
|
1092
|
-
return
|
|
1091
|
+
I.push(F.__wbindgen_externrefs.get(g.getUint32(C, !0)));
|
|
1092
|
+
return F.__externref_drop_slice(Q, A), I;
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1094
|
+
function X(Q, A) {
|
|
1095
1095
|
return Q = Q >>> 0, z().subarray(Q / 1, Q / 1 + A);
|
|
1096
1096
|
}
|
|
1097
|
-
let
|
|
1098
|
-
function
|
|
1099
|
-
return (
|
|
1097
|
+
let O = null;
|
|
1098
|
+
function h() {
|
|
1099
|
+
return (O === null || O.buffer.detached === !0 || O.buffer.detached === void 0 && O.buffer !== F.memory.buffer) && (O = new DataView(F.memory.buffer)), O;
|
|
1100
1100
|
}
|
|
1101
|
-
function
|
|
1102
|
-
return Q = Q >>> 0,
|
|
1101
|
+
function s(Q, A) {
|
|
1102
|
+
return Q = Q >>> 0, VA(Q, A);
|
|
1103
1103
|
}
|
|
1104
|
-
let
|
|
1104
|
+
let t = null;
|
|
1105
1105
|
function z() {
|
|
1106
|
-
return (
|
|
1106
|
+
return (t === null || t.byteLength === 0) && (t = new Uint8Array(F.memory.buffer)), t;
|
|
1107
1107
|
}
|
|
1108
|
-
function
|
|
1108
|
+
function K(Q, A) {
|
|
1109
1109
|
try {
|
|
1110
1110
|
return Q.apply(this, A);
|
|
1111
1111
|
} catch (g) {
|
|
1112
|
-
const I =
|
|
1113
|
-
|
|
1112
|
+
const I = Z(g);
|
|
1113
|
+
F.__wbindgen_exn_store(I);
|
|
1114
1114
|
}
|
|
1115
1115
|
}
|
|
1116
|
-
function
|
|
1116
|
+
function p(Q) {
|
|
1117
1117
|
return Q == null;
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1119
|
+
function jA(Q, A, g, I) {
|
|
1120
1120
|
const C = { a: Q, b: A, cnt: 1, dtor: g }, B = (...i) => {
|
|
1121
1121
|
C.cnt++;
|
|
1122
1122
|
try {
|
|
@@ -1129,7 +1129,7 @@ function pA(Q, A, g, I) {
|
|
|
1129
1129
|
--C.cnt === 0 && (C.dtor(C.a, C.b), C.a = 0, n.unregister(C));
|
|
1130
1130
|
}, n.register(B, C, C), B;
|
|
1131
1131
|
}
|
|
1132
|
-
function
|
|
1132
|
+
function T(Q, A, g, I) {
|
|
1133
1133
|
const C = { a: Q, b: A, cnt: 1, dtor: g }, B = (...i) => {
|
|
1134
1134
|
C.cnt++;
|
|
1135
1135
|
const D = C.a;
|
|
@@ -1146,8 +1146,8 @@ function O(Q, A, g, I) {
|
|
|
1146
1146
|
}
|
|
1147
1147
|
function x(Q, A, g) {
|
|
1148
1148
|
if (g === void 0) {
|
|
1149
|
-
const D = f.encode(Q),
|
|
1150
|
-
return z().subarray(
|
|
1149
|
+
const D = f.encode(Q), N = A(D.length, 1) >>> 0;
|
|
1150
|
+
return z().subarray(N, N + D.length).set(D), V = D.length, N;
|
|
1151
1151
|
}
|
|
1152
1152
|
let I = Q.length, C = A(I, 1) >>> 0;
|
|
1153
1153
|
const B = z();
|
|
@@ -1159,21 +1159,21 @@ function x(Q, A, g) {
|
|
|
1159
1159
|
}
|
|
1160
1160
|
if (i !== I) {
|
|
1161
1161
|
i !== 0 && (Q = Q.slice(i)), C = g(C, I, I = i + Q.length * 3, 1) >>> 0;
|
|
1162
|
-
const D = z().subarray(C + i, C + I),
|
|
1163
|
-
i +=
|
|
1162
|
+
const D = z().subarray(C + i, C + I), N = f.encodeInto(Q, D);
|
|
1163
|
+
i += N.written, C = g(C, I, i, 1) >>> 0;
|
|
1164
1164
|
}
|
|
1165
|
-
return
|
|
1165
|
+
return V = i, C;
|
|
1166
1166
|
}
|
|
1167
1167
|
function gA(Q) {
|
|
1168
|
-
const A =
|
|
1169
|
-
return
|
|
1168
|
+
const A = F.__wbindgen_externrefs.get(Q);
|
|
1169
|
+
return F.__externref_table_dealloc(Q), A;
|
|
1170
1170
|
}
|
|
1171
1171
|
let r = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 });
|
|
1172
1172
|
r.decode();
|
|
1173
|
-
const
|
|
1173
|
+
const pA = 2146435072;
|
|
1174
1174
|
let e = 0;
|
|
1175
|
-
function
|
|
1176
|
-
return e += A, e >=
|
|
1175
|
+
function VA(Q, A) {
|
|
1176
|
+
return e += A, e >= pA && (r = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }), r.decode(), e = A), r.decode(z().subarray(Q, Q + A));
|
|
1177
1177
|
}
|
|
1178
1178
|
const f = new TextEncoder();
|
|
1179
1179
|
"encodeInto" in f || (f.encodeInto = function(Q, A) {
|
|
@@ -1183,9 +1183,9 @@ const f = new TextEncoder();
|
|
|
1183
1183
|
written: g.length
|
|
1184
1184
|
};
|
|
1185
1185
|
});
|
|
1186
|
-
let
|
|
1187
|
-
function
|
|
1188
|
-
return
|
|
1186
|
+
let V = 0, F;
|
|
1187
|
+
function OA(Q, A) {
|
|
1188
|
+
return F = Q.exports, O = null, t = null, F.__wbindgen_start(), F;
|
|
1189
1189
|
}
|
|
1190
1190
|
async function xA(Q, A) {
|
|
1191
1191
|
if (typeof Response == "function" && Q instanceof Response) {
|
|
@@ -1215,20 +1215,20 @@ async function xA(Q, A) {
|
|
|
1215
1215
|
}
|
|
1216
1216
|
}
|
|
1217
1217
|
async function dA(Q) {
|
|
1218
|
-
if (
|
|
1218
|
+
if (F !== void 0) return F;
|
|
1219
1219
|
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));
|
|
1220
|
-
const A =
|
|
1220
|
+
const A = LA();
|
|
1221
1221
|
(typeof Q == "string" || typeof Request == "function" && Q instanceof Request || typeof URL == "function" && Q instanceof URL) && (Q = fetch(Q));
|
|
1222
1222
|
const { instance: g, module: I } = await xA(await Q, A);
|
|
1223
|
-
return
|
|
1223
|
+
return OA(g);
|
|
1224
1224
|
}
|
|
1225
|
-
const WA = new URL("https://cdn.jsdelivr.net/npm/glassjar@0.
|
|
1225
|
+
const WA = new URL("https://cdn.jsdelivr.net/npm/glassjar@0.7.0/dist/engine_bg.wasm"), TA = Object.freeze({
|
|
1226
1226
|
maxObjectBytes: 128 * 1024 * 1024,
|
|
1227
1227
|
maxEntries: 256,
|
|
1228
1228
|
maxMetadataBytes: 8 * 1024 * 1024,
|
|
1229
1229
|
maxEntryMetadataBytes: 1024 * 1024
|
|
1230
1230
|
});
|
|
1231
|
-
class
|
|
1231
|
+
class ZA {
|
|
1232
1232
|
records = /* @__PURE__ */ new Map();
|
|
1233
1233
|
staged = /* @__PURE__ */ new Map();
|
|
1234
1234
|
stagingFailed = !1;
|
|
@@ -1238,7 +1238,7 @@ class tA {
|
|
|
1238
1238
|
oversized = 0;
|
|
1239
1239
|
limits;
|
|
1240
1240
|
constructor(A = {}) {
|
|
1241
|
-
this.limits = Object.freeze({ ...
|
|
1241
|
+
this.limits = Object.freeze({ ...TA, ...A });
|
|
1242
1242
|
for (const g of Object.values(this.limits))
|
|
1243
1243
|
if (!Number.isSafeInteger(g) || g < 0)
|
|
1244
1244
|
throw new RangeError("C++ cache limits must be nonnegative safe integers");
|
|
@@ -1288,7 +1288,7 @@ class tA {
|
|
|
1288
1288
|
if (this.stagingFailed) return !1;
|
|
1289
1289
|
const A = [...this.staged.values()];
|
|
1290
1290
|
for (const g of A) {
|
|
1291
|
-
if (!
|
|
1291
|
+
if (!tA(g.object)) return !1;
|
|
1292
1292
|
const I = await crypto.subtle.digest("SHA-256", g.object);
|
|
1293
1293
|
if (Array.from(
|
|
1294
1294
|
new Uint8Array(I),
|
|
@@ -1365,7 +1365,7 @@ class tA {
|
|
|
1365
1365
|
};
|
|
1366
1366
|
}
|
|
1367
1367
|
}
|
|
1368
|
-
function
|
|
1368
|
+
function tA(Q) {
|
|
1369
1369
|
if (!WebAssembly.validate(Q) || Q.length < 8) return !1;
|
|
1370
1370
|
let A = 8, g = !1;
|
|
1371
1371
|
const I = () => {
|
|
@@ -1383,8 +1383,8 @@ function jA(Q) {
|
|
|
1383
1383
|
if (C === 0) {
|
|
1384
1384
|
const D = I();
|
|
1385
1385
|
if (A + D > i) return !1;
|
|
1386
|
-
const
|
|
1387
|
-
if (A += D,
|
|
1386
|
+
const N = new TextDecoder().decode(Q.subarray(A, A + D));
|
|
1387
|
+
if (A += D, N === "linking") {
|
|
1388
1388
|
if (g || I() !== 2) return !1;
|
|
1389
1389
|
g = !0;
|
|
1390
1390
|
}
|
|
@@ -1397,7 +1397,7 @@ function jA(Q) {
|
|
|
1397
1397
|
}
|
|
1398
1398
|
}
|
|
1399
1399
|
const J = /* @__PURE__ */ Symbol();
|
|
1400
|
-
function
|
|
1400
|
+
function S(Q) {
|
|
1401
1401
|
return Q instanceof Error ? {
|
|
1402
1402
|
type: "error",
|
|
1403
1403
|
error: { type: Q.constructor.name, message: Q.message }
|
|
@@ -1417,7 +1417,7 @@ class zA {
|
|
|
1417
1417
|
C.href = I, C.download = this.name, document.body.appendChild(C), C.click(), document.body.removeChild(C), URL.revokeObjectURL(I);
|
|
1418
1418
|
}
|
|
1419
1419
|
}
|
|
1420
|
-
class fA extends
|
|
1420
|
+
class fA extends MA {
|
|
1421
1421
|
/**
|
|
1422
1422
|
* Access to internal properties of the debugger.
|
|
1423
1423
|
* These are put under a special symbol so that they cannot be accessed by
|
|
@@ -1465,7 +1465,7 @@ class fA extends GA {
|
|
|
1465
1465
|
}
|
|
1466
1466
|
}
|
|
1467
1467
|
const lA = "glassjar-wasm:";
|
|
1468
|
-
function
|
|
1468
|
+
function PA(Q, A) {
|
|
1469
1469
|
const g = new URL(String(Q), A);
|
|
1470
1470
|
if (g.protocol !== "https:" && g.protocol !== "http:")
|
|
1471
1471
|
throw new TypeError(`Engine Wasm must be served over http(s), not ${g.protocol}`);
|
|
@@ -1473,18 +1473,18 @@ function XA(Q, A) {
|
|
|
1473
1473
|
}
|
|
1474
1474
|
function bA(Q) {
|
|
1475
1475
|
return new Worker(
|
|
1476
|
-
"" + new URL("assets/worker-
|
|
1476
|
+
"" + new URL("assets/worker-uI0K1NG6.js", import.meta.url).href,
|
|
1477
1477
|
{
|
|
1478
1478
|
type: "module",
|
|
1479
1479
|
name: Q?.name
|
|
1480
1480
|
}
|
|
1481
1481
|
);
|
|
1482
1482
|
}
|
|
1483
|
-
function
|
|
1483
|
+
function XA(Q) {
|
|
1484
1484
|
return new bA(Q ? { name: lA + Q } : void 0);
|
|
1485
1485
|
}
|
|
1486
1486
|
const nA = "/dev/debugger-sh-host";
|
|
1487
|
-
class
|
|
1487
|
+
class oA {
|
|
1488
1488
|
buffer = new SharedArrayBuffer(4 + 64 * 1024);
|
|
1489
1489
|
length = new Int32Array(this.buffer, 0, 1);
|
|
1490
1490
|
bytes = new Uint8Array(this.buffer, 4);
|
|
@@ -1501,7 +1501,7 @@ function IA(Q) {
|
|
|
1501
1501
|
return new Error("Host device callback failed");
|
|
1502
1502
|
}
|
|
1503
1503
|
}
|
|
1504
|
-
function
|
|
1504
|
+
function NA(Q) {
|
|
1505
1505
|
try {
|
|
1506
1506
|
const A = Q?.();
|
|
1507
1507
|
if (A && typeof A.then == "function")
|
|
@@ -1511,12 +1511,12 @@ function oA(Q) {
|
|
|
1511
1511
|
return IA(A);
|
|
1512
1512
|
}
|
|
1513
1513
|
}
|
|
1514
|
-
class
|
|
1514
|
+
class mA {
|
|
1515
1515
|
constructor(A) {
|
|
1516
1516
|
this.onFailure = A;
|
|
1517
1517
|
}
|
|
1518
|
-
incoming = new
|
|
1519
|
-
outgoing = new
|
|
1518
|
+
incoming = new oA();
|
|
1519
|
+
outgoing = new oA();
|
|
1520
1520
|
workerStart = {
|
|
1521
1521
|
guest_to_host: this.incoming.buffer,
|
|
1522
1522
|
host_to_guest: this.outgoing.buffer
|
|
@@ -1548,7 +1548,7 @@ class PA {
|
|
|
1548
1548
|
}), new TypeError("Host device opener must return a cleanup function or undefined");
|
|
1549
1549
|
if (typeof g == "function")
|
|
1550
1550
|
if (this.abort.signal.aborted) {
|
|
1551
|
-
const I =
|
|
1551
|
+
const I = NA(g);
|
|
1552
1552
|
if (I) throw I;
|
|
1553
1553
|
} else this.cleanup = g;
|
|
1554
1554
|
}
|
|
@@ -1602,17 +1602,17 @@ class PA {
|
|
|
1602
1602
|
if (this.abort.signal.aborted) return;
|
|
1603
1603
|
this.worker?.removeEventListener("message", this.onMessage), this.worker = void 0, this.incoming.publish(-1), this.outgoing.publish(-1), this.abort.abort(), this.listeners.clear();
|
|
1604
1604
|
const A = this.cleanup;
|
|
1605
|
-
return this.cleanup = void 0,
|
|
1605
|
+
return this.cleanup = void 0, NA(A);
|
|
1606
1606
|
}
|
|
1607
1607
|
}
|
|
1608
1608
|
const rA = [
|
|
1609
1609
|
"4847c7cda81eb51b1cec18fe40b396605579fe84e17eca2760702b8a9666e4e1"
|
|
1610
1610
|
], u = Object.freeze({
|
|
1611
|
-
compiler: "
|
|
1611
|
+
compiler: "d6b8d6e4596136fc6ae451fe3b81b1be5a1829505cbc993179247c75a764ce87",
|
|
1612
1612
|
sysroot: "8745c6af23fd841fa507d0c73f6b6b8e8da1b4ec216a6339739a28b38ff7227b",
|
|
1613
1613
|
exceptions: "20986166552953de0e3ca5c1e9f341e7aec8b9ba54dcb244d0d2b2f9ca843ab4"
|
|
1614
1614
|
});
|
|
1615
|
-
function
|
|
1615
|
+
function KA(Q = "legacy") {
|
|
1616
1616
|
if (Q === "legacy") return { profile: Q, digests: u };
|
|
1617
1617
|
if (Q === "stock-certified-v1" && rA.length > 0)
|
|
1618
1618
|
return { profile: Q, digests: u };
|
|
@@ -1626,36 +1626,36 @@ class l {
|
|
|
1626
1626
|
this.#A = A, this.hashMs = g;
|
|
1627
1627
|
}
|
|
1628
1628
|
static async load(A, g, I, C = u.exceptions, B = "legacy") {
|
|
1629
|
-
const i =
|
|
1629
|
+
const i = KA(B);
|
|
1630
1630
|
if (A.length !== 2) throw new Error("Missing C++ toolchain assets");
|
|
1631
|
-
let D,
|
|
1632
|
-
const
|
|
1631
|
+
let D, N;
|
|
1632
|
+
const y = await Promise.allSettled(
|
|
1633
1633
|
A.map(async (d, v) => {
|
|
1634
1634
|
try {
|
|
1635
|
-
const
|
|
1636
|
-
if (!
|
|
1637
|
-
return v === 0 && g && typeof WebAssembly.compileStreaming == "function" && typeof
|
|
1638
|
-
})), new Uint8Array(await
|
|
1639
|
-
} catch (
|
|
1640
|
-
throw D ??= { error:
|
|
1635
|
+
const j = await fetch(d, { cache: "force-cache", signal: I });
|
|
1636
|
+
if (!j.ok) throw new Error(`Cannot load C++ toolchain (${j.status})`);
|
|
1637
|
+
return v === 0 && g && typeof WebAssembly.compileStreaming == "function" && typeof j.clone == "function" && (N = WebAssembly.compileStreaming(j.clone()).catch(() => {
|
|
1638
|
+
})), new Uint8Array(await j.arrayBuffer());
|
|
1639
|
+
} catch (j) {
|
|
1640
|
+
throw D ??= { error: j }, j;
|
|
1641
1641
|
}
|
|
1642
1642
|
})
|
|
1643
1643
|
);
|
|
1644
|
-
if (
|
|
1644
|
+
if (y[0].status === "rejected" || y[1].status === "rejected")
|
|
1645
1645
|
throw D?.error;
|
|
1646
|
-
const [U,
|
|
1647
|
-
l.ingestOwned(U,
|
|
1648
|
-
g ? (
|
|
1646
|
+
const [U, L] = [y[0].value, y[1].value], [Y, c] = await Promise.allSettled([
|
|
1647
|
+
l.ingestOwned(U, L, !1, C),
|
|
1648
|
+
g ? (N ?? Promise.resolve(void 0)).then(
|
|
1649
1649
|
(d) => d ?? WebAssembly.compile(U)
|
|
1650
1650
|
) : Promise.resolve(void 0)
|
|
1651
1651
|
]);
|
|
1652
1652
|
if (Y.status === "rejected") throw Y.reason;
|
|
1653
|
-
const
|
|
1654
|
-
if (
|
|
1653
|
+
const a = Y.value;
|
|
1654
|
+
if (a.#A.compilerHash !== i.digests.compiler || a.#A.sysrootHash !== i.digests.sysroot || a.#A.exceptionsHash !== i.digests.exceptions)
|
|
1655
1655
|
throw new Error("C++ toolchain integrity mismatch");
|
|
1656
1656
|
if (I?.aborted) throw new DOMException("Toolchain loading aborted", "AbortError");
|
|
1657
|
-
if (
|
|
1658
|
-
return
|
|
1657
|
+
if (c.status === "rejected") throw c.reason;
|
|
1658
|
+
return a.#A.stockProfile = i.profile === "stock-certified-v1", a.#A.module = c.value, a;
|
|
1659
1659
|
}
|
|
1660
1660
|
/** Captures even Buffer/subclass inputs before the first asynchronous boundary. */
|
|
1661
1661
|
static async fromBytes(A, g, I) {
|
|
@@ -1668,12 +1668,12 @@ class l {
|
|
|
1668
1668
|
);
|
|
1669
1669
|
}
|
|
1670
1670
|
static async ingestOwned(A, g, I, C) {
|
|
1671
|
-
const B = performance.now(), i = await Promise.allSettled([
|
|
1671
|
+
const B = performance.now(), i = await Promise.allSettled([FA(A), FA(g)]);
|
|
1672
1672
|
if (i[0].status === "rejected") throw i[0].reason;
|
|
1673
1673
|
if (i[1].status === "rejected") throw i[1].reason;
|
|
1674
|
-
const [D,
|
|
1674
|
+
const [D, N] = [i[0].value, i[1].value], y = I ? await WebAssembly.compile(A) : void 0;
|
|
1675
1675
|
return new l(
|
|
1676
|
-
{ compiler: A, sysroot: g, compilerHash: D, sysrootHash:
|
|
1676
|
+
{ compiler: A, sysroot: g, compilerHash: D, sysrootHash: N, exceptionsHash: C, module: y },
|
|
1677
1677
|
performance.now() - B
|
|
1678
1678
|
);
|
|
1679
1679
|
}
|
|
@@ -1700,14 +1700,14 @@ class l {
|
|
|
1700
1700
|
}
|
|
1701
1701
|
}
|
|
1702
1702
|
}
|
|
1703
|
-
async function
|
|
1703
|
+
async function FA(Q) {
|
|
1704
1704
|
const A = await crypto.subtle.digest("SHA-256", Q);
|
|
1705
1705
|
return Array.from(new Uint8Array(A), (g) => g.toString(16).padStart(2, "0")).join("");
|
|
1706
1706
|
}
|
|
1707
|
-
let _,
|
|
1708
|
-
class
|
|
1709
|
-
stdout = new
|
|
1710
|
-
stderr = new
|
|
1707
|
+
let _, m;
|
|
1708
|
+
class yA {
|
|
1709
|
+
stdout = new kA(1);
|
|
1710
|
+
stderr = new kA(2);
|
|
1711
1711
|
stdin = new q();
|
|
1712
1712
|
debugger;
|
|
1713
1713
|
lang;
|
|
@@ -1747,18 +1747,18 @@ class KA {
|
|
|
1747
1747
|
latest;
|
|
1748
1748
|
cacheValidation;
|
|
1749
1749
|
static async create(A, g = {}) {
|
|
1750
|
-
const { wasmUrl: I, ...C } = g, B = I === void 0 ? void 0 :
|
|
1751
|
-
if (
|
|
1750
|
+
const { wasmUrl: I, ...C } = g, B = I === void 0 ? void 0 : PA(I, globalThis.location?.href), i = structuredClone(C), D = B ?? null;
|
|
1751
|
+
if (m !== void 0 && m !== D)
|
|
1752
1752
|
throw new Error("The engine Wasm is already loaded from a different wasmUrl");
|
|
1753
|
-
|
|
1754
|
-
throw _ = void 0,
|
|
1753
|
+
m = D, _ ??= dA({ module_or_path: B ?? WA }).catch((y) => {
|
|
1754
|
+
throw _ = void 0, m = void 0, y;
|
|
1755
1755
|
}), await _;
|
|
1756
|
-
const
|
|
1757
|
-
if (
|
|
1758
|
-
for (const
|
|
1759
|
-
fetch(
|
|
1756
|
+
const N = new yA(A, i);
|
|
1757
|
+
if (N.wasmUrl = B, A !== "c" && typeof window < "u" && typeof fetch < "u")
|
|
1758
|
+
for (const y of EA(A))
|
|
1759
|
+
fetch(y, { cache: "force-cache" }).then((U) => U.arrayBuffer()).catch(() => {
|
|
1760
1760
|
});
|
|
1761
|
-
return
|
|
1761
|
+
return N;
|
|
1762
1762
|
}
|
|
1763
1763
|
constructor(A, g) {
|
|
1764
1764
|
const I = g.cpp;
|
|
@@ -1772,9 +1772,9 @@ class KA {
|
|
|
1772
1772
|
throw new TypeError("C++ performance options require project and account identity");
|
|
1773
1773
|
if (I.compilerLifetime !== void 0 && !["idle", "project"].includes(I.compilerLifetime))
|
|
1774
1774
|
throw new TypeError("Invalid compiler lifetime");
|
|
1775
|
-
|
|
1775
|
+
KA(I.toolchainProfile), this.scope = Object.freeze({ ...I.scope }), this.options = Object.freeze({ ...I, scope: this.scope, idleTimeoutMs: C });
|
|
1776
1776
|
}
|
|
1777
|
-
this.objects = new
|
|
1777
|
+
this.objects = new ZA(typeof I?.objectCache == "object" ? I.objectCache : {}), this.debugger = new fA(), this.lang = A;
|
|
1778
1778
|
}
|
|
1779
1779
|
/** A retained worker reuses clang, compiled once on this thread and cloned to it. */
|
|
1780
1780
|
get cacheCompilerModule() {
|
|
@@ -1860,7 +1860,7 @@ class KA {
|
|
|
1860
1860
|
/** Load compiler resources. Optional input validation never invokes Clang, links, or runs a guest. */
|
|
1861
1861
|
prepareCompiler(A) {
|
|
1862
1862
|
if (A?.validateCacheInputs !== void 0 && typeof A.validateCacheInputs != "boolean")
|
|
1863
|
-
return Promise.resolve(
|
|
1863
|
+
return Promise.resolve(S(new TypeError("Invalid compiler preparation options")));
|
|
1864
1864
|
const g = A?.validateCacheInputs === !0 && this.options?.toolchainProfile === "stock-certified-v1" && !!this.options?.objectCache && this.objects.limits.maxEntries > 0 && this.objects.limits.maxObjectBytes > 0 && this.objects.limits.maxMetadataBytes > 0 && this.objects.limits.maxEntryMetadataBytes > 0;
|
|
1865
1865
|
return this.submit(!0, !0, g);
|
|
1866
1866
|
}
|
|
@@ -1873,44 +1873,44 @@ class KA {
|
|
|
1873
1873
|
return this.submit(!0);
|
|
1874
1874
|
}
|
|
1875
1875
|
submit(A, g = !1, I = !1) {
|
|
1876
|
-
if (this.disposed) return Promise.resolve(
|
|
1876
|
+
if (this.disposed) return Promise.resolve(S(new Error("Engine is disposed")));
|
|
1877
1877
|
if (this.active || this.cancellationDraining)
|
|
1878
|
-
return Promise.resolve(
|
|
1878
|
+
return Promise.resolve(S(new Error("An engine job is already active")));
|
|
1879
1879
|
if (A && this.lang !== "c")
|
|
1880
|
-
return Promise.resolve(
|
|
1880
|
+
return Promise.resolve(S(new Error("Compile-only is supported for C/C++")));
|
|
1881
1881
|
this.cacheValidation = void 0;
|
|
1882
1882
|
const C = g && !I;
|
|
1883
1883
|
let B;
|
|
1884
1884
|
try {
|
|
1885
1885
|
const Y = C || !this.cppArtifacts ? null : { ...this.cppArtifacts };
|
|
1886
1886
|
if (Y?.cacheCertificate !== void 0) {
|
|
1887
|
-
const
|
|
1888
|
-
(typeof
|
|
1887
|
+
const c = Y.cacheCertificate;
|
|
1888
|
+
(typeof c != "string" || c.length > 1024 * 1024 || new TextEncoder().encode(c).byteLength > 1024 * 1024) && delete Y.cacheCertificate;
|
|
1889
1889
|
}
|
|
1890
1890
|
B = {
|
|
1891
1891
|
fs: C ? {} : structuredClone(this.fs),
|
|
1892
1892
|
binary_files: Object.fromEntries(
|
|
1893
|
-
Object.entries(C ? {} : this.binaryFiles).map(([
|
|
1894
|
-
|
|
1895
|
-
new Uint8Array(
|
|
1893
|
+
Object.entries(C ? {} : this.binaryFiles).map(([c, a]) => [
|
|
1894
|
+
c,
|
|
1895
|
+
new Uint8Array(a)
|
|
1896
1896
|
])
|
|
1897
1897
|
),
|
|
1898
1898
|
cpp_artifacts: structuredClone(Y)
|
|
1899
1899
|
};
|
|
1900
1900
|
} catch (Y) {
|
|
1901
|
-
return Promise.resolve(
|
|
1901
|
+
return Promise.resolve(S(Y));
|
|
1902
1902
|
}
|
|
1903
1903
|
const i = !A && this.debugger.enabled, D = A ? void 0 : this.hostDevice;
|
|
1904
1904
|
if (D !== void 0 && (typeof D != "function" || !["c", "python"].includes(this.lang)))
|
|
1905
|
-
return Promise.resolve(
|
|
1905
|
+
return Promise.resolve(S(new TypeError("Invalid host device configuration")));
|
|
1906
1906
|
clearTimeout(this.idleTimer), this.stdin[J].clear();
|
|
1907
|
-
const
|
|
1908
|
-
let
|
|
1907
|
+
const N = !!this.slot;
|
|
1908
|
+
let y;
|
|
1909
1909
|
const U = new Promise((Y) => {
|
|
1910
|
-
|
|
1910
|
+
y = Y;
|
|
1911
1911
|
});
|
|
1912
1912
|
this.promise = U;
|
|
1913
|
-
const
|
|
1913
|
+
const L = {
|
|
1914
1914
|
generation: this.generation,
|
|
1915
1915
|
scopeEpoch: this.scopeEpoch,
|
|
1916
1916
|
operationId: ++this.operationId,
|
|
@@ -1922,11 +1922,11 @@ class KA {
|
|
|
1922
1922
|
debug: i,
|
|
1923
1923
|
opener: D,
|
|
1924
1924
|
startedAt: performance.now(),
|
|
1925
|
-
resolve:
|
|
1925
|
+
resolve: y,
|
|
1926
1926
|
stats: {
|
|
1927
1927
|
operation: g ? "prepare_compiler" : A ? "compile" : "run",
|
|
1928
1928
|
workerReadyMs: 0,
|
|
1929
|
-
workerReused:
|
|
1929
|
+
workerReused: N
|
|
1930
1930
|
},
|
|
1931
1931
|
start: {
|
|
1932
1932
|
...B,
|
|
@@ -1950,15 +1950,15 @@ class KA {
|
|
|
1950
1950
|
} : null
|
|
1951
1951
|
}
|
|
1952
1952
|
};
|
|
1953
|
-
this.objects.beginBatch(), this.active =
|
|
1953
|
+
this.objects.beginBatch(), this.active = L;
|
|
1954
1954
|
try {
|
|
1955
|
-
if (this.slot || this.makeWorker(), !this.current(
|
|
1955
|
+
if (this.slot || this.makeWorker(), !this.current(L)) return U;
|
|
1956
1956
|
const Y = this.slot;
|
|
1957
|
-
this.lang === "c" && !this.toolchain && this.ensureToolchain().catch((
|
|
1958
|
-
this.current(
|
|
1959
|
-
}), this.slot.ready && this.dispatch(
|
|
1957
|
+
this.lang === "c" && !this.toolchain && this.ensureToolchain().catch((c) => {
|
|
1958
|
+
this.current(L) && this.slot === Y && this.finish(L, S(c));
|
|
1959
|
+
}), this.slot.ready && this.dispatch(L);
|
|
1960
1960
|
} catch (Y) {
|
|
1961
|
-
this.finish(
|
|
1961
|
+
this.finish(L, S(Y));
|
|
1962
1962
|
}
|
|
1963
1963
|
return U;
|
|
1964
1964
|
}
|
|
@@ -1966,60 +1966,60 @@ class KA {
|
|
|
1966
1966
|
return this.active === A && !A.settled;
|
|
1967
1967
|
}
|
|
1968
1968
|
makeWorker() {
|
|
1969
|
-
const A =
|
|
1969
|
+
const A = XA(this.wasmUrl), g = { worker: A, ready: !1, remove: () => {
|
|
1970
1970
|
} };
|
|
1971
1971
|
this.slot = g;
|
|
1972
1972
|
const I = (i) => {
|
|
1973
1973
|
if (this.slot !== g) return;
|
|
1974
|
-
const D = i.data,
|
|
1974
|
+
const D = i.data, N = this.active;
|
|
1975
1975
|
if (D.type === "ready") {
|
|
1976
1976
|
if (g.ready) return;
|
|
1977
|
-
g.ready = !0,
|
|
1977
|
+
g.ready = !0, N && this.current(N) && this.dispatch(N);
|
|
1978
1978
|
return;
|
|
1979
1979
|
}
|
|
1980
|
-
if (!(!
|
|
1980
|
+
if (!(!N || !this.current(N))) {
|
|
1981
1981
|
if (!g.ready && D.type === "error") {
|
|
1982
|
-
this.finish(
|
|
1982
|
+
this.finish(N, S(new Error(D.message)));
|
|
1983
1983
|
return;
|
|
1984
1984
|
}
|
|
1985
|
-
if (!(D.operationId !==
|
|
1985
|
+
if (!(D.operationId !== N.operationId || D.scopeEpoch !== N.scopeEpoch))
|
|
1986
1986
|
try {
|
|
1987
1987
|
if (D.type === "cpp_cache_eligibility") {
|
|
1988
|
-
if (this.options?.toolchainProfile !== "stock-certified-v1" ||
|
|
1988
|
+
if (this.options?.toolchainProfile !== "stock-certified-v1" || N.prepareOnly && !N.validateCacheInputs)
|
|
1989
1989
|
return;
|
|
1990
|
-
const
|
|
1990
|
+
const y = (L) => typeof L == "string" && /^[0-9a-f]{64}$/.test(L), U = D.eligible === !0 && y(D.certificate_sha256) && y(D.snapshot);
|
|
1991
1991
|
this.cacheValidation = {
|
|
1992
1992
|
eligible: U,
|
|
1993
|
-
certificate:
|
|
1993
|
+
certificate: y(D.certificate_sha256) ? D.certificate_sha256 : void 0,
|
|
1994
1994
|
snapshot: U ? D.snapshot : void 0,
|
|
1995
|
-
operationId:
|
|
1995
|
+
operationId: N.operationId,
|
|
1996
1996
|
reason: U ? void 0 : typeof D.reason == "string" ? D.reason.slice(0, 128) : "stock-input-validation"
|
|
1997
1997
|
};
|
|
1998
1998
|
} else if (D.type === "stop")
|
|
1999
|
-
this.finish(
|
|
1999
|
+
this.finish(N, {
|
|
2000
2000
|
type: "completed",
|
|
2001
2001
|
exitCode: D.exit_code,
|
|
2002
2002
|
timing: {
|
|
2003
|
-
totalMs: performance.now() -
|
|
2003
|
+
totalMs: performance.now() - N.startedAt,
|
|
2004
2004
|
buildMs: D.build_ms,
|
|
2005
2005
|
runMs: D.run_ms
|
|
2006
2006
|
}
|
|
2007
2007
|
});
|
|
2008
2008
|
else if (D.type === "error")
|
|
2009
|
-
this.finish(
|
|
2010
|
-
else if (D.type === "cpp_cache_object" && D.generation === this.generation &&
|
|
2009
|
+
this.finish(N, S(new Error(D.message)));
|
|
2010
|
+
else if (D.type === "cpp_cache_object" && D.generation === this.generation && N.generation === this.generation)
|
|
2011
2011
|
try {
|
|
2012
2012
|
this.objects.stage(D);
|
|
2013
2013
|
} catch {
|
|
2014
2014
|
this.objects.abandonBatch();
|
|
2015
2015
|
}
|
|
2016
|
-
else D.type === "cpp_cache_stats" && D.generation ===
|
|
2017
|
-
} catch (
|
|
2018
|
-
this.finish(
|
|
2016
|
+
else D.type === "cpp_cache_stats" && D.generation === N.generation ? N.stats.cache = D.stats : D.type === "cpp_cache_abandon" ? this.objects.abandonBatch() : D.type === "object_build_complete" ? N.publication ??= this.publishObjects(N, g) : D.type === "compiler_module_stats" && (N.stats.compilerModule = D);
|
|
2017
|
+
} catch (y) {
|
|
2018
|
+
this.finish(N, S(y));
|
|
2019
2019
|
}
|
|
2020
2020
|
}
|
|
2021
2021
|
}, C = (i) => {
|
|
2022
|
-
this.slot === g && (this.clearCaches(), this.active ? this.finish(this.active,
|
|
2022
|
+
this.slot === g && (this.clearCaches(), this.active ? this.finish(this.active, S(i.error ?? new Error(i.message))) : this.retireWorker());
|
|
2023
2023
|
}, B = () => C({ message: "Unreadable execution worker message" });
|
|
2024
2024
|
this.debugger[J].attach(A), A.addEventListener("message", I), A.addEventListener("error", C), A.addEventListener("messageerror", B), g.remove = () => {
|
|
2025
2025
|
A.removeEventListener("message", I), A.removeEventListener("error", C), A.removeEventListener("messageerror", B), this.debugger[J].detach(A);
|
|
@@ -2063,7 +2063,7 @@ class KA {
|
|
|
2063
2063
|
EA("c"),
|
|
2064
2064
|
this.cacheCompilerModule,
|
|
2065
2065
|
this.toolchainController.signal,
|
|
2066
|
-
|
|
2066
|
+
hA(),
|
|
2067
2067
|
this.options?.toolchainProfile
|
|
2068
2068
|
);
|
|
2069
2069
|
return this.toolchainLoading = A, this.initializing.add(A), A.then(
|
|
@@ -2078,10 +2078,10 @@ class KA {
|
|
|
2078
2078
|
if (!(!this.current(A) || !g))
|
|
2079
2079
|
try {
|
|
2080
2080
|
if (this.lang === "c") {
|
|
2081
|
-
const B = this.scopeEpoch, i = this.generation, D = this.ensureToolchain(),
|
|
2081
|
+
const B = this.scopeEpoch, i = this.generation, D = this.ensureToolchain(), N = this.toolchain ?? await D;
|
|
2082
2082
|
if (!this.current(A) || this.slot !== g || B !== this.scopeEpoch) return;
|
|
2083
|
-
const
|
|
2084
|
-
if (
|
|
2083
|
+
const y = A.start.cpp_artifacts?.requiredToolchain;
|
|
2084
|
+
if (y && !N.matchesExpectation(y)) {
|
|
2085
2085
|
this.finish(A, {
|
|
2086
2086
|
type: "error",
|
|
2087
2087
|
error: {
|
|
@@ -2091,22 +2091,22 @@ class KA {
|
|
|
2091
2091
|
});
|
|
2092
2092
|
return;
|
|
2093
2093
|
}
|
|
2094
|
-
i === this.generation && (this.toolchainIdentity && this.toolchainIdentity !==
|
|
2094
|
+
i === this.generation && (this.toolchainIdentity && this.toolchainIdentity !== N.identity && (this.objects.clear(), A.start.cpp_cache = null), this.toolchain !== N && (this.toolchainIngestions++, this.toolchainHashCount += N.hashCount, this.toolchainHashMs += N.hashMs), this.toolchainIdentity = N.identity, this.toolchain = N, this.toolchainLoading === D && (this.toolchainLoading = void 0)), g.toolchain !== N && (this.compilerModuleCloned = N.configure(g.worker, {
|
|
2095
2095
|
type: "configure_cpp",
|
|
2096
2096
|
cacheCompilerModule: this.cacheCompilerModule
|
|
2097
|
-
}), g.toolchain =
|
|
2097
|
+
}), g.toolchain = N);
|
|
2098
2098
|
}
|
|
2099
2099
|
if (!this.current(A) || this.slot !== g) return;
|
|
2100
2100
|
const I = g.worker;
|
|
2101
2101
|
A.stats.workerReadyMs = performance.now() - A.startedAt;
|
|
2102
2102
|
const C = (B) => this.current(A) && B.scopeEpoch === A.scopeEpoch && B.operationId === A.operationId;
|
|
2103
2103
|
if (this.stdout[J].attach(I, C), this.stderr[J].attach(I, C), A.prepareOnly || this.debugger[J].beginRun(), A.opener) {
|
|
2104
|
-
if (A.device = new
|
|
2104
|
+
if (A.device = new mA((B) => this.finish(A, S(B))), A.device.attach(I), A.device.open(A.opener), !this.current(A)) return;
|
|
2105
2105
|
A.start.host_device = A.device.workerStart;
|
|
2106
2106
|
}
|
|
2107
2107
|
this.current(A) && (I.postMessage(A.start), A.start.fs = {}, A.start.binary_files = {}, A.start.cpp_artifacts = null, A.start.cpp_cache = null);
|
|
2108
2108
|
} catch (I) {
|
|
2109
|
-
this.current(A) && (this.toolchainLoading = void 0, this.finish(A,
|
|
2109
|
+
this.current(A) && (this.toolchainLoading = void 0, this.finish(A, S(I)));
|
|
2110
2110
|
}
|
|
2111
2111
|
}
|
|
2112
2112
|
finish(A, g) {
|
|
@@ -2115,7 +2115,7 @@ class KA {
|
|
|
2115
2115
|
const I = this.slot?.worker;
|
|
2116
2116
|
I && (this.stdout[J].detach(I), this.stderr[J].detach(I));
|
|
2117
2117
|
const C = A.device?.close();
|
|
2118
|
-
C && (g =
|
|
2118
|
+
C && (g = S(C));
|
|
2119
2119
|
const B = g.type === "completed" && A.generation === this.generation && !this.disposed, i = B && g.type === "completed" && g.exitCode === 0;
|
|
2120
2120
|
if (A.generation === this.generation)
|
|
2121
2121
|
for (const D of A.stats.cache?.invalid_sources ?? []) this.objects.delete(D);
|
|
@@ -2131,7 +2131,7 @@ class KA {
|
|
|
2131
2131
|
A && (this.slot = void 0, A.remove(), this.stdout[J].detach(A.worker), this.stderr[J].detach(A.worker), A.worker.onerror = (g) => g.preventDefault(), A.worker.terminate(), this.retirements++);
|
|
2132
2132
|
}
|
|
2133
2133
|
}
|
|
2134
|
-
class
|
|
2134
|
+
class kA extends MA {
|
|
2135
2135
|
constructor(A) {
|
|
2136
2136
|
super(), this.mode = A, this.callback = ((g) => {
|
|
2137
2137
|
const I = g.data;
|
|
@@ -2195,23 +2195,23 @@ class q {
|
|
|
2195
2195
|
const i = this.generation;
|
|
2196
2196
|
for (; B < A.length && i === this.generation; ) {
|
|
2197
2197
|
const D = Atomics.load(this.indices, I);
|
|
2198
|
-
let
|
|
2199
|
-
|
|
2200
|
-
const
|
|
2201
|
-
if (
|
|
2198
|
+
let N = Atomics.load(this.indices, C);
|
|
2199
|
+
N === g - 1 && D > 0 && (N = 0);
|
|
2200
|
+
const y = D <= N ? g - N - 1 : D - N - 1;
|
|
2201
|
+
if (y === 0) {
|
|
2202
2202
|
await Atomics.waitAsync(this.indices, I, D).value;
|
|
2203
2203
|
continue;
|
|
2204
2204
|
}
|
|
2205
|
-
const U = Math.min(A.length - B,
|
|
2206
|
-
this.data.set(A.subarray(B, B + U),
|
|
2205
|
+
const U = Math.min(A.length - B, y);
|
|
2206
|
+
this.data.set(A.subarray(B, B + U), N), Atomics.store(this.indices, C, (N + U) % g), Atomics.notify(this.indices, C), B += U;
|
|
2207
2207
|
}
|
|
2208
2208
|
}
|
|
2209
2209
|
}
|
|
2210
2210
|
export {
|
|
2211
2211
|
zA as Artifact,
|
|
2212
2212
|
fA as Debugger,
|
|
2213
|
-
|
|
2213
|
+
yA as Engine,
|
|
2214
2214
|
nA as HOST_DEVICE_PATH,
|
|
2215
2215
|
q as Stdin,
|
|
2216
|
-
|
|
2216
|
+
kA as Stdout
|
|
2217
2217
|
};
|