wao 0.10.1 → 0.10.2

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/cjs/armem-base.js CHANGED
@@ -6,9 +6,11 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports["default"] = void 0;
8
8
  var _arweave = _interopRequireDefault(require("arweave"));
9
+ var _arbundles = require("arbundles");
9
10
  var _compress = require("./compress.js");
10
11
  var _ramda = require("ramda");
11
12
  var _utils = require("./utils.js");
13
+ var _base64url = _interopRequireDefault(require("base64url"));
12
14
  var _Arweave$default;
13
15
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
14
16
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
@@ -55,6 +57,32 @@ var ArMemBase = exports["default"] = /*#__PURE__*/function () {
55
57
  this.SU_URL = SU_URL;
56
58
  }
57
59
  return _createClass(ArMemBase, [{
60
+ key: "owner",
61
+ value: function () {
62
+ var _owner = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(di) {
63
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
64
+ while (1) switch (_context.prev = _context.next) {
65
+ case 0:
66
+ _context.t0 = _base64url["default"];
67
+ _context.t1 = Buffer;
68
+ _context.next = 4;
69
+ return crypto.subtle.digest("SHA-256", di.rawOwner);
70
+ case 4:
71
+ _context.t2 = _context.sent;
72
+ _context.t3 = _context.t1.from.call(_context.t1, _context.t2);
73
+ return _context.abrupt("return", _context.t0.encode.call(_context.t0, _context.t3));
74
+ case 7:
75
+ case "end":
76
+ return _context.stop();
77
+ }
78
+ }, _callee);
79
+ }));
80
+ function owner(_x) {
81
+ return _owner.apply(this, arguments);
82
+ }
83
+ return owner;
84
+ }()
85
+ }, {
58
86
  key: "getAnchor",
59
87
  value: function getAnchor() {
60
88
  return this.blocks.length === 0 ? "Do_Uc2Sju_ffp6Ev0AnLVdPtot15rvMjP-a9VVaA5fM" : (0, _ramda.last)(this.blockmap[(0, _ramda.last)(this.blocks)].txs);
@@ -62,28 +90,28 @@ var ArMemBase = exports["default"] = /*#__PURE__*/function () {
62
90
  }, {
63
91
  key: "get",
64
92
  value: function () {
65
- var _get = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(key, field) {
93
+ var _get = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(key, field) {
66
94
  var _this$key;
67
- return _regeneratorRuntime().wrap(function _callee$(_context) {
68
- while (1) switch (_context.prev = _context.next) {
95
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
96
+ while (1) switch (_context2.prev = _context2.next) {
69
97
  case 0:
70
- _context.next = 2;
98
+ _context2.next = 2;
71
99
  return this.init();
72
100
  case 2:
73
101
  if (field) {
74
- _context.next = 4;
102
+ _context2.next = 4;
75
103
  break;
76
104
  }
77
- return _context.abrupt("return", this[key]);
105
+ return _context2.abrupt("return", this[key]);
78
106
  case 4:
79
- return _context.abrupt("return", (_this$key = this[key]) === null || _this$key === void 0 ? void 0 : _this$key[field]);
107
+ return _context2.abrupt("return", (_this$key = this[key]) === null || _this$key === void 0 ? void 0 : _this$key[field]);
80
108
  case 5:
81
109
  case "end":
82
- return _context.stop();
110
+ return _context2.stop();
83
111
  }
84
- }, _callee, this);
112
+ }, _callee2, this);
85
113
  }));
86
- function get(_x, _x2) {
114
+ function get(_x2, _x3) {
87
115
  return _get.apply(this, arguments);
88
116
  }
89
117
  return get;
@@ -91,37 +119,37 @@ var ArMemBase = exports["default"] = /*#__PURE__*/function () {
91
119
  }, {
92
120
  key: "set",
93
121
  value: function () {
94
- var _set = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(val, key, field) {
122
+ var _set = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(val, key, field) {
95
123
  var _this$key2, memory;
96
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
97
- while (1) switch (_context2.prev = _context2.next) {
124
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
125
+ while (1) switch (_context3.prev = _context3.next) {
98
126
  case 0:
99
- _context2.next = 2;
127
+ _context3.next = 2;
100
128
  return this.init();
101
129
  case 2:
102
130
  if (field) {
103
- _context2.next = 9;
131
+ _context3.next = 9;
104
132
  break;
105
133
  }
106
134
  this[key] = val;
107
135
  if (!this.db) {
108
- _context2.next = 7;
136
+ _context3.next = 7;
109
137
  break;
110
138
  }
111
- _context2.next = 7;
139
+ _context3.next = 7;
112
140
  return this.db.put("".concat(key), this[key]);
113
141
  case 7:
114
- _context2.next = 21;
142
+ _context3.next = 21;
115
143
  break;
116
144
  case 9:
117
145
  (_this$key2 = this[key]) !== null && _this$key2 !== void 0 ? _this$key2 : this[key] = {};
118
146
  this[key][field] = val;
119
147
  if (!this.db) {
120
- _context2.next = 21;
148
+ _context3.next = 21;
121
149
  break;
122
150
  }
123
151
  if (!(key === "env")) {
124
- _context2.next = 19;
152
+ _context3.next = 19;
125
153
  break;
126
154
  }
127
155
  memory = val.memory;
@@ -130,21 +158,21 @@ var ArMemBase = exports["default"] = /*#__PURE__*/function () {
130
158
  } catch (e) {
131
159
  memory = (0, _compress.compress)(val.memory);
132
160
  }
133
- _context2.next = 17;
161
+ _context3.next = 17;
134
162
  return this.db.put("".concat(key, ".").concat(field), (0, _ramda.assoc)("memory", memory, this[key][field]));
135
163
  case 17:
136
- _context2.next = 21;
164
+ _context3.next = 21;
137
165
  break;
138
166
  case 19:
139
- _context2.next = 21;
167
+ _context3.next = 21;
140
168
  return this.db.put("".concat(key, ".").concat(field), this[key][field]);
141
169
  case 21:
142
170
  case "end":
143
- return _context2.stop();
171
+ return _context3.stop();
144
172
  }
145
- }, _callee2, this);
173
+ }, _callee3, this);
146
174
  }));
147
- function set(_x3, _x4, _x5) {
175
+ function set(_x4, _x5, _x6) {
148
176
  return _set.apply(this, arguments);
149
177
  }
150
178
  return set;
@@ -152,9 +180,9 @@ var ArMemBase = exports["default"] = /*#__PURE__*/function () {
152
180
  }, {
153
181
  key: "initSync",
154
182
  value: function initSync() {
183
+ this.items = {};
155
184
  this.addrmap = {};
156
185
  this.txs = {};
157
- this.jwks = {};
158
186
  this.blocks = [];
159
187
  this.blockmap = {};
160
188
  this.env = {};
@@ -231,30 +259,30 @@ var ArMemBase = exports["default"] = /*#__PURE__*/function () {
231
259
  }, {
232
260
  key: "putAll",
233
261
  value: function () {
234
- var _putAll = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(key) {
262
+ var _putAll = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(key) {
235
263
  var k;
236
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
237
- while (1) switch (_context3.prev = _context3.next) {
264
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
265
+ while (1) switch (_context4.prev = _context4.next) {
238
266
  case 0:
239
- _context3.t0 = _regeneratorRuntime().keys(this[key]);
267
+ _context4.t0 = _regeneratorRuntime().keys(this[key]);
240
268
  case 1:
241
- if ((_context3.t1 = _context3.t0()).done) {
242
- _context3.next = 7;
269
+ if ((_context4.t1 = _context4.t0()).done) {
270
+ _context4.next = 7;
243
271
  break;
244
272
  }
245
- k = _context3.t1.value;
246
- _context3.next = 5;
273
+ k = _context4.t1.value;
274
+ _context4.next = 5;
247
275
  return this.set(this[key][k], key, k);
248
276
  case 5:
249
- _context3.next = 1;
277
+ _context4.next = 1;
250
278
  break;
251
279
  case 7:
252
280
  case "end":
253
- return _context3.stop();
281
+ return _context4.stop();
254
282
  }
255
- }, _callee3, this);
283
+ }, _callee4, this);
256
284
  }));
257
- function putAll(_x6) {
285
+ function putAll(_x7) {
258
286
  return _putAll.apply(this, arguments);
259
287
  }
260
288
  return putAll;
@@ -262,85 +290,85 @@ var ArMemBase = exports["default"] = /*#__PURE__*/function () {
262
290
  }, {
263
291
  key: "init",
264
292
  value: function () {
265
- var _init = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
293
+ var _init = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
266
294
  var _i, _arr, v, _i2, _arr2, _this$_v, _v, items, _iterator, _step, v2, key, field, v3, _i3, _arr3, _v2, _i4, _arr4, _v3;
267
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
268
- while (1) switch (_context4.prev = _context4.next) {
295
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
296
+ while (1) switch (_context5.prev = _context5.next) {
269
297
  case 0:
270
298
  if (!this.isInit) {
271
- _context4.next = 2;
299
+ _context5.next = 2;
272
300
  break;
273
301
  }
274
- return _context4.abrupt("return");
302
+ return _context5.abrupt("return");
275
303
  case 2:
276
304
  this.isInit = true;
277
305
  if (!(typeof this._init === "function")) {
278
- _context4.next = 6;
306
+ _context5.next = 6;
279
307
  break;
280
308
  }
281
- _context4.next = 6;
309
+ _context5.next = 6;
282
310
  return this._init();
283
311
  case 6:
284
312
  this.compressor = new this.Compressor();
285
313
  this.decompressor = new this.Decompressor();
286
314
  if (!this.db) {
287
- _context4.next = 59;
315
+ _context5.next = 59;
288
316
  break;
289
317
  }
290
318
  _i = 0, _arr = ["height", "blocks"];
291
319
  case 10:
292
320
  if (!(_i < _arr.length)) {
293
- _context4.next = 18;
321
+ _context5.next = 18;
294
322
  break;
295
323
  }
296
324
  v = _arr[_i];
297
- _context4.next = 14;
325
+ _context5.next = 14;
298
326
  return this.get(v);
299
327
  case 14:
300
- this[v] = _context4.sent;
328
+ this[v] = _context5.sent;
301
329
  case 15:
302
330
  _i++;
303
- _context4.next = 10;
331
+ _context5.next = 10;
304
332
  break;
305
333
  case 18:
306
- _i2 = 0, _arr2 = ["txs", "jwks", "env", "modules", "wasms", "addrmap", "blockmap", "modmap", "msgs"];
334
+ _i2 = 0, _arr2 = ["items", "txs", "env", "modules", "wasms", "addrmap", "blockmap", "modmap", "msgs"];
307
335
  case 19:
308
336
  if (!(_i2 < _arr2.length)) {
309
- _context4.next = 57;
337
+ _context5.next = 57;
310
338
  break;
311
339
  }
312
340
  _v = _arr2[_i2];
313
341
  (_this$_v = this[_v]) !== null && _this$_v !== void 0 ? _this$_v : this[_v] = {};
314
- _context4.next = 24;
342
+ _context5.next = 24;
315
343
  return this.db.getKeys({
316
344
  start: _v,
317
345
  end: _v + "a"
318
346
  });
319
347
  case 24:
320
- items = _context4.sent;
348
+ items = _context5.sent;
321
349
  _iterator = _createForOfIteratorHelper(items || []);
322
- _context4.prev = 26;
350
+ _context5.prev = 26;
323
351
  _iterator.s();
324
352
  case 28:
325
353
  if ((_step = _iterator.n()).done) {
326
- _context4.next = 46;
354
+ _context5.next = 46;
327
355
  break;
328
356
  }
329
357
  v2 = _step.value;
330
358
  key = v2.split(".")[0];
331
359
  field = v2.split(".")[1];
332
360
  if (!(key === _v)) {
333
- _context4.next = 44;
361
+ _context5.next = 44;
334
362
  break;
335
363
  }
336
364
  if (!key.match(/^env/)) {
337
- _context4.next = 41;
365
+ _context5.next = 41;
338
366
  break;
339
367
  }
340
- _context4.next = 36;
368
+ _context5.next = 36;
341
369
  return this.db.get(v2);
342
370
  case 36:
343
- v3 = _context4.sent;
371
+ v3 = _context5.sent;
344
372
  if ((0, _ramda.is)(Array, v3.memory)) {
345
373
  try {
346
374
  v3.memory = this.decompressor.decompress(v3.memory);
@@ -349,138 +377,243 @@ var ArMemBase = exports["default"] = /*#__PURE__*/function () {
349
377
  }
350
378
  }
351
379
  this[_v][field] = v3;
352
- _context4.next = 44;
380
+ _context5.next = 44;
353
381
  break;
354
382
  case 41:
355
- _context4.next = 43;
383
+ _context5.next = 43;
356
384
  return this.db.get(v2);
357
385
  case 43:
358
- this[_v][field] = _context4.sent;
386
+ this[_v][field] = _context5.sent;
359
387
  case 44:
360
- _context4.next = 28;
388
+ _context5.next = 28;
361
389
  break;
362
390
  case 46:
363
- _context4.next = 51;
391
+ _context5.next = 51;
364
392
  break;
365
393
  case 48:
366
- _context4.prev = 48;
367
- _context4.t0 = _context4["catch"](26);
368
- _iterator.e(_context4.t0);
394
+ _context5.prev = 48;
395
+ _context5.t0 = _context5["catch"](26);
396
+ _iterator.e(_context5.t0);
369
397
  case 51:
370
- _context4.prev = 51;
398
+ _context5.prev = 51;
371
399
  _iterator.f();
372
- return _context4.finish(51);
400
+ return _context5.finish(51);
373
401
  case 54:
374
402
  _i2++;
375
- _context4.next = 19;
403
+ _context5.next = 19;
376
404
  break;
377
405
  case 57:
378
- _context4.next = 75;
406
+ _context5.next = 75;
379
407
  break;
380
408
  case 59:
381
409
  _i3 = 0, _arr3 = ["height", "blocks"];
382
410
  case 60:
383
411
  if (!(_i3 < _arr3.length)) {
384
- _context4.next = 67;
412
+ _context5.next = 67;
385
413
  break;
386
414
  }
387
415
  _v2 = _arr3[_i3];
388
- _context4.next = 64;
416
+ _context5.next = 64;
389
417
  return this.set(this[_v2], _v2);
390
418
  case 64:
391
419
  _i3++;
392
- _context4.next = 60;
420
+ _context5.next = 60;
393
421
  break;
394
422
  case 67:
395
423
  _i4 = 0, _arr4 = ["modules", "wasms", "addrmap", "blockmap"];
396
424
  case 68:
397
425
  if (!(_i4 < _arr4.length)) {
398
- _context4.next = 75;
426
+ _context5.next = 75;
399
427
  break;
400
428
  }
401
429
  _v3 = _arr4[_i4];
402
- _context4.next = 72;
430
+ _context5.next = 72;
403
431
  return this.putAll(_v3);
404
432
  case 72:
405
433
  _i4++;
406
- _context4.next = 68;
434
+ _context5.next = 68;
407
435
  break;
408
436
  case 75:
409
437
  case "end":
410
- return _context4.stop();
438
+ return _context5.stop();
411
439
  }
412
- }, _callee4, this, [[26, 48, 51, 54]]);
440
+ }, _callee5, this, [[26, 48, 51, 54]]);
413
441
  }));
414
442
  function init() {
415
443
  return _init.apply(this, arguments);
416
444
  }
417
445
  return init;
418
446
  }()
447
+ }, {
448
+ key: "getTx",
449
+ value: function () {
450
+ var _getTx = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(id) {
451
+ var tx, bundle, _iterator2, _step2, di, data, data_size, data_type, _iterator3, _step3, t, owner;
452
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
453
+ while (1) switch (_context6.prev = _context6.next) {
454
+ case 0:
455
+ tx = this.txs[id];
456
+ if (!tx.bundle) {
457
+ _context6.next = 44;
458
+ break;
459
+ }
460
+ _context6.prev = 2;
461
+ bundle = new _arbundles.Bundle(this.txs[tx.bundle].data);
462
+ _iterator2 = _createForOfIteratorHelper(bundle.items);
463
+ _context6.prev = 5;
464
+ _iterator2.s();
465
+ case 7:
466
+ if ((_step2 = _iterator2.n()).done) {
467
+ _context6.next = 32;
468
+ break;
469
+ }
470
+ di = _step2.value;
471
+ if (!(id === di.id)) {
472
+ _context6.next = 30;
473
+ break;
474
+ }
475
+ data = di.data;
476
+ data_size = Buffer.byteLength(di.rawData).toString();
477
+ data_type = "";
478
+ _iterator3 = _createForOfIteratorHelper(di.tags);
479
+ try {
480
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
481
+ t = _step3.value;
482
+ if (t.name === "Content-Type") data_type = t.value;
483
+ }
484
+ } catch (err) {
485
+ _iterator3.e(err);
486
+ } finally {
487
+ _iterator3.f();
488
+ }
489
+ _context6.next = 17;
490
+ return this.owner(di);
491
+ case 17:
492
+ owner = _context6.sent;
493
+ _context6.t0 = {
494
+ size: data_size,
495
+ type: data_type
496
+ };
497
+ _context6.t1 = di.anchor;
498
+ _context6.t2 = di.signature;
499
+ _context6.t3 = di.target;
500
+ _context6.next = 24;
501
+ return di.id;
502
+ case 24:
503
+ _context6.t4 = _context6.sent;
504
+ _context6.t5 = di;
505
+ _context6.t6 = owner;
506
+ _context6.t7 = di.tags;
507
+ _context6.t8 = data;
508
+ tx = {
509
+ _data: _context6.t0,
510
+ anchor: _context6.t1,
511
+ signature: _context6.t2,
512
+ recipient: _context6.t3,
513
+ id: _context6.t4,
514
+ item: _context6.t5,
515
+ owner: _context6.t6,
516
+ tags: _context6.t7,
517
+ data: _context6.t8
518
+ };
519
+ case 30:
520
+ _context6.next = 7;
521
+ break;
522
+ case 32:
523
+ _context6.next = 37;
524
+ break;
525
+ case 34:
526
+ _context6.prev = 34;
527
+ _context6.t9 = _context6["catch"](5);
528
+ _iterator2.e(_context6.t9);
529
+ case 37:
530
+ _context6.prev = 37;
531
+ _iterator2.f();
532
+ return _context6.finish(37);
533
+ case 40:
534
+ _context6.next = 44;
535
+ break;
536
+ case 42:
537
+ _context6.prev = 42;
538
+ _context6.t10 = _context6["catch"](2);
539
+ case 44:
540
+ return _context6.abrupt("return", tx);
541
+ case 45:
542
+ case "end":
543
+ return _context6.stop();
544
+ }
545
+ }, _callee6, this, [[2, 42], [5, 34, 37, 40]]);
546
+ }));
547
+ function getTx(_x8) {
548
+ return _getTx.apply(this, arguments);
549
+ }
550
+ return getTx;
551
+ }()
419
552
  }, {
420
553
  key: "getWasm",
421
554
  value: function () {
422
- var _getWasm = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(module) {
555
+ var _getWasm = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(module) {
423
556
  var _format;
424
557
  var mod, format, _wasm, wasm, tx;
425
- return _regeneratorRuntime().wrap(function _callee5$(_context5) {
426
- while (1) switch (_context5.prev = _context5.next) {
558
+ return _regeneratorRuntime().wrap(function _callee7$(_context7) {
559
+ while (1) switch (_context7.prev = _context7.next) {
427
560
  case 0:
428
561
  mod = module !== null && module !== void 0 ? module : this.modules.aos2_0_1;
429
562
  if (mod) {
430
- _context5.next = 3;
563
+ _context7.next = 3;
431
564
  break;
432
565
  }
433
566
  throw Error("module not found");
434
567
  case 3:
435
568
  format = null;
436
- _context5.next = 6;
569
+ _context7.next = 6;
437
570
  return this.wasms[mod];
438
571
  case 6:
439
- _wasm = _context5.sent;
572
+ _wasm = _context7.sent;
440
573
  wasm = _wasm === null || _wasm === void 0 ? void 0 : _wasm.data;
441
574
  if (wasm) {
442
- _context5.next = 22;
575
+ _context7.next = 22;
443
576
  break;
444
577
  }
445
578
  if (!(_wasm !== null && _wasm !== void 0 && _wasm.file)) {
446
- _context5.next = 16;
579
+ _context7.next = 16;
447
580
  break;
448
581
  }
449
- _context5.next = 12;
582
+ _context7.next = 12;
450
583
  return this._getWasm(this.wasms[mod].file);
451
584
  case 12:
452
- wasm = _context5.sent;
585
+ wasm = _context7.sent;
453
586
  format = _wasm.format;
454
- _context5.next = 20;
587
+ _context7.next = 20;
455
588
  break;
456
589
  case 16:
457
- _context5.next = 18;
458
- return this.get("txs", mod);
590
+ _context7.next = 18;
591
+ return this.getTx(mod);
459
592
  case 18:
460
- tx = _context5.sent;
593
+ tx = _context7.sent;
461
594
  if (tx) {
462
595
  wasm = Buffer.from(tx.data, "base64");
463
596
  format = (0, _utils.tags)(tx.tags)["Module-Format"];
464
597
  }
465
598
  case 20:
466
- _context5.next = 23;
599
+ _context7.next = 23;
467
600
  break;
468
601
  case 22:
469
602
  format = _wasm.format;
470
603
  case 23:
471
604
  (_format = format) !== null && _format !== void 0 ? _format : format = "wasm64-unknown-emscripten-draft_2024_02_15";
472
- return _context5.abrupt("return", {
605
+ return _context7.abrupt("return", {
473
606
  format: format,
474
607
  mod: mod,
475
608
  wasm: wasm
476
609
  });
477
610
  case 25:
478
611
  case "end":
479
- return _context5.stop();
612
+ return _context7.stop();
480
613
  }
481
- }, _callee5, this);
614
+ }, _callee7, this);
482
615
  }));
483
- function getWasm(_x7) {
616
+ function getWasm(_x9) {
484
617
  return _getWasm.apply(this, arguments);
485
618
  }
486
619
  return getWasm;