@cosmonic-labs/openapi2mcp 0.10.0 → 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.
Files changed (95) hide show
  1. package/dist/interfaces/wasi-cli-environment.d.ts +1 -1
  2. package/dist/interfaces/wasi-cli-exit.d.ts +1 -1
  3. package/dist/interfaces/wasi-cli-stderr.d.ts +1 -1
  4. package/dist/interfaces/wasi-cli-stdin.d.ts +1 -1
  5. package/dist/interfaces/wasi-cli-stdout.d.ts +1 -1
  6. package/dist/interfaces/wasi-cli-terminal-input.d.ts +1 -1
  7. package/dist/interfaces/wasi-cli-terminal-output.d.ts +1 -1
  8. package/dist/interfaces/wasi-cli-terminal-stderr.d.ts +1 -1
  9. package/dist/interfaces/wasi-cli-terminal-stdin.d.ts +1 -1
  10. package/dist/interfaces/wasi-cli-terminal-stdout.d.ts +1 -1
  11. package/dist/interfaces/wasi-clocks-monotonic-clock.d.ts +4 -0
  12. package/dist/interfaces/wasi-clocks-wall-clock.d.ts +1 -1
  13. package/dist/interfaces/wasi-filesystem-preopens.d.ts +1 -1
  14. package/dist/interfaces/wasi-filesystem-types.d.ts +1 -1
  15. package/dist/interfaces/wasi-io-error.d.ts +1 -1
  16. package/dist/interfaces/wasi-io-poll.d.ts +2 -1
  17. package/dist/interfaces/wasi-io-streams.d.ts +2 -2
  18. package/dist/interfaces/wasi-random-insecure-seed.d.ts +1 -1
  19. package/dist/openapi2mcp.core.wasm +0 -0
  20. package/dist/openapi2mcp.d.ts +18 -17
  21. package/dist/openapi2mcp.js +655 -359
  22. package/node_modules/@bytecodealliance/preview2-shim/LICENSE +220 -0
  23. package/node_modules/@bytecodealliance/preview2-shim/README.md +113 -0
  24. package/node_modules/@bytecodealliance/preview2-shim/lib/browser/cli.js +135 -0
  25. package/node_modules/@bytecodealliance/preview2-shim/lib/browser/clocks.js +39 -0
  26. package/node_modules/@bytecodealliance/preview2-shim/lib/browser/config.js +9 -0
  27. package/node_modules/@bytecodealliance/preview2-shim/lib/browser/environment.js +29 -0
  28. package/node_modules/@bytecodealliance/preview2-shim/lib/browser/filesystem.js +485 -0
  29. package/node_modules/@bytecodealliance/preview2-shim/lib/browser/http.js +707 -0
  30. package/node_modules/@bytecodealliance/preview2-shim/lib/browser/index.js +9 -0
  31. package/node_modules/@bytecodealliance/preview2-shim/lib/browser/io.js +262 -0
  32. package/node_modules/@bytecodealliance/preview2-shim/lib/browser/random.js +56 -0
  33. package/node_modules/@bytecodealliance/preview2-shim/lib/browser/sockets.js +88 -0
  34. package/node_modules/@bytecodealliance/preview2-shim/lib/common/instantiation.js +253 -0
  35. package/node_modules/@bytecodealliance/preview2-shim/lib/io/calls.js +128 -0
  36. package/node_modules/@bytecodealliance/preview2-shim/lib/io/worker-http.js +206 -0
  37. package/node_modules/@bytecodealliance/preview2-shim/lib/io/worker-io.js +468 -0
  38. package/node_modules/@bytecodealliance/preview2-shim/lib/io/worker-socket-tcp.js +331 -0
  39. package/node_modules/@bytecodealliance/preview2-shim/lib/io/worker-socket-udp.js +587 -0
  40. package/node_modules/@bytecodealliance/preview2-shim/lib/io/worker-sockets.js +364 -0
  41. package/node_modules/@bytecodealliance/preview2-shim/lib/io/worker-thread.js +1051 -0
  42. package/node_modules/@bytecodealliance/preview2-shim/lib/nodejs/cli.js +109 -0
  43. package/node_modules/@bytecodealliance/preview2-shim/lib/nodejs/clocks.js +67 -0
  44. package/node_modules/@bytecodealliance/preview2-shim/lib/nodejs/filesystem.js +829 -0
  45. package/node_modules/@bytecodealliance/preview2-shim/lib/nodejs/http.js +764 -0
  46. package/node_modules/@bytecodealliance/preview2-shim/lib/nodejs/index.js +9 -0
  47. package/node_modules/@bytecodealliance/preview2-shim/lib/nodejs/io.js +1 -0
  48. package/node_modules/@bytecodealliance/preview2-shim/lib/nodejs/random.js +49 -0
  49. package/node_modules/@bytecodealliance/preview2-shim/lib/nodejs/sockets.js +565 -0
  50. package/node_modules/@bytecodealliance/preview2-shim/lib/synckit/index.js +127 -0
  51. package/node_modules/@bytecodealliance/preview2-shim/package.json +65 -0
  52. package/node_modules/@bytecodealliance/preview2-shim/types/cli.d.ts +11 -0
  53. package/node_modules/@bytecodealliance/preview2-shim/types/clocks.d.ts +2 -0
  54. package/node_modules/@bytecodealliance/preview2-shim/types/filesystem.d.ts +29 -0
  55. package/node_modules/@bytecodealliance/preview2-shim/types/http.d.ts +3 -0
  56. package/node_modules/@bytecodealliance/preview2-shim/types/index.d.ts +6 -0
  57. package/node_modules/@bytecodealliance/preview2-shim/types/instantiation.d.ts +199 -0
  58. package/node_modules/@bytecodealliance/preview2-shim/types/interfaces/wasi-cli-environment.d.ts +21 -0
  59. package/node_modules/@bytecodealliance/preview2-shim/types/interfaces/wasi-cli-exit.d.ts +6 -0
  60. package/node_modules/@bytecodealliance/preview2-shim/types/interfaces/wasi-cli-run.d.ts +5 -0
  61. package/node_modules/@bytecodealliance/preview2-shim/types/interfaces/wasi-cli-stderr.d.ts +3 -0
  62. package/node_modules/@bytecodealliance/preview2-shim/types/interfaces/wasi-cli-stdin.d.ts +3 -0
  63. package/node_modules/@bytecodealliance/preview2-shim/types/interfaces/wasi-cli-stdout.d.ts +3 -0
  64. package/node_modules/@bytecodealliance/preview2-shim/types/interfaces/wasi-cli-terminal-input.d.ts +8 -0
  65. package/node_modules/@bytecodealliance/preview2-shim/types/interfaces/wasi-cli-terminal-output.d.ts +8 -0
  66. package/node_modules/@bytecodealliance/preview2-shim/types/interfaces/wasi-cli-terminal-stderr.d.ts +7 -0
  67. package/node_modules/@bytecodealliance/preview2-shim/types/interfaces/wasi-cli-terminal-stdin.d.ts +7 -0
  68. package/node_modules/@bytecodealliance/preview2-shim/types/interfaces/wasi-cli-terminal-stdout.d.ts +7 -0
  69. package/node_modules/@bytecodealliance/preview2-shim/types/interfaces/wasi-clocks-monotonic-clock.d.ts +34 -0
  70. package/node_modules/@bytecodealliance/preview2-shim/types/interfaces/wasi-clocks-wall-clock.d.ts +30 -0
  71. package/node_modules/@bytecodealliance/preview2-shim/types/interfaces/wasi-filesystem-preopens.d.ts +6 -0
  72. package/node_modules/@bytecodealliance/preview2-shim/types/interfaces/wasi-filesystem-types.d.ts +669 -0
  73. package/node_modules/@bytecodealliance/preview2-shim/types/interfaces/wasi-http-incoming-handler.d.ts +16 -0
  74. package/node_modules/@bytecodealliance/preview2-shim/types/interfaces/wasi-http-outgoing-handler.d.ts +18 -0
  75. package/node_modules/@bytecodealliance/preview2-shim/types/interfaces/wasi-http-types.d.ts +748 -0
  76. package/node_modules/@bytecodealliance/preview2-shim/types/interfaces/wasi-io-error.d.ts +18 -0
  77. package/node_modules/@bytecodealliance/preview2-shim/types/interfaces/wasi-io-poll.d.ts +44 -0
  78. package/node_modules/@bytecodealliance/preview2-shim/types/interfaces/wasi-io-streams.d.ts +243 -0
  79. package/node_modules/@bytecodealliance/preview2-shim/types/interfaces/wasi-random-insecure-seed.d.ts +21 -0
  80. package/node_modules/@bytecodealliance/preview2-shim/types/interfaces/wasi-random-insecure.d.ts +19 -0
  81. package/node_modules/@bytecodealliance/preview2-shim/types/interfaces/wasi-random-random.d.ts +23 -0
  82. package/node_modules/@bytecodealliance/preview2-shim/types/interfaces/wasi-sockets-instance-network.d.ts +6 -0
  83. package/node_modules/@bytecodealliance/preview2-shim/types/interfaces/wasi-sockets-ip-name-lookup.d.ts +58 -0
  84. package/node_modules/@bytecodealliance/preview2-shim/types/interfaces/wasi-sockets-network.d.ts +164 -0
  85. package/node_modules/@bytecodealliance/preview2-shim/types/interfaces/wasi-sockets-tcp-create-socket.d.ts +28 -0
  86. package/node_modules/@bytecodealliance/preview2-shim/types/interfaces/wasi-sockets-tcp.d.ts +359 -0
  87. package/node_modules/@bytecodealliance/preview2-shim/types/interfaces/wasi-sockets-udp-create-socket.d.ts +28 -0
  88. package/node_modules/@bytecodealliance/preview2-shim/types/interfaces/wasi-sockets-udp.d.ts +301 -0
  89. package/node_modules/@bytecodealliance/preview2-shim/types/io.d.ts +3 -0
  90. package/node_modules/@bytecodealliance/preview2-shim/types/random.d.ts +3 -0
  91. package/node_modules/@bytecodealliance/preview2-shim/types/sockets.d.ts +7 -0
  92. package/node_modules/@bytecodealliance/preview2-shim/types/wasi-cli-command.d.ts +29 -0
  93. package/node_modules/@bytecodealliance/preview2-shim/types/wasi-http-proxy.d.ts +13 -0
  94. package/package.json +9 -6
  95. package/patches/@bytecodealliance+preview2-shim+0.18.0.patch +13 -0
@@ -1,7 +1,8 @@
1
1
  "use components";
2
2
  import { environment, exit as exit$1, stderr, stdin, stdout, terminalInput, terminalOutput, terminalStderr, terminalStdin, terminalStdout } from '@bytecodealliance/preview2-shim/cli';
3
+ import { monotonicClock } from '@bytecodealliance/preview2-shim/clocks';
3
4
  import { preopens, types } from '@bytecodealliance/preview2-shim/filesystem';
4
- import { error, poll, streams } from '@bytecodealliance/preview2-shim/io';
5
+ import { error, poll as poll$1, streams } from '@bytecodealliance/preview2-shim/io';
5
6
  import { insecureSeed as insecureSeed$1 } from '@bytecodealliance/preview2-shim/random';
6
7
  const { getArguments,
7
8
  getEnvironment } = environment;
@@ -102,6 +103,15 @@ if (getTerminalStdout=== undefined) {
102
103
  }
103
104
 
104
105
  getTerminalStdout._isHostProvided = true;
106
+ const { subscribeDuration } = monotonicClock;
107
+
108
+ if (subscribeDuration=== undefined) {
109
+ const err = new Error("unexpectedly undefined local import 'subscribeDuration', was 'subscribeDuration' available at instantiation?");
110
+ console.error("ERROR:", err.toString());
111
+ throw err;
112
+ }
113
+
114
+ subscribeDuration._isHostProvided = true;
105
115
  const { getDirectories } = preopens;
106
116
 
107
117
  if (getDirectories=== undefined) {
@@ -138,7 +148,8 @@ if (Error$1=== undefined) {
138
148
  }
139
149
 
140
150
  Error$1._isHostProvided = true;
141
- const { Pollable } = poll;
151
+ const { Pollable,
152
+ poll } = poll$1;
142
153
 
143
154
  if (Pollable=== undefined) {
144
155
  const err = new Error("unexpectedly undefined local import 'Pollable', was 'Pollable' available at instantiation?");
@@ -147,6 +158,14 @@ if (Pollable=== undefined) {
147
158
  }
148
159
 
149
160
  Pollable._isHostProvided = true;
161
+
162
+ if (poll=== undefined) {
163
+ const err = new Error("unexpectedly undefined local import 'poll', was 'poll' available at instantiation?");
164
+ console.error("ERROR:", err.toString());
165
+ throw err;
166
+ }
167
+
168
+ poll._isHostProvided = true;
150
169
  const { InputStream,
151
170
  OutputStream } = streams;
152
171
 
@@ -3772,7 +3791,7 @@ const _trampoline8 = function(arg0) {
3772
3791
  throw new TypeError('invalid variant discriminant for expected');
3773
3792
  }
3774
3793
  }
3775
- _debugLog('[iface="wasi:cli/exit@0.2.6", function="exit"] [Instruction::CallInterface] (sync, @ enter)');
3794
+ _debugLog('[iface="wasi:cli/exit@0.2.12", function="exit"] [Instruction::CallInterface] (sync, @ enter)');
3776
3795
  let hostProvided = true;
3777
3796
 
3778
3797
  let parentTask;
@@ -3817,7 +3836,7 @@ const _trampoline8 = function(arg0) {
3817
3836
  fn: () => exit(variant0)
3818
3837
  })
3819
3838
  ;
3820
- _debugLog('[iface="wasi:cli/exit@0.2.6", function="exit"][Instruction::Return]', {
3839
+ _debugLog('[iface="wasi:cli/exit@0.2.12", function="exit"][Instruction::Return]', {
3821
3840
  funcName: 'exit',
3822
3841
  paramCount: 0,
3823
3842
  async: false,
@@ -3826,7 +3845,7 @@ const _trampoline8 = function(arg0) {
3826
3845
  task.resolve([ret]);
3827
3846
  task.exit();
3828
3847
  }
3829
- _trampoline8.fnName = 'wasi:cli/exit@0.2.6#exit';
3848
+ _trampoline8.fnName = 'wasi:cli/exit@0.2.12#exit';
3830
3849
  const handleTable0 = [T_FLAG, 0];
3831
3850
  const captureTable0= new Map();
3832
3851
  let captureCnt0 = 0;
@@ -3844,7 +3863,7 @@ const _trampoline9 = function(arg0) {
3844
3863
  }
3845
3864
 
3846
3865
  curResourceBorrows.push(rsc0);
3847
- _debugLog('[iface="wasi:io/poll@0.2.6", function="[method]pollable.block"] [Instruction::CallInterface] (sync, @ enter)');
3866
+ _debugLog('[iface="wasi:io/poll@0.2.12", function="[method]pollable.block"] [Instruction::CallInterface] (sync, @ enter)');
3848
3867
  let hostProvided = true;
3849
3868
 
3850
3869
  let parentTask;
@@ -3893,7 +3912,7 @@ const _trampoline9 = function(arg0) {
3893
3912
  rsc[symbolRscHandle] = undefined;
3894
3913
  }
3895
3914
  curResourceBorrows = [];
3896
- _debugLog('[iface="wasi:io/poll@0.2.6", function="[method]pollable.block"][Instruction::Return]', {
3915
+ _debugLog('[iface="wasi:io/poll@0.2.12", function="[method]pollable.block"][Instruction::Return]', {
3897
3916
  funcName: '[method]pollable.block',
3898
3917
  paramCount: 0,
3899
3918
  async: false,
@@ -3902,7 +3921,7 @@ const _trampoline9 = function(arg0) {
3902
3921
  task.resolve([ret]);
3903
3922
  task.exit();
3904
3923
  }
3905
- _trampoline9.fnName = 'wasi:io/poll@0.2.6#block';
3924
+ _trampoline9.fnName = 'wasi:io/poll@0.2.12#block';
3906
3925
  const handleTable2 = [T_FLAG, 0];
3907
3926
  const captureTable2= new Map();
3908
3927
  let captureCnt2 = 0;
@@ -3920,7 +3939,7 @@ const _trampoline10 = function(arg0) {
3920
3939
  }
3921
3940
 
3922
3941
  curResourceBorrows.push(rsc0);
3923
- _debugLog('[iface="wasi:io/streams@0.2.6", function="[method]input-stream.subscribe"] [Instruction::CallInterface] (sync, @ enter)');
3942
+ _debugLog('[iface="wasi:io/streams@0.2.12", function="[method]input-stream.subscribe"] [Instruction::CallInterface] (sync, @ enter)');
3924
3943
  let hostProvided = true;
3925
3944
 
3926
3945
  let parentTask;
@@ -3980,7 +3999,7 @@ const _trampoline10 = function(arg0) {
3980
3999
  handle3 = rscTableCreateOwn(handleTable0, rep);
3981
4000
  }
3982
4001
 
3983
- _debugLog('[iface="wasi:io/streams@0.2.6", function="[method]input-stream.subscribe"][Instruction::Return]', {
4002
+ _debugLog('[iface="wasi:io/streams@0.2.12", function="[method]input-stream.subscribe"][Instruction::Return]', {
3984
4003
  funcName: '[method]input-stream.subscribe',
3985
4004
  paramCount: 1,
3986
4005
  async: false,
@@ -3990,7 +4009,7 @@ const _trampoline10 = function(arg0) {
3990
4009
  task.exit();
3991
4010
  return handle3;
3992
4011
  }
3993
- _trampoline10.fnName = 'wasi:io/streams@0.2.6#subscribe';
4012
+ _trampoline10.fnName = 'wasi:io/streams@0.2.12#subscribe';
3994
4013
  const handleTable3 = [T_FLAG, 0];
3995
4014
  const captureTable3= new Map();
3996
4015
  let captureCnt3 = 0;
@@ -4008,7 +4027,7 @@ const _trampoline11 = function(arg0) {
4008
4027
  }
4009
4028
 
4010
4029
  curResourceBorrows.push(rsc0);
4011
- _debugLog('[iface="wasi:io/streams@0.2.6", function="[method]output-stream.subscribe"] [Instruction::CallInterface] (sync, @ enter)');
4030
+ _debugLog('[iface="wasi:io/streams@0.2.12", function="[method]output-stream.subscribe"] [Instruction::CallInterface] (sync, @ enter)');
4012
4031
  let hostProvided = true;
4013
4032
 
4014
4033
  let parentTask;
@@ -4068,7 +4087,7 @@ const _trampoline11 = function(arg0) {
4068
4087
  handle3 = rscTableCreateOwn(handleTable0, rep);
4069
4088
  }
4070
4089
 
4071
- _debugLog('[iface="wasi:io/streams@0.2.6", function="[method]output-stream.subscribe"][Instruction::Return]', {
4090
+ _debugLog('[iface="wasi:io/streams@0.2.12", function="[method]output-stream.subscribe"][Instruction::Return]', {
4072
4091
  funcName: '[method]output-stream.subscribe',
4073
4092
  paramCount: 1,
4074
4093
  async: false,
@@ -4078,10 +4097,10 @@ const _trampoline11 = function(arg0) {
4078
4097
  task.exit();
4079
4098
  return handle3;
4080
4099
  }
4081
- _trampoline11.fnName = 'wasi:io/streams@0.2.6#subscribe';
4100
+ _trampoline11.fnName = 'wasi:io/streams@0.2.12#subscribe';
4082
4101
 
4083
4102
  const _trampoline12 = function() {
4084
- _debugLog('[iface="wasi:cli/stdin@0.2.6", function="get-stdin"] [Instruction::CallInterface] (sync, @ enter)');
4103
+ _debugLog('[iface="wasi:cli/stdin@0.2.12", function="get-stdin"] [Instruction::CallInterface] (sync, @ enter)');
4085
4104
  let hostProvided = true;
4086
4105
 
4087
4106
  let parentTask;
@@ -4137,7 +4156,7 @@ const _trampoline12 = function() {
4137
4156
  handle0 = rscTableCreateOwn(handleTable2, rep);
4138
4157
  }
4139
4158
 
4140
- _debugLog('[iface="wasi:cli/stdin@0.2.6", function="get-stdin"][Instruction::Return]', {
4159
+ _debugLog('[iface="wasi:cli/stdin@0.2.12", function="get-stdin"][Instruction::Return]', {
4141
4160
  funcName: 'get-stdin',
4142
4161
  paramCount: 1,
4143
4162
  async: false,
@@ -4147,10 +4166,10 @@ const _trampoline12 = function() {
4147
4166
  task.exit();
4148
4167
  return handle0;
4149
4168
  }
4150
- _trampoline12.fnName = 'wasi:cli/stdin@0.2.6#getStdin';
4169
+ _trampoline12.fnName = 'wasi:cli/stdin@0.2.12#getStdin';
4151
4170
 
4152
4171
  const _trampoline13 = function() {
4153
- _debugLog('[iface="wasi:cli/stdout@0.2.6", function="get-stdout"] [Instruction::CallInterface] (sync, @ enter)');
4172
+ _debugLog('[iface="wasi:cli/stdout@0.2.12", function="get-stdout"] [Instruction::CallInterface] (sync, @ enter)');
4154
4173
  let hostProvided = true;
4155
4174
 
4156
4175
  let parentTask;
@@ -4206,7 +4225,7 @@ const _trampoline13 = function() {
4206
4225
  handle0 = rscTableCreateOwn(handleTable3, rep);
4207
4226
  }
4208
4227
 
4209
- _debugLog('[iface="wasi:cli/stdout@0.2.6", function="get-stdout"][Instruction::Return]', {
4228
+ _debugLog('[iface="wasi:cli/stdout@0.2.12", function="get-stdout"][Instruction::Return]', {
4210
4229
  funcName: 'get-stdout',
4211
4230
  paramCount: 1,
4212
4231
  async: false,
@@ -4216,10 +4235,10 @@ const _trampoline13 = function() {
4216
4235
  task.exit();
4217
4236
  return handle0;
4218
4237
  }
4219
- _trampoline13.fnName = 'wasi:cli/stdout@0.2.6#getStdout';
4238
+ _trampoline13.fnName = 'wasi:cli/stdout@0.2.12#getStdout';
4220
4239
 
4221
4240
  const _trampoline14 = function() {
4222
- _debugLog('[iface="wasi:cli/stderr@0.2.6", function="get-stderr"] [Instruction::CallInterface] (sync, @ enter)');
4241
+ _debugLog('[iface="wasi:cli/stderr@0.2.12", function="get-stderr"] [Instruction::CallInterface] (sync, @ enter)');
4223
4242
  let hostProvided = true;
4224
4243
 
4225
4244
  let parentTask;
@@ -4275,7 +4294,7 @@ const _trampoline14 = function() {
4275
4294
  handle0 = rscTableCreateOwn(handleTable3, rep);
4276
4295
  }
4277
4296
 
4278
- _debugLog('[iface="wasi:cli/stderr@0.2.6", function="get-stderr"][Instruction::Return]', {
4297
+ _debugLog('[iface="wasi:cli/stderr@0.2.12", function="get-stderr"][Instruction::Return]', {
4279
4298
  funcName: 'get-stderr',
4280
4299
  paramCount: 1,
4281
4300
  async: false,
@@ -4285,14 +4304,83 @@ const _trampoline14 = function() {
4285
4304
  task.exit();
4286
4305
  return handle0;
4287
4306
  }
4288
- _trampoline14.fnName = 'wasi:cli/stderr@0.2.6#getStderr';
4307
+ _trampoline14.fnName = 'wasi:cli/stderr@0.2.12#getStderr';
4308
+
4309
+ const _trampoline15 = function(arg0) {
4310
+ _debugLog('[iface="wasi:clocks/monotonic-clock@0.2.12", function="subscribe-duration"] [Instruction::CallInterface] (sync, @ enter)');
4311
+ let hostProvided = true;
4312
+
4313
+ let parentTask;
4314
+ let task;
4315
+ let subtask;
4316
+
4317
+ const createTask = () => {
4318
+ const results = createNewCurrentTask({
4319
+ componentIdx: -1, // 0,
4320
+ isAsync: false,
4321
+ entryFnName: 'subscribeDuration',
4322
+ getCallbackFn: () => null,
4323
+ callbackFnName: 'null',
4324
+ errHandling: 'none',
4325
+ callingWasmExport: false,
4326
+ });
4327
+ task = results[0];
4328
+ };
4329
+
4330
+ taskCreation: {
4331
+ parentTask = getCurrentTask(0)?.task;
4332
+ if (!parentTask) {
4333
+ createTask();
4334
+ break taskCreation;
4335
+ }
4336
+
4337
+ createTask();
4338
+
4339
+ if (hostProvided) {
4340
+ subtask = parentTask.getLatestSubtask();
4341
+ if (!subtask) {
4342
+ throw new Error(`Missing subtask (in parent task [${parentTask.id()}]) for host import, has the import been lowered? (ensure asyncImports are set properly)`);
4343
+ }
4344
+ task.setParentSubtask(subtask);
4345
+ }
4346
+ }
4347
+
4348
+ const started = task.enterSync();
4349
+ let ret = _withGlobalCurrentTaskMeta({
4350
+ componentIdx: task.componentIdx(),
4351
+ taskID: task.id(),
4352
+ fn: () => subscribeDuration(BigInt.asUintN(64, BigInt(arg0)))
4353
+ })
4354
+ ;
4355
+
4356
+ if (!(ret instanceof Pollable)) {
4357
+ throw new TypeError('Resource error: Not a valid \"Pollable\" resource.');
4358
+ }
4359
+ var handle0 = ret[symbolRscHandle];
4360
+ if (!handle0) {
4361
+ const rep = ret[symbolRscRep] || ++captureCnt0;
4362
+ captureTable0.set(rep, ret);
4363
+ handle0 = rscTableCreateOwn(handleTable0, rep);
4364
+ }
4365
+
4366
+ _debugLog('[iface="wasi:clocks/monotonic-clock@0.2.12", function="subscribe-duration"][Instruction::Return]', {
4367
+ funcName: 'subscribe-duration',
4368
+ paramCount: 1,
4369
+ async: false,
4370
+ postReturn: false
4371
+ });
4372
+ task.resolve([handle0]);
4373
+ task.exit();
4374
+ return handle0;
4375
+ }
4376
+ _trampoline15.fnName = 'wasi:clocks/monotonic-clock@0.2.12#subscribeDuration';
4289
4377
  let exports1;
4290
4378
  let memory0;
4291
4379
  let realloc0;
4292
4380
  let realloc0Async;
4293
4381
 
4294
- const _trampoline15 = function(arg0) {
4295
- _debugLog('[iface="wasi:cli/environment@0.2.6", function="get-arguments"] [Instruction::CallInterface] (sync, @ enter)');
4382
+ const _trampoline16 = function(arg0) {
4383
+ _debugLog('[iface="wasi:cli/environment@0.2.12", function="get-arguments"] [Instruction::CallInterface] (sync, @ enter)');
4296
4384
  let hostProvided = true;
4297
4385
 
4298
4386
  let parentTask;
@@ -4352,7 +4440,7 @@ const _trampoline15 = function(arg0) {
4352
4440
  }
4353
4441
  dataView(memory0).setUint32(arg0 + 4, len1, true);
4354
4442
  dataView(memory0).setUint32(arg0 + 0, result1, true);
4355
- _debugLog('[iface="wasi:cli/environment@0.2.6", function="get-arguments"][Instruction::Return]', {
4443
+ _debugLog('[iface="wasi:cli/environment@0.2.12", function="get-arguments"][Instruction::Return]', {
4356
4444
  funcName: 'get-arguments',
4357
4445
  paramCount: 0,
4358
4446
  async: false,
@@ -4361,10 +4449,10 @@ const _trampoline15 = function(arg0) {
4361
4449
  task.resolve([ret]);
4362
4450
  task.exit();
4363
4451
  }
4364
- _trampoline15.fnName = 'wasi:cli/environment@0.2.6#getArguments';
4452
+ _trampoline16.fnName = 'wasi:cli/environment@0.2.12#getArguments';
4365
4453
 
4366
- const _trampoline16 = function(arg0) {
4367
- _debugLog('[iface="wasi:random/insecure-seed@0.2.6", function="insecure-seed"] [Instruction::CallInterface] (sync, @ enter)');
4454
+ const _trampoline17 = function(arg0) {
4455
+ _debugLog('[iface="wasi:random/insecure-seed@0.2.12", function="insecure-seed"] [Instruction::CallInterface] (sync, @ enter)');
4368
4456
  let hostProvided = true;
4369
4457
 
4370
4458
  let parentTask;
@@ -4412,7 +4500,7 @@ const _trampoline16 = function(arg0) {
4412
4500
  var [tuple0_0, tuple0_1] = ret;
4413
4501
  dataView(memory0).setBigInt64(arg0 + 0, toUint64(tuple0_0), true);
4414
4502
  dataView(memory0).setBigInt64(arg0 + 8, toUint64(tuple0_1), true);
4415
- _debugLog('[iface="wasi:random/insecure-seed@0.2.6", function="insecure-seed"][Instruction::Return]', {
4503
+ _debugLog('[iface="wasi:random/insecure-seed@0.2.12", function="insecure-seed"][Instruction::Return]', {
4416
4504
  funcName: 'insecure-seed',
4417
4505
  paramCount: 0,
4418
4506
  async: false,
@@ -4421,13 +4509,116 @@ const _trampoline16 = function(arg0) {
4421
4509
  task.resolve([ret]);
4422
4510
  task.exit();
4423
4511
  }
4424
- _trampoline16.fnName = 'wasi:random/insecure-seed@0.2.6#insecureSeed';
4512
+ _trampoline17.fnName = 'wasi:random/insecure-seed@0.2.12#insecureSeed';
4513
+
4514
+ const _trampoline18 = function(arg0, arg1, arg2) {
4515
+ var len3 = arg1;
4516
+ var base3 = arg0;
4517
+ var result3 = [];
4518
+ for (let i = 0; i < len3; i++) {
4519
+ const base = base3 + i * 4;
4520
+ var handle1 = dataView(memory0).getInt32(base + 0, true);
4521
+
4522
+ var rep2 = handleTable0[(handle1 << 1) + 1] & ~T_FLAG;
4523
+ var rsc0 = captureTable0.get(rep2);
4524
+ if (!rsc0) {
4525
+ rsc0 = Object.create(Pollable.prototype);
4526
+ Object.defineProperty(rsc0, symbolRscHandle, { writable: true, value: handle1});
4527
+ Object.defineProperty(rsc0, symbolRscRep, { writable: true, value: rep2});
4528
+ }
4529
+
4530
+ curResourceBorrows.push(rsc0);
4531
+ result3.push(rsc0);
4532
+ }
4533
+ _debugLog('[iface="wasi:io/poll@0.2.12", function="poll"] [Instruction::CallInterface] (sync, @ enter)');
4534
+ let hostProvided = true;
4535
+
4536
+ let parentTask;
4537
+ let task;
4538
+ let subtask;
4539
+
4540
+ const createTask = () => {
4541
+ const results = createNewCurrentTask({
4542
+ componentIdx: -1, // 0,
4543
+ isAsync: false,
4544
+ entryFnName: 'poll',
4545
+ getCallbackFn: () => null,
4546
+ callbackFnName: 'null',
4547
+ errHandling: 'none',
4548
+ callingWasmExport: false,
4549
+ });
4550
+ task = results[0];
4551
+ };
4552
+
4553
+ taskCreation: {
4554
+ parentTask = getCurrentTask(0)?.task;
4555
+ if (!parentTask) {
4556
+ createTask();
4557
+ break taskCreation;
4558
+ }
4559
+
4560
+ createTask();
4561
+
4562
+ if (hostProvided) {
4563
+ subtask = parentTask.getLatestSubtask();
4564
+ if (!subtask) {
4565
+ throw new Error(`Missing subtask (in parent task [${parentTask.id()}]) for host import, has the import been lowered? (ensure asyncImports are set properly)`);
4566
+ }
4567
+ task.setParentSubtask(subtask);
4568
+ }
4569
+ }
4570
+
4571
+ const started = task.enterSync();
4572
+ let ret = _withGlobalCurrentTaskMeta({
4573
+ componentIdx: task.componentIdx(),
4574
+ taskID: task.id(),
4575
+ fn: () => poll(result3)
4576
+ })
4577
+ ;
4578
+ for (const rsc of curResourceBorrows) {
4579
+ rsc[symbolRscHandle] = undefined;
4580
+ }
4581
+ curResourceBorrows = [];
4582
+ var val4 = ret;
4583
+ var len4 = val4.length;
4584
+ var ptr4 = realloc0(0, 0, 4, len4 * 4);
4585
+
4586
+ let valData4;
4587
+ const valLenBytes4 = len4 * 4;
4588
+ if (Array.isArray(val4)) {
4589
+ // Regular array likely containing numbers, write values to memory
4590
+ let offset = 0;
4591
+ const dv4 = new DataView(memory0.buffer);
4592
+ for (const v of val4) {
4593
+ _requireValidNumericPrimitive.bind(null, 'u32')(v);
4594
+ dv4.setUint32(ptr4+ offset, v, true);
4595
+ offset += 4;
4596
+ }
4597
+ } else {
4598
+ // TypedArray / ArrayBuffer-like, direct copy
4599
+ valData4 = new Uint8Array(val4.buffer || val4, val4.byteOffset, valLenBytes4);
4600
+ const out4 = new Uint8Array(memory0.buffer, ptr4, valLenBytes4);
4601
+ out4.set(valData4);
4602
+ }
4603
+
4604
+ dataView(memory0).setUint32(arg2 + 4, len4, true);
4605
+ dataView(memory0).setUint32(arg2 + 0, ptr4, true);
4606
+ _debugLog('[iface="wasi:io/poll@0.2.12", function="poll"][Instruction::Return]', {
4607
+ funcName: 'poll',
4608
+ paramCount: 0,
4609
+ async: false,
4610
+ postReturn: false
4611
+ });
4612
+ task.resolve([ret]);
4613
+ task.exit();
4614
+ }
4615
+ _trampoline18.fnName = 'wasi:io/poll@0.2.12#poll';
4425
4616
  const handleTable1 = [T_FLAG, 0];
4426
4617
  const captureTable1= new Map();
4427
4618
  let captureCnt1 = 0;
4428
4619
  handleTables[1] = handleTable1;
4429
4620
 
4430
- const _trampoline17 = function(arg0, arg1, arg2) {
4621
+ const _trampoline19 = function(arg0, arg1, arg2) {
4431
4622
  var handle1 = arg0;
4432
4623
 
4433
4624
  var rep2 = handleTable2[(handle1 << 1) + 1] & ~T_FLAG;
@@ -4439,7 +4630,7 @@ const _trampoline17 = function(arg0, arg1, arg2) {
4439
4630
  }
4440
4631
 
4441
4632
  curResourceBorrows.push(rsc0);
4442
- _debugLog('[iface="wasi:io/streams@0.2.6", function="[method]input-stream.blocking-read"] [Instruction::CallInterface] (sync, @ enter)');
4633
+ _debugLog('[iface="wasi:io/streams@0.2.12", function="[method]input-stream.read"] [Instruction::CallInterface] (sync, @ enter)');
4443
4634
  let hostProvided = true;
4444
4635
 
4445
4636
  let parentTask;
@@ -4450,7 +4641,7 @@ const _trampoline17 = function(arg0, arg1, arg2) {
4450
4641
  const results = createNewCurrentTask({
4451
4642
  componentIdx: -1, // 0,
4452
4643
  isAsync: false,
4453
- entryFnName: 'blockingRead',
4644
+ entryFnName: 'read',
4454
4645
  getCallbackFn: () => null,
4455
4646
  callbackFnName: 'null',
4456
4647
  errHandling: 'result-catch-handler',
@@ -4484,7 +4675,7 @@ const _trampoline17 = function(arg0, arg1, arg2) {
4484
4675
  ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
4485
4676
  componentIdx: task.componentIdx(),
4486
4677
  taskID: task.id(),
4487
- fn: () => rsc0.blockingRead(BigInt.asUintN(64, BigInt(arg1)))
4678
+ fn: () => rsc0.read(BigInt.asUintN(64, BigInt(arg1)))
4488
4679
  })
4489
4680
  };
4490
4681
  } catch (e) {
@@ -4565,8 +4756,8 @@ switch (variant6.tag) {
4565
4756
  throw new TypeError('invalid variant specified for result');
4566
4757
  }
4567
4758
  }
4568
- _debugLog('[iface="wasi:io/streams@0.2.6", function="[method]input-stream.blocking-read"][Instruction::Return]', {
4569
- funcName: '[method]input-stream.blocking-read',
4759
+ _debugLog('[iface="wasi:io/streams@0.2.12", function="[method]input-stream.read"][Instruction::Return]', {
4760
+ funcName: '[method]input-stream.read',
4570
4761
  paramCount: 0,
4571
4762
  async: false,
4572
4763
  postReturn: false
@@ -4574,9 +4765,9 @@ _debugLog('[iface="wasi:io/streams@0.2.6", function="[method]input-stream.blocki
4574
4765
  task.resolve([ret]);
4575
4766
  task.exit();
4576
4767
  }
4577
- _trampoline17.fnName = 'wasi:io/streams@0.2.6#blockingRead';
4768
+ _trampoline19.fnName = 'wasi:io/streams@0.2.12#read';
4578
4769
 
4579
- const _trampoline18 = function(arg0, arg1) {
4770
+ const _trampoline20 = function(arg0, arg1) {
4580
4771
  var handle1 = arg0;
4581
4772
 
4582
4773
  var rep2 = handleTable3[(handle1 << 1) + 1] & ~T_FLAG;
@@ -4588,7 +4779,7 @@ const _trampoline18 = function(arg0, arg1) {
4588
4779
  }
4589
4780
 
4590
4781
  curResourceBorrows.push(rsc0);
4591
- _debugLog('[iface="wasi:io/streams@0.2.6", function="[method]output-stream.check-write"] [Instruction::CallInterface] (sync, @ enter)');
4782
+ _debugLog('[iface="wasi:io/streams@0.2.12", function="[method]output-stream.check-write"] [Instruction::CallInterface] (sync, @ enter)');
4592
4783
  let hostProvided = true;
4593
4784
 
4594
4785
  let parentTask;
@@ -4691,7 +4882,7 @@ switch (variant5.tag) {
4691
4882
  throw new TypeError('invalid variant specified for result');
4692
4883
  }
4693
4884
  }
4694
- _debugLog('[iface="wasi:io/streams@0.2.6", function="[method]output-stream.check-write"][Instruction::Return]', {
4885
+ _debugLog('[iface="wasi:io/streams@0.2.12", function="[method]output-stream.check-write"][Instruction::Return]', {
4695
4886
  funcName: '[method]output-stream.check-write',
4696
4887
  paramCount: 0,
4697
4888
  async: false,
@@ -4700,9 +4891,9 @@ _debugLog('[iface="wasi:io/streams@0.2.6", function="[method]output-stream.check
4700
4891
  task.resolve([ret]);
4701
4892
  task.exit();
4702
4893
  }
4703
- _trampoline18.fnName = 'wasi:io/streams@0.2.6#checkWrite';
4894
+ _trampoline20.fnName = 'wasi:io/streams@0.2.12#checkWrite';
4704
4895
 
4705
- const _trampoline19 = function(arg0, arg1, arg2, arg3) {
4896
+ const _trampoline21 = function(arg0, arg1, arg2, arg3) {
4706
4897
  var handle1 = arg0;
4707
4898
 
4708
4899
  var rep2 = handleTable3[(handle1 << 1) + 1] & ~T_FLAG;
@@ -4717,7 +4908,7 @@ const _trampoline19 = function(arg0, arg1, arg2, arg3) {
4717
4908
  var ptr3 = arg1;
4718
4909
  var len3 = arg2;
4719
4910
  var result3 = new Uint8Array(memory0.buffer.slice(ptr3, ptr3 + len3 * 1));
4720
- _debugLog('[iface="wasi:io/streams@0.2.6", function="[method]output-stream.write"] [Instruction::CallInterface] (sync, @ enter)');
4911
+ _debugLog('[iface="wasi:io/streams@0.2.12", function="[method]output-stream.write"] [Instruction::CallInterface] (sync, @ enter)');
4721
4912
  let hostProvided = true;
4722
4913
 
4723
4914
  let parentTask;
@@ -4819,7 +5010,7 @@ switch (variant6.tag) {
4819
5010
  throw new TypeError('invalid variant specified for result');
4820
5011
  }
4821
5012
  }
4822
- _debugLog('[iface="wasi:io/streams@0.2.6", function="[method]output-stream.write"][Instruction::Return]', {
5013
+ _debugLog('[iface="wasi:io/streams@0.2.12", function="[method]output-stream.write"][Instruction::Return]', {
4823
5014
  funcName: '[method]output-stream.write',
4824
5015
  paramCount: 0,
4825
5016
  async: false,
@@ -4828,9 +5019,9 @@ _debugLog('[iface="wasi:io/streams@0.2.6", function="[method]output-stream.write
4828
5019
  task.resolve([ret]);
4829
5020
  task.exit();
4830
5021
  }
4831
- _trampoline19.fnName = 'wasi:io/streams@0.2.6#write';
5022
+ _trampoline21.fnName = 'wasi:io/streams@0.2.12#write';
4832
5023
 
4833
- const _trampoline20 = function(arg0, arg1) {
5024
+ const _trampoline22 = function(arg0, arg1) {
4834
5025
  var handle1 = arg0;
4835
5026
 
4836
5027
  var rep2 = handleTable3[(handle1 << 1) + 1] & ~T_FLAG;
@@ -4842,7 +5033,7 @@ const _trampoline20 = function(arg0, arg1) {
4842
5033
  }
4843
5034
 
4844
5035
  curResourceBorrows.push(rsc0);
4845
- _debugLog('[iface="wasi:io/streams@0.2.6", function="[method]output-stream.blocking-flush"] [Instruction::CallInterface] (sync, @ enter)');
5036
+ _debugLog('[iface="wasi:io/streams@0.2.12", function="[method]output-stream.blocking-flush"] [Instruction::CallInterface] (sync, @ enter)');
4846
5037
  let hostProvided = true;
4847
5038
 
4848
5039
  let parentTask;
@@ -4944,7 +5135,7 @@ switch (variant5.tag) {
4944
5135
  throw new TypeError('invalid variant specified for result');
4945
5136
  }
4946
5137
  }
4947
- _debugLog('[iface="wasi:io/streams@0.2.6", function="[method]output-stream.blocking-flush"][Instruction::Return]', {
5138
+ _debugLog('[iface="wasi:io/streams@0.2.12", function="[method]output-stream.blocking-flush"][Instruction::Return]', {
4948
5139
  funcName: '[method]output-stream.blocking-flush',
4949
5140
  paramCount: 0,
4950
5141
  async: false,
@@ -4953,13 +5144,13 @@ _debugLog('[iface="wasi:io/streams@0.2.6", function="[method]output-stream.block
4953
5144
  task.resolve([ret]);
4954
5145
  task.exit();
4955
5146
  }
4956
- _trampoline20.fnName = 'wasi:io/streams@0.2.6#blockingFlush';
5147
+ _trampoline22.fnName = 'wasi:io/streams@0.2.12#blockingFlush';
4957
5148
  const handleTable6 = [T_FLAG, 0];
4958
5149
  const captureTable6= new Map();
4959
5150
  let captureCnt6 = 0;
4960
5151
  handleTables[6] = handleTable6;
4961
5152
 
4962
- const _trampoline21 = function(arg0, arg1, arg2) {
5153
+ const _trampoline23 = function(arg0, arg1, arg2) {
4963
5154
  var handle1 = arg0;
4964
5155
 
4965
5156
  var rep2 = handleTable6[(handle1 << 1) + 1] & ~T_FLAG;
@@ -4971,7 +5162,7 @@ const _trampoline21 = function(arg0, arg1, arg2) {
4971
5162
  }
4972
5163
 
4973
5164
  curResourceBorrows.push(rsc0);
4974
- _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.read-via-stream"] [Instruction::CallInterface] (sync, @ enter)');
5165
+ _debugLog('[iface="wasi:filesystem/types@0.2.12", function="[method]descriptor.read-via-stream"] [Instruction::CallInterface] (sync, @ enter)');
4975
5166
  let hostProvided = true;
4976
5167
 
4977
5168
  let parentTask;
@@ -5218,7 +5409,7 @@ switch (variant5.tag) {
5218
5409
  throw new TypeError('invalid variant specified for result');
5219
5410
  }
5220
5411
  }
5221
- _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.read-via-stream"][Instruction::Return]', {
5412
+ _debugLog('[iface="wasi:filesystem/types@0.2.12", function="[method]descriptor.read-via-stream"][Instruction::Return]', {
5222
5413
  funcName: '[method]descriptor.read-via-stream',
5223
5414
  paramCount: 0,
5224
5415
  async: false,
@@ -5227,9 +5418,9 @@ _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.re
5227
5418
  task.resolve([ret]);
5228
5419
  task.exit();
5229
5420
  }
5230
- _trampoline21.fnName = 'wasi:filesystem/types@0.2.6#readViaStream';
5421
+ _trampoline23.fnName = 'wasi:filesystem/types@0.2.12#readViaStream';
5231
5422
 
5232
- const _trampoline22 = function(arg0, arg1, arg2) {
5423
+ const _trampoline24 = function(arg0, arg1, arg2) {
5233
5424
  var handle1 = arg0;
5234
5425
 
5235
5426
  var rep2 = handleTable6[(handle1 << 1) + 1] & ~T_FLAG;
@@ -5241,7 +5432,7 @@ const _trampoline22 = function(arg0, arg1, arg2) {
5241
5432
  }
5242
5433
 
5243
5434
  curResourceBorrows.push(rsc0);
5244
- _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.write-via-stream"] [Instruction::CallInterface] (sync, @ enter)');
5435
+ _debugLog('[iface="wasi:filesystem/types@0.2.12", function="[method]descriptor.write-via-stream"] [Instruction::CallInterface] (sync, @ enter)');
5245
5436
  let hostProvided = true;
5246
5437
 
5247
5438
  let parentTask;
@@ -5488,7 +5679,7 @@ switch (variant5.tag) {
5488
5679
  throw new TypeError('invalid variant specified for result');
5489
5680
  }
5490
5681
  }
5491
- _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.write-via-stream"][Instruction::Return]', {
5682
+ _debugLog('[iface="wasi:filesystem/types@0.2.12", function="[method]descriptor.write-via-stream"][Instruction::Return]', {
5492
5683
  funcName: '[method]descriptor.write-via-stream',
5493
5684
  paramCount: 0,
5494
5685
  async: false,
@@ -5497,9 +5688,9 @@ _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.wr
5497
5688
  task.resolve([ret]);
5498
5689
  task.exit();
5499
5690
  }
5500
- _trampoline22.fnName = 'wasi:filesystem/types@0.2.6#writeViaStream';
5691
+ _trampoline24.fnName = 'wasi:filesystem/types@0.2.12#writeViaStream';
5501
5692
 
5502
- const _trampoline23 = function(arg0, arg1) {
5693
+ const _trampoline25 = function(arg0, arg1) {
5503
5694
  var handle1 = arg0;
5504
5695
 
5505
5696
  var rep2 = handleTable6[(handle1 << 1) + 1] & ~T_FLAG;
@@ -5511,7 +5702,7 @@ const _trampoline23 = function(arg0, arg1) {
5511
5702
  }
5512
5703
 
5513
5704
  curResourceBorrows.push(rsc0);
5514
- _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.append-via-stream"] [Instruction::CallInterface] (sync, @ enter)');
5705
+ _debugLog('[iface="wasi:filesystem/types@0.2.12", function="[method]descriptor.append-via-stream"] [Instruction::CallInterface] (sync, @ enter)');
5515
5706
  let hostProvided = true;
5516
5707
 
5517
5708
  let parentTask;
@@ -5758,7 +5949,7 @@ switch (variant5.tag) {
5758
5949
  throw new TypeError('invalid variant specified for result');
5759
5950
  }
5760
5951
  }
5761
- _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.append-via-stream"][Instruction::Return]', {
5952
+ _debugLog('[iface="wasi:filesystem/types@0.2.12", function="[method]descriptor.append-via-stream"][Instruction::Return]', {
5762
5953
  funcName: '[method]descriptor.append-via-stream',
5763
5954
  paramCount: 0,
5764
5955
  async: false,
@@ -5767,9 +5958,9 @@ _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.ap
5767
5958
  task.resolve([ret]);
5768
5959
  task.exit();
5769
5960
  }
5770
- _trampoline23.fnName = 'wasi:filesystem/types@0.2.6#appendViaStream';
5961
+ _trampoline25.fnName = 'wasi:filesystem/types@0.2.12#appendViaStream';
5771
5962
 
5772
- const _trampoline24 = function(arg0, arg1) {
5963
+ const _trampoline26 = function(arg0, arg1) {
5773
5964
  var handle1 = arg0;
5774
5965
 
5775
5966
  var rep2 = handleTable6[(handle1 << 1) + 1] & ~T_FLAG;
@@ -5781,7 +5972,7 @@ const _trampoline24 = function(arg0, arg1) {
5781
5972
  }
5782
5973
 
5783
5974
  curResourceBorrows.push(rsc0);
5784
- _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.get-flags"] [Instruction::CallInterface] (sync, @ enter)');
5975
+ _debugLog('[iface="wasi:filesystem/types@0.2.12", function="[method]descriptor.get-flags"] [Instruction::CallInterface] (sync, @ enter)');
5785
5976
  let hostProvided = true;
5786
5977
 
5787
5978
  let parentTask;
@@ -6023,7 +6214,7 @@ switch (variant5.tag) {
6023
6214
  throw new TypeError('invalid variant specified for result');
6024
6215
  }
6025
6216
  }
6026
- _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.get-flags"][Instruction::Return]', {
6217
+ _debugLog('[iface="wasi:filesystem/types@0.2.12", function="[method]descriptor.get-flags"][Instruction::Return]', {
6027
6218
  funcName: '[method]descriptor.get-flags',
6028
6219
  paramCount: 0,
6029
6220
  async: false,
@@ -6032,13 +6223,13 @@ _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.ge
6032
6223
  task.resolve([ret]);
6033
6224
  task.exit();
6034
6225
  }
6035
- _trampoline24.fnName = 'wasi:filesystem/types@0.2.6#getFlags';
6226
+ _trampoline26.fnName = 'wasi:filesystem/types@0.2.12#getFlags';
6036
6227
  const handleTable7 = [T_FLAG, 0];
6037
6228
  const captureTable7= new Map();
6038
6229
  let captureCnt7 = 0;
6039
6230
  handleTables[7] = handleTable7;
6040
6231
 
6041
- const _trampoline25 = function(arg0, arg1) {
6232
+ const _trampoline27 = function(arg0, arg1) {
6042
6233
  var handle1 = arg0;
6043
6234
 
6044
6235
  var rep2 = handleTable6[(handle1 << 1) + 1] & ~T_FLAG;
@@ -6050,7 +6241,7 @@ const _trampoline25 = function(arg0, arg1) {
6050
6241
  }
6051
6242
 
6052
6243
  curResourceBorrows.push(rsc0);
6053
- _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.read-directory"] [Instruction::CallInterface] (sync, @ enter)');
6244
+ _debugLog('[iface="wasi:filesystem/types@0.2.12", function="[method]descriptor.read-directory"] [Instruction::CallInterface] (sync, @ enter)');
6054
6245
  let hostProvided = true;
6055
6246
 
6056
6247
  let parentTask;
@@ -6297,7 +6488,7 @@ switch (variant5.tag) {
6297
6488
  throw new TypeError('invalid variant specified for result');
6298
6489
  }
6299
6490
  }
6300
- _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.read-directory"][Instruction::Return]', {
6491
+ _debugLog('[iface="wasi:filesystem/types@0.2.12", function="[method]descriptor.read-directory"][Instruction::Return]', {
6301
6492
  funcName: '[method]descriptor.read-directory',
6302
6493
  paramCount: 0,
6303
6494
  async: false,
@@ -6306,9 +6497,9 @@ _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.re
6306
6497
  task.resolve([ret]);
6307
6498
  task.exit();
6308
6499
  }
6309
- _trampoline25.fnName = 'wasi:filesystem/types@0.2.6#readDirectory';
6500
+ _trampoline27.fnName = 'wasi:filesystem/types@0.2.12#readDirectory';
6310
6501
 
6311
- const _trampoline26 = function(arg0, arg1) {
6502
+ const _trampoline28 = function(arg0, arg1) {
6312
6503
  var handle1 = arg0;
6313
6504
 
6314
6505
  var rep2 = handleTable6[(handle1 << 1) + 1] & ~T_FLAG;
@@ -6320,7 +6511,7 @@ const _trampoline26 = function(arg0, arg1) {
6320
6511
  }
6321
6512
 
6322
6513
  curResourceBorrows.push(rsc0);
6323
- _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.stat"] [Instruction::CallInterface] (sync, @ enter)');
6514
+ _debugLog('[iface="wasi:filesystem/types@0.2.12", function="[method]descriptor.stat"] [Instruction::CallInterface] (sync, @ enter)');
6324
6515
  let hostProvided = true;
6325
6516
 
6326
6517
  let parentTask;
@@ -6632,7 +6823,7 @@ switch (variant12.tag) {
6632
6823
  throw new TypeError('invalid variant specified for result');
6633
6824
  }
6634
6825
  }
6635
- _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.stat"][Instruction::Return]', {
6826
+ _debugLog('[iface="wasi:filesystem/types@0.2.12", function="[method]descriptor.stat"][Instruction::Return]', {
6636
6827
  funcName: '[method]descriptor.stat',
6637
6828
  paramCount: 0,
6638
6829
  async: false,
@@ -6641,9 +6832,9 @@ _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.st
6641
6832
  task.resolve([ret]);
6642
6833
  task.exit();
6643
6834
  }
6644
- _trampoline26.fnName = 'wasi:filesystem/types@0.2.6#stat';
6835
+ _trampoline28.fnName = 'wasi:filesystem/types@0.2.12#stat';
6645
6836
 
6646
- const _trampoline27 = function(arg0, arg1, arg2, arg3, arg4) {
6837
+ const _trampoline29 = function(arg0, arg1, arg2, arg3, arg4) {
6647
6838
  var handle1 = arg0;
6648
6839
 
6649
6840
  var rep2 = handleTable6[(handle1 << 1) + 1] & ~T_FLAG;
@@ -6664,7 +6855,7 @@ const _trampoline27 = function(arg0, arg1, arg2, arg3, arg4) {
6664
6855
  var ptr4 = arg2;
6665
6856
  var len4 = arg3;
6666
6857
  var result4 = TEXT_DECODER_UTF8.decode(new Uint8Array(memory0.buffer, ptr4, len4));
6667
- _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.stat-at"] [Instruction::CallInterface] (sync, @ enter)');
6858
+ _debugLog('[iface="wasi:filesystem/types@0.2.12", function="[method]descriptor.stat-at"] [Instruction::CallInterface] (sync, @ enter)');
6668
6859
  let hostProvided = true;
6669
6860
 
6670
6861
  let parentTask;
@@ -6976,7 +7167,7 @@ switch (variant14.tag) {
6976
7167
  throw new TypeError('invalid variant specified for result');
6977
7168
  }
6978
7169
  }
6979
- _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.stat-at"][Instruction::Return]', {
7170
+ _debugLog('[iface="wasi:filesystem/types@0.2.12", function="[method]descriptor.stat-at"][Instruction::Return]', {
6980
7171
  funcName: '[method]descriptor.stat-at',
6981
7172
  paramCount: 0,
6982
7173
  async: false,
@@ -6985,9 +7176,9 @@ _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.st
6985
7176
  task.resolve([ret]);
6986
7177
  task.exit();
6987
7178
  }
6988
- _trampoline27.fnName = 'wasi:filesystem/types@0.2.6#statAt';
7179
+ _trampoline29.fnName = 'wasi:filesystem/types@0.2.12#statAt';
6989
7180
 
6990
- const _trampoline28 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
7181
+ const _trampoline30 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
6991
7182
  var handle1 = arg0;
6992
7183
 
6993
7184
  var rep2 = handleTable6[(handle1 << 1) + 1] & ~T_FLAG;
@@ -7028,7 +7219,7 @@ const _trampoline28 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
7028
7219
  requestedWriteSync: Boolean(arg5 & 16),
7029
7220
  mutateDirectory: Boolean(arg5 & 32),
7030
7221
  };
7031
- _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.open-at"] [Instruction::CallInterface] (sync, @ enter)');
7222
+ _debugLog('[iface="wasi:filesystem/types@0.2.12", function="[method]descriptor.open-at"] [Instruction::CallInterface] (sync, @ enter)');
7032
7223
  let hostProvided = true;
7033
7224
 
7034
7225
  let parentTask;
@@ -7275,7 +7466,7 @@ switch (variant9.tag) {
7275
7466
  throw new TypeError('invalid variant specified for result');
7276
7467
  }
7277
7468
  }
7278
- _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.open-at"][Instruction::Return]', {
7469
+ _debugLog('[iface="wasi:filesystem/types@0.2.12", function="[method]descriptor.open-at"][Instruction::Return]', {
7279
7470
  funcName: '[method]descriptor.open-at',
7280
7471
  paramCount: 0,
7281
7472
  async: false,
@@ -7284,9 +7475,9 @@ _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.op
7284
7475
  task.resolve([ret]);
7285
7476
  task.exit();
7286
7477
  }
7287
- _trampoline28.fnName = 'wasi:filesystem/types@0.2.6#openAt';
7478
+ _trampoline30.fnName = 'wasi:filesystem/types@0.2.12#openAt';
7288
7479
 
7289
- const _trampoline29 = function(arg0, arg1, arg2, arg3) {
7480
+ const _trampoline31 = function(arg0, arg1, arg2, arg3) {
7290
7481
  var handle1 = arg0;
7291
7482
 
7292
7483
  var rep2 = handleTable6[(handle1 << 1) + 1] & ~T_FLAG;
@@ -7301,7 +7492,7 @@ const _trampoline29 = function(arg0, arg1, arg2, arg3) {
7301
7492
  var ptr3 = arg1;
7302
7493
  var len3 = arg2;
7303
7494
  var result3 = TEXT_DECODER_UTF8.decode(new Uint8Array(memory0.buffer, ptr3, len3));
7304
- _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.unlink-file-at"] [Instruction::CallInterface] (sync, @ enter)');
7495
+ _debugLog('[iface="wasi:filesystem/types@0.2.12", function="[method]descriptor.unlink-file-at"] [Instruction::CallInterface] (sync, @ enter)');
7305
7496
  let hostProvided = true;
7306
7497
 
7307
7498
  let parentTask;
@@ -7536,7 +7727,7 @@ switch (variant5.tag) {
7536
7727
  throw new TypeError('invalid variant specified for result');
7537
7728
  }
7538
7729
  }
7539
- _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.unlink-file-at"][Instruction::Return]', {
7730
+ _debugLog('[iface="wasi:filesystem/types@0.2.12", function="[method]descriptor.unlink-file-at"][Instruction::Return]', {
7540
7731
  funcName: '[method]descriptor.unlink-file-at',
7541
7732
  paramCount: 0,
7542
7733
  async: false,
@@ -7545,9 +7736,9 @@ _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.un
7545
7736
  task.resolve([ret]);
7546
7737
  task.exit();
7547
7738
  }
7548
- _trampoline29.fnName = 'wasi:filesystem/types@0.2.6#unlinkFileAt';
7739
+ _trampoline31.fnName = 'wasi:filesystem/types@0.2.12#unlinkFileAt';
7549
7740
 
7550
- const _trampoline30 = function(arg0, arg1) {
7741
+ const _trampoline32 = function(arg0, arg1) {
7551
7742
  var handle1 = arg0;
7552
7743
 
7553
7744
  var rep2 = handleTable6[(handle1 << 1) + 1] & ~T_FLAG;
@@ -7559,7 +7750,7 @@ const _trampoline30 = function(arg0, arg1) {
7559
7750
  }
7560
7751
 
7561
7752
  curResourceBorrows.push(rsc0);
7562
- _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.metadata-hash"] [Instruction::CallInterface] (sync, @ enter)');
7753
+ _debugLog('[iface="wasi:filesystem/types@0.2.12", function="[method]descriptor.metadata-hash"] [Instruction::CallInterface] (sync, @ enter)');
7563
7754
  let hostProvided = true;
7564
7755
 
7565
7756
  let parentTask;
@@ -7797,7 +7988,7 @@ switch (variant5.tag) {
7797
7988
  throw new TypeError('invalid variant specified for result');
7798
7989
  }
7799
7990
  }
7800
- _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.metadata-hash"][Instruction::Return]', {
7991
+ _debugLog('[iface="wasi:filesystem/types@0.2.12", function="[method]descriptor.metadata-hash"][Instruction::Return]', {
7801
7992
  funcName: '[method]descriptor.metadata-hash',
7802
7993
  paramCount: 0,
7803
7994
  async: false,
@@ -7806,9 +7997,9 @@ _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.me
7806
7997
  task.resolve([ret]);
7807
7998
  task.exit();
7808
7999
  }
7809
- _trampoline30.fnName = 'wasi:filesystem/types@0.2.6#metadataHash';
8000
+ _trampoline32.fnName = 'wasi:filesystem/types@0.2.12#metadataHash';
7810
8001
 
7811
- const _trampoline31 = function(arg0, arg1, arg2, arg3, arg4) {
8002
+ const _trampoline33 = function(arg0, arg1, arg2, arg3, arg4) {
7812
8003
  var handle1 = arg0;
7813
8004
 
7814
8005
  var rep2 = handleTable6[(handle1 << 1) + 1] & ~T_FLAG;
@@ -7829,7 +8020,7 @@ const _trampoline31 = function(arg0, arg1, arg2, arg3, arg4) {
7829
8020
  var ptr4 = arg2;
7830
8021
  var len4 = arg3;
7831
8022
  var result4 = TEXT_DECODER_UTF8.decode(new Uint8Array(memory0.buffer, ptr4, len4));
7832
- _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.metadata-hash-at"] [Instruction::CallInterface] (sync, @ enter)');
8023
+ _debugLog('[iface="wasi:filesystem/types@0.2.12", function="[method]descriptor.metadata-hash-at"] [Instruction::CallInterface] (sync, @ enter)');
7833
8024
  let hostProvided = true;
7834
8025
 
7835
8026
  let parentTask;
@@ -8067,7 +8258,7 @@ switch (variant7.tag) {
8067
8258
  throw new TypeError('invalid variant specified for result');
8068
8259
  }
8069
8260
  }
8070
- _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.metadata-hash-at"][Instruction::Return]', {
8261
+ _debugLog('[iface="wasi:filesystem/types@0.2.12", function="[method]descriptor.metadata-hash-at"][Instruction::Return]', {
8071
8262
  funcName: '[method]descriptor.metadata-hash-at',
8072
8263
  paramCount: 0,
8073
8264
  async: false,
@@ -8076,9 +8267,9 @@ _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]descriptor.me
8076
8267
  task.resolve([ret]);
8077
8268
  task.exit();
8078
8269
  }
8079
- _trampoline31.fnName = 'wasi:filesystem/types@0.2.6#metadataHashAt';
8270
+ _trampoline33.fnName = 'wasi:filesystem/types@0.2.12#metadataHashAt';
8080
8271
 
8081
- const _trampoline32 = function(arg0, arg1) {
8272
+ const _trampoline34 = function(arg0, arg1) {
8082
8273
  var handle1 = arg0;
8083
8274
 
8084
8275
  var rep2 = handleTable7[(handle1 << 1) + 1] & ~T_FLAG;
@@ -8090,7 +8281,7 @@ const _trampoline32 = function(arg0, arg1) {
8090
8281
  }
8091
8282
 
8092
8283
  curResourceBorrows.push(rsc0);
8093
- _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]directory-entry-stream.read-directory-entry"] [Instruction::CallInterface] (sync, @ enter)');
8284
+ _debugLog('[iface="wasi:filesystem/types@0.2.12", function="[method]directory-entry-stream.read-directory-entry"] [Instruction::CallInterface] (sync, @ enter)');
8094
8285
  let hostProvided = true;
8095
8286
 
8096
8287
  let parentTask;
@@ -8384,7 +8575,7 @@ switch (variant8.tag) {
8384
8575
  throw new TypeError('invalid variant specified for result');
8385
8576
  }
8386
8577
  }
8387
- _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]directory-entry-stream.read-directory-entry"][Instruction::Return]', {
8578
+ _debugLog('[iface="wasi:filesystem/types@0.2.12", function="[method]directory-entry-stream.read-directory-entry"][Instruction::Return]', {
8388
8579
  funcName: '[method]directory-entry-stream.read-directory-entry',
8389
8580
  paramCount: 0,
8390
8581
  async: false,
@@ -8393,10 +8584,10 @@ _debugLog('[iface="wasi:filesystem/types@0.2.6", function="[method]directory-ent
8393
8584
  task.resolve([ret]);
8394
8585
  task.exit();
8395
8586
  }
8396
- _trampoline32.fnName = 'wasi:filesystem/types@0.2.6#readDirectoryEntry';
8587
+ _trampoline34.fnName = 'wasi:filesystem/types@0.2.12#readDirectoryEntry';
8397
8588
 
8398
- const _trampoline33 = function(arg0) {
8399
- _debugLog('[iface="wasi:cli/environment@0.2.6", function="get-environment"] [Instruction::CallInterface] (sync, @ enter)');
8589
+ const _trampoline35 = function(arg0) {
8590
+ _debugLog('[iface="wasi:cli/environment@0.2.12", function="get-environment"] [Instruction::CallInterface] (sync, @ enter)');
8400
8591
  let hostProvided = true;
8401
8592
 
8402
8593
  let parentTask;
@@ -8464,7 +8655,7 @@ const _trampoline33 = function(arg0) {
8464
8655
  }
8465
8656
  dataView(memory0).setUint32(arg0 + 4, len3, true);
8466
8657
  dataView(memory0).setUint32(arg0 + 0, result3, true);
8467
- _debugLog('[iface="wasi:cli/environment@0.2.6", function="get-environment"][Instruction::Return]', {
8658
+ _debugLog('[iface="wasi:cli/environment@0.2.12", function="get-environment"][Instruction::Return]', {
8468
8659
  funcName: 'get-environment',
8469
8660
  paramCount: 0,
8470
8661
  async: false,
@@ -8473,14 +8664,14 @@ const _trampoline33 = function(arg0) {
8473
8664
  task.resolve([ret]);
8474
8665
  task.exit();
8475
8666
  }
8476
- _trampoline33.fnName = 'wasi:cli/environment@0.2.6#getEnvironment';
8667
+ _trampoline35.fnName = 'wasi:cli/environment@0.2.12#getEnvironment';
8477
8668
  const handleTable4 = [T_FLAG, 0];
8478
8669
  const captureTable4= new Map();
8479
8670
  let captureCnt4 = 0;
8480
8671
  handleTables[4] = handleTable4;
8481
8672
 
8482
- const _trampoline34 = function(arg0) {
8483
- _debugLog('[iface="wasi:cli/terminal-stdin@0.2.6", function="get-terminal-stdin"] [Instruction::CallInterface] (sync, @ enter)');
8673
+ const _trampoline36 = function(arg0) {
8674
+ _debugLog('[iface="wasi:cli/terminal-stdin@0.2.12", function="get-terminal-stdin"] [Instruction::CallInterface] (sync, @ enter)');
8484
8675
  let hostProvided = true;
8485
8676
 
8486
8677
  let parentTask;
@@ -8544,7 +8735,7 @@ const _trampoline34 = function(arg0) {
8544
8735
 
8545
8736
  dataView(memory0).setInt32(arg0 + 4, handle0, true);
8546
8737
  }
8547
- _debugLog('[iface="wasi:cli/terminal-stdin@0.2.6", function="get-terminal-stdin"][Instruction::Return]', {
8738
+ _debugLog('[iface="wasi:cli/terminal-stdin@0.2.12", function="get-terminal-stdin"][Instruction::Return]', {
8548
8739
  funcName: 'get-terminal-stdin',
8549
8740
  paramCount: 0,
8550
8741
  async: false,
@@ -8553,14 +8744,14 @@ const _trampoline34 = function(arg0) {
8553
8744
  task.resolve([ret]);
8554
8745
  task.exit();
8555
8746
  }
8556
- _trampoline34.fnName = 'wasi:cli/terminal-stdin@0.2.6#getTerminalStdin';
8747
+ _trampoline36.fnName = 'wasi:cli/terminal-stdin@0.2.12#getTerminalStdin';
8557
8748
  const handleTable5 = [T_FLAG, 0];
8558
8749
  const captureTable5= new Map();
8559
8750
  let captureCnt5 = 0;
8560
8751
  handleTables[5] = handleTable5;
8561
8752
 
8562
- const _trampoline35 = function(arg0) {
8563
- _debugLog('[iface="wasi:cli/terminal-stdout@0.2.6", function="get-terminal-stdout"] [Instruction::CallInterface] (sync, @ enter)');
8753
+ const _trampoline37 = function(arg0) {
8754
+ _debugLog('[iface="wasi:cli/terminal-stdout@0.2.12", function="get-terminal-stdout"] [Instruction::CallInterface] (sync, @ enter)');
8564
8755
  let hostProvided = true;
8565
8756
 
8566
8757
  let parentTask;
@@ -8624,7 +8815,7 @@ const _trampoline35 = function(arg0) {
8624
8815
 
8625
8816
  dataView(memory0).setInt32(arg0 + 4, handle0, true);
8626
8817
  }
8627
- _debugLog('[iface="wasi:cli/terminal-stdout@0.2.6", function="get-terminal-stdout"][Instruction::Return]', {
8818
+ _debugLog('[iface="wasi:cli/terminal-stdout@0.2.12", function="get-terminal-stdout"][Instruction::Return]', {
8628
8819
  funcName: 'get-terminal-stdout',
8629
8820
  paramCount: 0,
8630
8821
  async: false,
@@ -8633,10 +8824,10 @@ const _trampoline35 = function(arg0) {
8633
8824
  task.resolve([ret]);
8634
8825
  task.exit();
8635
8826
  }
8636
- _trampoline35.fnName = 'wasi:cli/terminal-stdout@0.2.6#getTerminalStdout';
8827
+ _trampoline37.fnName = 'wasi:cli/terminal-stdout@0.2.12#getTerminalStdout';
8637
8828
 
8638
- const _trampoline36 = function(arg0) {
8639
- _debugLog('[iface="wasi:cli/terminal-stderr@0.2.6", function="get-terminal-stderr"] [Instruction::CallInterface] (sync, @ enter)');
8829
+ const _trampoline38 = function(arg0) {
8830
+ _debugLog('[iface="wasi:cli/terminal-stderr@0.2.12", function="get-terminal-stderr"] [Instruction::CallInterface] (sync, @ enter)');
8640
8831
  let hostProvided = true;
8641
8832
 
8642
8833
  let parentTask;
@@ -8700,7 +8891,7 @@ const _trampoline36 = function(arg0) {
8700
8891
 
8701
8892
  dataView(memory0).setInt32(arg0 + 4, handle0, true);
8702
8893
  }
8703
- _debugLog('[iface="wasi:cli/terminal-stderr@0.2.6", function="get-terminal-stderr"][Instruction::Return]', {
8894
+ _debugLog('[iface="wasi:cli/terminal-stderr@0.2.12", function="get-terminal-stderr"][Instruction::Return]', {
8704
8895
  funcName: 'get-terminal-stderr',
8705
8896
  paramCount: 0,
8706
8897
  async: false,
@@ -8709,10 +8900,10 @@ const _trampoline36 = function(arg0) {
8709
8900
  task.resolve([ret]);
8710
8901
  task.exit();
8711
8902
  }
8712
- _trampoline36.fnName = 'wasi:cli/terminal-stderr@0.2.6#getTerminalStderr';
8903
+ _trampoline38.fnName = 'wasi:cli/terminal-stderr@0.2.12#getTerminalStderr';
8713
8904
 
8714
- const _trampoline37 = function(arg0) {
8715
- _debugLog('[iface="wasi:filesystem/preopens@0.2.6", function="get-directories"] [Instruction::CallInterface] (sync, @ enter)');
8905
+ const _trampoline39 = function(arg0) {
8906
+ _debugLog('[iface="wasi:filesystem/preopens@0.2.12", function="get-directories"] [Instruction::CallInterface] (sync, @ enter)');
8716
8907
  let hostProvided = true;
8717
8908
 
8718
8909
  let parentTask;
@@ -8785,7 +8976,7 @@ const _trampoline37 = function(arg0) {
8785
8976
  }
8786
8977
  dataView(memory0).setUint32(arg0 + 4, len3, true);
8787
8978
  dataView(memory0).setUint32(arg0 + 0, result3, true);
8788
- _debugLog('[iface="wasi:filesystem/preopens@0.2.6", function="get-directories"][Instruction::Return]', {
8979
+ _debugLog('[iface="wasi:filesystem/preopens@0.2.12", function="get-directories"][Instruction::Return]', {
8789
8980
  funcName: 'get-directories',
8790
8981
  paramCount: 0,
8791
8982
  async: false,
@@ -8794,7 +8985,7 @@ const _trampoline37 = function(arg0) {
8794
8985
  task.resolve([ret]);
8795
8986
  task.exit();
8796
8987
  }
8797
- _trampoline37.fnName = 'wasi:filesystem/preopens@0.2.6#getDirectories';
8988
+ _trampoline39.fnName = 'wasi:filesystem/preopens@0.2.12#getDirectories';
8798
8989
  let exports2;
8799
8990
  let run020Run;
8800
8991
 
@@ -9275,20 +9466,19 @@ null,
9275
9466
  componentIdx: 0,
9276
9467
  isAsync: false,
9277
9468
  isManualAsync: _trampoline15.manuallyAsync,
9278
- paramLiftFns: [],
9279
- resultLowerFns: [_lowerFlatList({
9280
- elemLowerFn: _lowerFlatStringAny,
9281
- elemSize32: 8,
9282
- elemAlign32: 4,
9469
+ paramLiftFns: [_liftFlatU64],
9470
+ resultLowerFns: [_lowerFlatOwn({
9471
+ componentIdx: 0,
9472
+ lowerFn: () => { throw new Error('missing/invalid resource metadata'); }
9283
9473
  })],
9284
9474
  funcTypeIsAsync: false,
9285
9475
  getCallbackFn: () => null,
9286
9476
  getPostReturnFn: () => null,
9287
9477
  isCancellable: false,
9288
- memoryIdx: 0,
9478
+ memoryIdx: null,
9289
9479
  stringEncoding: 'utf8',
9290
- getMemoryFn: () => memory0,
9291
- getReallocFn: () => realloc0,
9480
+ getMemoryFn: () => null,
9481
+ getReallocFn: () => null,
9292
9482
  importFn: _trampoline15,
9293
9483
  },
9294
9484
  )) : _lowerImportBackwardsCompat.bind(
@@ -9298,20 +9488,19 @@ null,
9298
9488
  componentIdx: 0,
9299
9489
  isAsync: false,
9300
9490
  isManualAsync: _trampoline15.manuallyAsync,
9301
- paramLiftFns: [],
9302
- resultLowerFns: [_lowerFlatList({
9303
- elemLowerFn: _lowerFlatStringAny,
9304
- elemSize32: 8,
9305
- elemAlign32: 4,
9491
+ paramLiftFns: [_liftFlatU64],
9492
+ resultLowerFns: [_lowerFlatOwn({
9493
+ componentIdx: 0,
9494
+ lowerFn: () => { throw new Error('missing/invalid resource metadata'); }
9306
9495
  })],
9307
9496
  funcTypeIsAsync: false,
9308
9497
  getCallbackFn: () => null,
9309
9498
  getPostReturnFn: () => null,
9310
9499
  isCancellable: false,
9311
- memoryIdx: 0,
9500
+ memoryIdx: null,
9312
9501
  stringEncoding: 'utf8',
9313
- getMemoryFn: () => memory0,
9314
- getReallocFn: () => realloc0,
9502
+ getMemoryFn: () => null,
9503
+ getReallocFn: () => null,
9315
9504
  importFn: _trampoline15,
9316
9505
  },
9317
9506
  );
@@ -9323,7 +9512,11 @@ null,
9323
9512
  isAsync: false,
9324
9513
  isManualAsync: _trampoline16.manuallyAsync,
9325
9514
  paramLiftFns: [],
9326
- resultLowerFns: [_lowerFlatTuple([[_lowerFlatU64, 16, 8],[_lowerFlatU64, 16, 8],])],
9515
+ resultLowerFns: [_lowerFlatList({
9516
+ elemLowerFn: _lowerFlatStringAny,
9517
+ elemSize32: 8,
9518
+ elemAlign32: 4,
9519
+ })],
9327
9520
  funcTypeIsAsync: false,
9328
9521
  getCallbackFn: () => null,
9329
9522
  getPostReturnFn: () => null,
@@ -9331,7 +9524,7 @@ null,
9331
9524
  memoryIdx: 0,
9332
9525
  stringEncoding: 'utf8',
9333
9526
  getMemoryFn: () => memory0,
9334
- getReallocFn: () => null,
9527
+ getReallocFn: () => realloc0,
9335
9528
  importFn: _trampoline16,
9336
9529
  },
9337
9530
  )) : _lowerImportBackwardsCompat.bind(
@@ -9342,7 +9535,11 @@ null,
9342
9535
  isAsync: false,
9343
9536
  isManualAsync: _trampoline16.manuallyAsync,
9344
9537
  paramLiftFns: [],
9345
- resultLowerFns: [_lowerFlatTuple([[_lowerFlatU64, 16, 8],[_lowerFlatU64, 16, 8],])],
9538
+ resultLowerFns: [_lowerFlatList({
9539
+ elemLowerFn: _lowerFlatStringAny,
9540
+ elemSize32: 8,
9541
+ elemAlign32: 4,
9542
+ })],
9346
9543
  funcTypeIsAsync: false,
9347
9544
  getCallbackFn: () => null,
9348
9545
  getPostReturnFn: () => null,
@@ -9350,7 +9547,7 @@ null,
9350
9547
  memoryIdx: 0,
9351
9548
  stringEncoding: 'utf8',
9352
9549
  getMemoryFn: () => memory0,
9353
- getReallocFn: () => null,
9550
+ getReallocFn: () => realloc0,
9354
9551
  importFn: _trampoline16,
9355
9552
  },
9356
9553
  );
@@ -9361,19 +9558,8 @@ null,
9361
9558
  componentIdx: 0,
9362
9559
  isAsync: false,
9363
9560
  isManualAsync: _trampoline17.manuallyAsync,
9364
- paramLiftFns: [_liftFlatBorrow.bind(null, 2),_liftFlatU64],
9365
- resultLowerFns: [_lowerFlatResult([
9366
- [ 'ok', _lowerFlatList({
9367
- elemLowerFn: _lowerFlatU8,
9368
- elemSize32: 1,
9369
- elemAlign32: 1,
9370
- }), 12, 4, 4 ],
9371
- [ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
9372
- componentIdx: 0,
9373
- lowerFn: () => { throw new Error('missing/invalid resource metadata'); }
9374
- }), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
9375
- ])
9376
- ],
9561
+ paramLiftFns: [],
9562
+ resultLowerFns: [_lowerFlatTuple([[_lowerFlatU64, 16, 8],[_lowerFlatU64, 16, 8],])],
9377
9563
  funcTypeIsAsync: false,
9378
9564
  getCallbackFn: () => null,
9379
9565
  getPostReturnFn: () => null,
@@ -9381,7 +9567,7 @@ null,
9381
9567
  memoryIdx: 0,
9382
9568
  stringEncoding: 'utf8',
9383
9569
  getMemoryFn: () => memory0,
9384
- getReallocFn: () => realloc0,
9570
+ getReallocFn: () => null,
9385
9571
  importFn: _trampoline17,
9386
9572
  },
9387
9573
  )) : _lowerImportBackwardsCompat.bind(
@@ -9391,19 +9577,8 @@ null,
9391
9577
  componentIdx: 0,
9392
9578
  isAsync: false,
9393
9579
  isManualAsync: _trampoline17.manuallyAsync,
9394
- paramLiftFns: [_liftFlatBorrow.bind(null, 2),_liftFlatU64],
9395
- resultLowerFns: [_lowerFlatResult([
9396
- [ 'ok', _lowerFlatList({
9397
- elemLowerFn: _lowerFlatU8,
9398
- elemSize32: 1,
9399
- elemAlign32: 1,
9400
- }), 12, 4, 4 ],
9401
- [ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
9402
- componentIdx: 0,
9403
- lowerFn: () => { throw new Error('missing/invalid resource metadata'); }
9404
- }), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
9405
- ])
9406
- ],
9580
+ paramLiftFns: [],
9581
+ resultLowerFns: [_lowerFlatTuple([[_lowerFlatU64, 16, 8],[_lowerFlatU64, 16, 8],])],
9407
9582
  funcTypeIsAsync: false,
9408
9583
  getCallbackFn: () => null,
9409
9584
  getPostReturnFn: () => null,
@@ -9411,7 +9586,7 @@ null,
9411
9586
  memoryIdx: 0,
9412
9587
  stringEncoding: 'utf8',
9413
9588
  getMemoryFn: () => memory0,
9414
- getReallocFn: () => realloc0,
9589
+ getReallocFn: () => null,
9415
9590
  importFn: _trampoline17,
9416
9591
  },
9417
9592
  );
@@ -9422,15 +9597,16 @@ null,
9422
9597
  componentIdx: 0,
9423
9598
  isAsync: false,
9424
9599
  isManualAsync: _trampoline18.manuallyAsync,
9425
- paramLiftFns: [_liftFlatBorrow.bind(null, 3)],
9426
- resultLowerFns: [_lowerFlatResult([
9427
- [ 'ok', _lowerFlatU64, 16, 8, 8 ],
9428
- [ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
9429
- componentIdx: 0,
9430
- lowerFn: () => { throw new Error('missing/invalid resource metadata'); }
9431
- }), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 16, 8, 8 ],
9432
- ])
9433
- ],
9600
+ paramLiftFns: [_liftFlatList({
9601
+ elemLiftFn: _liftFlatBorrow.bind(null, 0),
9602
+ elemAlign32: 4,
9603
+ elemSize32: 4,
9604
+ })],
9605
+ resultLowerFns: [_lowerFlatList({
9606
+ elemLowerFn: _lowerFlatU32,
9607
+ elemSize32: 4,
9608
+ elemAlign32: 4,
9609
+ })],
9434
9610
  funcTypeIsAsync: false,
9435
9611
  getCallbackFn: () => null,
9436
9612
  getPostReturnFn: () => null,
@@ -9438,7 +9614,7 @@ null,
9438
9614
  memoryIdx: 0,
9439
9615
  stringEncoding: 'utf8',
9440
9616
  getMemoryFn: () => memory0,
9441
- getReallocFn: () => null,
9617
+ getReallocFn: () => realloc0,
9442
9618
  importFn: _trampoline18,
9443
9619
  },
9444
9620
  )) : _lowerImportBackwardsCompat.bind(
@@ -9448,23 +9624,24 @@ null,
9448
9624
  componentIdx: 0,
9449
9625
  isAsync: false,
9450
9626
  isManualAsync: _trampoline18.manuallyAsync,
9451
- paramLiftFns: [_liftFlatBorrow.bind(null, 3)],
9452
- resultLowerFns: [_lowerFlatResult([
9453
- [ 'ok', _lowerFlatU64, 16, 8, 8 ],
9454
- [ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
9455
- componentIdx: 0,
9456
- lowerFn: () => { throw new Error('missing/invalid resource metadata'); }
9457
- }), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 16, 8, 8 ],
9458
- ])
9459
- ],
9460
- funcTypeIsAsync: false,
9461
- getCallbackFn: () => null,
9627
+ paramLiftFns: [_liftFlatList({
9628
+ elemLiftFn: _liftFlatBorrow.bind(null, 0),
9629
+ elemAlign32: 4,
9630
+ elemSize32: 4,
9631
+ })],
9632
+ resultLowerFns: [_lowerFlatList({
9633
+ elemLowerFn: _lowerFlatU32,
9634
+ elemSize32: 4,
9635
+ elemAlign32: 4,
9636
+ })],
9637
+ funcTypeIsAsync: false,
9638
+ getCallbackFn: () => null,
9462
9639
  getPostReturnFn: () => null,
9463
9640
  isCancellable: false,
9464
9641
  memoryIdx: 0,
9465
9642
  stringEncoding: 'utf8',
9466
9643
  getMemoryFn: () => memory0,
9467
- getReallocFn: () => null,
9644
+ getReallocFn: () => realloc0,
9468
9645
  importFn: _trampoline18,
9469
9646
  },
9470
9647
  );
@@ -9475,13 +9652,13 @@ null,
9475
9652
  componentIdx: 0,
9476
9653
  isAsync: false,
9477
9654
  isManualAsync: _trampoline19.manuallyAsync,
9478
- paramLiftFns: [_liftFlatBorrow.bind(null, 3),_liftFlatList({
9479
- elemLiftFn: _liftFlatU8,
9480
- elemAlign32: 1,
9481
- elemSize32: 1,
9482
- })],
9655
+ paramLiftFns: [_liftFlatBorrow.bind(null, 2),_liftFlatU64],
9483
9656
  resultLowerFns: [_lowerFlatResult([
9484
- [ 'ok', null, 12, 4, 4 ],
9657
+ [ 'ok', _lowerFlatList({
9658
+ elemLowerFn: _lowerFlatU8,
9659
+ elemSize32: 1,
9660
+ elemAlign32: 1,
9661
+ }), 12, 4, 4 ],
9485
9662
  [ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
9486
9663
  componentIdx: 0,
9487
9664
  lowerFn: () => { throw new Error('missing/invalid resource metadata'); }
@@ -9495,7 +9672,7 @@ null,
9495
9672
  memoryIdx: 0,
9496
9673
  stringEncoding: 'utf8',
9497
9674
  getMemoryFn: () => memory0,
9498
- getReallocFn: () => null,
9675
+ getReallocFn: () => realloc0,
9499
9676
  importFn: _trampoline19,
9500
9677
  },
9501
9678
  )) : _lowerImportBackwardsCompat.bind(
@@ -9505,13 +9682,13 @@ null,
9505
9682
  componentIdx: 0,
9506
9683
  isAsync: false,
9507
9684
  isManualAsync: _trampoline19.manuallyAsync,
9508
- paramLiftFns: [_liftFlatBorrow.bind(null, 3),_liftFlatList({
9509
- elemLiftFn: _liftFlatU8,
9510
- elemAlign32: 1,
9511
- elemSize32: 1,
9512
- })],
9685
+ paramLiftFns: [_liftFlatBorrow.bind(null, 2),_liftFlatU64],
9513
9686
  resultLowerFns: [_lowerFlatResult([
9514
- [ 'ok', null, 12, 4, 4 ],
9687
+ [ 'ok', _lowerFlatList({
9688
+ elemLowerFn: _lowerFlatU8,
9689
+ elemSize32: 1,
9690
+ elemAlign32: 1,
9691
+ }), 12, 4, 4 ],
9515
9692
  [ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
9516
9693
  componentIdx: 0,
9517
9694
  lowerFn: () => { throw new Error('missing/invalid resource metadata'); }
@@ -9525,7 +9702,7 @@ null,
9525
9702
  memoryIdx: 0,
9526
9703
  stringEncoding: 'utf8',
9527
9704
  getMemoryFn: () => memory0,
9528
- getReallocFn: () => null,
9705
+ getReallocFn: () => realloc0,
9529
9706
  importFn: _trampoline19,
9530
9707
  },
9531
9708
  );
@@ -9538,11 +9715,11 @@ null,
9538
9715
  isManualAsync: _trampoline20.manuallyAsync,
9539
9716
  paramLiftFns: [_liftFlatBorrow.bind(null, 3)],
9540
9717
  resultLowerFns: [_lowerFlatResult([
9541
- [ 'ok', null, 12, 4, 4 ],
9718
+ [ 'ok', _lowerFlatU64, 16, 8, 8 ],
9542
9719
  [ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
9543
9720
  componentIdx: 0,
9544
9721
  lowerFn: () => { throw new Error('missing/invalid resource metadata'); }
9545
- }), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
9722
+ }), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 16, 8, 8 ],
9546
9723
  ])
9547
9724
  ],
9548
9725
  funcTypeIsAsync: false,
@@ -9564,11 +9741,11 @@ null,
9564
9741
  isManualAsync: _trampoline20.manuallyAsync,
9565
9742
  paramLiftFns: [_liftFlatBorrow.bind(null, 3)],
9566
9743
  resultLowerFns: [_lowerFlatResult([
9567
- [ 'ok', null, 12, 4, 4 ],
9744
+ [ 'ok', _lowerFlatU64, 16, 8, 8 ],
9568
9745
  [ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
9569
9746
  componentIdx: 0,
9570
9747
  lowerFn: () => { throw new Error('missing/invalid resource metadata'); }
9571
- }), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
9748
+ }), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 16, 8, 8 ],
9572
9749
  ])
9573
9750
  ],
9574
9751
  funcTypeIsAsync: false,
@@ -9589,13 +9766,17 @@ null,
9589
9766
  componentIdx: 0,
9590
9767
  isAsync: false,
9591
9768
  isManualAsync: _trampoline21.manuallyAsync,
9592
- paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatU64],
9769
+ paramLiftFns: [_liftFlatBorrow.bind(null, 3),_liftFlatList({
9770
+ elemLiftFn: _liftFlatU8,
9771
+ elemAlign32: 1,
9772
+ elemSize32: 1,
9773
+ })],
9593
9774
  resultLowerFns: [_lowerFlatResult([
9594
- [ 'ok', _lowerFlatOwn({
9775
+ [ 'ok', null, 12, 4, 4 ],
9776
+ [ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
9595
9777
  componentIdx: 0,
9596
9778
  lowerFn: () => { throw new Error('missing/invalid resource metadata'); }
9597
- }), 8, 4, 4 ],
9598
- [ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
9779
+ }), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
9599
9780
  ])
9600
9781
  ],
9601
9782
  funcTypeIsAsync: false,
@@ -9615,13 +9796,17 @@ null,
9615
9796
  componentIdx: 0,
9616
9797
  isAsync: false,
9617
9798
  isManualAsync: _trampoline21.manuallyAsync,
9618
- paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatU64],
9799
+ paramLiftFns: [_liftFlatBorrow.bind(null, 3),_liftFlatList({
9800
+ elemLiftFn: _liftFlatU8,
9801
+ elemAlign32: 1,
9802
+ elemSize32: 1,
9803
+ })],
9619
9804
  resultLowerFns: [_lowerFlatResult([
9620
- [ 'ok', _lowerFlatOwn({
9805
+ [ 'ok', null, 12, 4, 4 ],
9806
+ [ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
9621
9807
  componentIdx: 0,
9622
9808
  lowerFn: () => { throw new Error('missing/invalid resource metadata'); }
9623
- }), 8, 4, 4 ],
9624
- [ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
9809
+ }), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
9625
9810
  ])
9626
9811
  ],
9627
9812
  funcTypeIsAsync: false,
@@ -9642,13 +9827,13 @@ null,
9642
9827
  componentIdx: 0,
9643
9828
  isAsync: false,
9644
9829
  isManualAsync: _trampoline22.manuallyAsync,
9645
- paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatU64],
9830
+ paramLiftFns: [_liftFlatBorrow.bind(null, 3)],
9646
9831
  resultLowerFns: [_lowerFlatResult([
9647
- [ 'ok', _lowerFlatOwn({
9832
+ [ 'ok', null, 12, 4, 4 ],
9833
+ [ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
9648
9834
  componentIdx: 0,
9649
9835
  lowerFn: () => { throw new Error('missing/invalid resource metadata'); }
9650
- }), 8, 4, 4 ],
9651
- [ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
9836
+ }), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
9652
9837
  ])
9653
9838
  ],
9654
9839
  funcTypeIsAsync: false,
@@ -9668,13 +9853,13 @@ null,
9668
9853
  componentIdx: 0,
9669
9854
  isAsync: false,
9670
9855
  isManualAsync: _trampoline22.manuallyAsync,
9671
- paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatU64],
9856
+ paramLiftFns: [_liftFlatBorrow.bind(null, 3)],
9672
9857
  resultLowerFns: [_lowerFlatResult([
9673
- [ 'ok', _lowerFlatOwn({
9858
+ [ 'ok', null, 12, 4, 4 ],
9859
+ [ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
9674
9860
  componentIdx: 0,
9675
9861
  lowerFn: () => { throw new Error('missing/invalid resource metadata'); }
9676
- }), 8, 4, 4 ],
9677
- [ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
9862
+ }), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
9678
9863
  ])
9679
9864
  ],
9680
9865
  funcTypeIsAsync: false,
@@ -9695,7 +9880,7 @@ null,
9695
9880
  componentIdx: 0,
9696
9881
  isAsync: false,
9697
9882
  isManualAsync: _trampoline23.manuallyAsync,
9698
- paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
9883
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatU64],
9699
9884
  resultLowerFns: [_lowerFlatResult([
9700
9885
  [ 'ok', _lowerFlatOwn({
9701
9886
  componentIdx: 0,
@@ -9721,7 +9906,7 @@ null,
9721
9906
  componentIdx: 0,
9722
9907
  isAsync: false,
9723
9908
  isManualAsync: _trampoline23.manuallyAsync,
9724
- paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
9909
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatU64],
9725
9910
  resultLowerFns: [_lowerFlatResult([
9726
9911
  [ 'ok', _lowerFlatOwn({
9727
9912
  componentIdx: 0,
@@ -9748,10 +9933,13 @@ null,
9748
9933
  componentIdx: 0,
9749
9934
  isAsync: false,
9750
9935
  isManualAsync: _trampoline24.manuallyAsync,
9751
- paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
9936
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatU64],
9752
9937
  resultLowerFns: [_lowerFlatResult([
9753
- [ 'ok', _lowerFlatFlags({ names: ['read','write','file-integrity-sync','data-integrity-sync','requested-write-sync','mutate-directory'], size32: 1, align32: 1, intSizeBytes: 1 }), 2, 1, 1 ],
9754
- [ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 2, 1, 1 ],
9938
+ [ 'ok', _lowerFlatOwn({
9939
+ componentIdx: 0,
9940
+ lowerFn: () => { throw new Error('missing/invalid resource metadata'); }
9941
+ }), 8, 4, 4 ],
9942
+ [ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
9755
9943
  ])
9756
9944
  ],
9757
9945
  funcTypeIsAsync: false,
@@ -9771,10 +9959,13 @@ null,
9771
9959
  componentIdx: 0,
9772
9960
  isAsync: false,
9773
9961
  isManualAsync: _trampoline24.manuallyAsync,
9774
- paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
9962
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatU64],
9775
9963
  resultLowerFns: [_lowerFlatResult([
9776
- [ 'ok', _lowerFlatFlags({ names: ['read','write','file-integrity-sync','data-integrity-sync','requested-write-sync','mutate-directory'], size32: 1, align32: 1, intSizeBytes: 1 }), 2, 1, 1 ],
9777
- [ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 2, 1, 1 ],
9964
+ [ 'ok', _lowerFlatOwn({
9965
+ componentIdx: 0,
9966
+ lowerFn: () => { throw new Error('missing/invalid resource metadata'); }
9967
+ }), 8, 4, 4 ],
9968
+ [ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
9778
9969
  ])
9779
9970
  ],
9780
9971
  funcTypeIsAsync: false,
@@ -9850,6 +10041,106 @@ null,
9850
10041
  isManualAsync: _trampoline26.manuallyAsync,
9851
10042
  paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
9852
10043
  resultLowerFns: [_lowerFlatResult([
10044
+ [ 'ok', _lowerFlatFlags({ names: ['read','write','file-integrity-sync','data-integrity-sync','requested-write-sync','mutate-directory'], size32: 1, align32: 1, intSizeBytes: 1 }), 2, 1, 1 ],
10045
+ [ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 2, 1, 1 ],
10046
+ ])
10047
+ ],
10048
+ funcTypeIsAsync: false,
10049
+ getCallbackFn: () => null,
10050
+ getPostReturnFn: () => null,
10051
+ isCancellable: false,
10052
+ memoryIdx: 0,
10053
+ stringEncoding: 'utf8',
10054
+ getMemoryFn: () => memory0,
10055
+ getReallocFn: () => null,
10056
+ importFn: _trampoline26,
10057
+ },
10058
+ )) : _lowerImportBackwardsCompat.bind(
10059
+ null,
10060
+ {
10061
+ trampolineIdx: 26,
10062
+ componentIdx: 0,
10063
+ isAsync: false,
10064
+ isManualAsync: _trampoline26.manuallyAsync,
10065
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
10066
+ resultLowerFns: [_lowerFlatResult([
10067
+ [ 'ok', _lowerFlatFlags({ names: ['read','write','file-integrity-sync','data-integrity-sync','requested-write-sync','mutate-directory'], size32: 1, align32: 1, intSizeBytes: 1 }), 2, 1, 1 ],
10068
+ [ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 2, 1, 1 ],
10069
+ ])
10070
+ ],
10071
+ funcTypeIsAsync: false,
10072
+ getCallbackFn: () => null,
10073
+ getPostReturnFn: () => null,
10074
+ isCancellable: false,
10075
+ memoryIdx: 0,
10076
+ stringEncoding: 'utf8',
10077
+ getMemoryFn: () => memory0,
10078
+ getReallocFn: () => null,
10079
+ importFn: _trampoline26,
10080
+ },
10081
+ );
10082
+ let trampoline27 = _trampoline27.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10083
+ null,
10084
+ {
10085
+ trampolineIdx: 27,
10086
+ componentIdx: 0,
10087
+ isAsync: false,
10088
+ isManualAsync: _trampoline27.manuallyAsync,
10089
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
10090
+ resultLowerFns: [_lowerFlatResult([
10091
+ [ 'ok', _lowerFlatOwn({
10092
+ componentIdx: 0,
10093
+ lowerFn: () => { throw new Error('missing/invalid resource metadata'); }
10094
+ }), 8, 4, 4 ],
10095
+ [ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
10096
+ ])
10097
+ ],
10098
+ funcTypeIsAsync: false,
10099
+ getCallbackFn: () => null,
10100
+ getPostReturnFn: () => null,
10101
+ isCancellable: false,
10102
+ memoryIdx: 0,
10103
+ stringEncoding: 'utf8',
10104
+ getMemoryFn: () => memory0,
10105
+ getReallocFn: () => null,
10106
+ importFn: _trampoline27,
10107
+ },
10108
+ )) : _lowerImportBackwardsCompat.bind(
10109
+ null,
10110
+ {
10111
+ trampolineIdx: 27,
10112
+ componentIdx: 0,
10113
+ isAsync: false,
10114
+ isManualAsync: _trampoline27.manuallyAsync,
10115
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
10116
+ resultLowerFns: [_lowerFlatResult([
10117
+ [ 'ok', _lowerFlatOwn({
10118
+ componentIdx: 0,
10119
+ lowerFn: () => { throw new Error('missing/invalid resource metadata'); }
10120
+ }), 8, 4, 4 ],
10121
+ [ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
10122
+ ])
10123
+ ],
10124
+ funcTypeIsAsync: false,
10125
+ getCallbackFn: () => null,
10126
+ getPostReturnFn: () => null,
10127
+ isCancellable: false,
10128
+ memoryIdx: 0,
10129
+ stringEncoding: 'utf8',
10130
+ getMemoryFn: () => memory0,
10131
+ getReallocFn: () => null,
10132
+ importFn: _trampoline27,
10133
+ },
10134
+ );
10135
+ let trampoline28 = _trampoline28.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10136
+ null,
10137
+ {
10138
+ trampolineIdx: 28,
10139
+ componentIdx: 0,
10140
+ isAsync: false,
10141
+ isManualAsync: _trampoline28.manuallyAsync,
10142
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
10143
+ resultLowerFns: [_lowerFlatResult([
9853
10144
  [ 'ok', _lowerFlatRecord([['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]), 96, 8 ],['linkCount', _lowerFlatU64, 96, 8 ],['size', _lowerFlatU64, 96, 8 ],['dataAccessTimestamp', _lowerFlatOption([
9854
10145
  [ 'none', null, 24, 8, 8 ],
9855
10146
  [ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64, 16, 8 ],['nanoseconds', _lowerFlatU32, 16, 8 ],]), 24, 8, 8 ],
@@ -9874,15 +10165,15 @@ null,
9874
10165
  stringEncoding: 'utf8',
9875
10166
  getMemoryFn: () => memory0,
9876
10167
  getReallocFn: () => null,
9877
- importFn: _trampoline26,
10168
+ importFn: _trampoline28,
9878
10169
  },
9879
10170
  )) : _lowerImportBackwardsCompat.bind(
9880
10171
  null,
9881
10172
  {
9882
- trampolineIdx: 26,
10173
+ trampolineIdx: 28,
9883
10174
  componentIdx: 0,
9884
10175
  isAsync: false,
9885
- isManualAsync: _trampoline26.manuallyAsync,
10176
+ isManualAsync: _trampoline28.manuallyAsync,
9886
10177
  paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
9887
10178
  resultLowerFns: [_lowerFlatResult([
9888
10179
  [ 'ok', _lowerFlatRecord([['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]), 96, 8 ],['linkCount', _lowerFlatU64, 96, 8 ],['size', _lowerFlatU64, 96, 8 ],['dataAccessTimestamp', _lowerFlatOption([
@@ -9909,16 +10200,16 @@ null,
9909
10200
  stringEncoding: 'utf8',
9910
10201
  getMemoryFn: () => memory0,
9911
10202
  getReallocFn: () => null,
9912
- importFn: _trampoline26,
10203
+ importFn: _trampoline28,
9913
10204
  },
9914
10205
  );
9915
- let trampoline27 = _trampoline27.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10206
+ let trampoline29 = _trampoline29.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
9916
10207
  null,
9917
10208
  {
9918
- trampolineIdx: 27,
10209
+ trampolineIdx: 29,
9919
10210
  componentIdx: 0,
9920
10211
  isAsync: false,
9921
- isManualAsync: _trampoline27.manuallyAsync,
10212
+ isManualAsync: _trampoline29.manuallyAsync,
9922
10213
  paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny],
9923
10214
  resultLowerFns: [_lowerFlatResult([
9924
10215
  [ 'ok', _lowerFlatRecord([['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]), 96, 8 ],['linkCount', _lowerFlatU64, 96, 8 ],['size', _lowerFlatU64, 96, 8 ],['dataAccessTimestamp', _lowerFlatOption([
@@ -9945,15 +10236,15 @@ null,
9945
10236
  stringEncoding: 'utf8',
9946
10237
  getMemoryFn: () => memory0,
9947
10238
  getReallocFn: () => null,
9948
- importFn: _trampoline27,
10239
+ importFn: _trampoline29,
9949
10240
  },
9950
10241
  )) : _lowerImportBackwardsCompat.bind(
9951
10242
  null,
9952
10243
  {
9953
- trampolineIdx: 27,
10244
+ trampolineIdx: 29,
9954
10245
  componentIdx: 0,
9955
10246
  isAsync: false,
9956
- isManualAsync: _trampoline27.manuallyAsync,
10247
+ isManualAsync: _trampoline29.manuallyAsync,
9957
10248
  paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny],
9958
10249
  resultLowerFns: [_lowerFlatResult([
9959
10250
  [ 'ok', _lowerFlatRecord([['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]), 96, 8 ],['linkCount', _lowerFlatU64, 96, 8 ],['size', _lowerFlatU64, 96, 8 ],['dataAccessTimestamp', _lowerFlatOption([
@@ -9980,16 +10271,16 @@ null,
9980
10271
  stringEncoding: 'utf8',
9981
10272
  getMemoryFn: () => memory0,
9982
10273
  getReallocFn: () => null,
9983
- importFn: _trampoline27,
10274
+ importFn: _trampoline29,
9984
10275
  },
9985
10276
  );
9986
- let trampoline28 = _trampoline28.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10277
+ let trampoline30 = _trampoline30.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
9987
10278
  null,
9988
10279
  {
9989
- trampolineIdx: 28,
10280
+ trampolineIdx: 30,
9990
10281
  componentIdx: 0,
9991
10282
  isAsync: false,
9992
- isManualAsync: _trampoline28.manuallyAsync,
10283
+ isManualAsync: _trampoline30.manuallyAsync,
9993
10284
  paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny,_liftFlatFlags({ names: ['create','directory','exclusive','truncate'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatFlags({ names: ['read','write','file-integrity-sync','data-integrity-sync','requested-write-sync','mutate-directory'], size32: 1, align32: 1, intSizeBytes: 1 })],
9994
10285
  resultLowerFns: [_lowerFlatResult([
9995
10286
  [ 'ok', _lowerFlatOwn({
@@ -10007,15 +10298,15 @@ null,
10007
10298
  stringEncoding: 'utf8',
10008
10299
  getMemoryFn: () => memory0,
10009
10300
  getReallocFn: () => null,
10010
- importFn: _trampoline28,
10301
+ importFn: _trampoline30,
10011
10302
  },
10012
10303
  )) : _lowerImportBackwardsCompat.bind(
10013
10304
  null,
10014
10305
  {
10015
- trampolineIdx: 28,
10306
+ trampolineIdx: 30,
10016
10307
  componentIdx: 0,
10017
10308
  isAsync: false,
10018
- isManualAsync: _trampoline28.manuallyAsync,
10309
+ isManualAsync: _trampoline30.manuallyAsync,
10019
10310
  paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny,_liftFlatFlags({ names: ['create','directory','exclusive','truncate'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatFlags({ names: ['read','write','file-integrity-sync','data-integrity-sync','requested-write-sync','mutate-directory'], size32: 1, align32: 1, intSizeBytes: 1 })],
10020
10311
  resultLowerFns: [_lowerFlatResult([
10021
10312
  [ 'ok', _lowerFlatOwn({
@@ -10033,16 +10324,16 @@ null,
10033
10324
  stringEncoding: 'utf8',
10034
10325
  getMemoryFn: () => memory0,
10035
10326
  getReallocFn: () => null,
10036
- importFn: _trampoline28,
10327
+ importFn: _trampoline30,
10037
10328
  },
10038
10329
  );
10039
- let trampoline29 = _trampoline29.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10330
+ let trampoline31 = _trampoline31.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10040
10331
  null,
10041
10332
  {
10042
- trampolineIdx: 29,
10333
+ trampolineIdx: 31,
10043
10334
  componentIdx: 0,
10044
10335
  isAsync: false,
10045
- isManualAsync: _trampoline29.manuallyAsync,
10336
+ isManualAsync: _trampoline31.manuallyAsync,
10046
10337
  paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatStringAny],
10047
10338
  resultLowerFns: [_lowerFlatResult([
10048
10339
  [ 'ok', null, 2, 1, 1 ],
@@ -10057,15 +10348,15 @@ null,
10057
10348
  stringEncoding: 'utf8',
10058
10349
  getMemoryFn: () => memory0,
10059
10350
  getReallocFn: () => null,
10060
- importFn: _trampoline29,
10351
+ importFn: _trampoline31,
10061
10352
  },
10062
10353
  )) : _lowerImportBackwardsCompat.bind(
10063
10354
  null,
10064
10355
  {
10065
- trampolineIdx: 29,
10356
+ trampolineIdx: 31,
10066
10357
  componentIdx: 0,
10067
10358
  isAsync: false,
10068
- isManualAsync: _trampoline29.manuallyAsync,
10359
+ isManualAsync: _trampoline31.manuallyAsync,
10069
10360
  paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatStringAny],
10070
10361
  resultLowerFns: [_lowerFlatResult([
10071
10362
  [ 'ok', null, 2, 1, 1 ],
@@ -10080,16 +10371,16 @@ null,
10080
10371
  stringEncoding: 'utf8',
10081
10372
  getMemoryFn: () => memory0,
10082
10373
  getReallocFn: () => null,
10083
- importFn: _trampoline29,
10374
+ importFn: _trampoline31,
10084
10375
  },
10085
10376
  );
10086
- let trampoline30 = _trampoline30.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10377
+ let trampoline32 = _trampoline32.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10087
10378
  null,
10088
10379
  {
10089
- trampolineIdx: 30,
10380
+ trampolineIdx: 32,
10090
10381
  componentIdx: 0,
10091
10382
  isAsync: false,
10092
- isManualAsync: _trampoline30.manuallyAsync,
10383
+ isManualAsync: _trampoline32.manuallyAsync,
10093
10384
  paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
10094
10385
  resultLowerFns: [_lowerFlatResult([
10095
10386
  [ 'ok', _lowerFlatRecord([['lower', _lowerFlatU64, 16, 8 ],['upper', _lowerFlatU64, 16, 8 ],]), 24, 8, 8 ],
@@ -10104,15 +10395,15 @@ null,
10104
10395
  stringEncoding: 'utf8',
10105
10396
  getMemoryFn: () => memory0,
10106
10397
  getReallocFn: () => null,
10107
- importFn: _trampoline30,
10398
+ importFn: _trampoline32,
10108
10399
  },
10109
10400
  )) : _lowerImportBackwardsCompat.bind(
10110
10401
  null,
10111
10402
  {
10112
- trampolineIdx: 30,
10403
+ trampolineIdx: 32,
10113
10404
  componentIdx: 0,
10114
10405
  isAsync: false,
10115
- isManualAsync: _trampoline30.manuallyAsync,
10406
+ isManualAsync: _trampoline32.manuallyAsync,
10116
10407
  paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
10117
10408
  resultLowerFns: [_lowerFlatResult([
10118
10409
  [ 'ok', _lowerFlatRecord([['lower', _lowerFlatU64, 16, 8 ],['upper', _lowerFlatU64, 16, 8 ],]), 24, 8, 8 ],
@@ -10127,16 +10418,16 @@ null,
10127
10418
  stringEncoding: 'utf8',
10128
10419
  getMemoryFn: () => memory0,
10129
10420
  getReallocFn: () => null,
10130
- importFn: _trampoline30,
10421
+ importFn: _trampoline32,
10131
10422
  },
10132
10423
  );
10133
- let trampoline31 = _trampoline31.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10424
+ let trampoline33 = _trampoline33.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10134
10425
  null,
10135
10426
  {
10136
- trampolineIdx: 31,
10427
+ trampolineIdx: 33,
10137
10428
  componentIdx: 0,
10138
10429
  isAsync: false,
10139
- isManualAsync: _trampoline31.manuallyAsync,
10430
+ isManualAsync: _trampoline33.manuallyAsync,
10140
10431
  paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny],
10141
10432
  resultLowerFns: [_lowerFlatResult([
10142
10433
  [ 'ok', _lowerFlatRecord([['lower', _lowerFlatU64, 16, 8 ],['upper', _lowerFlatU64, 16, 8 ],]), 24, 8, 8 ],
@@ -10151,15 +10442,15 @@ null,
10151
10442
  stringEncoding: 'utf8',
10152
10443
  getMemoryFn: () => memory0,
10153
10444
  getReallocFn: () => null,
10154
- importFn: _trampoline31,
10445
+ importFn: _trampoline33,
10155
10446
  },
10156
10447
  )) : _lowerImportBackwardsCompat.bind(
10157
10448
  null,
10158
10449
  {
10159
- trampolineIdx: 31,
10450
+ trampolineIdx: 33,
10160
10451
  componentIdx: 0,
10161
10452
  isAsync: false,
10162
- isManualAsync: _trampoline31.manuallyAsync,
10453
+ isManualAsync: _trampoline33.manuallyAsync,
10163
10454
  paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny],
10164
10455
  resultLowerFns: [_lowerFlatResult([
10165
10456
  [ 'ok', _lowerFlatRecord([['lower', _lowerFlatU64, 16, 8 ],['upper', _lowerFlatU64, 16, 8 ],]), 24, 8, 8 ],
@@ -10174,16 +10465,16 @@ null,
10174
10465
  stringEncoding: 'utf8',
10175
10466
  getMemoryFn: () => memory0,
10176
10467
  getReallocFn: () => null,
10177
- importFn: _trampoline31,
10468
+ importFn: _trampoline33,
10178
10469
  },
10179
10470
  );
10180
- let trampoline32 = _trampoline32.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10471
+ let trampoline34 = _trampoline34.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10181
10472
  null,
10182
10473
  {
10183
- trampolineIdx: 32,
10474
+ trampolineIdx: 34,
10184
10475
  componentIdx: 0,
10185
10476
  isAsync: false,
10186
- isManualAsync: _trampoline32.manuallyAsync,
10477
+ isManualAsync: _trampoline34.manuallyAsync,
10187
10478
  paramLiftFns: [_liftFlatBorrow.bind(null, 7)],
10188
10479
  resultLowerFns: [_lowerFlatResult([
10189
10480
  [ 'ok', _lowerFlatOption([
@@ -10202,15 +10493,15 @@ null,
10202
10493
  stringEncoding: 'utf8',
10203
10494
  getMemoryFn: () => memory0,
10204
10495
  getReallocFn: () => realloc0,
10205
- importFn: _trampoline32,
10496
+ importFn: _trampoline34,
10206
10497
  },
10207
10498
  )) : _lowerImportBackwardsCompat.bind(
10208
10499
  null,
10209
10500
  {
10210
- trampolineIdx: 32,
10501
+ trampolineIdx: 34,
10211
10502
  componentIdx: 0,
10212
10503
  isAsync: false,
10213
- isManualAsync: _trampoline32.manuallyAsync,
10504
+ isManualAsync: _trampoline34.manuallyAsync,
10214
10505
  paramLiftFns: [_liftFlatBorrow.bind(null, 7)],
10215
10506
  resultLowerFns: [_lowerFlatResult([
10216
10507
  [ 'ok', _lowerFlatOption([
@@ -10229,16 +10520,16 @@ null,
10229
10520
  stringEncoding: 'utf8',
10230
10521
  getMemoryFn: () => memory0,
10231
10522
  getReallocFn: () => realloc0,
10232
- importFn: _trampoline32,
10523
+ importFn: _trampoline34,
10233
10524
  },
10234
10525
  );
10235
- let trampoline33 = _trampoline33.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10526
+ let trampoline35 = _trampoline35.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10236
10527
  null,
10237
10528
  {
10238
- trampolineIdx: 33,
10529
+ trampolineIdx: 35,
10239
10530
  componentIdx: 0,
10240
10531
  isAsync: false,
10241
- isManualAsync: _trampoline33.manuallyAsync,
10532
+ isManualAsync: _trampoline35.manuallyAsync,
10242
10533
  paramLiftFns: [],
10243
10534
  resultLowerFns: [_lowerFlatList({
10244
10535
  elemLowerFn: _lowerFlatTuple([[_lowerFlatStringAny, 16, 4],[_lowerFlatStringAny, 16, 4],]),
@@ -10253,15 +10544,15 @@ null,
10253
10544
  stringEncoding: 'utf8',
10254
10545
  getMemoryFn: () => memory0,
10255
10546
  getReallocFn: () => realloc0,
10256
- importFn: _trampoline33,
10547
+ importFn: _trampoline35,
10257
10548
  },
10258
10549
  )) : _lowerImportBackwardsCompat.bind(
10259
10550
  null,
10260
10551
  {
10261
- trampolineIdx: 33,
10552
+ trampolineIdx: 35,
10262
10553
  componentIdx: 0,
10263
10554
  isAsync: false,
10264
- isManualAsync: _trampoline33.manuallyAsync,
10555
+ isManualAsync: _trampoline35.manuallyAsync,
10265
10556
  paramLiftFns: [],
10266
10557
  resultLowerFns: [_lowerFlatList({
10267
10558
  elemLowerFn: _lowerFlatTuple([[_lowerFlatStringAny, 16, 4],[_lowerFlatStringAny, 16, 4],]),
@@ -10276,16 +10567,16 @@ null,
10276
10567
  stringEncoding: 'utf8',
10277
10568
  getMemoryFn: () => memory0,
10278
10569
  getReallocFn: () => realloc0,
10279
- importFn: _trampoline33,
10570
+ importFn: _trampoline35,
10280
10571
  },
10281
10572
  );
10282
- let trampoline34 = _trampoline34.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10573
+ let trampoline36 = _trampoline36.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10283
10574
  null,
10284
10575
  {
10285
- trampolineIdx: 34,
10576
+ trampolineIdx: 36,
10286
10577
  componentIdx: 0,
10287
10578
  isAsync: false,
10288
- isManualAsync: _trampoline34.manuallyAsync,
10579
+ isManualAsync: _trampoline36.manuallyAsync,
10289
10580
  paramLiftFns: [],
10290
10581
  resultLowerFns: [_lowerFlatOption([
10291
10582
  [ 'none', null, 8, 4, 4 ],
@@ -10303,15 +10594,15 @@ null,
10303
10594
  stringEncoding: 'utf8',
10304
10595
  getMemoryFn: () => memory0,
10305
10596
  getReallocFn: () => null,
10306
- importFn: _trampoline34,
10597
+ importFn: _trampoline36,
10307
10598
  },
10308
10599
  )) : _lowerImportBackwardsCompat.bind(
10309
10600
  null,
10310
10601
  {
10311
- trampolineIdx: 34,
10602
+ trampolineIdx: 36,
10312
10603
  componentIdx: 0,
10313
10604
  isAsync: false,
10314
- isManualAsync: _trampoline34.manuallyAsync,
10605
+ isManualAsync: _trampoline36.manuallyAsync,
10315
10606
  paramLiftFns: [],
10316
10607
  resultLowerFns: [_lowerFlatOption([
10317
10608
  [ 'none', null, 8, 4, 4 ],
@@ -10329,16 +10620,16 @@ null,
10329
10620
  stringEncoding: 'utf8',
10330
10621
  getMemoryFn: () => memory0,
10331
10622
  getReallocFn: () => null,
10332
- importFn: _trampoline34,
10623
+ importFn: _trampoline36,
10333
10624
  },
10334
10625
  );
10335
- let trampoline35 = _trampoline35.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10626
+ let trampoline37 = _trampoline37.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10336
10627
  null,
10337
10628
  {
10338
- trampolineIdx: 35,
10629
+ trampolineIdx: 37,
10339
10630
  componentIdx: 0,
10340
10631
  isAsync: false,
10341
- isManualAsync: _trampoline35.manuallyAsync,
10632
+ isManualAsync: _trampoline37.manuallyAsync,
10342
10633
  paramLiftFns: [],
10343
10634
  resultLowerFns: [_lowerFlatOption([
10344
10635
  [ 'none', null, 8, 4, 4 ],
@@ -10356,15 +10647,15 @@ null,
10356
10647
  stringEncoding: 'utf8',
10357
10648
  getMemoryFn: () => memory0,
10358
10649
  getReallocFn: () => null,
10359
- importFn: _trampoline35,
10650
+ importFn: _trampoline37,
10360
10651
  },
10361
10652
  )) : _lowerImportBackwardsCompat.bind(
10362
10653
  null,
10363
10654
  {
10364
- trampolineIdx: 35,
10655
+ trampolineIdx: 37,
10365
10656
  componentIdx: 0,
10366
10657
  isAsync: false,
10367
- isManualAsync: _trampoline35.manuallyAsync,
10658
+ isManualAsync: _trampoline37.manuallyAsync,
10368
10659
  paramLiftFns: [],
10369
10660
  resultLowerFns: [_lowerFlatOption([
10370
10661
  [ 'none', null, 8, 4, 4 ],
@@ -10382,16 +10673,16 @@ null,
10382
10673
  stringEncoding: 'utf8',
10383
10674
  getMemoryFn: () => memory0,
10384
10675
  getReallocFn: () => null,
10385
- importFn: _trampoline35,
10676
+ importFn: _trampoline37,
10386
10677
  },
10387
10678
  );
10388
- let trampoline36 = _trampoline36.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10679
+ let trampoline38 = _trampoline38.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10389
10680
  null,
10390
10681
  {
10391
- trampolineIdx: 36,
10682
+ trampolineIdx: 38,
10392
10683
  componentIdx: 0,
10393
10684
  isAsync: false,
10394
- isManualAsync: _trampoline36.manuallyAsync,
10685
+ isManualAsync: _trampoline38.manuallyAsync,
10395
10686
  paramLiftFns: [],
10396
10687
  resultLowerFns: [_lowerFlatOption([
10397
10688
  [ 'none', null, 8, 4, 4 ],
@@ -10409,15 +10700,15 @@ null,
10409
10700
  stringEncoding: 'utf8',
10410
10701
  getMemoryFn: () => memory0,
10411
10702
  getReallocFn: () => null,
10412
- importFn: _trampoline36,
10703
+ importFn: _trampoline38,
10413
10704
  },
10414
10705
  )) : _lowerImportBackwardsCompat.bind(
10415
10706
  null,
10416
10707
  {
10417
- trampolineIdx: 36,
10708
+ trampolineIdx: 38,
10418
10709
  componentIdx: 0,
10419
10710
  isAsync: false,
10420
- isManualAsync: _trampoline36.manuallyAsync,
10711
+ isManualAsync: _trampoline38.manuallyAsync,
10421
10712
  paramLiftFns: [],
10422
10713
  resultLowerFns: [_lowerFlatOption([
10423
10714
  [ 'none', null, 8, 4, 4 ],
@@ -10435,16 +10726,16 @@ null,
10435
10726
  stringEncoding: 'utf8',
10436
10727
  getMemoryFn: () => memory0,
10437
10728
  getReallocFn: () => null,
10438
- importFn: _trampoline36,
10729
+ importFn: _trampoline38,
10439
10730
  },
10440
10731
  );
10441
- let trampoline37 = _trampoline37.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10732
+ let trampoline39 = _trampoline39.manuallyAsync ? new WebAssembly.Suspending(_lowerImportBackwardsCompat.bind(
10442
10733
  null,
10443
10734
  {
10444
- trampolineIdx: 37,
10735
+ trampolineIdx: 39,
10445
10736
  componentIdx: 0,
10446
10737
  isAsync: false,
10447
- isManualAsync: _trampoline37.manuallyAsync,
10738
+ isManualAsync: _trampoline39.manuallyAsync,
10448
10739
  paramLiftFns: [],
10449
10740
  resultLowerFns: [_lowerFlatList({
10450
10741
  elemLowerFn: _lowerFlatTuple([[_lowerFlatOwn({
@@ -10462,15 +10753,15 @@ null,
10462
10753
  stringEncoding: 'utf8',
10463
10754
  getMemoryFn: () => memory0,
10464
10755
  getReallocFn: () => realloc0,
10465
- importFn: _trampoline37,
10756
+ importFn: _trampoline39,
10466
10757
  },
10467
10758
  )) : _lowerImportBackwardsCompat.bind(
10468
10759
  null,
10469
10760
  {
10470
- trampolineIdx: 37,
10761
+ trampolineIdx: 39,
10471
10762
  componentIdx: 0,
10472
10763
  isAsync: false,
10473
- isManualAsync: _trampoline37.manuallyAsync,
10764
+ isManualAsync: _trampoline39.manuallyAsync,
10474
10765
  paramLiftFns: [],
10475
10766
  resultLowerFns: [_lowerFlatList({
10476
10767
  elemLowerFn: _lowerFlatTuple([[_lowerFlatOwn({
@@ -10488,21 +10779,21 @@ null,
10488
10779
  stringEncoding: 'utf8',
10489
10780
  getMemoryFn: () => memory0,
10490
10781
  getReallocFn: () => realloc0,
10491
- importFn: _trampoline37,
10782
+ importFn: _trampoline39,
10492
10783
  },
10493
10784
  );
10494
10785
 
10495
10786
  const $init = (() => {
10496
10787
  let gen = (function* _initGenerator () {
10497
10788
  const module0 = fetchCompile(new URL('./openapi2mcp.core.wasm', import.meta.url));
10498
- const module1 = base64Compile('AGFzbQEAAAABKQZgAX8AYAN/fn8AYAJ/fwBgBH9/f38AYAV/f39/fwBgB39/f39/f38AAxgXAAABAgMCAQECAgICBAUDAgQCAAAAAAAEBQFwARcXB3UYATAAAAExAAEBMgACATMAAwE0AAQBNQAFATYABgE3AAcBOAAIATkACQIxMAAKAjExAAsCMTIADAIxMwANAjE0AA4CMTUADwIxNgAQAjE3ABECMTgAEgIxOQATAjIwABQCMjEAFQIyMgAWCCRpbXBvcnRzAQAKqwIXCQAgAEEAEQAACwkAIABBAREAAAsNACAAIAEgAkECEQEACwsAIAAgAUEDEQIACw8AIAAgASACIANBBBEDAAsLACAAIAFBBRECAAsNACAAIAEgAkEGEQEACw0AIAAgASACQQcRAQALCwAgACABQQgRAgALCwAgACABQQkRAgALCwAgACABQQoRAgALCwAgACABQQsRAgALEQAgACABIAIgAyAEQQwRBAALFQAgACABIAIgAyAEIAUgBkENEQUACw8AIAAgASACIANBDhEDAAsLACAAIAFBDxECAAsRACAAIAEgAiADIARBEBEEAAsLACAAIAFBERECAAsJACAAQRIRAAALCQAgAEETEQAACwkAIABBFBEAAAsJACAAQRURAAALCQAgAEEWEQAACwAvCXByb2R1Y2VycwEMcHJvY2Vzc2VkLWJ5AQ13aXQtY29tcG9uZW50BzAuMjQ1LjE');
10499
- const module2 = base64Compile('AGFzbQEAAAABKQZgAX8AYAN/fn8AYAJ/fwBgBH9/f38AYAV/f39/fwBgB39/f39/f38AApABGAABMAAAAAExAAAAATIAAQABMwACAAE0AAMAATUAAgABNgABAAE3AAEAATgAAgABOQACAAIxMAACAAIxMQACAAIxMgAEAAIxMwAFAAIxNAADAAIxNQACAAIxNgAEAAIxNwACAAIxOAAAAAIxOQAAAAIyMAAAAAIyMQAAAAIyMgAAAAgkaW1wb3J0cwFwARcXCR0BAEEACxcAAQIDBAUGBwgJCgsMDQ4PEBESExQVFgAvCXByb2R1Y2VycwEMcHJvY2Vzc2VkLWJ5AQ13aXQtY29tcG9uZW50BzAuMjQ1LjE');
10789
+ const module1 = base64Compile('AGFzbQEAAAABLwdgAX8AYAN/f38AYAN/fn8AYAJ/fwBgBH9/f38AYAV/f39/fwBgB39/f39/f38AAxkYAAABAgMEAwICAwMDAwUGBAMFAwAAAAAABAUBcAEYGAd6GQEwAAABMQABATIAAgEzAAMBNAAEATUABQE2AAYBNwAHATgACAE5AAkCMTAACgIxMQALAjEyAAwCMTMADQIxNAAOAjE1AA8CMTYAEAIxNwARAjE4ABICMTkAEwIyMAAUAjIxABUCMjIAFgIyMwAXCCRpbXBvcnRzAQAKuQIYCQAgAEEAEQAACwkAIABBAREAAAsNACAAIAEgAkECEQEACw0AIAAgASACQQMRAgALCwAgACABQQQRAwALDwAgACABIAIgA0EFEQQACwsAIAAgAUEGEQMACw0AIAAgASACQQcRAgALDQAgACABIAJBCBECAAsLACAAIAFBCREDAAsLACAAIAFBChEDAAsLACAAIAFBCxEDAAsLACAAIAFBDBEDAAsRACAAIAEgAiADIARBDREFAAsVACAAIAEgAiADIAQgBSAGQQ4RBgALDwAgACABIAIgA0EPEQQACwsAIAAgAUEQEQMACxEAIAAgASACIAMgBEEREQUACwsAIAAgAUESEQMACwkAIABBExEAAAsJACAAQRQRAAALCQAgAEEVEQAACwkAIABBFhEAAAsJACAAQRcRAAALAC8JcHJvZHVjZXJzAQxwcm9jZXNzZWQtYnkBDXdpdC1jb21wb25lbnQHMC4yNTQuMA');
10790
+ const module2 = base64Compile('AGFzbQEAAAABLwdgAX8AYAN/f38AYAN/fn8AYAJ/fwBgBH9/f38AYAV/f39/fwBgB39/f39/f38AApYBGQABMAAAAAExAAAAATIAAQABMwACAAE0AAMAATUABAABNgADAAE3AAIAATgAAgABOQADAAIxMAADAAIxMQADAAIxMgADAAIxMwAFAAIxNAAGAAIxNQAEAAIxNgADAAIxNwAFAAIxOAADAAIxOQAAAAIyMAAAAAIyMQAAAAIyMgAAAAIyMwAAAAgkaW1wb3J0cwFwARgYCR4BAEEACxgAAQIDBAUGBwgJCgsMDQ4PEBESExQVFhcALwlwcm9kdWNlcnMBDHByb2Nlc3NlZC1ieQENd2l0LWNvbXBvbmVudAcwLjI1NC4w');
10500
10791
  ({ exports: exports0 } = yield instantiateCore(yield module1));
10501
10792
  ({ exports: exports1 } = yield instantiateCore(yield module0, {
10502
10793
  'wasi:cli/environment@0.2.0': {
10503
- 'get-environment': exports0['18'],
10794
+ 'get-environment': exports0['19'],
10504
10795
  },
10505
- 'wasi:cli/environment@0.2.4': {
10796
+ 'wasi:cli/environment@0.2.12': {
10506
10797
  'get-arguments': exports0['0'],
10507
10798
  },
10508
10799
  'wasi:cli/exit@0.2.0': {
@@ -10524,30 +10815,33 @@ const $init = (() => {
10524
10815
  '[resource-drop]terminal-output': trampoline5,
10525
10816
  },
10526
10817
  'wasi:cli/terminal-stderr@0.2.0': {
10527
- 'get-terminal-stderr': exports0['21'],
10818
+ 'get-terminal-stderr': exports0['22'],
10528
10819
  },
10529
10820
  'wasi:cli/terminal-stdin@0.2.0': {
10530
- 'get-terminal-stdin': exports0['19'],
10821
+ 'get-terminal-stdin': exports0['20'],
10531
10822
  },
10532
10823
  'wasi:cli/terminal-stdout@0.2.0': {
10533
- 'get-terminal-stdout': exports0['20'],
10824
+ 'get-terminal-stdout': exports0['21'],
10825
+ },
10826
+ 'wasi:clocks/monotonic-clock@0.2.0': {
10827
+ 'subscribe-duration': trampoline15,
10534
10828
  },
10535
10829
  'wasi:filesystem/preopens@0.2.0': {
10536
- 'get-directories': exports0['22'],
10830
+ 'get-directories': exports0['23'],
10537
10831
  },
10538
10832
  'wasi:filesystem/types@0.2.0': {
10539
- '[method]descriptor.append-via-stream': exports0['8'],
10540
- '[method]descriptor.get-flags': exports0['9'],
10541
- '[method]descriptor.metadata-hash': exports0['15'],
10542
- '[method]descriptor.metadata-hash-at': exports0['16'],
10543
- '[method]descriptor.open-at': exports0['13'],
10544
- '[method]descriptor.read-directory': exports0['10'],
10545
- '[method]descriptor.read-via-stream': exports0['6'],
10546
- '[method]descriptor.stat': exports0['11'],
10547
- '[method]descriptor.stat-at': exports0['12'],
10548
- '[method]descriptor.unlink-file-at': exports0['14'],
10549
- '[method]descriptor.write-via-stream': exports0['7'],
10550
- '[method]directory-entry-stream.read-directory-entry': exports0['17'],
10833
+ '[method]descriptor.append-via-stream': exports0['9'],
10834
+ '[method]descriptor.get-flags': exports0['10'],
10835
+ '[method]descriptor.metadata-hash': exports0['16'],
10836
+ '[method]descriptor.metadata-hash-at': exports0['17'],
10837
+ '[method]descriptor.open-at': exports0['14'],
10838
+ '[method]descriptor.read-directory': exports0['11'],
10839
+ '[method]descriptor.read-via-stream': exports0['7'],
10840
+ '[method]descriptor.stat': exports0['12'],
10841
+ '[method]descriptor.stat-at': exports0['13'],
10842
+ '[method]descriptor.unlink-file-at': exports0['15'],
10843
+ '[method]descriptor.write-via-stream': exports0['8'],
10844
+ '[method]directory-entry-stream.read-directory-entry': exports0['18'],
10551
10845
  '[resource-drop]descriptor': trampoline6,
10552
10846
  '[resource-drop]directory-entry-stream': trampoline7,
10553
10847
  },
@@ -10557,18 +10851,19 @@ const $init = (() => {
10557
10851
  'wasi:io/poll@0.2.0': {
10558
10852
  '[method]pollable.block': trampoline9,
10559
10853
  '[resource-drop]pollable': trampoline1,
10854
+ poll: exports0['2'],
10560
10855
  },
10561
10856
  'wasi:io/streams@0.2.0': {
10562
- '[method]input-stream.blocking-read': exports0['2'],
10857
+ '[method]input-stream.read': exports0['3'],
10563
10858
  '[method]input-stream.subscribe': trampoline10,
10564
- '[method]output-stream.blocking-flush': exports0['5'],
10565
- '[method]output-stream.check-write': exports0['3'],
10859
+ '[method]output-stream.blocking-flush': exports0['6'],
10860
+ '[method]output-stream.check-write': exports0['4'],
10566
10861
  '[method]output-stream.subscribe': trampoline11,
10567
- '[method]output-stream.write': exports0['4'],
10862
+ '[method]output-stream.write': exports0['5'],
10568
10863
  '[resource-drop]input-stream': trampoline2,
10569
10864
  '[resource-drop]output-stream': trampoline3,
10570
10865
  },
10571
- 'wasi:random/insecure-seed@0.2.4': {
10866
+ 'wasi:random/insecure-seed@0.2.12': {
10572
10867
  'insecure-seed': exports0['1'],
10573
10868
  },
10574
10869
  }));
@@ -10584,29 +10879,30 @@ const $init = (() => {
10584
10879
  ({ exports: exports2 } = yield instantiateCore(yield module2, {
10585
10880
  '': {
10586
10881
  $imports: exports0.$imports,
10587
- '0': trampoline15,
10588
- '1': trampoline16,
10589
- '10': trampoline25,
10590
- '11': trampoline26,
10591
- '12': trampoline27,
10592
- '13': trampoline28,
10593
- '14': trampoline29,
10594
- '15': trampoline30,
10595
- '16': trampoline31,
10596
- '17': trampoline32,
10597
- '18': trampoline33,
10598
- '19': trampoline34,
10599
- '2': trampoline17,
10600
- '20': trampoline35,
10601
- '21': trampoline36,
10602
- '22': trampoline37,
10603
- '3': trampoline18,
10604
- '4': trampoline19,
10605
- '5': trampoline20,
10606
- '6': trampoline21,
10607
- '7': trampoline22,
10608
- '8': trampoline23,
10609
- '9': trampoline24,
10882
+ '0': trampoline16,
10883
+ '1': trampoline17,
10884
+ '10': trampoline26,
10885
+ '11': trampoline27,
10886
+ '12': trampoline28,
10887
+ '13': trampoline29,
10888
+ '14': trampoline30,
10889
+ '15': trampoline31,
10890
+ '16': trampoline32,
10891
+ '17': trampoline33,
10892
+ '18': trampoline34,
10893
+ '19': trampoline35,
10894
+ '2': trampoline18,
10895
+ '20': trampoline36,
10896
+ '21': trampoline37,
10897
+ '22': trampoline38,
10898
+ '23': trampoline39,
10899
+ '3': trampoline19,
10900
+ '4': trampoline20,
10901
+ '5': trampoline21,
10902
+ '6': trampoline22,
10903
+ '7': trampoline23,
10904
+ '8': trampoline24,
10905
+ '9': trampoline25,
10610
10906
  },
10611
10907
  }));
10612
10908
  run020Run = exports1['wasi:cli/run@0.2.0#run'];