@lat-murmeldjur/weeb_3 0.0.351001 → 0.0.353001
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/package.json +1 -1
- package/service.js +37 -93
- package/snippets/weeb_3-03f860286800ffdb/static/hls_loader.js +20 -1
- package/weeb_3.d.ts +14 -2
- package/weeb_3.js +82 -84
- package/weeb_3_bg.wasm +0 -0
- package/weeb_3_bg.wasm.d.ts +6 -2
package/README.md
CHANGED
|
@@ -33,6 +33,8 @@ The higher-level `Weeb3No103` interface provides the main methods used by the em
|
|
|
33
33
|
- `uploadWithRedundancy(file, encryption, redundancy_level, index_string, add_to_feed, feed_topic)`
|
|
34
34
|
- `postUploadBytesWithRedundancy(bytes, mime, filename, encryption, redundancy_level, add_to_feed, feed_topic)`
|
|
35
35
|
- `attachStream(media, owner, topic, start)`
|
|
36
|
+
- `streamQuality(media)` and `setStreamQuality(media, level)`
|
|
37
|
+
- `connectionCount()`
|
|
36
38
|
- `renderInterface(container)`
|
|
37
39
|
- `resetStamp()`
|
|
38
40
|
- `postPushChunk(data, soc, chunk_address, stamp)`
|
|
@@ -95,6 +97,25 @@ await node.attachStream(video, owner, topic, "live");
|
|
|
95
97
|
|
|
96
98
|
Public HLS feeds use mainnet. The embedding page must be below the `/weeb-3/` scope and serve the packaged worker at `/weeb-3/service.js`, or already be controlled by a worker implementing the same forwarding protocol.
|
|
97
99
|
|
|
100
|
+
`streamQuality(video)` returns the available `levels` (`level`, `width`, `height`, and `bitrate`), the requested `selectedLevel`, and the playing `currentLevel`. Levels become available after the master playlist loads. A selected level of `-1` means Auto; a current level of `-1` means no rendition is playing yet. The highest available resolution is the initial selection. Quality controls require an attached hls.js stream; native HLS is unsupported, and switching during a history seek is temporarily unavailable.
|
|
101
|
+
|
|
102
|
+
For example, your application's periodic monitor can lower resolution when too few peers are connected:
|
|
103
|
+
|
|
104
|
+
```js
|
|
105
|
+
async function reduceResolutionBelow(minimumConnections) {
|
|
106
|
+
if (await node.connectionCount() >= minimumConnections) return;
|
|
107
|
+
const { levels, selectedLevel, currentLevel } = node.streamQuality(video);
|
|
108
|
+
if (selectedLevel >= 0 && selectedLevel !== currentLevel) return;
|
|
109
|
+
const current = levels.find(({ level }) => level === currentLevel);
|
|
110
|
+
if (!current) return;
|
|
111
|
+
const lower = levels.filter(({ height }) => height > 0 && height < current.height)
|
|
112
|
+
.sort((a, b) => b.height - a.height || b.bitrate - a.bitrate)[0];
|
|
113
|
+
if (lower) node.setStreamQuality(video, lower.level);
|
|
114
|
+
}
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
The host chooses the threshold and monitoring interval; the library adds no poller. `setStreamQuality` accepts a request synchronously through the built-in selector's switching path; `currentLevel` reports when the switch takes effect. Pass `-1` to restore Auto. `connectionCount()` reads the shared worker's connected peer count without requesting logs or progress; worker communication failures reject its promise.
|
|
118
|
+
|
|
98
119
|
## Example corresponding to `example.html`
|
|
99
120
|
|
|
100
121
|
This is a compact npm-import form of the same usage pattern shown in the project's `example.html`:
|
package/package.json
CHANGED
package/service.js
CHANGED
|
@@ -88,78 +88,32 @@ function isBzzUploadPath(pathname) {
|
|
|
88
88
|
return NETWORK_ROUTE_PREFIXES.some((prefix) => pathname === `${SCOPE_PATH}${prefix}bzz`);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
function
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
const resource = url.pathname.substring(marker.length);
|
|
98
|
-
if (!resource) {
|
|
99
|
-
return null;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
const reference = resource.split("/", 1)[0];
|
|
103
|
-
if (!isSwarmReference(reference)) {
|
|
104
|
-
return null;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
try {
|
|
108
|
-
return decodeURIComponent(resource);
|
|
109
|
-
} catch (_) {
|
|
110
|
-
return resource;
|
|
111
|
-
}
|
|
91
|
+
function decodeResource(resource) {
|
|
92
|
+
try {
|
|
93
|
+
return decodeURIComponent(resource);
|
|
94
|
+
} catch (_) {
|
|
95
|
+
return resource;
|
|
112
96
|
}
|
|
97
|
+
}
|
|
113
98
|
|
|
114
|
-
|
|
99
|
+
function canonicalBzzResource(url) {
|
|
100
|
+
const marker = BZZ_ROUTE_MARKERS.find((marker) => url.pathname.startsWith(marker));
|
|
101
|
+
const resource = marker && url.pathname.substring(marker.length);
|
|
102
|
+
return resource && isSwarmReference(resource.split("/", 1)[0])
|
|
103
|
+
? decodeResource(resource) : null;
|
|
115
104
|
}
|
|
116
105
|
|
|
117
106
|
function canonicalRawResource(url) {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
const encodedResource = url.pathname.substring(marker.length);
|
|
124
|
-
if (!encodedResource) {
|
|
125
|
-
return null;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
let resource;
|
|
129
|
-
try {
|
|
130
|
-
resource = decodeURIComponent(encodedResource);
|
|
131
|
-
} catch (_) {
|
|
132
|
-
resource = encodedResource;
|
|
133
|
-
}
|
|
134
|
-
if (rawType === "hls-bytes" && !isSwarmReference(resource)) {
|
|
135
|
-
return null;
|
|
136
|
-
}
|
|
137
|
-
return resource;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
return null;
|
|
107
|
+
const route = RAW_ROUTE_MARKERS.find(([marker]) => url.pathname.startsWith(marker));
|
|
108
|
+
if (!route) return null;
|
|
109
|
+
const resource = decodeResource(url.pathname.substring(route[0].length));
|
|
110
|
+
return resource && (route[1] !== "hls-bytes" || isSwarmReference(resource)) ? resource : null;
|
|
141
111
|
}
|
|
142
112
|
|
|
143
113
|
function canonicalFeedResource(url) {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
const resource = url.pathname.substring(marker.length);
|
|
150
|
-
const parts = resource.split("/");
|
|
151
|
-
if (
|
|
152
|
-
parts.length !== 2 ||
|
|
153
|
-
!/^[a-fA-F0-9]{40}$/.test(parts[0]) ||
|
|
154
|
-
!/^[a-fA-F0-9]{64}$/.test(parts[1])
|
|
155
|
-
) {
|
|
156
|
-
return null;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
return `${parts[0]}/${parts[1]}`;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
return null;
|
|
114
|
+
const marker = FEED_ROUTE_MARKERS.find((marker) => url.pathname.startsWith(marker));
|
|
115
|
+
const resource = marker && url.pathname.substring(marker.length);
|
|
116
|
+
return resource && /^[a-fA-F0-9]{40}\/[a-fA-F0-9]{64}$/.test(resource) ? resource : null;
|
|
163
117
|
}
|
|
164
118
|
|
|
165
119
|
function isHlsResource(url) {
|
|
@@ -206,41 +160,31 @@ self.addEventListener("activate", (event) => {
|
|
|
206
160
|
});
|
|
207
161
|
|
|
208
162
|
self.addEventListener("message", (event) => {
|
|
163
|
+
const type = event.data?.type;
|
|
209
164
|
if (
|
|
210
|
-
(
|
|
165
|
+
(type !== "WEEB3_CLAIM" && type !== "WEEB3_PING") ||
|
|
211
166
|
event.data?.protocol !== SERVICE_WORKER_PROTOCOL
|
|
212
167
|
) {
|
|
213
168
|
return;
|
|
214
169
|
}
|
|
215
|
-
|
|
216
|
-
|
|
170
|
+
const port = event.ports?.[0];
|
|
171
|
+
const reply = () => {
|
|
172
|
+
port?.postMessage({
|
|
173
|
+
type: type === "WEEB3_CLAIM" ? "WEEB3_CLAIMED" : "WEEB3_PONG",
|
|
174
|
+
protocol: SERVICE_WORKER_PROTOCOL,
|
|
175
|
+
scope: SCOPE_PATH,
|
|
176
|
+
marker: SERVICE_WORKER_MARKER
|
|
177
|
+
});
|
|
178
|
+
closeMessagePort(port);
|
|
179
|
+
};
|
|
180
|
+
if (type === "WEEB3_CLAIM") {
|
|
217
181
|
event.waitUntil((async () => {
|
|
218
182
|
await self.clients.claim();
|
|
219
|
-
|
|
220
|
-
type: "WEEB3_CLAIMED",
|
|
221
|
-
protocol: SERVICE_WORKER_PROTOCOL,
|
|
222
|
-
scope: SCOPE_PATH,
|
|
223
|
-
marker: SERVICE_WORKER_MARKER
|
|
224
|
-
});
|
|
225
|
-
closeMessagePort(port);
|
|
183
|
+
reply();
|
|
226
184
|
})());
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
if (event.data?.type !== "WEEB3_PING") {
|
|
231
|
-
return;
|
|
232
|
-
}
|
|
233
|
-
const port = event.ports?.[0];
|
|
234
|
-
if (!port) {
|
|
235
|
-
return;
|
|
185
|
+
} else if (port) {
|
|
186
|
+
reply();
|
|
236
187
|
}
|
|
237
|
-
port.postMessage({
|
|
238
|
-
type: "WEEB3_PONG",
|
|
239
|
-
protocol: SERVICE_WORKER_PROTOCOL,
|
|
240
|
-
scope: SCOPE_PATH,
|
|
241
|
-
marker: SERVICE_WORKER_MARKER
|
|
242
|
-
});
|
|
243
|
-
closeMessagePort(port);
|
|
244
188
|
});
|
|
245
189
|
|
|
246
190
|
self.addEventListener("fetch", (event) => {
|
|
@@ -677,9 +621,9 @@ function createRustRangeStream(
|
|
|
677
621
|
};
|
|
678
622
|
|
|
679
623
|
const drainScheduledRanges = () => {
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
624
|
+
const pending = Array.from(scheduled.values(), request => request.then(() => {}));
|
|
625
|
+
scheduled.clear();
|
|
626
|
+
return Promise.allSettled(pending);
|
|
683
627
|
};
|
|
684
628
|
|
|
685
629
|
const failStream = async (controller, error) => {
|
|
@@ -1,4 +1,23 @@
|
|
|
1
1
|
export async function loadHls() {
|
|
2
2
|
const module = await import("hls.js");
|
|
3
|
-
|
|
3
|
+
const Hls = module.default ?? module.Hls;
|
|
4
|
+
class BufferController extends Hls.DefaultConfig.bufferController {
|
|
5
|
+
constructor(hls, tracker) {
|
|
6
|
+
super(hls, tracker);
|
|
7
|
+
hls.on(Hls.Events.LEVEL_LOADED, (_, { details, levelInfo }) => {
|
|
8
|
+
const previous = levelInfo?.details ?? (details.live && hls.latestLevelDetails);
|
|
9
|
+
const offset = hls.config.timelineOffset;
|
|
10
|
+
if (offset > 0 && previous && previous !== details &&
|
|
11
|
+
(previous.live || details.live) && previous.appliedTimelineOffset === offset) {
|
|
12
|
+
// Merging inherits the origin.
|
|
13
|
+
details.appliedTimelineOffset = offset;
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return class extends Hls {
|
|
19
|
+
constructor(config) {
|
|
20
|
+
super({ ...config, bufferController: BufferController });
|
|
21
|
+
}
|
|
22
|
+
};
|
|
4
23
|
}
|
package/weeb_3.d.ts
CHANGED
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
/** Bee-compatible erasure-coding level used for uploads. */
|
|
5
5
|
export type UploadRedundancyLevel = 0 | 1 | 2 | 3 | 4;
|
|
6
6
|
export type HlsStart = "beginning" | "live";
|
|
7
|
+
export interface StreamQuality {
|
|
8
|
+
levels: { level: number; width: number; height: number; bitrate: number }[];
|
|
9
|
+
selectedLevel: number;
|
|
10
|
+
currentLevel: number;
|
|
11
|
+
}
|
|
7
12
|
|
|
8
13
|
|
|
9
14
|
|
|
@@ -25,6 +30,7 @@ export class Weeb3No103 {
|
|
|
25
30
|
attachStream(media: HTMLMediaElement, owner: string, topic: string, start: HlsStart): Promise<void>;
|
|
26
31
|
batchState(depth: number, validity_days: number): Promise<object>;
|
|
27
32
|
buyBatch(depth: number, validity_days: number): Promise<object>;
|
|
33
|
+
connectionCount(): Promise<number>;
|
|
28
34
|
deployChequebook(): Promise<object>;
|
|
29
35
|
depositChequebook(amount: string): Promise<object>;
|
|
30
36
|
logs(): Promise<Array<any>>;
|
|
@@ -48,7 +54,9 @@ export class Weeb3No103 {
|
|
|
48
54
|
retrieve(address: string): Promise<Array<any>>;
|
|
49
55
|
retrieveBytes(address: string): Promise<Uint8Array>;
|
|
50
56
|
retrieveChunk(address: string): Promise<Uint8Array>;
|
|
57
|
+
setStreamQuality(media: HTMLMediaElement, level: number): void;
|
|
51
58
|
start(options?: any | null): void;
|
|
59
|
+
streamQuality(media: HTMLMediaElement): StreamQuality;
|
|
52
60
|
switchNetwork(mode: string): Promise<object>;
|
|
53
61
|
upload(file: File, encryption: boolean, index_string: string, add_to_feed: boolean, feed_topic: string): Promise<object>;
|
|
54
62
|
uploadWithRedundancy(file: File, encryption: boolean, redundancy_level: UploadRedundancyLevel, index_string: string, add_to_feed: boolean, feed_topic: string, wallet_owner?: string | null): Promise<object>;
|
|
@@ -75,6 +83,7 @@ export interface InitOutput {
|
|
|
75
83
|
readonly weeb3no103_attachStream: (a: number, b: any, c: number, d: number, e: number, f: number, g: number, h: number) => any;
|
|
76
84
|
readonly weeb3no103_batchState: (a: number, b: number, c: number) => any;
|
|
77
85
|
readonly weeb3no103_buyBatch: (a: number, b: number, c: number) => any;
|
|
86
|
+
readonly weeb3no103_connectionCount: (a: number) => any;
|
|
78
87
|
readonly weeb3no103_deployChequebook: (a: number) => any;
|
|
79
88
|
readonly weeb3no103_depositChequebook: (a: number, b: number, c: number) => any;
|
|
80
89
|
readonly weeb3no103_logs: (a: number) => any;
|
|
@@ -92,7 +101,9 @@ export interface InitOutput {
|
|
|
92
101
|
readonly weeb3no103_retrieve: (a: number, b: number, c: number) => any;
|
|
93
102
|
readonly weeb3no103_retrieveBytes: (a: number, b: number, c: number) => any;
|
|
94
103
|
readonly weeb3no103_retrieveChunk: (a: number, b: number, c: number) => any;
|
|
104
|
+
readonly weeb3no103_setStreamQuality: (a: number, b: any, c: number) => [number, number];
|
|
95
105
|
readonly weeb3no103_start: (a: number, b: number) => void;
|
|
106
|
+
readonly weeb3no103_streamQuality: (a: number, b: any) => [number, number, number];
|
|
96
107
|
readonly weeb3no103_switchNetwork: (a: number, b: number, c: number) => any;
|
|
97
108
|
readonly weeb3no103_upload: (a: number, b: any, c: number, d: number, e: number, f: number, g: number, h: number) => any;
|
|
98
109
|
readonly weeb3no103_uploadWithRedundancy: (a: number, b: any, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => any;
|
|
@@ -102,13 +113,14 @@ export interface InitOutput {
|
|
|
102
113
|
readonly __wbg_requestarguments_free: (a: number, b: number) => void;
|
|
103
114
|
readonly requestarguments_method: (a: number) => [number, number];
|
|
104
115
|
readonly requestarguments_params: (a: number) => any;
|
|
105
|
-
readonly wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__FnMut_____Output_______: (a: number, b: number) => void;
|
|
106
116
|
readonly wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__Fn__wasm_bindgen_2fc1ddd1063c2c6b___JsValue__wasm_bindgen_2fc1ddd1063c2c6b___JsValue___Output_______: (a: number, b: number) => void;
|
|
107
117
|
readonly wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__FnMut__wasm_bindgen_2fc1ddd1063c2c6b___JsValue____Output_______: (a: number, b: number) => void;
|
|
118
|
+
readonly wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__FnMut_____Output_______: (a: number, b: number) => void;
|
|
108
119
|
readonly wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___wasm_bindgen_2fc1ddd1063c2c6b___JsValue__alloc_508e33bd5656020b___string__String__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_2fc1ddd1063c2c6b___JsValue__: (a: number, b: number, c: any, d: number, e: number) => [number, number];
|
|
109
120
|
readonly wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___wasm_bindgen_2fc1ddd1063c2c6b___JsValue__wasm_bindgen_2fc1ddd1063c2c6b___JsValue_____: (a: number, b: number, c: any, d: any) => void;
|
|
110
|
-
readonly
|
|
121
|
+
readonly wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___web_sys_672975c58fd3dbc7___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_2fc1ddd1063c2c6b___JsValue__: (a: number, b: number, c: any) => [number, number];
|
|
111
122
|
readonly wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___wasm_bindgen_2fc1ddd1063c2c6b___JsValue__wasm_bindgen_2fc1ddd1063c2c6b___JsValue______1_: (a: number, b: number, c: any, d: any) => void;
|
|
123
|
+
readonly wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___web_sys_672975c58fd3dbc7___features__gen_MessageEvent__MessageEvent_____: (a: number, b: number, c: any) => void;
|
|
112
124
|
readonly wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___wasm_bindgen_2fc1ddd1063c2c6b___JsValue_____: (a: number, b: number, c: any) => void;
|
|
113
125
|
readonly wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke______: (a: number, b: number) => void;
|
|
114
126
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
package/weeb_3.js
CHANGED
|
@@ -104,6 +104,13 @@ export class Weeb3No103 {
|
|
|
104
104
|
const ret = wasm.weeb3no103_buyBatch(this.__wbg_ptr, depth, validity_days);
|
|
105
105
|
return ret;
|
|
106
106
|
}
|
|
107
|
+
/**
|
|
108
|
+
* @returns {Promise<number>}
|
|
109
|
+
*/
|
|
110
|
+
connectionCount() {
|
|
111
|
+
const ret = wasm.weeb3no103_connectionCount(this.__wbg_ptr);
|
|
112
|
+
return ret;
|
|
113
|
+
}
|
|
107
114
|
/**
|
|
108
115
|
* @returns {Promise<object>}
|
|
109
116
|
*/
|
|
@@ -290,12 +297,33 @@ export class Weeb3No103 {
|
|
|
290
297
|
const ret = wasm.weeb3no103_retrieveChunk(this.__wbg_ptr, ptr0, len0);
|
|
291
298
|
return ret;
|
|
292
299
|
}
|
|
300
|
+
/**
|
|
301
|
+
* @param {HTMLMediaElement} media
|
|
302
|
+
* @param {number} level
|
|
303
|
+
*/
|
|
304
|
+
setStreamQuality(media, level) {
|
|
305
|
+
const ret = wasm.weeb3no103_setStreamQuality(this.__wbg_ptr, media, level);
|
|
306
|
+
if (ret[1]) {
|
|
307
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
293
310
|
/**
|
|
294
311
|
* @param {any | null} [options]
|
|
295
312
|
*/
|
|
296
313
|
start(options) {
|
|
297
314
|
wasm.weeb3no103_start(this.__wbg_ptr, isLikeNone(options) ? 0 : addToExternrefTable0(options));
|
|
298
315
|
}
|
|
316
|
+
/**
|
|
317
|
+
* @param {HTMLMediaElement} media
|
|
318
|
+
* @returns {StreamQuality}
|
|
319
|
+
*/
|
|
320
|
+
streamQuality(media) {
|
|
321
|
+
const ret = wasm.weeb3no103_streamQuality(this.__wbg_ptr, media);
|
|
322
|
+
if (ret[2]) {
|
|
323
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
324
|
+
}
|
|
325
|
+
return takeFromExternrefTable0(ret[0]);
|
|
326
|
+
}
|
|
299
327
|
/**
|
|
300
328
|
* @param {string} mode
|
|
301
329
|
* @returns {Promise<object>}
|
|
@@ -412,10 +440,6 @@ function __wbg_get_imports() {
|
|
|
412
440
|
const ret = arg0.WorkerGlobalScope;
|
|
413
441
|
return ret;
|
|
414
442
|
},
|
|
415
|
-
__wbg_WorkerGlobalScope_f6889a7bbe9f0d2d: function(arg0) {
|
|
416
|
-
const ret = arg0.WorkerGlobalScope;
|
|
417
|
-
return ret;
|
|
418
|
-
},
|
|
419
443
|
__wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2: function(arg0, arg1) {
|
|
420
444
|
const v = arg1;
|
|
421
445
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
@@ -527,7 +551,7 @@ function __wbg_get_imports() {
|
|
|
527
551
|
const ret = Object.assign(arg0, arg1);
|
|
528
552
|
return ret;
|
|
529
553
|
},
|
|
530
|
-
|
|
554
|
+
__wbg_attachMedia_ff18e7736d1de028: function() { return handleError(function (arg0, arg1) {
|
|
531
555
|
arg0.attachMedia(arg1);
|
|
532
556
|
}, arguments); },
|
|
533
557
|
__wbg_autoplay_f8612a2035bfaa92: function(arg0) {
|
|
@@ -584,12 +608,6 @@ function __wbg_get_imports() {
|
|
|
584
608
|
const ret = arg0.childElementCount;
|
|
585
609
|
return ret;
|
|
586
610
|
},
|
|
587
|
-
__wbg_clearInterval_905868a11bace7cc: function(arg0, arg1) {
|
|
588
|
-
arg0.clearInterval(arg1);
|
|
589
|
-
},
|
|
590
|
-
__wbg_clearInterval_c75df0651e74fbb8: function(arg0, arg1) {
|
|
591
|
-
arg0.clearInterval(arg1);
|
|
592
|
-
},
|
|
593
611
|
__wbg_clearTimeout_5a54f8841c30079a: function(arg0) {
|
|
594
612
|
const ret = clearTimeout(arg0);
|
|
595
613
|
return ret;
|
|
@@ -598,9 +616,15 @@ function __wbg_get_imports() {
|
|
|
598
616
|
const ret = clearTimeout(arg0);
|
|
599
617
|
return ret;
|
|
600
618
|
},
|
|
619
|
+
__wbg_clearTimeout_d1399c741c86c6a3: function(arg0) {
|
|
620
|
+
clearTimeout(arg0);
|
|
621
|
+
},
|
|
601
622
|
__wbg_click_0e9c20848b655ed3: function(arg0) {
|
|
602
623
|
arg0.click();
|
|
603
624
|
},
|
|
625
|
+
__wbg_close_1d08eaf57ed325c0: function() { return handleError(function (arg0) {
|
|
626
|
+
arg0.close();
|
|
627
|
+
}, arguments); },
|
|
604
628
|
__wbg_close_eef7356f70a62f3c: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
605
629
|
arg0.close(arg1, getStringFromWasm0(arg2, arg3));
|
|
606
630
|
}, arguments); },
|
|
@@ -645,10 +669,6 @@ function __wbg_get_imports() {
|
|
|
645
669
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
646
670
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
647
671
|
}, arguments); },
|
|
648
|
-
__wbg_crypto_86f2631e91b51511: function(arg0) {
|
|
649
|
-
const ret = arg0.crypto;
|
|
650
|
-
return ret;
|
|
651
|
-
},
|
|
652
672
|
__wbg_currentTime_3550761b514bd17a: function(arg0) {
|
|
653
673
|
const ret = arg0.currentTime;
|
|
654
674
|
return ret;
|
|
@@ -671,6 +691,10 @@ function __wbg_get_imports() {
|
|
|
671
691
|
__wbg_detachMedia_2925e924ea346816: function() { return handleError(function (arg0) {
|
|
672
692
|
arg0.detachMedia();
|
|
673
693
|
}, arguments); },
|
|
694
|
+
__wbg_disabled_462f1ecf16417bb3: function(arg0) {
|
|
695
|
+
const ret = arg0.disabled;
|
|
696
|
+
return ret;
|
|
697
|
+
},
|
|
674
698
|
__wbg_document_ee35a3d3ae34ef6c: function(arg0) {
|
|
675
699
|
const ret = arg0.document;
|
|
676
700
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
@@ -739,13 +763,14 @@ function __wbg_get_imports() {
|
|
|
739
763
|
__wbg_getRandomValues_a8ddca022803a145: function() { return handleError(function (arg0, arg1) {
|
|
740
764
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
741
765
|
}, arguments); },
|
|
742
|
-
__wbg_getRandomValues_b3f15fcbfabb0f8b: function() { return handleError(function (arg0, arg1) {
|
|
743
|
-
arg0.getRandomValues(arg1);
|
|
744
|
-
}, arguments); },
|
|
745
766
|
__wbg_getRegistration_b0de80b77170d9ce: function(arg0) {
|
|
746
767
|
const ret = arg0.getRegistration();
|
|
747
768
|
return ret;
|
|
748
769
|
},
|
|
770
|
+
__wbg_getTime_1e3cd1391c5c3995: function(arg0) {
|
|
771
|
+
const ret = arg0.getTime();
|
|
772
|
+
return ret;
|
|
773
|
+
},
|
|
749
774
|
__wbg_get_5e856edb32ac1289: function() { return handleError(function (arg0, arg1) {
|
|
750
775
|
const ret = arg0.get(arg1);
|
|
751
776
|
return ret;
|
|
@@ -844,6 +869,16 @@ function __wbg_get_imports() {
|
|
|
844
869
|
const ret = result;
|
|
845
870
|
return ret;
|
|
846
871
|
},
|
|
872
|
+
__wbg_instanceof_Date_1b9f15b87f10aa4c: function(arg0) {
|
|
873
|
+
let result;
|
|
874
|
+
try {
|
|
875
|
+
result = arg0 instanceof Date;
|
|
876
|
+
} catch (_) {
|
|
877
|
+
result = false;
|
|
878
|
+
}
|
|
879
|
+
const ret = result;
|
|
880
|
+
return ret;
|
|
881
|
+
},
|
|
847
882
|
__wbg_instanceof_DomException_99c177193e554b75: function(arg0) {
|
|
848
883
|
let result;
|
|
849
884
|
try {
|
|
@@ -1116,10 +1151,6 @@ function __wbg_get_imports() {
|
|
|
1116
1151
|
const ret = arg0.message;
|
|
1117
1152
|
return ret;
|
|
1118
1153
|
},
|
|
1119
|
-
__wbg_msCrypto_d562bbe83e0d4b91: function(arg0) {
|
|
1120
|
-
const ret = arg0.msCrypto;
|
|
1121
|
-
return ret;
|
|
1122
|
-
},
|
|
1123
1154
|
__wbg_name_171cddfde96a29c8: function(arg0, arg1) {
|
|
1124
1155
|
const ret = arg1.name;
|
|
1125
1156
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1217,10 +1248,6 @@ function __wbg_get_imports() {
|
|
|
1217
1248
|
const ret = new URL(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
1218
1249
|
return ret;
|
|
1219
1250
|
}, arguments); },
|
|
1220
|
-
__wbg_new_with_length_a2c39cbe88fd8ff1: function(arg0) {
|
|
1221
|
-
const ret = new Uint8Array(arg0 >>> 0);
|
|
1222
|
-
return ret;
|
|
1223
|
-
},
|
|
1224
1251
|
__wbg_new_with_u8_array_sequence_and_options_bacb98f8fd0b9307: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1225
1252
|
const ret = new File(arg0, getStringFromWasm0(arg1, arg2), arg3);
|
|
1226
1253
|
return ret;
|
|
@@ -1245,10 +1272,6 @@ function __wbg_get_imports() {
|
|
|
1245
1272
|
const ret = arg0.next;
|
|
1246
1273
|
return ret;
|
|
1247
1274
|
},
|
|
1248
|
-
__wbg_node_e1f24f89a7336c2e: function(arg0) {
|
|
1249
|
-
const ret = arg0.node;
|
|
1250
|
-
return ret;
|
|
1251
|
-
},
|
|
1252
1275
|
__wbg_now_2c95c9de01293173: function(arg0) {
|
|
1253
1276
|
const ret = arg0.now();
|
|
1254
1277
|
return ret;
|
|
@@ -1373,10 +1396,6 @@ function __wbg_get_imports() {
|
|
|
1373
1396
|
__wbg_prepend_12ed960547d9dfe1: function() { return handleError(function (arg0, arg1) {
|
|
1374
1397
|
arg0.prepend(arg1);
|
|
1375
1398
|
}, arguments); },
|
|
1376
|
-
__wbg_process_3975fd6c72f520aa: function(arg0) {
|
|
1377
|
-
const ret = arg0.process;
|
|
1378
|
-
return ret;
|
|
1379
|
-
},
|
|
1380
1399
|
__wbg_prototypesetcall_bdcdcc5842e4d77d: function(arg0, arg1, arg2) {
|
|
1381
1400
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1382
1401
|
},
|
|
@@ -1399,9 +1418,6 @@ function __wbg_get_imports() {
|
|
|
1399
1418
|
__wbg_queueMicrotask_5bb536982f78a56f: function(arg0) {
|
|
1400
1419
|
queueMicrotask(arg0);
|
|
1401
1420
|
},
|
|
1402
|
-
__wbg_randomFillSync_f8c153b79f285817: function() { return handleError(function (arg0, arg1) {
|
|
1403
|
-
arg0.randomFillSync(arg1);
|
|
1404
|
-
}, arguments); },
|
|
1405
1421
|
__wbg_readyState_16b23bf0e7fa2af3: function(arg0) {
|
|
1406
1422
|
const ret = arg0.readyState;
|
|
1407
1423
|
return (__wbindgen_enum_IdbRequestReadyState.indexOf(ret) + 1 || 3) - 1;
|
|
@@ -1450,10 +1466,6 @@ function __wbg_get_imports() {
|
|
|
1450
1466
|
const ret = arg0.request(RequestArguments.__wrap(arg1));
|
|
1451
1467
|
return ret;
|
|
1452
1468
|
}, arguments); },
|
|
1453
|
-
__wbg_require_b74f47fc2d022fd6: function() { return handleError(function () {
|
|
1454
|
-
const ret = module.require;
|
|
1455
|
-
return ret;
|
|
1456
|
-
}, arguments); },
|
|
1457
1469
|
__wbg_resolve_002c4b7d9d8f6b64: function(arg0) {
|
|
1458
1470
|
const ret = Promise.resolve(arg0);
|
|
1459
1471
|
return ret;
|
|
@@ -1504,12 +1516,8 @@ function __wbg_get_imports() {
|
|
|
1504
1516
|
__wbg_setAttribute_cc8e4c8a2a008508: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1505
1517
|
arg0.setAttribute(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1506
1518
|
}, arguments); },
|
|
1507
|
-
|
|
1508
|
-
const ret = arg0
|
|
1509
|
-
return ret;
|
|
1510
|
-
}, arguments); },
|
|
1511
|
-
__wbg_setInterval_b471c2130618eef6: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1512
|
-
const ret = arg0.setInterval(arg1, arg2, ...arg3);
|
|
1519
|
+
__wbg_setTimeout_0a2454fa756db90d: function() { return handleError(function (arg0, arg1) {
|
|
1520
|
+
const ret = setTimeout(arg0, arg1);
|
|
1513
1521
|
return ret;
|
|
1514
1522
|
}, arguments); },
|
|
1515
1523
|
__wbg_setTimeout_db2dbaeefb6f39c7: function() { return handleError(function (arg0, arg1) {
|
|
@@ -1705,10 +1713,6 @@ function __wbg_get_imports() {
|
|
|
1705
1713
|
__wbg_stopLoad_0087851ff3940d57: function() { return handleError(function (arg0) {
|
|
1706
1714
|
arg0.stopLoad();
|
|
1707
1715
|
}, arguments); },
|
|
1708
|
-
__wbg_subarray_a96e1fef17ed23cb: function(arg0, arg1, arg2) {
|
|
1709
|
-
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1710
|
-
return ret;
|
|
1711
|
-
},
|
|
1712
1716
|
__wbg_target_521be630ab05b11e: function(arg0) {
|
|
1713
1717
|
const ret = arg0.target;
|
|
1714
1718
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
@@ -1741,6 +1745,10 @@ function __wbg_get_imports() {
|
|
|
1741
1745
|
const ret = arg0.transaction;
|
|
1742
1746
|
return ret;
|
|
1743
1747
|
},
|
|
1748
|
+
__wbg_transferMedia_1de6dcda4eba6934: function() { return handleError(function (arg0) {
|
|
1749
|
+
const ret = arg0.transferMedia();
|
|
1750
|
+
return ret;
|
|
1751
|
+
}, arguments); },
|
|
1744
1752
|
__wbg_type_4edffca24c42b74d: function(arg0, arg1) {
|
|
1745
1753
|
const ret = arg1.type;
|
|
1746
1754
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1777,10 +1785,6 @@ function __wbg_get_imports() {
|
|
|
1777
1785
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1778
1786
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1779
1787
|
},
|
|
1780
|
-
__wbg_versions_4e31226f5e8dc909: function(arg0) {
|
|
1781
|
-
const ret = arg0.versions;
|
|
1782
|
-
return ret;
|
|
1783
|
-
},
|
|
1784
1788
|
__wbg_waiting_6c1a093c2fa2102b: function(arg0) {
|
|
1785
1789
|
const ret = arg0.waiting;
|
|
1786
1790
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
@@ -1789,23 +1793,23 @@ function __wbg_get_imports() {
|
|
|
1789
1793
|
console.warn(arg0);
|
|
1790
1794
|
},
|
|
1791
1795
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1792
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1793
|
-
const ret =
|
|
1796
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 2, function: Function { arguments: [Externref, Externref], shim_idx: 3, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
|
|
1797
|
+
const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__Fn__wasm_bindgen_2fc1ddd1063c2c6b___JsValue__wasm_bindgen_2fc1ddd1063c2c6b___JsValue___Output_______, wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___wasm_bindgen_2fc1ddd1063c2c6b___JsValue__wasm_bindgen_2fc1ddd1063c2c6b___JsValue_____);
|
|
1794
1798
|
return ret;
|
|
1795
1799
|
},
|
|
1796
1800
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1797
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 2, function: Function { arguments: [Externref,
|
|
1798
|
-
const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__Fn__wasm_bindgen_2fc1ddd1063c2c6b___JsValue__wasm_bindgen_2fc1ddd1063c2c6b___JsValue___Output_______,
|
|
1801
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 2, function: Function { arguments: [Externref, String], shim_idx: 34, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: false }) -> Externref`.
|
|
1802
|
+
const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__Fn__wasm_bindgen_2fc1ddd1063c2c6b___JsValue__wasm_bindgen_2fc1ddd1063c2c6b___JsValue___Output_______, wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___wasm_bindgen_2fc1ddd1063c2c6b___JsValue__alloc_508e33bd5656020b___string__String__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_2fc1ddd1063c2c6b___JsValue__);
|
|
1799
1803
|
return ret;
|
|
1800
1804
|
},
|
|
1801
1805
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
1802
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 2, function: Function { arguments: [
|
|
1803
|
-
const ret =
|
|
1806
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 2, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 38, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1807
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__Fn__wasm_bindgen_2fc1ddd1063c2c6b___JsValue__wasm_bindgen_2fc1ddd1063c2c6b___JsValue___Output_______, wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___web_sys_672975c58fd3dbc7___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_2fc1ddd1063c2c6b___JsValue__);
|
|
1804
1808
|
return ret;
|
|
1805
1809
|
},
|
|
1806
1810
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
1807
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 2, function: Function { arguments: [NamedExternref("
|
|
1808
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__Fn__wasm_bindgen_2fc1ddd1063c2c6b___JsValue__wasm_bindgen_2fc1ddd1063c2c6b___JsValue___Output_______,
|
|
1811
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 2, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 36, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1812
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__Fn__wasm_bindgen_2fc1ddd1063c2c6b___JsValue__wasm_bindgen_2fc1ddd1063c2c6b___JsValue___Output_______, wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___web_sys_672975c58fd3dbc7___features__gen_MessageEvent__MessageEvent_____);
|
|
1809
1813
|
return ret;
|
|
1810
1814
|
},
|
|
1811
1815
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
@@ -1814,46 +1818,36 @@ function __wbg_get_imports() {
|
|
|
1814
1818
|
return ret;
|
|
1815
1819
|
},
|
|
1816
1820
|
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
1817
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 5, function: Function { arguments: [NamedExternref("
|
|
1821
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 5, function: Function { arguments: [NamedExternref("Event")], shim_idx: 6, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1818
1822
|
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__FnMut__wasm_bindgen_2fc1ddd1063c2c6b___JsValue____Output_______, wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___wasm_bindgen_2fc1ddd1063c2c6b___JsValue_____);
|
|
1819
1823
|
return ret;
|
|
1820
1824
|
},
|
|
1821
1825
|
__wbindgen_cast_0000000000000007: function(arg0, arg1) {
|
|
1822
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 5, function: Function { arguments: [
|
|
1823
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__FnMut__wasm_bindgen_2fc1ddd1063c2c6b___JsValue____Output_______,
|
|
1826
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 5, function: Function { arguments: [], shim_idx: 97, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1827
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__FnMut__wasm_bindgen_2fc1ddd1063c2c6b___JsValue____Output_______, wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke______);
|
|
1824
1828
|
return ret;
|
|
1825
1829
|
},
|
|
1826
1830
|
__wbindgen_cast_0000000000000008: function(arg0, arg1) {
|
|
1827
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1828
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1829
|
-
return ret;
|
|
1830
|
-
},
|
|
1831
|
-
__wbindgen_cast_0000000000000009: function(arg0, arg1) {
|
|
1832
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 5, function: Function { arguments: [], shim_idx: 102, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1833
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__FnMut__wasm_bindgen_2fc1ddd1063c2c6b___JsValue____Output_______, wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke______);
|
|
1831
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 96, function: Function { arguments: [], shim_idx: 97, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1832
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__FnMut_____Output_______, wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke______);
|
|
1834
1833
|
return ret;
|
|
1835
1834
|
},
|
|
1836
|
-
|
|
1835
|
+
__wbindgen_cast_0000000000000009: function(arg0) {
|
|
1837
1836
|
// Cast intrinsic for `F64 -> Externref`.
|
|
1838
1837
|
const ret = arg0;
|
|
1839
1838
|
return ret;
|
|
1840
1839
|
},
|
|
1841
|
-
|
|
1840
|
+
__wbindgen_cast_000000000000000a: function(arg0) {
|
|
1842
1841
|
// Cast intrinsic for `I64 -> Externref`.
|
|
1843
1842
|
const ret = arg0;
|
|
1844
1843
|
return ret;
|
|
1845
1844
|
},
|
|
1846
|
-
|
|
1847
|
-
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1848
|
-
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
1849
|
-
return ret;
|
|
1850
|
-
},
|
|
1851
|
-
__wbindgen_cast_000000000000000d: function(arg0, arg1) {
|
|
1845
|
+
__wbindgen_cast_000000000000000b: function(arg0, arg1) {
|
|
1852
1846
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1853
1847
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1854
1848
|
return ret;
|
|
1855
1849
|
},
|
|
1856
|
-
|
|
1850
|
+
__wbindgen_cast_000000000000000c: function(arg0) {
|
|
1857
1851
|
// Cast intrinsic for `U64 -> Externref`.
|
|
1858
1852
|
const ret = BigInt.asUintN(64, arg0);
|
|
1859
1853
|
return ret;
|
|
@@ -1883,12 +1877,16 @@ function wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke______(arg0
|
|
|
1883
1877
|
wasm.wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke______(arg0, arg1);
|
|
1884
1878
|
}
|
|
1885
1879
|
|
|
1880
|
+
function wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___web_sys_672975c58fd3dbc7___features__gen_MessageEvent__MessageEvent_____(arg0, arg1, arg2) {
|
|
1881
|
+
wasm.wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___web_sys_672975c58fd3dbc7___features__gen_MessageEvent__MessageEvent_____(arg0, arg1, arg2);
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1886
1884
|
function wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___wasm_bindgen_2fc1ddd1063c2c6b___JsValue_____(arg0, arg1, arg2) {
|
|
1887
1885
|
wasm.wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___wasm_bindgen_2fc1ddd1063c2c6b___JsValue_____(arg0, arg1, arg2);
|
|
1888
1886
|
}
|
|
1889
1887
|
|
|
1890
|
-
function
|
|
1891
|
-
const ret = wasm.
|
|
1888
|
+
function wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___web_sys_672975c58fd3dbc7___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_2fc1ddd1063c2c6b___JsValue__(arg0, arg1, arg2) {
|
|
1889
|
+
const ret = wasm.wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___web_sys_672975c58fd3dbc7___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_2fc1ddd1063c2c6b___JsValue__(arg0, arg1, arg2);
|
|
1892
1890
|
if (ret[1]) {
|
|
1893
1891
|
throw takeFromExternrefTable0(ret[0]);
|
|
1894
1892
|
}
|
package/weeb_3_bg.wasm
CHANGED
|
Binary file
|
package/weeb_3_bg.wasm.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export const weeb3no103_acquireFeedBytes: (a: number, b: number, c: number, d: n
|
|
|
8
8
|
export const weeb3no103_attachStream: (a: number, b: any, c: number, d: number, e: number, f: number, g: number, h: number) => any;
|
|
9
9
|
export const weeb3no103_batchState: (a: number, b: number, c: number) => any;
|
|
10
10
|
export const weeb3no103_buyBatch: (a: number, b: number, c: number) => any;
|
|
11
|
+
export const weeb3no103_connectionCount: (a: number) => any;
|
|
11
12
|
export const weeb3no103_deployChequebook: (a: number) => any;
|
|
12
13
|
export const weeb3no103_depositChequebook: (a: number, b: number, c: number) => any;
|
|
13
14
|
export const weeb3no103_logs: (a: number) => any;
|
|
@@ -25,7 +26,9 @@ export const weeb3no103_resetStamp: (a: number) => any;
|
|
|
25
26
|
export const weeb3no103_retrieve: (a: number, b: number, c: number) => any;
|
|
26
27
|
export const weeb3no103_retrieveBytes: (a: number, b: number, c: number) => any;
|
|
27
28
|
export const weeb3no103_retrieveChunk: (a: number, b: number, c: number) => any;
|
|
29
|
+
export const weeb3no103_setStreamQuality: (a: number, b: any, c: number) => [number, number];
|
|
28
30
|
export const weeb3no103_start: (a: number, b: number) => void;
|
|
31
|
+
export const weeb3no103_streamQuality: (a: number, b: any) => [number, number, number];
|
|
29
32
|
export const weeb3no103_switchNetwork: (a: number, b: number, c: number) => any;
|
|
30
33
|
export const weeb3no103_upload: (a: number, b: any, c: number, d: number, e: number, f: number, g: number, h: number) => any;
|
|
31
34
|
export const weeb3no103_uploadWithRedundancy: (a: number, b: any, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => any;
|
|
@@ -35,13 +38,14 @@ export const weeb3workerruntime_start: (a: number, b: any) => any;
|
|
|
35
38
|
export const __wbg_requestarguments_free: (a: number, b: number) => void;
|
|
36
39
|
export const requestarguments_method: (a: number) => [number, number];
|
|
37
40
|
export const requestarguments_params: (a: number) => any;
|
|
38
|
-
export const wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__FnMut_____Output_______: (a: number, b: number) => void;
|
|
39
41
|
export const wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__Fn__wasm_bindgen_2fc1ddd1063c2c6b___JsValue__wasm_bindgen_2fc1ddd1063c2c6b___JsValue___Output_______: (a: number, b: number) => void;
|
|
40
42
|
export const wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__FnMut__wasm_bindgen_2fc1ddd1063c2c6b___JsValue____Output_______: (a: number, b: number) => void;
|
|
43
|
+
export const wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__FnMut_____Output_______: (a: number, b: number) => void;
|
|
41
44
|
export const wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___wasm_bindgen_2fc1ddd1063c2c6b___JsValue__alloc_508e33bd5656020b___string__String__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_2fc1ddd1063c2c6b___JsValue__: (a: number, b: number, c: any, d: number, e: number) => [number, number];
|
|
42
45
|
export const wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___wasm_bindgen_2fc1ddd1063c2c6b___JsValue__wasm_bindgen_2fc1ddd1063c2c6b___JsValue_____: (a: number, b: number, c: any, d: any) => void;
|
|
43
|
-
export const
|
|
46
|
+
export const wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___web_sys_672975c58fd3dbc7___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_2fc1ddd1063c2c6b___JsValue__: (a: number, b: number, c: any) => [number, number];
|
|
44
47
|
export const wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___wasm_bindgen_2fc1ddd1063c2c6b___JsValue__wasm_bindgen_2fc1ddd1063c2c6b___JsValue______1_: (a: number, b: number, c: any, d: any) => void;
|
|
48
|
+
export const wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___web_sys_672975c58fd3dbc7___features__gen_MessageEvent__MessageEvent_____: (a: number, b: number, c: any) => void;
|
|
45
49
|
export const wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___wasm_bindgen_2fc1ddd1063c2c6b___JsValue_____: (a: number, b: number, c: any) => void;
|
|
46
50
|
export const wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke______: (a: number, b: number) => void;
|
|
47
51
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|