openrtc 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/README.md +11 -8
  2. package/dist/{DelegatingRuntimeAdapter-BFZDC604.d.ts → DelegatingRuntimeAdapter-BkLR3TNN.d.ts} +33 -31
  3. package/dist/{ITransport-WV6gGMnX.d.ts → ITransport-yaruAmx3.d.ts} +50 -86
  4. package/dist/{IpcRuntimeAdapter-CJq3dRBF.d.ts → IpcRuntimeAdapter-DDKeQ6UC.d.ts} +6 -6
  5. package/dist/WasmBridge-DVQ2YPRB.js +1 -0
  6. package/dist/{assembly-q0jRRpsc.d.ts → assembly-BTzwQuwI.d.ts} +67 -74
  7. package/dist/{capabilities-BfZi4Cd7.d.ts → capabilities-BwzPe51I.d.ts} +19 -19
  8. package/dist/chunk-4N6UDVZR.js +1 -0
  9. package/dist/chunk-AJQVMVYW.js +1 -0
  10. package/dist/{chunk-VBUDERMM.js → chunk-BYOPTGET.js} +1 -1
  11. package/dist/chunk-DI5VSZ2T.js +2 -0
  12. package/dist/chunk-EDUGFJHN.js +2 -0
  13. package/dist/chunk-F4BJ72HN.js +1 -0
  14. package/dist/{chunk-LRT5GEGH.js → chunk-FKEKINIM.js} +2 -2
  15. package/dist/chunk-GND6UW37.js +1 -0
  16. package/dist/{chunk-Z2WVSXPW.js → chunk-HUG5AX7R.js} +1 -1
  17. package/dist/chunk-LN4ALFT6.js +1 -0
  18. package/dist/chunk-NXM5ZGHD.js +2 -0
  19. package/dist/chunk-OUFHVLDQ.js +2 -0
  20. package/dist/chunk-SUWCBTBQ.js +1 -0
  21. package/dist/chunk-UGZJJQPM.js +3 -0
  22. package/dist/chunk-ZA44REGI.js +2 -0
  23. package/dist/controlPlane-JJFURVOX.js +1 -0
  24. package/dist/{OpenRTCShared.d.ts → coreClient.d.ts} +61 -66
  25. package/dist/coreClient.js +1 -0
  26. package/dist/deviceEnrollment-Z2EHP2EX.js +2 -0
  27. package/dist/{deviceKey-SBNKLVYF.js → deviceKey-C6UE7QDV.js} +1 -1
  28. package/dist/deviceProfile-CR2C7OYR.js +2 -0
  29. package/dist/index.d.ts +30 -30
  30. package/dist/index.js +1 -1
  31. package/dist/{ipc-CflAVodw.d.ts → ipc-CPnNwv6f.d.ts} +3 -3
  32. package/dist/ipcFactory-DQFK65VE.js +1 -0
  33. package/dist/openrtc-DFZOQJ7V.js +2 -0
  34. package/dist/openrtc_bg.wasm +0 -0
  35. package/dist/runtime/WasmRuntimeAdapter.d.ts +4 -4
  36. package/dist/runtime/WasmRuntimeAdapter.js +1 -1
  37. package/dist/runtime/device-status.d.ts +10 -10
  38. package/dist/runtime/device-status.js +1 -1
  39. package/dist/runtime/factories.d.ts +8 -8
  40. package/dist/runtime/factories.js +1 -1
  41. package/dist/runtime/index.d.ts +50 -50
  42. package/dist/runtime/index.js +1 -1
  43. package/dist/testing.d.ts +126 -13
  44. package/dist/testing.js +1 -1
  45. package/dist/transport/index.d.ts +24 -24
  46. package/dist/transport/index.js +1 -1
  47. package/dist/{types-DVNSd5B9.d.ts → types-D67HlF0p.d.ts} +58 -102
  48. package/dist/{types-Di034GVQ.d.ts → types-DCdYg7za.d.ts} +74 -72
  49. package/package.json +4 -14
  50. package/dist/OpenRTCShared.js +0 -1
  51. package/dist/WasmBridge-5GYKXPXK.js +0 -1
  52. package/dist/chunk-45WBH7E3.js +0 -1
  53. package/dist/chunk-7FPG3MFF.js +0 -2
  54. package/dist/chunk-AG2F6MOB.js +0 -1
  55. package/dist/chunk-CWGKLGJZ.js +0 -1
  56. package/dist/chunk-D2OJN5S5.js +0 -1
  57. package/dist/chunk-H5R5ZXXN.js +0 -3
  58. package/dist/chunk-KJTJLLJE.js +0 -2
  59. package/dist/chunk-OEVPKC3W.js +0 -1
  60. package/dist/chunk-VOCOZ57Q.js +0 -2
  61. package/dist/chunk-XPL7PUBW.js +0 -2
  62. package/dist/chunk-Z6TZLF4B.js +0 -1
  63. package/dist/controlPlane-P66ZTVNW.js +0 -2
  64. package/dist/deviceEnrollment-GL4JPVGG.js +0 -2
  65. package/dist/deviceProfile-3BEQZLJF.js +0 -2
  66. package/dist/ipcFactory-B6HBECSU.js +0 -1
  67. package/dist/native.d.ts +0 -15
  68. package/dist/native.js +0 -1
  69. package/dist/openrtc-BFF336RG.js +0 -2
  70. /package/dist/{deviceManagement-PHY5TIOS.js → deviceManagement-SUMBRXXC.js} +0 -0
  71. /package/dist/{deviceRoster-VZA3TQOR.js → deviceRoster-EUF6BBF5.js} +0 -0
@@ -0,0 +1,2 @@
1
+ var a={controlPlane:"https://api.openrtc.app",gateway:"https://gateway.openrtc.app"};function o(e){let t=e.split(".")[1];if(!t)throw new Error("OpenRTC returned a malformed credential.");let n=t.replace(/-/g,"+").replace(/_/g,"/"),r=n.padEnd(Math.ceil(n.length/4)*4,"=");return JSON.parse(atob(r))}
2
+ export{a,o as b};
@@ -0,0 +1 @@
1
+ export{a as ControlPlane}from'./chunk-DI5VSZ2T.js';export{a as PRODUCTION_ENDPOINTS,b as decodeClaims}from'./chunk-ZA44REGI.js';
@@ -1,9 +1,9 @@
1
- import { R as RuntimePolicySnapshot, P as PeerReconciliationStats, a as RuntimeClient, b as PlutoRuntimeAssembly } from './assembly-q0jRRpsc.js';
2
- import { d as PeerSessionSnapshot, R as ResolvedPeerIdentity, C as ConnectDeviceResult, e as ConnectDeviceHooks, f as ConnectDeviceOptions, G as GrantScope } from './ITransport-WV6gGMnX.js';
3
- import { a as RuntimePeerState, b as RuntimePeerConnectOptions, C as Connection, c as RuntimePeerReadinessSnapshot, d as RuntimePeerHealth, R as RuntimeChannelDescriptor, e as RuntimePeerStreamOptions, f as RuntimeIncomingStream, g as RuntimeScopedChannelOptions, h as RuntimeDevice, i as RuntimeScopedLogicalChannel, j as RuntimeConnectionStateSnapshot, k as RuntimeApplicationPayloadReadinessOptions, l as RuntimeConnectionEvent, m as RuntimeManagedSessionOptions, n as RuntimeManagedSession, o as RuntimeDeviceStatusSnapshot, p as RuntimeDeviceConnectOptions, q as RuntimeLocalDeviceInfo, r as RuntimeLocalDeviceProfile, s as RuntimeRawConnection, t as RuntimeJoinRoomOptions, u as RuntimeRoomMember, A as AuthContext, v as RuntimeClientOptions } from './types-DVNSd5B9.js';
4
- import { R as RuntimeCapabilities, a as RuntimeCapabilityProfile } from './capabilities-BfZi4Cd7.js';
1
+ import { P as PolicySnapshot, a as PeerReconciliationStats, R as RuntimeClient, b as PlutoRuntimeAssembly } from './assembly-BTzwQuwI.js';
2
+ import { d as PeerSessionSnapshot, e as ResolvedPeerIdentity, C as ConnectDeviceResult, f as ConnectDeviceHooks, g as ConnectDeviceOptions, G as GrantScope } from './ITransport-yaruAmx3.js';
3
+ import { R as RuntimePeerState, P as PeerConnectOptions, a as Connection, b as PeerReadiness, c as RuntimePeerHealth, C as ChannelDescriptor, d as PeerStreamOptions, I as IncomingStream, S as ScopedChannelOptions, e as RuntimeDevice, f as ScopedLogicalChannel, g as ConnectionState, h as ReadinessOptions, i as ConnectionEvent, M as ManagedOptions, j as ManagedSession, D as DeviceStatus, k as DeviceConnectOptions, L as LocalDeviceInfo, l as DeviceProfile, m as RawConnection, J as JoinRoomOptions, n as RuntimeRoomMember, A as AuthContext, o as RuntimeClientOptions } from './types-D67HlF0p.js';
4
+ import { R as RuntimeCapabilities, C as CapabilityProfile } from './capabilities-BwzPe51I.js';
5
5
 
6
- type OpenRTCChannelConnectOptions = Omit<RuntimeScopedChannelOptions, 'scope' | 'deviceId' | 'ticket'> & {
6
+ type ChannelConnectOptions = Omit<ScopedChannelOptions, 'scope' | 'deviceId' | 'ticket'> & {
7
7
  /**
8
8
  * Device selected from `client.devices.*`. Passing the device object lets
9
9
  * OpenRTC reuse its current ticket for native and ticket-gated routes.
@@ -16,26 +16,26 @@ type OpenRTCChannelConnectOptions = Omit<RuntimeScopedChannelOptions, 'scope' |
16
16
  * `session`; pass a custom scope only when you intentionally manage peer
17
17
  * lifecycle separately from the channel.
18
18
  */
19
- scope?: RuntimeScopedChannelOptions['scope'];
19
+ scope?: ScopedChannelOptions['scope'];
20
20
  };
21
- type OpenRTCDeviceSessionOptions = Omit<RuntimeManagedSessionOptions, 'platform'> & {
21
+ type DeviceSessionOptions = Omit<ManagedOptions, 'platform'> & {
22
22
  /**
23
23
  * Runtime host for the managed user-device session. Normal apps can omit
24
24
  * this: `OpenRTC(...)` defaults to `web`, and `OpenRTC.native(...)` defaults
25
25
  * to `native`.
26
26
  */
27
- platform?: RuntimeManagedSessionOptions['platform'];
27
+ platform?: ManagedOptions['platform'];
28
28
  };
29
- interface OpenRTCDeviceNamespace {
30
- startSession(options?: OpenRTCDeviceSessionOptions): Promise<RuntimeManagedSession>;
29
+ interface DeviceNamespace {
30
+ startSession(options?: DeviceSessionOptions): Promise<ManagedSession>;
31
31
  stopSession(options?: {
32
32
  preserveBackendSession?: boolean;
33
33
  }): Promise<void>;
34
34
  list(): Promise<RuntimeDevice[]>;
35
- listWithStatus(): Promise<RuntimeDeviceStatusSnapshot[]>;
35
+ listWithStatus(): Promise<DeviceStatus[]>;
36
36
  watch(callback: (devices: RuntimeDevice[]) => void): () => void;
37
- watchWithStatus(callback: (devices: RuntimeDeviceStatusSnapshot[]) => void): () => void;
38
- connect(device: string | RuntimeDevice, options?: RuntimeDeviceConnectOptions): Promise<ConnectDeviceResult>;
37
+ watchWithStatus(callback: (devices: DeviceStatus[]) => void): () => void;
38
+ connect(device: string | RuntimeDevice, options?: DeviceConnectOptions): Promise<ConnectDeviceResult>;
39
39
  /**
40
40
  * @deprecated Use `devices.connect()`. Retry and route recovery are owned by
41
41
  * OpenRTC; legacy consumer-provided connection hooks are ignored.
@@ -49,27 +49,27 @@ interface OpenRTCDeviceNamespace {
49
49
  }): Promise<void>;
50
50
  delete(deviceId: string): Promise<void>;
51
51
  localId(): Promise<string | null>;
52
- localInfo(): Promise<RuntimeLocalDeviceInfo | null>;
52
+ localInfo(): Promise<LocalDeviceInfo | null>;
53
53
  localProfile(options?: {
54
54
  deviceName?: string;
55
55
  localDeviceId?: string | null;
56
56
  platform?: 'native' | 'web';
57
57
  userId?: string | null;
58
- }): Promise<RuntimeLocalDeviceProfile>;
59
- updateLocalName(deviceName: string): Promise<RuntimeLocalDeviceInfo | null>;
58
+ }): Promise<DeviceProfile>;
59
+ updateLocalName(deviceName: string): Promise<LocalDeviceInfo | null>;
60
60
  }
61
- interface OpenRTCPeerNamespace {
61
+ interface PeerNamespace {
62
62
  watch(callback: (peers: RuntimePeerState[]) => void): () => void;
63
63
  watchLifecycle(callback: (peers: RuntimePeerState[]) => void): () => void;
64
64
  get(id: string): RuntimePeerState | undefined;
65
65
  listConnected(): RuntimePeerState[];
66
- connect(options: RuntimePeerConnectOptions): Promise<Connection>;
66
+ connect(options: PeerConnectOptions): Promise<Connection>;
67
67
  disconnect(id: string, scope?: string): Promise<void>;
68
68
  forceDisconnect(id: string): Promise<void>;
69
69
  session(id: string): Promise<PeerSessionSnapshot | null>;
70
70
  sessions(): Promise<PeerSessionSnapshot[]>;
71
71
  waitConnected(id: string, timeoutMs?: number): Promise<PeerSessionSnapshot | null>;
72
- readiness(id: string, timeoutMs?: number): Promise<RuntimePeerReadinessSnapshot>;
72
+ readiness(id: string, timeoutMs?: number): Promise<PeerReadiness>;
73
73
  health(id: string): Promise<RuntimePeerHealth>;
74
74
  identity(id: string): Promise<ResolvedPeerIdentity>;
75
75
  addScope(id: string, scope?: string): RuntimePeerState | undefined;
@@ -77,34 +77,34 @@ interface OpenRTCPeerNamespace {
77
77
  scopes(id: string): string[];
78
78
  refresh(): Promise<RuntimePeerState[]>;
79
79
  }
80
- interface OpenRTCChannelNamespace {
81
- register(descriptor: RuntimeChannelDescriptor): void;
80
+ interface ChannelNamespace {
81
+ register(descriptor: ChannelDescriptor): void;
82
82
  unregister(channelId: string): void;
83
- list(): RuntimeChannelDescriptor[];
84
- openBi(id: string, channelId: string, options?: Omit<RuntimePeerStreamOptions, 'channelId'>): Promise<{
83
+ list(): ChannelDescriptor[];
84
+ openBi(id: string, channelId: string, options?: Omit<PeerStreamOptions, 'channelId'>): Promise<{
85
85
  connection: Connection;
86
86
  readable: ReadableStream<Uint8Array>;
87
87
  writable: WritableStream<Uint8Array>;
88
88
  }>;
89
- openUni(id: string, channelId: string, options?: Omit<RuntimePeerStreamOptions, 'channelId'>): Promise<{
89
+ openUni(id: string, channelId: string, options?: Omit<PeerStreamOptions, 'channelId'>): Promise<{
90
90
  connection: Connection;
91
91
  writable: WritableStream<Uint8Array>;
92
92
  }>;
93
- onIncoming(callback: (stream: RuntimeIncomingStream) => boolean | void): () => void;
94
- onIncomingChannel(channelId: string, callback: (stream: RuntimeIncomingStream & {
95
- channel: NonNullable<RuntimeIncomingStream['channel']>;
93
+ onIncoming(callback: (stream: IncomingStream) => boolean | void): () => void;
94
+ onIncomingChannel(channelId: string, callback: (stream: IncomingStream & {
95
+ channel: NonNullable<IncomingStream['channel']>;
96
96
  }) => boolean | void): () => void;
97
- connect(options: OpenRTCChannelConnectOptions): Promise<RuntimeScopedLogicalChannel>;
98
- connectScoped(options: RuntimeScopedChannelOptions): Promise<RuntimeScopedLogicalChannel>;
97
+ connect(options: ChannelConnectOptions): Promise<ScopedLogicalChannel>;
98
+ connectScoped(options: ScopedChannelOptions): Promise<ScopedLogicalChannel>;
99
99
  }
100
- interface OpenRTCRoomNamespace {
100
+ interface RoomNamespace {
101
101
  create(roomId?: string): Promise<string>;
102
- join(roomId: string, options?: RuntimeJoinRoomOptions): Promise<Connection[]>;
102
+ join(roomId: string, options?: JoinRoomOptions): Promise<Connection[]>;
103
103
  leave(roomId: string): Promise<void>;
104
104
  watch(roomId: string, callback: (members: RuntimeRoomMember[]) => void): () => void;
105
105
  members(roomId: string): Promise<RuntimeRoomMember[]>;
106
106
  }
107
- interface OpenRTCTicketNamespace {
107
+ interface TicketNamespace {
108
108
  raw(): Promise<string>;
109
109
  share(options?: {
110
110
  maxConnections?: number;
@@ -114,27 +114,27 @@ interface OpenRTCTicketNamespace {
114
114
  }): Promise<string>;
115
115
  revoke(scope: GrantScope): Promise<string[]>;
116
116
  }
117
- interface OpenRTCDiagnosticsNamespace {
117
+ interface DiagnosticsNamespace {
118
118
  status(): Promise<{
119
119
  runtime: 'tauri' | 'browser' | 'unknown';
120
120
  wasmLoaded: boolean;
121
121
  localNodeId?: string;
122
122
  userId?: string;
123
123
  }>;
124
- policy(): RuntimePolicySnapshot;
124
+ policy(): PolicySnapshot;
125
125
  capabilities(): RuntimeCapabilities;
126
- capabilityProfile(): RuntimeCapabilityProfile;
127
- connectionStates(): Promise<RuntimeConnectionStateSnapshot[]>;
128
- onConnectionStateChange(callback: (state: RuntimeConnectionStateSnapshot) => void): Promise<() => void> | (() => void);
126
+ capabilityProfile(): CapabilityProfile;
127
+ connectionStates(): Promise<ConnectionState[]>;
128
+ onStateChange(callback: (state: ConnectionState) => void): Promise<() => void> | (() => void);
129
129
  connections(): Connection[];
130
- applicationReadyConnections(options?: RuntimeApplicationPayloadReadinessOptions): Connection[];
130
+ applicationReadyConnections(options?: ReadinessOptions): Connection[];
131
131
  onConnection(callback: (connection: Connection) => void): () => void;
132
132
  onDisconnection(callback: (connection: Connection) => void): () => void;
133
- onConnectionEvent(callback: (event: RuntimeConnectionEvent) => void): () => void;
134
- forceReconnectSnapshot(): void;
133
+ onConnectionEvent(callback: (event: ConnectionEvent) => void): () => void;
134
+ forceReconnect(): void;
135
135
  peerReconciliation(): Readonly<PeerReconciliationStats>;
136
136
  }
137
- interface OpenRTCAdvancedNamespace {
137
+ interface AdvancedNamespace {
138
138
  readonly runtime: RuntimeClient;
139
139
  readonly assembly: PlutoRuntimeAssembly;
140
140
  nodeId(): Promise<string>;
@@ -143,7 +143,7 @@ interface OpenRTCAdvancedNamespace {
143
143
  connectRaw(target: {
144
144
  ticket: string;
145
145
  timeoutMs?: number;
146
- }): Promise<RuntimeRawConnection>;
146
+ }): Promise<RawConnection>;
147
147
  openBi(nodeId: string): Promise<{
148
148
  readable: ReadableStream<Uint8Array>;
149
149
  writable: WritableStream<Uint8Array>;
@@ -151,23 +151,23 @@ interface OpenRTCAdvancedNamespace {
151
151
  openUni(nodeId: string): Promise<WritableStream<Uint8Array>>;
152
152
  isConnected(nodeId: string): Promise<boolean>;
153
153
  disconnectNode(nodeId: string): Promise<void>;
154
- setAutoConnectExcluded(deviceId: string, excluded: boolean): Promise<void>;
154
+ excludeAutoConnect(deviceId: string, excluded: boolean): Promise<void>;
155
155
  notifyNetworkChange(reason?: string): Promise<void>;
156
156
  }
157
157
  /**
158
- * OpenRTCClient extends RuntimeClient with auth helpers that were
158
+ * Client extends RuntimeClient with auth helpers that were
159
159
  * previously only available on PlutoRuntimeAssembly.
160
160
  *
161
161
  * This is the unified type returned by OpenRTC() and OpenRTC.native().
162
162
  */
163
- interface OpenRTCClient extends RuntimeClient {
164
- readonly devices: OpenRTCDeviceNamespace;
165
- readonly peers: OpenRTCPeerNamespace;
166
- readonly channels: OpenRTCChannelNamespace;
167
- readonly rooms: OpenRTCRoomNamespace;
168
- readonly tickets: OpenRTCTicketNamespace;
169
- readonly diagnostics: OpenRTCDiagnosticsNamespace;
170
- readonly advanced: OpenRTCAdvancedNamespace;
163
+ interface Client extends RuntimeClient {
164
+ readonly devices: DeviceNamespace;
165
+ readonly peers: PeerNamespace;
166
+ readonly channels: ChannelNamespace;
167
+ readonly rooms: RoomNamespace;
168
+ readonly tickets: TicketNamespace;
169
+ readonly diagnostics: DiagnosticsNamespace;
170
+ readonly advanced: AdvancedNamespace;
171
171
  /** @deprecated Use setAuth() instead */
172
172
  setAuthContext(context: AuthContext | null): Promise<void>;
173
173
  /** Set auth context for the runtime */
@@ -188,7 +188,7 @@ interface OpenRTCClient extends RuntimeClient {
188
188
  * user-device avenue lifecycle. This top-level method remains for
189
189
  * RuntimeClient compatibility and advanced integrations.
190
190
  */
191
- startManagedSession(options: RuntimeManagedSessionOptions): Promise<RuntimeManagedSession>;
191
+ startManagedSession(options: ManagedOptions): Promise<ManagedSession>;
192
192
  /**
193
193
  * @deprecated Use `client.devices.stopSession(...)` for the public
194
194
  * user-device avenue lifecycle.
@@ -199,7 +199,7 @@ interface OpenRTCClient extends RuntimeClient {
199
199
  /** @deprecated Use `client.rooms.create(...)`. */
200
200
  createRoom(roomId?: string): Promise<string>;
201
201
  /** @deprecated Use `client.rooms.join(...)`. */
202
- joinRoom(roomId: string, options?: RuntimeJoinRoomOptions): Promise<Connection[]>;
202
+ joinRoom(roomId: string, options?: JoinRoomOptions): Promise<Connection[]>;
203
203
  /** @deprecated Use `client.rooms.leave(...)`. */
204
204
  leaveRoom(roomId: string): Promise<void>;
205
205
  /** @deprecated Use `client.rooms.watch(...)`. */
@@ -215,21 +215,21 @@ interface OpenRTCClient extends RuntimeClient {
215
215
  /** @deprecated Use `client.tickets.revoke(...)`. */
216
216
  revokeTokensByScope(scope: GrantScope): Promise<string[]>;
217
217
  /** @deprecated Use `client.peers.connect(...)`. */
218
- connectPeer(options: RuntimePeerConnectOptions): Promise<Connection>;
218
+ connectPeer(options: PeerConnectOptions): Promise<Connection>;
219
219
  /** @deprecated Use `client.peers.connect(...)`. */
220
- connectTo(options: RuntimePeerConnectOptions): Promise<Connection>;
220
+ connectTo(options: PeerConnectOptions): Promise<Connection>;
221
221
  /** @deprecated Use `client.peers.waitConnected(...)`. */
222
222
  waitForConnectedPeer(id: string, timeoutMs?: number): Promise<PeerSessionSnapshot | null>;
223
223
  /** @deprecated Use `client.channels.connect(...)`; use `client.channels.connectScoped(...)` only for custom lifecycle scopes. */
224
- connectScopedChannel(options: RuntimeScopedChannelOptions): Promise<RuntimeScopedLogicalChannel>;
224
+ connectScopedChannel(options: ScopedChannelOptions): Promise<ScopedLogicalChannel>;
225
225
  /** @deprecated Use `client.channels.openBi(...)`. */
226
- openPeerBi(id: string, options?: RuntimePeerStreamOptions): Promise<{
226
+ openPeerBi(id: string, options?: PeerStreamOptions): Promise<{
227
227
  connection: Connection;
228
228
  readable: ReadableStream<Uint8Array>;
229
229
  writable: WritableStream<Uint8Array>;
230
230
  }>;
231
231
  /** @deprecated Use `client.channels.openUni(...)`. */
232
- openPeerUni(id: string, options?: RuntimePeerStreamOptions): Promise<{
232
+ openPeerUni(id: string, options?: PeerStreamOptions): Promise<{
233
233
  connection: Connection;
234
234
  writable: WritableStream<Uint8Array>;
235
235
  }>;
@@ -238,13 +238,8 @@ interface OpenRTCClient extends RuntimeClient {
238
238
  * @deprecated Access methods directly on the client instead.
239
239
  */
240
240
  readonly runtime: RuntimeClient;
241
- /**
242
- * Access to the underlying PlutoRuntimeAssembly for backward compatibility.
243
- * @internal
244
- */
245
- readonly _assembly: PlutoRuntimeAssembly;
246
241
  }
247
242
  declare function resolveOptions(options: RuntimeClientOptions): RuntimeClientOptions;
248
- declare function wrapAssembly(assembly: PlutoRuntimeAssembly, defaultManagedSessionPlatform: RuntimeManagedSessionOptions['platform']): OpenRTCClient;
243
+ declare function wrapAssembly(assembly: PlutoRuntimeAssembly, defaultManagedSessionPlatform: ManagedOptions['platform']): Client;
249
244
 
250
- export { type OpenRTCAdvancedNamespace, type OpenRTCChannelConnectOptions, type OpenRTCChannelNamespace, type OpenRTCClient, type OpenRTCDeviceNamespace, type OpenRTCDeviceSessionOptions, type OpenRTCDiagnosticsNamespace, type OpenRTCPeerNamespace, type OpenRTCRoomNamespace, type OpenRTCTicketNamespace, resolveOptions, wrapAssembly };
245
+ export { type AdvancedNamespace, type ChannelConnectOptions, type ChannelNamespace, type Client, type DeviceNamespace, type DeviceSessionOptions, type DiagnosticsNamespace, type PeerNamespace, type RoomNamespace, type TicketNamespace, resolveOptions, wrapAssembly };
@@ -0,0 +1 @@
1
+ import {n}from'./chunk-NXM5ZGHD.js';import'./chunk-NRXEG5GQ.js';import'./chunk-LN4ALFT6.js';function I(o){let s=n({...o});if("auth"in o&&!o.authMode){let n=o.auth;s.authMode=n==="none"?"anonymous":n;}if("identity"in o){let n=o.identity,r=n==="temporary"?"ephemeral":n;!o.deviceIdPersistence&&!o.nodeIdPersistence&&(s.deviceIdPersistence=r),!o.endpointIdPersistence&&!o.nodeIdPersistence&&(s.endpointIdPersistence=r);}return "namespace"in o&&!o.storagePrefix&&(s.storagePrefix=o.namespace),"privacy"in o&&o.strictMode===void 0&&(s.strictMode=!!o.privacy),s}function D(o,s){let n=o.runtime,r=Object.create(n),d=async e=>{if(typeof e!="string")return e;let i=(await n.listDevices()).find(c=>c.deviceId===e);if(!i)throw new Error(`OpenRTC device '${e}' is not currently discoverable.`);return i},u=async e=>({...e,localDeviceId:e?.localDeviceId??await n.getLocalDeviceId()??""}),g=async e=>{let{device:t,scope:i,...c}=e,a=c.deviceId??(typeof t=="string"?t:t?.deviceId)??null,l=c.ticket??(typeof t=="string"?void 0:t?.ticket);a&&!l&&(l=(await d(a).catch(()=>null))?.ticket);let m={...c,scope:i??"session"};return a&&(m.deviceId=a),l&&(m.ticket=l),m},v={list:()=>n.listDevices(),startSession:(e={})=>n.startManagedSession({...e,platform:e.platform??s}),stopSession:e=>n.stopManagedSession(e),listWithStatus:()=>n.listDeviceStatus(),watch:e=>n.watchDevices(e),watchWithStatus:e=>n.watchDeviceStatus(e),connect:async(e,t)=>n.connectDevice(await d(e),await u(t)),connectWithRetry:async(e,t,i)=>n.connectWithRetry(await d(e),t,i),disconnect:e=>n.disconnectDevice(e),update:(e,t)=>n.updateDevice(e,t),delete:e=>n.deleteDevice(e),localId:()=>n.getLocalDeviceId(),localInfo:()=>n.getLocalDeviceInfo(),localProfile:e=>n.localDeviceProfile(e),updateLocalName:e=>n.updateDeviceName(e)},P={watch:e=>n.watchPeerStates(e),watchLifecycle:e=>n.watchPeerLifecycle(e),get:e=>n.getPeerState(e),listConnected:()=>n.listConnectedPeers(),connect:e=>n.connectPeer(e),disconnect:(e,t)=>n.disconnectPeer(e,t),forceDisconnect:e=>n.forceDisconnectPeer(e),session:e=>n.getPeerSession(e),sessions:()=>n.listPeerSessions(),waitConnected:(e,t)=>n.waitForConnectedPeer(e,t),readiness:(e,t)=>n.getPeerReadiness(e,t),health:e=>n.getPeerHealth(e),identity:e=>n.resolvePeerIdentity(e),addScope:(e,t)=>n.addPeerScope(e,t),releaseScope:(e,t)=>n.releasePeerScope(e,t),scopes:e=>n.getPeerScopes(e),refresh:()=>n.refreshPeerSnapshot()},C={register:e=>n.registerChannel(e),unregister:e=>n.unregisterChannel(e),list:()=>n.listChannels(),openBi:(e,t,i)=>n.openPeerBi(e,{...i,channelId:t}),openUni:(e,t,i)=>n.openPeerUni(e,{...i,channelId:t}),onIncoming:e=>n.onIncomingStream(e),onIncomingChannel:(e,t)=>n.onChannelStream(e,i=>{if(i.channel)return t(i)}),connect:async e=>n.connectScopedChannel(await g(e)),connectScoped:e=>n.connectScopedChannel(e)},h={create:e=>n.createRoom(e),join:(e,t)=>n.joinRoom(e,t),leave:e=>n.leaveRoom(e),watch:(e,t)=>n.watchRoom(e,t),members:e=>n.getRoomMembers(e)},S={raw:()=>n.getInvite(),share:e=>n.getTicketWithToken("share",e?.maxConnections??1),grant:(e,t)=>n.getTicketWithToken(e,t?.maxConnections??0),revoke:e=>n.revokeTokensByScope(e)},b={status:()=>n.getRuntimeStatus(),policy:()=>n.getRuntimePolicy(),capabilities:()=>n.capabilities(),capabilityProfile:()=>n.getCapabilityProfile(),connectionStates:()=>n.getConnectionStates(),onStateChange:e=>n.onStateChange(e),connections:()=>n.getConnections(),applicationReadyConnections:e=>n.readyConnections(e),onConnection:e=>n.onConnection(e),onDisconnection:e=>n.onDisconnection(e),onConnectionEvent:e=>n.onConnectionEvent(e),forceReconnect:()=>n.forceReconnect(),peerReconciliation:()=>n.reconciliationStats()},y={runtime:n,assembly:o,nodeId:()=>n.getNodeId(),nodeIdFromTicket:e=>n.getNodeIdFromTicket(e),endpointTicket:()=>n.getEndpointTicket(),connectRaw:e=>n.connectRaw(e),openBi:e=>n.openBi(e),openUni:e=>n.openUni(e),isConnected:e=>n.isConnected(e),disconnectNode:e=>n.disconnectNode(e),excludeAutoConnect:(e,t)=>n.excludeAutoConnect(e,t),notifyNetworkChange:e=>n.notifyNetworkChange(e)};return Object.defineProperties(r,{devices:{get:()=>v,enumerable:true},peers:{get:()=>P,enumerable:true},channels:{get:()=>C,enumerable:true},rooms:{get:()=>h,enumerable:true},tickets:{get:()=>S,enumerable:true},diagnostics:{get:()=>b,enumerable:true},advanced:{get:()=>y,enumerable:true},setAuth:{value:e=>o.setAuthContext(e),enumerable:true,writable:true,configurable:true},setAuthContext:{value:e=>o.setAuthContext(e),enumerable:true,writable:true,configurable:true},syncPlutoAuth:{value:e=>o.syncPlutoAuth(e),enumerable:true,writable:true,configurable:true},bindPlutoAuthHost:{value:()=>o.bindPlutoAuthHost(),enumerable:true,writable:true,configurable:true},signIn:{value:()=>o.signInWithPluto(),enumerable:true,writable:true,configurable:true},signOut:{value:()=>o.signOut(),enumerable:true,writable:true,configurable:true},runtime:{get:()=>n,enumerable:false},_assembly:{get:()=>o,enumerable:false}}),r}export{I as resolveOptions,D as wrapAssembly};
@@ -0,0 +1,2 @@
1
+ import {d,a}from'./chunk-AJQVMVYW.js';function v(e){return e.status===403&&e.reason==="device-enrollment-revoked"}async function f(e){let r=e.identity,a$1=async(o=false,t=e.recoverRevokedEnrollment)=>{let n=await e.key.proof((d,l)=>["openrtc:v2:device-enroll",e.appTag,r.principalId,e.deviceId,d,l].join(":")),i=e.attestation?{kind:e.attestation.kind,...await e.attestation.getEvidence({challenge:`openrtc:v2:attestation:${e.appTag}:${r.principalId}:${e.deviceId}:${n.nonce}`,apiKey:e.apiKey})}:void 0;return e.post("/v2/devices/enroll",{identitySession:r.identitySession,deviceId:e.deviceId,deviceProof:n,...e.profile?.name||e.profile?.platform?{deviceProfile:{...e.profile.name?{name:e.profile.name}:{},...e.profile.platform?{platform:e.profile.platform}:{}}}:{},...t?{recoverRevokedEnrollment:true}:{},...o?{recoverDeviceKey:true}:{},...i?{attestation:i}:{}})};try{return {identity:r,enrollment:await a$1()}}catch(o){let t=o;if(!(t instanceof Error))throw o;if(v(t)){if(r.deviceRecoveryAuthorized===false)throw d(a.AUTH_DEVICE_REENROLLMENT_REQUIRED,"This device was removed. Sign in again to authorize re-enrollment.",{retryable:true,plane:"auth",cause:o});return {identity:r,enrollment:await a$1(false,true)}}if(t.status!==412||t.reason!=="device-key-recovery-required")throw o;let n=await e.auth.getAssertion({audience:"https://api.openrtc.app/v2/assertions/exchange",forceRefresh:true,deviceId:e.deviceId,recoveryReason:"device-key-rotation"});if(!n)throw new Error("The OpenRTC auth provider returned no assertion.");let i=await e.post("/v2/assertions/exchange",{assertion:n,...e.auth.providerId?{providerId:e.auth.providerId}:{}});if(e.recordAssertionExchange(),i.principalId!==r.principalId)throw new Error("The authenticated principal changed during device-key recovery.");return r=i,{identity:r,enrollment:await a$1(true)}}}
2
+ export{f as enrollDevice};
@@ -1 +1 @@
1
- export{b as browserDeviceKeyProvider,a as deviceKeyThumbprint}from'./chunk-VBUDERMM.js';
1
+ export{b as browserDeviceKeyProvider,a as deviceKeyThumbprint}from'./chunk-BYOPTGET.js';
@@ -0,0 +1,2 @@
1
+ function c(n){let t=n?.trim();if(t){if(new TextEncoder().encode(t).byteLength>4*1024)throw new Error("[OpenRTC] Device profile metadata must not exceed 4 KiB.");return t}}function d(n,t,e){let i=n?.trim();if(i){if(i.length>e||/[\u0000-\u001f\u007f]/u.test(i))throw new Error(`[OpenRTC] Device profile ${t} is invalid.`);return i}}function l(n=typeof navigator>"u"?void 0:navigator){if(!n)return {name:"Web Browser",platform:"web"};let t=n,e=t.userAgent??"",i=`${t.userAgentData?.platform??""} ${t.platform??""}`.toLowerCase(),m=/ipad/i.test(e)||i.includes("mac")&&Number(t.maxTouchPoints??0)>1,r=/android/i.test(e)||i.includes("android")?"android":/iphone|ipod/i.test(e)?"ios":m?"ipados":/windows/i.test(e)||i.includes("win")?"windows":/macintosh|mac os x/i.test(e)||i.includes("mac")?"macos":/linux/i.test(e)||i.includes("linux")?"linux":"web",f=(t.userAgentData?.brands??[]).map(({brand:o})=>o.toLowerCase()),a=o=>f.some(u=>u.includes(o)),s=/edgios|edga|edg\//i.test(e)||a("edge")?"Edge":/fxios|firefox/i.test(e)||a("firefox")?"Firefox":/crios|chrome|chromium/i.test(e)||a("chrome")||a("chromium")?"Chrome":/safari/i.test(e)?"Safari":"Web";return {name:r==="web"?`${s} Browser`:`${s} on ${r==="ios"?"iPhone":r==="ipados"?"iPad":r==="android"?"Android":r==="macos"?"macOS":r==="windows"?"Windows":r==="linux"?"Linux":"Web"}`,platform:r}}function g(n,t){let e=l();return {name:d(n?.name,"name",120)??(t==="native"&&e.platform==="web"?"Native device":e.name),platform:d(n?.platform,"platform",80)??(t==="native"&&e.platform==="web"?"desktop":e.platform),metadata:c(n?.metadata)}}
2
+ export{l as inferDeviceProfile,g as resolveDeviceProfile};
package/dist/index.d.ts CHANGED
@@ -1,19 +1,19 @@
1
- import { P as PlutoIpcBridge } from './ipc-CflAVodw.js';
2
- import { O as OpenRTCOptions, a as OpenRTCClient } from './types-Di034GVQ.js';
3
- export { c as OpenRTCAttestationProvider, d as OpenRTCAuthProvider, f as OpenRTCCapabilityHandle, g as OpenRTCChannel, i as OpenRTCConnection, j as OpenRTCDeviceProfile, k as OpenRTCDevicesHandle, l as OpenRTCDevicesStartOptions, m as OpenRTCEnrolledDevice, o as OpenRTCRoomHandle, p as OpenRTCRoomJoinOptions, q as OpenRTCSpaceHandle, r as OpenRTCSpaceJoinOptions, s as OpenRTCState, t as OpenRTCTicketHandle, u as OpenRTCTicketIssueOptions, v as OpenRTCTransportPreferences, x as OpenRTCUsageUpdate, y as OpenRTCUsageWarning } from './types-Di034GVQ.js';
4
- import './OpenRTCShared.js';
5
- import './assembly-q0jRRpsc.js';
6
- import './types-DVNSd5B9.js';
7
- import './ITransport-WV6gGMnX.js';
8
- import './capabilities-BfZi4Cd7.js';
1
+ import { P as PlutoIpcBridge } from './ipc-CPnNwv6f.js';
2
+ import { O as Options, C as Client } from './types-DCdYg7za.js';
3
+ export { A as AttestationProvider, a as AuthProvider, b as Avenue, c as Channel, d as Connection, D as DeviceOptions, e as DeviceProfile, f as Devices, E as EnrolledDevice, R as Room, g as RoomOptions, S as Space, h as SpaceOptions, i as State, T as Ticket, j as TicketOptions, k as Transports, U as UsageUpdate, l as UsageWarning } from './types-DCdYg7za.js';
4
+ import './coreClient.js';
5
+ import './assembly-BTzwQuwI.js';
6
+ import './types-D67HlF0p.js';
7
+ import './ITransport-yaruAmx3.js';
8
+ import './capabilities-BwzPe51I.js';
9
9
 
10
10
  /**
11
11
  * Create a lazy OpenRTC 2.0 browser client. Construction validates only local
12
12
  * input and performs no network, storage, auth, timer, WASM, or transport work.
13
13
  */
14
- declare function OpenRTC(options: OpenRTCOptions): OpenRTCClient;
14
+ declare function OpenRTC(options: Options): Client;
15
15
  declare namespace OpenRTC {
16
- var native: (options: OpenRTCOptions, bridge?: PlutoIpcBridge) => OpenRTCClient;
16
+ var native: (options: Options, bridge?: PlutoIpcBridge) => Client;
17
17
  }
18
18
 
19
19
  /**
@@ -28,8 +28,8 @@ declare namespace OpenRTC {
28
28
  * - Dead-letter `admission`, `budget`, security/ACL, and non-retryable auth.
29
29
  * - Error codes annotate projection; they never own dial, presence, or settlement.
30
30
  */
31
- type OpenRtcErrorPlane = 'coordination' | 'admission' | 'transport' | 'auth' | 'budget' | 'delivery' | 'internal';
32
- declare const OPENRTC_ERROR_CODES: {
31
+ type ErrorPlane = 'coordination' | 'admission' | 'transport' | 'auth' | 'budget' | 'delivery' | 'internal';
32
+ declare const ERROR_CODES: {
33
33
  readonly AUTH_NOT_READY: "auth/not-ready";
34
34
  readonly AUTH_DENIED: "auth/denied";
35
35
  readonly AUTH_EXPIRED: "auth/expired";
@@ -51,48 +51,48 @@ declare const OPENRTC_ERROR_CODES: {
51
51
  readonly DELIVERY_NOT_READY: "delivery/not-ready";
52
52
  readonly INTERNAL: "internal/error";
53
53
  };
54
- type OpenRtcErrorCode = (typeof OPENRTC_ERROR_CODES)[keyof typeof OPENRTC_ERROR_CODES] | (string & {});
55
- interface OpenRtcErrorOptions {
56
- code: OpenRtcErrorCode;
54
+ type ErrorCode = (typeof ERROR_CODES)[keyof typeof ERROR_CODES] | (string & {});
55
+ interface ErrorOptions {
56
+ code: ErrorCode;
57
57
  message: string;
58
58
  retryable: boolean;
59
- plane: OpenRtcErrorPlane;
59
+ plane: ErrorPlane;
60
60
  cause?: unknown;
61
61
  generation?: number;
62
62
  transportGeneration?: number;
63
63
  routeGeneration?: number;
64
64
  revision?: number;
65
65
  }
66
- declare class OpenRtcError extends Error {
66
+ declare class RTCError extends Error {
67
67
  readonly name: string;
68
- readonly code: OpenRtcErrorCode;
68
+ readonly code: ErrorCode;
69
69
  readonly retryable: boolean;
70
- readonly plane: OpenRtcErrorPlane;
70
+ readonly plane: ErrorPlane;
71
71
  readonly generation?: number;
72
72
  readonly transportGeneration?: number;
73
73
  readonly routeGeneration?: number;
74
74
  readonly revision?: number;
75
- constructor(options: OpenRtcErrorOptions);
76
- static isOpenRtcError(value: unknown): value is OpenRtcError;
75
+ constructor(options: ErrorOptions);
76
+ static is(value: unknown): value is RTCError;
77
77
  /** True when an app may retry the *same logical operation* without inventing a peer dial owner. */
78
78
  static shouldAppRetry(error: unknown): boolean;
79
79
  toJSON(): Record<string, unknown>;
80
80
  }
81
- interface OpenRtcErrorProjection {
82
- errorCode?: OpenRtcErrorCode;
81
+ interface ErrorProjection {
82
+ errorCode?: ErrorCode;
83
83
  retryable?: boolean;
84
- errorPlane?: OpenRtcErrorPlane;
84
+ errorPlane?: ErrorPlane;
85
85
  }
86
86
  /** Build projection annotations without owning lifecycle. */
87
- declare function projectOpenRtcErrorFields(error: unknown): OpenRtcErrorProjection;
88
- declare function openRtcError(code: OpenRtcErrorCode, message: string, options: Omit<OpenRtcErrorOptions, 'code' | 'message'> & {
87
+ declare function projectError(error: unknown): ErrorProjection;
88
+ declare function createError(code: ErrorCode, message: string, options: Omit<ErrorOptions, 'code' | 'message'> & {
89
89
  retryable?: boolean;
90
- plane?: OpenRtcErrorPlane;
91
- }): OpenRtcError;
90
+ plane?: ErrorPlane;
91
+ }): RTCError;
92
92
  /**
93
93
  * Map gateway protocol / connect failures and common message shapes into the
94
94
  * public taxonomy. Prefer structured `code`/`retryable` when present.
95
95
  */
96
- declare function classifyOpenRtcFailure(error: unknown): OpenRtcError;
96
+ declare function classifyError(error: unknown): RTCError;
97
97
 
98
- export { OPENRTC_ERROR_CODES, OpenRTC, OpenRTCClient, OpenRTCOptions, OpenRtcError, type OpenRtcErrorCode, type OpenRtcErrorOptions, type OpenRtcErrorPlane, type OpenRtcErrorProjection, classifyOpenRtcFailure, openRtcError, projectOpenRtcErrorFields };
98
+ export { Client, ERROR_CODES, type ErrorCode, type ErrorOptions, type ErrorPlane, type ErrorProjection, OpenRTC, Options, RTCError, classifyError, createError, projectError };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import {a}from'./chunk-7FPG3MFF.js';import'./chunk-VBUDERMM.js';import {b}from'./chunk-OEVPKC3W.js';import'./chunk-XPL7PUBW.js';import {d}from'./chunk-Z2WVSXPW.js';import'./chunk-DUY34MGT.js';export{a as OPENRTC_ERROR_CODES,b as OpenRtcError,e as classifyOpenRtcFailure,d as openRtcError,c as projectOpenRtcErrorFields}from'./chunk-CWGKLGJZ.js';import'./chunk-NRXEG5GQ.js';function i(n){return b(n,{platform:"web",runtimeFactory:async e=>{let{createWasmClient:t}=await import('./runtime/factories.js');return t(e)}})}i.native=function(n,e=d()){return b(n,{platform:"native",deviceKeyProvider:a(e),deviceIdProvider:async()=>{let t=await e.invoke("get_rtc_local_device_info");return String(t?.deviceId??"")},runtimeFactory:async t=>{let{createIpcClient:O}=await import('./ipcFactory-B6HBECSU.js');return O(t,e)}})};export{i as OpenRTC};
1
+ import {a}from'./chunk-EDUGFJHN.js';import'./chunk-BYOPTGET.js';import {b}from'./chunk-4N6UDVZR.js';import'./chunk-ZA44REGI.js';import {d}from'./chunk-HUG5AX7R.js';import'./chunk-DUY34MGT.js';export{a as ERROR_CODES,b as RTCError,e as classifyError,d as createError,c as projectError}from'./chunk-AJQVMVYW.js';import'./chunk-NRXEG5GQ.js';function n(r){return b(r,{platform:"web",runtimeFactory:async e=>{let{createWasmClient:t}=await import('./runtime/factories.js');return t(e)}})}n.native=function(r,e=d()){return b(r,{platform:"native",deviceKeyProvider:a(e),deviceIdProvider:async()=>{let t=await e.invoke("get_rtc_local_device_info");return String(t?.deviceId??"")},runtimeFactory:async t=>{let{createIpcClient:a}=await import('./ipcFactory-DQFK65VE.js');return a(t,e)}})};export{n as OpenRTC};
@@ -5,7 +5,7 @@ interface PlutoIpcBridge {
5
5
  isAvailable?(): boolean | Promise<boolean>;
6
6
  }
7
7
  type NativeIpcFailureKind = 'command-unavailable' | 'runtime-unavailable' | 'timeout' | 'unknown';
8
- declare function classifyNativeIpcFailure(error: unknown): NativeIpcFailureKind;
9
- declare function isNativeIpcCommandUnavailable(error: unknown): boolean;
8
+ declare function classifyIpcFailure(error: unknown): NativeIpcFailureKind;
9
+ declare function isIpcUnavailable(error: unknown): boolean;
10
10
 
11
- export { type NativeIpcFailureKind as N, type PlutoIpcBridge as P, type PlutoIpcUnlisten as a, classifyNativeIpcFailure as c, isNativeIpcCommandUnavailable as i };
11
+ export { type NativeIpcFailureKind as N, type PlutoIpcBridge as P, type PlutoIpcUnlisten as a, classifyIpcFailure as c, isIpcUnavailable as i };
@@ -0,0 +1 @@
1
+ import {a as a$1}from'./chunk-GND6UW37.js';import {t}from'./chunk-UGZJJQPM.js';import'./chunk-HUG5AX7R.js';import'./chunk-DUY34MGT.js';import'./chunk-F4BJ72HN.js';import'./chunk-OUFHVLDQ.js';import'./chunk-AJQVMVYW.js';import {a}from'./chunk-NXM5ZGHD.js';import'./chunk-NRXEG5GQ.js';import'./chunk-FKEKINIM.js';import'./chunk-SUWCBTBQ.js';import'./chunk-LN4ALFT6.js';function c(i,r){let t$1=a(i);return a$1(t$1,new t({...t$1,bridge:r}))}export{c as createIpcClient};
@@ -0,0 +1,2 @@
1
+ var q=class a{static __wrap(t){let e=Object.create(a.prototype);return e.__wbg_ptr=t,$.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,$.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_bistream_free(t,0);}get applicationCryptoWrapped(){return n.bistream_applicationCryptoWrapped(this.__wbg_ptr)!==0}get endpoint_id(){let t,e;try{let o=n.__wbindgen_add_to_stack_pointer(-16);n.bistream_endpoint_id(o,this.__wbg_ptr);var _=x().getInt32(o+0,!0),r=x().getInt32(o+4,!0);return t=_,e=r,v(_,r)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export4(t,e,1);}}finishSend(){let t=n.bistream_finishSend(this.__wbg_ptr);return p(t)}get recv(){let t=n.bistream_recv(this.__wbg_ptr);return p(t)}get send(){let t=n.bistream_send(this.__wbg_ptr);return p(t)}};Symbol.dispose&&(q.prototype[Symbol.dispose]=q.prototype.free);var L=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,Rt.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_intounderlyingbytesource_free(t,0);}get autoAllocateChunkSize(){return n.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr)>>>0}cancel(){let t=this.__destroy_into_raw();n.intounderlyingbytesource_cancel(t);}pull(t){let e=n.intounderlyingbytesource_pull(this.__wbg_ptr,g(t));return p(e)}start(t){n.intounderlyingbytesource_start(this.__wbg_ptr,g(t));}get type(){let t=n.intounderlyingbytesource_type(this.__wbg_ptr);return mt[t]}};Symbol.dispose&&(L.prototype[Symbol.dispose]=L.prototype.free);var N=class a{static __wrap(t){let e=Object.create(a.prototype);return e.__wbg_ptr=t,K.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,K.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_intounderlyingsink_free(t,0);}abort(t){let e=this.__destroy_into_raw(),_=n.intounderlyingsink_abort(e,g(t));return p(_)}close(){let t=this.__destroy_into_raw(),e=n.intounderlyingsink_close(t);return p(e)}write(t){let e=n.intounderlyingsink_write(this.__wbg_ptr,g(t));return p(e)}};Symbol.dispose&&(N.prototype[Symbol.dispose]=N.prototype.free);var O=class a{static __wrap(t){let e=Object.create(a.prototype);return e.__wbg_ptr=t,J.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,J.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_intounderlyingsource_free(t,0);}cancel(){let t=this.__destroy_into_raw();n.intounderlyingsource_cancel(t);}pull(t){let e=n.intounderlyingsource_pull(this.__wbg_ptr,g(t));return p(e)}};Symbol.dispose&&(O.prototype[Symbol.dispose]=O.prototype.free);var B=class a{static __wrap(t){let e=Object.create(a.prototype);return e.__wbg_ptr=t,Y.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,Y.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_peerunistream_free(t,0);}get applicationCryptoWrapped(){return n.peerunistream_applicationCryptoWrapped(this.__wbg_ptr)!==0}finishSend(){let t=n.peerunistream_finishSend(this.__wbg_ptr);return p(t)}get writable(){let t=n.peerunistream_writable(this.__wbg_ptr);return p(t)}};Symbol.dispose&&(B.prototype[Symbol.dispose]=B.prototype.free);var U=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,Q.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_wasmclient_free(t,0);}__acknowledgePersistentIrohOutbox(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=i,r=n.wasmclient___acknowledgePersistentIrohOutbox(this.__wbg_ptr,e,_);return p(r)}__advancePreferredIrohCarrier(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),o=i,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),w=i,d=c(_,n.__wbindgen_export,n.__wbindgen_export2),l=i,f=n.wasmclient___advancePreferredIrohCarrier(this.__wbg_ptr,r,o,b,w,d,l);return p(f)}__attachIrohMoqCarrier(t,e,_,r){let o=c(t,n.__wbindgen_export,n.__wbindgen_export2),b=i,w=c(e,n.__wbindgen_export,n.__wbindgen_export2),d=i,l=c(r,n.__wbindgen_export,n.__wbindgen_export2),f=i,m=n.wasmclient___attachIrohMoqCarrier(this.__wbg_ptr,o,b,w,d,g(_),l,f);return p(m)}__attachIrohWebRtcCarrier(t,e,_,r){let o=c(t,n.__wbindgen_export,n.__wbindgen_export2),b=i,w=c(e,n.__wbindgen_export,n.__wbindgen_export2),d=i,l=c(r,n.__wbindgen_export,n.__wbindgen_export2),f=i,m=n.wasmclient___attachIrohWebRtcCarrier(this.__wbg_ptr,o,b,w,d,g(_),l,f);return p(m)}__beginIrohMoqCarrier(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),o=i,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),w=i,d=n.wasmclient___beginIrohMoqCarrier(this.__wbg_ptr,r,o,b,w,_);return p(d)}__beginIrohWebRtcCarrier(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),o=i,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),w=i,d=n.wasmclient___beginIrohWebRtcCarrier(this.__wbg_ptr,r,o,b,w,_);return p(d)}__beginPreferredIrohCarrier(t,e,_,r,o,b){let w=c(t,n.__wbindgen_export,n.__wbindgen_export2),d=i,l=c(e,n.__wbindgen_export,n.__wbindgen_export2),f=i,m=n.wasmclient___beginPreferredIrohCarrier(this.__wbg_ptr,w,d,l,f,_,r,o,b);return p(m)}__configureIrohMoqCarrier(t,e,_){var r=u(e)?0:c(e,n.__wbindgen_export,n.__wbindgen_export2),o=i,b=u(_)?0:c(_,n.__wbindgen_export,n.__wbindgen_export2),w=i;let d=n.wasmclient___configureIrohMoqCarrier(this.__wbg_ptr,t,r,o,b,w);return p(d)}__configureIrohRoutePolicy(t,e,_){var r=u(e)?0:c(e,n.__wbindgen_export,n.__wbindgen_export2),o=i;let b=n.wasmclient___configureIrohRoutePolicy(this.__wbg_ptr,t,r,o,g(_));return p(b)}__configureIrohWebRtcCarrier(t,e,_){var r=u(e)?0:c(e,n.__wbindgen_export,n.__wbindgen_export2),o=i;let b=n.wasmclient___configureIrohWebRtcCarrier(this.__wbg_ptr,t,r,o,_);return p(b)}__createPersistentIrohNamespace(t,e){let _=n.wasmclient___createPersistentIrohNamespace(this.__wbg_ptr,t,e);return p(_)}__deletePersistentIrohPrefix(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=i,o=k(e,n.__wbindgen_export),b=i,w=n.wasmclient___deletePersistentIrohPrefix(this.__wbg_ptr,_,r,o,b);return p(w)}__flushPersistentIrohProtocols(){let t=n.wasmclient___flushPersistentIrohProtocols(this.__wbg_ptr);return p(t)}__handleIrohCarrierControl(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),o=i,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),w=i,d=n.wasmclient___handleIrohCarrierControl(this.__wbg_ptr,r,o,b,w,g(_));return p(d)}__hydratePersistentIrohBlob(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=i,r=n.wasmclient___hydratePersistentIrohBlob(this.__wbg_ptr,e,_);return p(r)}__importPersistentIrohAuthor(t){let e=k(t,n.__wbindgen_export),_=i,r=n.wasmclient___importPersistentIrohAuthor(this.__wbg_ptr,e,_);return p(r)}__importPersistentIrohNamespace(t,e,_,r){let o=c(t,n.__wbindgen_export,n.__wbindgen_export2),b=i,w=k(e,n.__wbindgen_export),d=i,l=n.wasmclient___importPersistentIrohNamespace(this.__wbg_ptr,o,b,w,d,_,r);return p(l)}__importPersistentIrohTicket(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),o=i,b=n.wasmclient___importPersistentIrohTicket(this.__wbg_ptr,r,o,e,_);return p(b)}__initPersistentIrohProtocols(t){let e=n.wasmclient___initPersistentIrohProtocols(this.__wbg_ptr,g(t));return p(e)}__irohMoqCarrierFailed(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),o=i,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),w=i,d=c(_,n.__wbindgen_export,n.__wbindgen_export2),l=i,f=n.wasmclient___irohMoqCarrierFailed(this.__wbg_ptr,r,o,b,w,d,l);return p(f)}__irohMoqCarrierPrepared(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=i,o=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=i,w=n.wasmclient___irohMoqCarrierPrepared(this.__wbg_ptr,_,r,o,b);return p(w)}__irohWebRtcCarrierFailed(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),o=i,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),w=i,d=c(_,n.__wbindgen_export,n.__wbindgen_export2),l=i,f=n.wasmclient___irohWebRtcCarrierFailed(this.__wbg_ptr,r,o,b,w,d,l);return p(f)}__irohWebRtcCarrierPrepared(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=i,o=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=i,w=n.wasmclient___irohWebRtcCarrierPrepared(this.__wbg_ptr,_,r,o,b);return p(w)}__putPersistentIrohBytes(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),o=i,b=k(e,n.__wbindgen_export),w=i,d=k(_,n.__wbindgen_export),l=i,f=n.wasmclient___putPersistentIrohBytes(this.__wbg_ptr,r,o,b,w,d,l);return p(f)}__queryPersistentIrohNamespace(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=i,o=k(e,n.__wbindgen_export),b=i,w=n.wasmclient___queryPersistentIrohNamespace(this.__wbg_ptr,_,r,o,b);return p(w)}__removePersistentIrohNamespace(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),o=i,b=n.wasmclient___removePersistentIrohNamespace(this.__wbg_ptr,r,o,e,_);return p(b)}__retireIrohMoqCarrier(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=i;var o=u(e)?0:c(e,n.__wbindgen_export,n.__wbindgen_export2),b=i;let w=n.wasmclient___retireIrohMoqCarrier(this.__wbg_ptr,_,r,o,b);return p(w)}__retireIrohWebRtcCarrier(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=i;var o=u(e)?0:c(e,n.__wbindgen_export,n.__wbindgen_export2),b=i;let w=n.wasmclient___retireIrohWebRtcCarrier(this.__wbg_ptr,_,r,o,b);return p(w)}__setIrohCarrierActionHandler(t){n.wasmclient___setIrohCarrierActionHandler(this.__wbg_ptr,u(t)?0:g(t));}__setPersistentIrohHash(t,e,_,r){let o=c(t,n.__wbindgen_export,n.__wbindgen_export2),b=i,w=k(e,n.__wbindgen_export),d=i,l=c(_,n.__wbindgen_export,n.__wbindgen_export2),f=i,m=n.wasmclient___setPersistentIrohHash(this.__wbg_ptr,o,b,w,d,l,f,r);return p(m)}__sharePersistentIrohNamespace(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=i,o=n.wasmclient___sharePersistentIrohNamespace(this.__wbg_ptr,_,r,e);return p(o)}__shutdownPersistentIrohProtocols(){let t=n.wasmclient___shutdownPersistentIrohProtocols(this.__wbg_ptr);return p(t)}add_peer_scope(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=i,o=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=i,w=n.wasmclient_add_peer_scope(this.__wbg_ptr,_,r,o,b);return p(w)}bind_connection_device_id(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=i,o=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=i,w=n.wasmclient_bind_connection_device_id(this.__wbg_ptr,_,r,o,b);return p(w)}bind_node_device_id(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=i,o=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=i,w=n.wasmclient_bind_node_device_id(this.__wbg_ptr,_,r,o,b);return p(w)}clearConnectionApplicationCryptoKey(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=i;n.wasmclient_clearConnectionApplicationCryptoKey(this.__wbg_ptr,e,_);}clearIdentityCredential(){n.wasmclient_clearIdentityCredential(this.__wbg_ptr);}clear_session_tokens(){n.wasmclient_clear_session_tokens(this.__wbg_ptr);}confirm_reciprocal_admission(t,e,_,r,o,b){let w=c(t,n.__wbindgen_export,n.__wbindgen_export2),d=i,l=c(_,n.__wbindgen_export,n.__wbindgen_export2),f=i,m=c(r,n.__wbindgen_export,n.__wbindgen_export2),y=i;var I=u(b)?0:c(b,n.__wbindgen_export,n.__wbindgen_export2),R=i;let S=n.wasmclient_confirm_reciprocal_admission(this.__wbg_ptr,w,d,e,l,f,m,y,o,I,R);return p(S)}connect(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=i,r=n.wasmclient_connect(this.__wbg_ptr,e,_);return p(r)}connect_device(t,e){var _=u(t)?0:c(t,n.__wbindgen_export,n.__wbindgen_export2),r=i;let o=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=i,w=n.wasmclient_connect_device(this.__wbg_ptr,_,r,o,b);return p(w)}connection_state(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=i,r=n.wasmclient_connection_state(this.__wbg_ptr,e,_);return p(r)}connection_states(){let t=n.wasmclient_connection_states(this.__wbg_ptr);return p(t)}create_room(t,e,_,r,o,b){let w=c(t,n.__wbindgen_export,n.__wbindgen_export2),d=i,l=c(e,n.__wbindgen_export,n.__wbindgen_export2),f=i,m=c(_,n.__wbindgen_export,n.__wbindgen_export2),y=i,I=c(r,n.__wbindgen_export,n.__wbindgen_export2),R=i,S=c(o,n.__wbindgen_export,n.__wbindgen_export2),E=i,V=n.wasmclient_create_room(this.__wbg_ptr,w,d,l,f,m,y,I,R,S,E,u(b)?Number.MAX_SAFE_INTEGER:b>>>0);return p(V)}create_session(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=i,r=n.wasmclient_create_session(this.__wbg_ptr,e,_);return p(r)}delete_device(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=i,o=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=i,w=n.wasmclient_delete_device(this.__wbg_ptr,_,r,o,b);return p(w)}devices_with_status(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=i,r=n.wasmclient_devices_with_status(this.__wbg_ptr,e,_);return p(r)}disconnect(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=i,r=n.wasmclient_disconnect(this.__wbg_ptr,e,_);return p(r)}disconnect_device(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=i;var o=u(e)?0:c(e,n.__wbindgen_export,n.__wbindgen_export2),b=i;let w=n.wasmclient_disconnect_device(this.__wbg_ptr,_,r,o,b);return p(w)}disconnect_transient(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=i,r=n.wasmclient_disconnect_transient(this.__wbg_ptr,e,_);return p(r)}endpoint_id_from_ticket(t){let e,_;try{let f=n.__wbindgen_add_to_stack_pointer(-16),m=c(t,n.__wbindgen_export,n.__wbindgen_export2),y=i;n.wasmclient_endpoint_id_from_ticket(f,this.__wbg_ptr,m,y);var r=x().getInt32(f+0,!0),o=x().getInt32(f+4,!0),b=x().getInt32(f+8,!0),w=x().getInt32(f+12,!0),d=r,l=o;if(w)throw d=0,l=0,p(b);return e=d,_=l,v(d,l)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export4(e,_,1);}}endpoint_ticket(){let t=n.wasmclient_endpoint_ticket(this.__wbg_ptr);return p(t)}endpoint_ticket_with_token(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=i,o=n.wasmclient_endpoint_ticket_with_token(this.__wbg_ptr,_,r,e);return p(o)}force_reconnect_snapshot(){n.wasmclient_force_reconnect_snapshot(this.__wbg_ptr);}get_members(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),o=i,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),w=i,d=c(_,n.__wbindgen_export,n.__wbindgen_export2),l=i,f=n.wasmclient_get_members(this.__wbg_ptr,r,o,b,w,d,l);return p(f)}incoming_streams(){let t=n.wasmclient_incoming_streams(this.__wbg_ptr);return p(t)}initIrohWithTestRelay(t,e){var _=u(t)?0:k(t,n.__wbindgen_export),r=i,o=u(e)?0:c(e,n.__wbindgen_export,n.__wbindgen_export2),b=i;let w=n.wasmclient_initIrohWithTestRelay(this.__wbg_ptr,_,r,o,b);return p(w)}init_iroh(t){var e=u(t)?0:k(t,n.__wbindgen_export),_=i;let r=n.wasmclient_init_iroh(this.__wbg_ptr,e,_);return p(r)}iroh_path_kind(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=i,r=n.wasmclient_iroh_path_kind(this.__wbg_ptr,e,_);return p(r)}iroh_secret_key(){let t=n.wasmclient_iroh_secret_key(this.__wbg_ptr);return p(t)}iroh_transport_rtt_ms(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=i,r=n.wasmclient_iroh_transport_rtt_ms(this.__wbg_ptr,e,_);return p(r)}is_auto_connect_excluded(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=i;return n.wasmclient_is_auto_connect_excluded(this.__wbg_ptr,e,_)!==0}is_connected(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=i,r=n.wasmclient_is_connected(this.__wbg_ptr,e,_);return p(r)}is_current_transport_stable_id(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=i,o=n.wasmclient_is_current_transport_stable_id(this.__wbg_ptr,_,r,e);return p(o)}is_remote_admitted(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=i,r=n.wasmclient_is_remote_admitted(this.__wbg_ptr,e,_);return p(r)}join_room(t,e,_,r,o){let b=c(t,n.__wbindgen_export,n.__wbindgen_export2),w=i,d=c(e,n.__wbindgen_export,n.__wbindgen_export2),l=i,f=c(_,n.__wbindgen_export,n.__wbindgen_export2),m=i,y=c(r,n.__wbindgen_export,n.__wbindgen_export2),I=i,R=c(o,n.__wbindgen_export,n.__wbindgen_export2),S=i,E=n.wasmclient_join_room(this.__wbg_ptr,b,w,d,l,f,m,y,I,R,S);return p(E)}leave_room(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),o=i,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),w=i,d=c(_,n.__wbindgen_export,n.__wbindgen_export2),l=i,f=n.wasmclient_leave_room(this.__wbg_ptr,r,o,b,w,d,l);return p(f)}list_managed_connections(){let t=n.wasmclient_list_managed_connections(this.__wbg_ptr);return p(t)}constructor(t){try{let o=n.__wbindgen_add_to_stack_pointer(-16),b=c(t,n.__wbindgen_export,n.__wbindgen_export2),w=i;n.wasmclient_new(o,b,w);var e=x().getInt32(o+0,!0),_=x().getInt32(o+4,!0),r=x().getInt32(o+8,!0);if(r)throw p(_);return this.__wbg_ptr=e,Q.register(this,this.__wbg_ptr,this),this}finally{n.__wbindgen_add_to_stack_pointer(16);}}node_addr(){let t=n.wasmclient_node_addr(this.__wbg_ptr);return p(t)}open_bi(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=i,r=n.wasmclient_open_bi(this.__wbg_ptr,e,_);return p(r)}open_native_main_control_bi(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=i,r=n.wasmclient_open_native_main_control_bi(this.__wbg_ptr,e,_);return p(r)}open_peer_bi(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=i,o=n.wasmclient_open_peer_bi(this.__wbg_ptr,_,r,u(e)?Number.MAX_SAFE_INTEGER:e>>>0);return p(o)}open_peer_bi_explicit_file_sender(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=i,o=n.wasmclient_open_peer_bi_explicit_file_sender(this.__wbg_ptr,_,r,u(e)?Number.MAX_SAFE_INTEGER:e>>>0);return p(o)}open_peer_bi_transport_only(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=i,o=n.wasmclient_open_peer_bi_transport_only(this.__wbg_ptr,_,r,u(e)?Number.MAX_SAFE_INTEGER:e>>>0);return p(o)}open_peer_native_bi(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),o=i,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),w=i,d=n.wasmclient_open_peer_native_bi(this.__wbg_ptr,r,o,b,w,u(_)?Number.MAX_SAFE_INTEGER:_>>>0);return p(d)}open_peer_uni(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=i,o=n.wasmclient_open_peer_uni(this.__wbg_ptr,_,r,u(e)?Number.MAX_SAFE_INTEGER:e>>>0);return p(o)}open_uni(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=i,r=n.wasmclient_open_uni(this.__wbg_ptr,e,_);return p(r)}peer_scopes(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=i,r=n.wasmclient_peer_scopes(this.__wbg_ptr,e,_);return p(r)}peer_session(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=i,r=n.wasmclient_peer_session(this.__wbg_ptr,e,_);return p(r)}peer_sessions(){let t=n.wasmclient_peer_sessions(this.__wbg_ptr);return p(t)}peer_snapshot(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=i,r=n.wasmclient_peer_snapshot(this.__wbg_ptr,e,_);return p(r)}prepare_reciprocal_admission(t,e,_,r,o,b,w,d){let l=c(t,n.__wbindgen_export,n.__wbindgen_export2),f=i,m=c(_,n.__wbindgen_export,n.__wbindgen_export2),y=i,I=c(r,n.__wbindgen_export,n.__wbindgen_export2),R=i,S=c(o,n.__wbindgen_export,n.__wbindgen_export2),E=i,V=c(b,n.__wbindgen_export,n.__wbindgen_export2),_t=i,rt=c(w,n.__wbindgen_export,n.__wbindgen_export2),ot=i,it=c(d,n.__wbindgen_export,n.__wbindgen_export2),st=i,ct=n.wasmclient_prepare_reciprocal_admission(this.__wbg_ptr,l,f,e,m,y,I,R,S,E,V,_t,rt,ot,it,st);return p(ct)}present_session_token(t,e,_,r){let o=c(t,n.__wbindgen_export,n.__wbindgen_export2),b=i,w=c(e,n.__wbindgen_export,n.__wbindgen_export2),d=i;var l=u(_)?0:c(_,n.__wbindgen_export,n.__wbindgen_export2),f=i,m=u(r)?0:c(r,n.__wbindgen_export,n.__wbindgen_export2),y=i;let I=n.wasmclient_present_session_token(this.__wbg_ptr,o,b,w,d,l,f,m,y);return p(I)}rankRoutes(t,e){try{let b=n.__wbindgen_add_to_stack_pointer(-16),w=tt(t,n.__wbindgen_export),d=i,l=tt(e,n.__wbindgen_export),f=i;n.wasmclient_rankRoutes(b,this.__wbg_ptr,w,d,l,f);var _=x().getInt32(b+0,!0),r=x().getInt32(b+4,!0),o=At(_,r).slice();return n.__wbindgen_export4(_,r*4,4),o}finally{n.__wbindgen_add_to_stack_pointer(16);}}register_session_token(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),o=i,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),w=i;n.wasmclient_register_session_token(this.__wbg_ptr,r,o,b,w,_);}register_token_until(t,e,_,r){let o=c(t,n.__wbindgen_export,n.__wbindgen_export2),b=i,w=c(e,n.__wbindgen_export,n.__wbindgen_export2),d=i;n.wasmclient_register_token_until(this.__wbg_ptr,o,b,w,d,_,r);}reject_connection_admission(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=i,o=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=i,w=n.wasmclient_reject_connection_admission(this.__wbg_ptr,_,r,o,b);return p(w)}release_peer_scope(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=i;var o=u(e)?0:c(e,n.__wbindgen_export,n.__wbindgen_export2),b=i;let w=n.wasmclient_release_peer_scope(this.__wbg_ptr,_,r,o,b);return p(w)}report_managed_connection_settled(t,e,_,r,o,b){let w=c(t,n.__wbindgen_export,n.__wbindgen_export2),d=i;var l=u(_)?0:c(_,n.__wbindgen_export,n.__wbindgen_export2),f=i;let m=n.wasmclient_report_managed_connection_settled(this.__wbg_ptr,w,d,e,l,f,!u(r),u(r)?BigInt(0):r,!u(o),u(o)?BigInt(0):o,!u(b),u(b)?BigInt(0):b);return p(m)}report_transport_status(t,e,_,r,o,b){let w=c(t,n.__wbindgen_export,n.__wbindgen_export2),d=i,l=c(e,n.__wbindgen_export,n.__wbindgen_export2),f=i;var m=u(_)?0:c(_,n.__wbindgen_export,n.__wbindgen_export2),y=i;let I=n.wasmclient_report_transport_status(this.__wbg_ptr,w,d,l,f,m,y,!u(r),u(r)?BigInt(0):r,!u(o),u(o)?BigInt(0):o,!u(b),u(b)?BigInt(0):b);return p(I)}resolve_peer_connection_records(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=i,r=n.wasmclient_resolve_peer_connection_records(this.__wbg_ptr,e,_);return p(r)}revoke_session_token(t){try{let o=n.__wbindgen_add_to_stack_pointer(-16),b=c(t,n.__wbindgen_export,n.__wbindgen_export2),w=i;n.wasmclient_revoke_session_token(o,this.__wbg_ptr,b,w);var e=x().getInt32(o+0,!0),_=x().getInt32(o+4,!0),r=x().getInt32(o+8,!0);if(r)throw p(_);return p(e)}finally{n.__wbindgen_add_to_stack_pointer(16);}}revoke_tokens_by_scope(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=i,r=n.wasmclient_revoke_tokens_by_scope(this.__wbg_ptr,e,_);return p(r)}runtime_policy(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.wasmclient_runtime_policy(r,this.__wbg_ptr);var t=x().getInt32(r+0,!0),e=x().getInt32(r+4,!0),_=x().getInt32(r+8,!0);if(_)throw p(e);return p(t)}finally{n.__wbindgen_add_to_stack_pointer(16);}}same_peer(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=i,o=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=i,w=n.wasmclient_same_peer(this.__wbg_ptr,_,r,o,b);return p(w)}search_devices(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=i,r=n.wasmclient_search_devices(this.__wbg_ptr,e,_);return p(r)}send_message(t,e,_,r){let o=c(t,n.__wbindgen_export,n.__wbindgen_export2),b=i,w=c(e,n.__wbindgen_export,n.__wbindgen_export2),d=i;var l=u(_)?0:c(_,n.__wbindgen_export,n.__wbindgen_export2),f=i,m=u(r)?0:c(r,n.__wbindgen_export,n.__wbindgen_export2),y=i;let I=n.wasmclient_send_message(this.__wbg_ptr,o,b,w,d,l,f,m,y);return p(I)}send_native_main_control_frame(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=i,o=k(e,n.__wbindgen_export),b=i,w=n.wasmclient_send_native_main_control_frame(this.__wbg_ptr,_,r,o,b);return p(w)}send_peer(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=i,o=k(e,n.__wbindgen_export),b=i,w=n.wasmclient_send_peer(this.__wbg_ptr,_,r,o,b);return p(w)}send_peer_application_frame(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),o=i,b=k(e,n.__wbindgen_export),w=i,d=n.wasmclient_send_peer_application_frame(this.__wbg_ptr,r,o,b,w,u(_)?Number.MAX_SAFE_INTEGER:_>>>0);return p(d)}setConnectionApplicationCryptoKey(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=i,o=k(e,n.__wbindgen_export),b=i,w=n.wasmclient_setConnectionApplicationCryptoKey(this.__wbg_ptr,_,r,o,b);return p(w)}setConnectionApplicationCryptoRequired(t){try{let r=n.__wbindgen_add_to_stack_pointer(-16),o=c(t,n.__wbindgen_export,n.__wbindgen_export2),b=i;n.wasmclient_setConnectionApplicationCryptoRequired(r,this.__wbg_ptr,o,b);var e=x().getInt32(r+0,!0),_=x().getInt32(r+4,!0);if(_)throw p(e)}finally{n.__wbindgen_add_to_stack_pointer(16);}}setIdentityCredential(t){var e=u(t)?0:c(t,n.__wbindgen_export,n.__wbindgen_export2),_=i;n.wasmclient_setIdentityCredential(this.__wbg_ptr,e,_);}set_auto_connect_excluded(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=i,o=n.wasmclient_set_auto_connect_excluded(this.__wbg_ptr,_,r,e);return p(o)}set_offline(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=i,r=n.wasmclient_set_offline(this.__wbg_ptr,e,_);return p(r)}start_auto_connect(t,e){try{let o=n.__wbindgen_add_to_stack_pointer(-16),b=c(t,n.__wbindgen_export,n.__wbindgen_export2),w=i,d=c(e,n.__wbindgen_export,n.__wbindgen_export2),l=i;n.wasmclient_start_auto_connect(o,this.__wbg_ptr,b,w,d,l);var _=x().getInt32(o+0,!0),r=x().getInt32(o+4,!0);if(r)throw p(_)}finally{n.__wbindgen_add_to_stack_pointer(16);}}start_presence_loop(t,e,_,r){let o=c(t,n.__wbindgen_export,n.__wbindgen_export2),b=i,w=c(e,n.__wbindgen_export,n.__wbindgen_export2),d=i,l=c(_,n.__wbindgen_export,n.__wbindgen_export2),f=i;var m=u(r)?0:c(r,n.__wbindgen_export,n.__wbindgen_export2),y=i;n.wasmclient_start_presence_loop(this.__wbg_ptr,o,b,w,d,l,f,m,y);}stop_auth_scoped_activity(){n.wasmclient_stop_auth_scoped_activity(this.__wbg_ptr);}stop_auto_connect(){n.wasmclient_stop_auto_connect(this.__wbg_ptr);}stop_presence_loop(){n.wasmclient_stop_presence_loop(this.__wbg_ptr);}submit_browser_desired_peers(t,e){try{let b=n.__wbindgen_add_to_stack_pointer(-16),w=c(e,n.__wbindgen_export,n.__wbindgen_export2),d=i;n.wasmclient_submit_browser_desired_peers(b,this.__wbg_ptr,t,w,d);var _=x().getInt32(b+0,!0),r=x().getInt32(b+4,!0),o=x().getInt32(b+8,!0);if(o)throw p(r);return _!==0}finally{n.__wbindgen_add_to_stack_pointer(16);}}update_device(t,e,_,r,o){let b=c(t,n.__wbindgen_export,n.__wbindgen_export2),w=i,d=c(e,n.__wbindgen_export,n.__wbindgen_export2),l=i;var f=u(_)?0:c(_,n.__wbindgen_export,n.__wbindgen_export2),m=i,y=u(o)?0:c(o,n.__wbindgen_export,n.__wbindgen_export2),I=i;let R=n.wasmclient_update_device(this.__wbg_ptr,b,w,d,l,f,m,u(r)?0:g(r),y,I);return p(R)}update_presence(t,e,_,r,o){let b=c(t,n.__wbindgen_export,n.__wbindgen_export2),w=i,d=c(e,n.__wbindgen_export,n.__wbindgen_export2),l=i,f=c(_,n.__wbindgen_export,n.__wbindgen_export2),m=i;var y=u(r)?0:c(r,n.__wbindgen_export,n.__wbindgen_export2),I=i;let R=n.wasmclient_update_presence(this.__wbg_ptr,b,w,d,l,f,m,y,I,!u(o),u(o)?BigInt(0):o);return p(R)}update_session(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=i,o=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=i,w=n.wasmclient_update_session(this.__wbg_ptr,_,r,o,b);return p(w)}validate_connection_token(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),o=i,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),w=i;var d=u(_)?0:c(_,n.__wbindgen_export,n.__wbindgen_export2),l=i;let f=n.wasmclient_validate_connection_token(this.__wbg_ptr,r,o,b,w,d,l);return p(f)}validate_session_token(t){let e,_;try{let f=n.__wbindgen_add_to_stack_pointer(-16),m=c(t,n.__wbindgen_export,n.__wbindgen_export2),y=i;n.wasmclient_validate_session_token(f,this.__wbg_ptr,m,y);var r=x().getInt32(f+0,!0),o=x().getInt32(f+4,!0),b=x().getInt32(f+8,!0),w=x().getInt32(f+12,!0),d=r,l=o;if(w)throw d=0,l=0,p(b);return e=d,_=l,v(d,l)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export4(e,_,1);}}wait_for_peer(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=i,o=n.wasmclient_wait_for_peer(this.__wbg_ptr,_,r,u(e)?Number.MAX_SAFE_INTEGER:e>>>0);return p(o)}wake_browser_auto_connect(){return n.wasmclient_wake_browser_auto_connect(this.__wbg_ptr)!==0}};Symbol.dispose&&(U.prototype[Symbol.dispose]=U.prototype.free);var D=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_wasmconnection_free(t,0);}create_data_channel(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=i,r=n.wasmconnection_create_data_channel(this.__wbg_ptr,e,_);return p(r)}constructor(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.wasmconnection_new(r);var t=x().getInt32(r+0,!0),e=x().getInt32(r+4,!0),_=x().getInt32(r+8,!0);if(_)throw p(e);return this.__wbg_ptr=t,Z.register(this,this.__wbg_ptr,this),this}finally{n.__wbindgen_add_to_stack_pointer(16);}}};Symbol.dispose&&(D.prototype[Symbol.dispose]=D.prototype.free);function Wt(){n.start();}function et(){return {__proto__:null,"./openrtc_bg.js":{__proto__:null,__wbg_Error_9dc85fe1bc224456:function(t,e){let _=Error(v(t,e));return g(_)},__wbg_Number_4779d427bae39753:function(t){return Number(s(t))},__wbg_String_8564e559799eccda:function(t,e){let _=String(s(e)),r=c(_,n.__wbindgen_export,n.__wbindgen_export2),o=i;x().setInt32(t+4,o,true),x().setInt32(t+0,r,true);},__wbg___wbindgen_bigint_get_as_i64_8ea6736501f396b6:function(t,e){let _=s(e),r=typeof _=="bigint"?_:void 0;x().setBigInt64(t+8,u(r)?BigInt(0):r,true),x().setInt32(t+0,!u(r),true);},__wbg___wbindgen_boolean_get_b131b2f36d6b2f55:function(t){let e=s(t),_=typeof e=="boolean"?e:void 0;return u(_)?16777215:_?1:0},__wbg___wbindgen_debug_string_56c147eb1a51f0c4:function(t,e){let _=H(s(e)),r=c(_,n.__wbindgen_export,n.__wbindgen_export2),o=i;x().setInt32(t+4,o,true),x().setInt32(t+0,r,true);},__wbg___wbindgen_in_ce8569b2fc6f5088:function(t,e){return s(t)in s(e)},__wbg___wbindgen_is_bigint_df272c65456269c2:function(t){return typeof s(t)=="bigint"},__wbg___wbindgen_is_function_147961669f068cd4:function(t){return typeof s(t)=="function"},__wbg___wbindgen_is_null_ced4761460071341:function(t){return s(t)===null},__wbg___wbindgen_is_object_3a2c414391dbf751:function(t){let e=s(t);return typeof e=="object"&&e!==null},__wbg___wbindgen_is_string_6541b0f6ecd4e8e5:function(t){return typeof s(t)=="string"},__wbg___wbindgen_is_undefined_4410e3c20a99fa97:function(t){return s(t)===void 0},__wbg___wbindgen_jsval_eq_174c93ec61bab0c5:function(t,e){return s(t)===s(e)},__wbg___wbindgen_jsval_loose_eq_e07e3b1f5db6da6c:function(t,e){return s(t)==s(e)},__wbg___wbindgen_number_get_588ed6b97f0d7e14:function(t,e){let _=s(e),r=typeof _=="number"?_:void 0;x().setFloat64(t+8,u(r)?0:r,true),x().setInt32(t+0,!u(r),true);},__wbg___wbindgen_string_get_fa2687d531ed17a5:function(t,e){let _=s(e),r=typeof _=="string"?_:void 0;var o=u(r)?0:c(r,n.__wbindgen_export,n.__wbindgen_export2),b=i;x().setInt32(t+4,b,true),x().setInt32(t+0,o,true);},__wbg___wbindgen_throw_bbadd78c1bac3a77:function(t,e){throw new Error(v(t,e))},__wbg__wbg_cb_unref_c2301a3c9b78104b:function(t){s(t)._wbg_cb_unref();},__wbg_abort_56c00f462c9261d9:function(t,e){s(t).abort(s(e));},__wbg_abort_f2416f4a9852003e:function(t){s(t).abort();},__wbg_addEventListener_b635263c509aa7de:function(){return h(function(t,e,_,r){s(t).addEventListener(v(e,_),s(r));},arguments)},__wbg_append_c5a0c94a6a73b22e:function(){return h(function(t,e,_,r,o){s(t).append(v(e,_),v(r,o));},arguments)},__wbg_apply_5d99f956e2dda74d:function(){return h(function(t,e,_){let r=s(t).apply(s(e),s(_));return g(r)},arguments)},__wbg_arrayBuffer_cc7704fa158b907a:function(){return h(function(t){let e=s(t).arrayBuffer();return g(e)},arguments)},__wbg_bistream_new:function(t){let e=q.__wrap(t);return g(e)},__wbg_body_442a47f02322d7b0:function(t){let e=s(t).body;return u(e)?0:g(e)},__wbg_buffer_8524b3453cde4918:function(t){let e=s(t).buffer;return g(e)},__wbg_bufferedAmount_c1581bbb06f4f36c:function(t){return s(t).bufferedAmount},__wbg_byobRequest_cc72d210de793e64:function(t){let e=s(t).byobRequest;return u(e)?0:g(e)},__wbg_byteLength_96807b1d9ab24a4c:function(t){return s(t).byteLength},__wbg_byteOffset_a9c7002428843c41:function(t){return s(t).byteOffset},__wbg_call_91f00ddc43e01490:function(){return h(function(t,e){let _=s(t).call(s(e));return g(_)},arguments)},__wbg_call_ec09a4cf93377d3a:function(){return h(function(t,e,_){let r=s(t).call(s(e),s(_));return g(r)},arguments)},__wbg_cancel_f3a197b26dc88b39:function(t){let e=s(t).cancel();return g(e)},__wbg_catch_66060324c27be6f7:function(t,e){let _=s(t).catch(s(e));return g(_)},__wbg_clearTimeout_113b1cde814ec762:function(t){let e=clearTimeout(p(t));return g(e)},__wbg_clearTimeout_333bba87532ab9d3:function(t){let e=clearTimeout(p(t));return g(e)},__wbg_clearTimeout_47a40e3be01ed7a3:function(){return h(function(t,e){s(t).clearTimeout(p(e));},arguments)},__wbg_close_296263cfe1bb2999:function(){return h(function(t){s(t).close();},arguments)},__wbg_close_388d99468213b286:function(){return h(function(t){s(t).close();},arguments)},__wbg_close_4857e22d08b71356:function(){return h(function(t){s(t).close();},arguments)},__wbg_close_f3365df7ba1b74d3:function(t){s(t).close();},__wbg_code_1cda2855fcd9b009:function(t){return s(t).code},__wbg_code_70beb7b22374d55e:function(t){return s(t).code},__wbg_createDataChannel_122bd3d8aacee49b:function(t,e,_){let r=s(t).createDataChannel(v(e,_));return g(r)},__wbg_crypto_38df2bab126b63dc:function(t){let e=s(t).crypto;return g(e)},__wbg_data_8a04443c1e5a8cd3:function(t){let e=s(t).data;return g(e)},__wbg_dispatchEvent_cc62a6a43d28b01c:function(){return h(function(t,e){return s(t).dispatchEvent(s(e))},arguments)},__wbg_done_6a8439e544ec6206:function(t){return s(t).done},__wbg_enqueue_bbeb09ba0b140f76:function(){return h(function(t,e){s(t).enqueue(s(e));},arguments)},__wbg_entries_4e00eefd3fd54cf1:function(t){let e=s(t).entries();return g(e)},__wbg_entries_5a6a7e7e0df09fe5:function(t){let e=Object.entries(s(t));return g(e)},__wbg_error_6651fee1c71e5da9:function(t){console.error(s(t));},__wbg_error_9a99766f65a03031:function(t,e){console.error(s(t),s(e));},__wbg_error_a6fa202b58aa1cd3:function(t,e){let _,r;try{_=t,r=e,console.error(v(t,e));}finally{n.__wbindgen_export4(_,r,1);}},__wbg_fetch_074561c3e313c86f:function(t){let e=fetch(s(t));return g(e)},__wbg_fetch_22858a12fcf93152:function(t,e){let _=s(t).fetch(s(e));return g(_)},__wbg_from_8a57180716c586ee:function(t){let e=Array.from(s(t));return g(e)},__wbg_getRandomValues_76dfc69825c9c552:function(){return h(function(t,e){globalThis.crypto.getRandomValues(A(t,e));},arguments)},__wbg_getRandomValues_c44a50d8cfdaebeb:function(){return h(function(t,e){s(t).getRandomValues(s(e));},arguments)},__wbg_getReader_9facd4f899beac89:function(){return h(function(t){let e=s(t).getReader();return g(e)},arguments)},__wbg_get_44e98e27bda25b5b:function(){return h(function(t,e){let _=Reflect.get(s(t),s(e));return g(_)},arguments)},__wbg_get_4b90d6d8c5deb5d5:function(t,e){let _=s(t)[e>>>0];return g(_)},__wbg_get_52a8a619f7b88df6:function(){return h(function(t,e){let _=Reflect.get(s(t),s(e));return g(_)},arguments)},__wbg_get_done_c21b9933fc9a9e9c:function(t){let e=s(t).done;return u(e)?16777215:e?1:0},__wbg_get_unchecked_46e778e3cec74b5e:function(t,e){let _=s(t)[e>>>0];return g(_)},__wbg_get_value_ad568c7d3db9073f:function(t){let e=s(t).value;return g(e)},__wbg_get_with_ref_key_6412cf3094599694:function(t,e){let _=s(t)[s(e)];return g(_)},__wbg_has_14676d88c1340d2c:function(){return h(function(t,e){return Reflect.has(s(t),s(e))},arguments)},__wbg_headers_5b19cf40627ae54d:function(t){let e=s(t).headers;return g(e)},__wbg_info_a2b5f8a5dae8b26c:function(t){console.info(s(t));},__wbg_instanceof_ArrayBuffer_a581da923203f29f:function(t){let e;try{e=s(t)instanceof ArrayBuffer;}catch{e=false;}return e},__wbg_instanceof_Blob_5c4e145be35f9b1e:function(t){let e;try{e=s(t)instanceof Blob;}catch{e=false;}return e},__wbg_instanceof_Map_7f94c740225003e2:function(t){let e;try{e=s(t)instanceof Map;}catch{e=false;}return e},__wbg_instanceof_Promise_aa24ea31000d4ee6:function(t){let e;try{e=s(t)instanceof Promise;}catch{e=false;}return e},__wbg_instanceof_Response_36a65a969abaa7c6:function(t){let e;try{e=s(t)instanceof Response;}catch{e=false;}return e},__wbg_instanceof_Uint8Array_b6fe1ac89eba107e:function(t){let e;try{e=s(t)instanceof Uint8Array;}catch{e=false;}return e},__wbg_instanceof_Window_9e0fe7d3d1ff4342:function(t){let e;try{e=s(t)instanceof Window;}catch{e=false;}return e},__wbg_isArray_139f48e3c057ede8:function(t){return Array.isArray(s(t))},__wbg_isSafeInteger_c22ccb4af2201fe9:function(t){return Number.isSafeInteger(s(t))},__wbg_iterator_9b36cebf3be7b7cd:function(){return g(Symbol.iterator)},__wbg_length_68a9d5278d084f4f:function(t){return s(t).length},__wbg_length_fb04d16d7bdf6d4c:function(t){return s(t).length},__wbg_log_6614a4effdb4e983:function(t){console.log(s(t));},__wbg_maxRetransmits_dfa0382c31f8e2ca:function(t){let e=s(t).maxRetransmits;return u(e)?16777215:e},__wbg_message_12958526424a887b:function(t,e){let _=s(e).message,r=c(_,n.__wbindgen_export,n.__wbindgen_export2),o=i;x().setInt32(t+4,o,true),x().setInt32(t+0,r,true);},__wbg_msCrypto_bd5a034af96bcba6:function(t){let e=s(t).msCrypto;return g(e)},__wbg_new_0b303268aa395a38:function(){let t=new Array;return g(t)},__wbg_new_189262ff31890c23:function(){return h(function(){let t=new Headers;return g(t)},arguments)},__wbg_new_20b778a4c5c691c3:function(){let t=new Object;return g(t)},__wbg_new_227d7c05414eb861:function(){let t=new Error;return g(t)},__wbg_new_24739629d416f982:function(){return h(function(){let t=new AbortController;return g(t)},arguments)},__wbg_new_5fae30e6b23db8df:function(t,e){let _=new Error(v(t,e));return g(_)},__wbg_new_883c0db065f06efd:function(){return g(new Map)},__wbg_new_a3e5112401a82338:function(){return h(function(t,e){let _=new WebSocket(v(t,e));return g(_)},arguments)},__wbg_new_b06772b280cc6e52:function(t){let e=new Uint8Array(s(t));return g(e)},__wbg_new_from_slice_bb2d1778c0b87eb1:function(t,e){let _=new Uint8Array(A(t,e));return g(_)},__wbg_new_typed_90c3f6c29ba36d19:function(t,e){try{var _={a:t,b:e},r=(b,w)=>{let d=_.a;_.a=0;try{return xt(d,_.b,b,w)}finally{_.a=d;}};let o=new Promise(r);return g(o)}finally{_.a=0;}},__wbg_new_with_byte_offset_and_length_9e1e664fe1a5d385:function(t,e,_){let r=new Uint8Array(s(t),e>>>0,_>>>0);return g(r)},__wbg_new_with_configuration_3a96aa953ca17197:function(){return h(function(t){let e=new RTCPeerConnection(s(t));return g(e)},arguments)},__wbg_new_with_event_init_dict_bd850674488710b1:function(){return h(function(t,e,_){let r=new CustomEvent(v(t,e),s(_));return g(r)},arguments)},__wbg_new_with_into_underlying_sink_2596343f9b6c8e58:function(t){let e=new WritableStream(N.__wrap(t));return g(e)},__wbg_new_with_into_underlying_source_fd904252f385f59c:function(t,e){let _=new ReadableStream(O.__wrap(t),p(e));return g(_)},__wbg_new_with_length_4b57a7a5dc67221c:function(t){let e=new Uint8Array(t>>>0);return g(e)},__wbg_new_with_str_and_init_df876572184fe639:function(){return h(function(t,e,_){let r=new Request(v(t,e),s(_));return g(r)},arguments)},__wbg_new_with_str_sequence_505a4829cc247e79:function(){return h(function(t,e,_){let r=new WebSocket(v(t,e),s(_));return g(r)},arguments)},__wbg_next_8cb028b6ba50743f:function(){return h(function(t){let e=s(t).next();return g(e)},arguments)},__wbg_next_cfd0b146c9538df8:function(t){let e=s(t).next;return g(e)},__wbg_node_84ea875411254db1:function(t){let e=s(t).node;return g(e)},__wbg_now_bce4dc999095ea77:function(){return Date.now()},__wbg_now_e7c6795a7f81e10f:function(t){return s(t).now()},__wbg_parse_a5c06e19bc1187fd:function(t,e){return Date.parse(v(t,e))},__wbg_peerunistream_new:function(t){let e=B.__wrap(t);return g(e)},__wbg_performance_3fcf6e32a7e1ed0a:function(t){let e=s(t).performance;return g(e)},__wbg_process_44c7a14e11e9f69e:function(t){let e=s(t).process;return g(e)},__wbg_protocol_28aaef5ea42981d6:function(t,e){let _=s(e).protocol,r=c(_,n.__wbindgen_export,n.__wbindgen_export2),o=i;x().setInt32(t+4,o,true),x().setInt32(t+0,r,true);},__wbg_prototypesetcall_956c7493c68e29b4:function(t,e,_){Uint8Array.prototype.set.call(A(t,e),s(_));},__wbg_push_ceb8ef046afb2041:function(t,e){return s(t).push(s(e))},__wbg_queueMicrotask_4698f900840e3286:function(t){queueMicrotask(s(t));},__wbg_queueMicrotask_477a5533c7100338:function(t){let e=s(t).queueMicrotask;return g(e)},__wbg_randomFillSync_6c25eac9869eb53c:function(){return h(function(t,e){s(t).randomFillSync(p(e));},arguments)},__wbg_read_8426c146431f2905:function(t){let e=s(t).read();return g(e)},__wbg_readyState_25243ad6ce649774:function(t){return s(t).readyState},__wbg_reason_4ec455bac79b33ce:function(t,e){let _=s(e).reason,r=c(_,n.__wbindgen_export,n.__wbindgen_export2),o=i;x().setInt32(t+4,o,true),x().setInt32(t+0,r,true);},__wbg_releaseLock_188846ef719acb10:function(t){s(t).releaseLock();},__wbg_removeEventListener_016c1d24523b4730:function(){return h(function(t,e,_,r){s(t).removeEventListener(v(e,_),s(r));},arguments)},__wbg_require_b4edbdcf3e2a1ef0:function(){return h(function(){let t=module.require;return g(t)},arguments)},__wbg_resolve_0183de2e8c6b1d54:function(t){let e=Promise.resolve(s(t));return g(e)},__wbg_respond_3cdb4cf32683fd79:function(){return h(function(t,e){s(t).respond(e>>>0);},arguments)},__wbg_send_77521d09456dd693:function(){return h(function(t,e,_){s(t).send(A(e,_));},arguments)},__wbg_send_99d049cae69c53cc:function(){return h(function(t,e,_){s(t).send(A(e,_));},arguments)},__wbg_send_bac9d3dc4f21ef28:function(){return h(function(t,e,_){s(t).send(v(e,_));},arguments)},__wbg_setTimeout_3a808dd861dd3c12:function(t,e){let _=setTimeout(s(t),e);return g(_)},__wbg_setTimeout_6613a51400c1bf9f:function(){return h(function(t,e,_){let r=s(t).setTimeout(p(e),_);return g(r)},arguments)},__wbg_setTimeout_ef24d2fc3ad97385:function(){return h(function(t,e){let _=setTimeout(s(t),e);return g(_)},arguments)},__wbg_set_5f806304fb633ab3:function(t,e,_){let r=s(t).set(s(e),s(_));return g(r)},__wbg_set_6be42768c690e380:function(t,e,_){s(t)[p(e)]=p(_);},__wbg_set_86698c227e5b9dad:function(t,e,_){s(t).set(A(e,_));},__wbg_set_a6ba3ac0e634b822:function(){return h(function(t,e,_){return Reflect.set(s(t),s(e),s(_))},arguments)},__wbg_set_binaryType_07905e4563fcd9b2:function(t,e){s(t).binaryType=kt[e];},__wbg_set_binaryType_8c2dd2cf1cfc2e28:function(t,e){s(t).binaryType=ht[e];},__wbg_set_body_d1153b16a2b95ca1:function(t,e){s(t).body=s(e);},__wbg_set_bufferedAmountLowThreshold_8969a2db2c745257:function(t,e){s(t).bufferedAmountLowThreshold=e>>>0;},__wbg_set_cache_5a01a8b5e6ca6cf2:function(t,e){s(t).cache=yt[e];},__wbg_set_credentials_e9120ed88b1fc0b8:function(t,e){s(t).credentials=vt[e];},__wbg_set_da33c120a6584674:function(t,e,_){s(t)[e>>>0]=p(_);},__wbg_set_detail_c7af5edea934390b:function(t,e){s(t).detail=s(e);},__wbg_set_handle_event_6147c38b782c7b42:function(t,e){s(t).handleEvent=s(e);},__wbg_set_headers_877ed41890d28af2:function(t,e){s(t).headers=s(e);},__wbg_set_high_water_mark_77da20c49668427d:function(t,e){s(t).highWaterMark=e;},__wbg_set_method_b4ede299b2064f37:function(t,e,_){s(t).method=v(e,_);},__wbg_set_mode_d6c2e1991aa963c6:function(t,e){s(t).mode=It[e];},__wbg_set_onbufferedamountlow_b695487bdd219f98:function(t,e){s(t).onbufferedamountlow=s(e);},__wbg_set_onclose_9cb5c3372e16c192:function(t,e){s(t).onclose=s(e);},__wbg_set_onclose_f8bec1cbeb64aa93:function(t,e){s(t).onclose=s(e);},__wbg_set_onerror_190fe67e911ebf28:function(t,e){s(t).onerror=s(e);},__wbg_set_onmessage_4d57c4ddab951294:function(t,e){s(t).onmessage=s(e);},__wbg_set_onmessage_96337495f0bfb796:function(t,e){s(t).onmessage=s(e);},__wbg_set_onopen_3e2bf6b11d434c2d:function(t,e){s(t).onopen=s(e);},__wbg_set_signal_9022b5aa06a6ce5b:function(t,e){s(t).signal=s(e);},__wbg_signal_41dd1a8913cd0b7d:function(t){let e=s(t).signal;return g(e)},__wbg_stack_3b0d974bbf31e44f:function(t,e){let _=s(e).stack,r=c(_,n.__wbindgen_export,n.__wbindgen_export2),o=i;x().setInt32(t+4,o,true),x().setInt32(t+0,r,true);},__wbg_static_accessor_GLOBAL_60a4124bab7dcc9a:function(){let t=typeof global>"u"?null:global;return u(t)?0:g(t)},__wbg_static_accessor_GLOBAL_THIS_95ca6460658b5d13:function(){let t=typeof globalThis>"u"?null:globalThis;return u(t)?0:g(t)},__wbg_static_accessor_SELF_4c95f759a91e9aae:function(){let t=typeof self>"u"?null:self;return u(t)?0:g(t)},__wbg_static_accessor_WINDOW_44b435597f9e9ee7:function(){let t=typeof window>"u"?null:window;return u(t)?0:g(t)},__wbg_status_9e6505cfa3e73a7c:function(t){return s(t).status},__wbg_subarray_42216645a367cd7a:function(t,e,_){let r=s(t).subarray(e>>>0,_>>>0);return g(r)},__wbg_then_254bab9b266a77a5:function(t,e,_){let r=s(t).then(s(e),s(_));return g(r)},__wbg_then_3ea18602c6a5123b:function(t,e){let _=s(t).then(s(e));return g(_)},__wbg_url_72c67c175685a054:function(t,e){let _=s(e).url,r=c(_,n.__wbindgen_export,n.__wbindgen_export2),o=i;x().setInt32(t+4,o,true),x().setInt32(t+0,r,true);},__wbg_url_d0b8042af0d1bbba:function(t,e){let _=s(e).url,r=c(_,n.__wbindgen_export,n.__wbindgen_export2),o=i;x().setInt32(t+4,o,true),x().setInt32(t+0,r,true);},__wbg_value_3d3defe09fb1ffca:function(t){let e=s(t).value;return g(e)},__wbg_versions_276b2795b1c6a219:function(t){let e=s(t).versions;return g(e)},__wbg_view_15fa5865c6b336e3:function(t){let e=s(t).view;return u(e)?0:g(e)},__wbg_warn_633bacc13ba7e6c3:function(t){console.warn(s(t));},__wbg_wasClean_f17429d064911939:function(t){return s(t).wasClean},__wbindgen_cast_0000000000000001:function(t,e){let _=F(t,e,gt);return g(_)},__wbindgen_cast_0000000000000002:function(t,e){let _=F(t,e,ft);return g(_)},__wbindgen_cast_0000000000000003:function(t,e){let _=F(t,e,dt);return g(_)},__wbindgen_cast_0000000000000004:function(t,e){let _=F(t,e,ut);return g(_)},__wbindgen_cast_0000000000000005:function(t,e){let _=F(t,e,lt);return g(_)},__wbindgen_cast_0000000000000006:function(t,e){let _=F(t,e,bt);return g(_)},__wbindgen_cast_0000000000000007:function(t,e){let _=F(t,e,at);return g(_)},__wbindgen_cast_0000000000000008:function(t,e){let _=Ft(t,e,pt);return g(_)},__wbindgen_cast_0000000000000009:function(t,e){let _=F(t,e,wt);return g(_)},__wbindgen_cast_000000000000000a:function(t){return g(t)},__wbindgen_cast_000000000000000b:function(t){return g(t)},__wbindgen_cast_000000000000000c:function(t,e){let _=A(t,e);return g(_)},__wbindgen_cast_000000000000000d:function(t,e){let _=v(t,e);return g(_)},__wbindgen_cast_000000000000000e:function(t){let e=BigInt.asUintN(64,t);return g(e)},__wbindgen_cast_000000000000000f:function(t,e){var _=A(t,e).slice();return n.__wbindgen_export4(t,e*1,1),g(_)},__wbindgen_object_clone_ref:function(t){let e=s(t);return g(e)},__wbindgen_object_drop_ref:function(t){p(t);}}}}function bt(a,t){n.__wasm_bindgen_func_elem_21358(a,t);}function at(a,t){n.__wasm_bindgen_func_elem_22496(a,t);}function pt(a,t){n.__wasm_bindgen_func_elem_22557(a,t);}function wt(a,t){n.__wasm_bindgen_func_elem_30578(a,t);}function gt(a,t,e){n.__wasm_bindgen_func_elem_21559(a,t,g(e));}function dt(a,t,e){n.__wasm_bindgen_func_elem_18931(a,t,g(e));}function ut(a,t,e){n.__wasm_bindgen_func_elem_3992(a,t,g(e));}function lt(a,t,e){n.__wasm_bindgen_func_elem_23227(a,t,g(e));}function ft(a,t,e){try{let o=n.__wbindgen_add_to_stack_pointer(-16);n.__wasm_bindgen_func_elem_30728(o,a,t,g(e));var _=x().getInt32(o+0,!0),r=x().getInt32(o+4,!0);if(r)throw p(_)}finally{n.__wbindgen_add_to_stack_pointer(16);}}function xt(a,t,e,_){n.__wasm_bindgen_func_elem_30730(a,t,g(e),g(_));}var ht=["blob","arraybuffer"],mt=["bytes"],yt=["default","no-store","reload","no-cache","force-cache","only-if-cached"],vt=["omit","same-origin","include"],It=["same-origin","no-cors","cors","navigate"],kt=["arraybuffer","blob"],$=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>n.__wbg_bistream_free(a,1)),Rt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>n.__wbg_intounderlyingbytesource_free(a,1)),K=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>n.__wbg_intounderlyingsink_free(a,1)),J=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>n.__wbg_intounderlyingsource_free(a,1)),Y=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>n.__wbg_peerunistream_free(a,1)),Q=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>n.__wbg_wasmclient_free(a,1)),Z=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>n.__wbg_wasmconnection_free(a,1));function g(a){W===C.length&&C.push(C.length+1);let t=W;return W=C[t],C[t]=a,t}var G=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>n.__wbindgen_export5(a.a,a.b));function H(a){let t=typeof a;if(t=="number"||t=="boolean"||a==null)return `${a}`;if(t=="string")return `"${a}"`;if(t=="symbol"){let r=a.description;return r==null?"Symbol":`Symbol(${r})`}if(t=="function"){let r=a.name;return typeof r=="string"&&r.length>0?`Function(${r})`:"Function"}if(Array.isArray(a)){let r=a.length,o="[";r>0&&(o+=H(a[0]));for(let b=1;b<r;b++)o+=", "+H(a[b]);return o+="]",o}let e=/\[object ([^\]]+)\]/.exec(toString.call(a)),_;if(e&&e.length>1)_=e[1];else return toString.call(a);if(_=="Object")try{return "Object("+JSON.stringify(a)+")"}catch{return "Object"}return a instanceof Error?`${a.name}: ${a.message}
2
+ ${a.stack}`:_}function Ct(a){a<1028||(C[a]=W,W=a);}function At(a,t){a=a>>>0;let e=x(),_=[];for(let r=a;r<a+4*t;r+=4)_.push(p(e.getUint32(r,true)));return _}function A(a,t){return a=a>>>0,T().subarray(a/1,a/1+t)}var P=null;function x(){return (P===null||P.buffer.detached===true||P.buffer.detached===void 0&&P.buffer!==n.memory.buffer)&&(P=new DataView(n.memory.buffer)),P}function v(a,t){return Pt(a>>>0,t)}var M=null;function T(){return (M===null||M.byteLength===0)&&(M=new Uint8Array(n.memory.buffer)),M}function s(a){return C[a]}function h(a,t){try{return a.apply(this,t)}catch(e){n.__wbindgen_export3(g(e));}}var C=new Array(1024).fill(void 0);C.push(void 0,null,true,false);var W=C.length;function u(a){return a==null}function Ft(a,t,e){let _={a,b:t,cnt:1},r=(...o)=>{_.cnt++;try{return e(_.a,_.b,...o)}finally{r._wbg_cb_unref();}};return r._wbg_cb_unref=()=>{--_.cnt===0&&(n.__wbindgen_export5(_.a,_.b),_.a=0,G.unregister(_));},G.register(r,_,_),r}function F(a,t,e){let _={a,b:t,cnt:1},r=(...o)=>{_.cnt++;let b=_.a;_.a=0;try{return e(b,_.b,...o)}finally{_.a=b,r._wbg_cb_unref();}};return r._wbg_cb_unref=()=>{--_.cnt===0&&(n.__wbindgen_export5(_.a,_.b),_.a=0,G.unregister(_));},G.register(r,_,_),r}function k(a,t){let e=t(a.length*1,1)>>>0;return T().set(a,e/1),i=a.length,e}function tt(a,t){let e=t(a.length*4,4)>>>0,_=x();for(let r=0;r<a.length;r++)_.setUint32(e+4*r,g(a[r]),true);return i=a.length,e}function c(a,t,e){if(e===void 0){let w=j.encode(a),d=t(w.length,1)>>>0;return T().subarray(d,d+w.length).set(w),i=w.length,d}let _=a.length,r=t(_,1)>>>0,o=T(),b=0;for(;b<_;b++){let w=a.charCodeAt(b);if(w>127)break;o[r+b]=w;}if(b!==_){b!==0&&(a=a.slice(b)),r=e(r,_,_=b+a.length*3,1)>>>0;let w=T().subarray(r+b,r+_),d=j.encodeInto(a,w);b+=d.written,r=e(r,_,b,1)>>>0;}return i=b,r}function p(a){let t=s(a);return Ct(a),t}var z=new TextDecoder("utf-8",{ignoreBOM:true,fatal:true});z.decode();var St=2146435072,X=0;function Pt(a,t){return X+=t,X>=St&&(z=new TextDecoder("utf-8",{ignoreBOM:true,fatal:true}),z.decode(),X=t),z.decode(T().subarray(a,a+t))}var j=new TextEncoder;"encodeInto"in j||(j.encodeInto=function(a,t){let e=j.encode(a);return t.set(e),{read:a.length,written:e.length}});var i=0,n;function nt(a,t){return n=a.exports,P=null,M=null,n.__wbindgen_start(),n}async function Mt(a,t){if(typeof Response=="function"&&a instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(a,t)}catch(r){if(a.ok&&e(a.type)&&a.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r);else throw r}let _=await a.arrayBuffer();return await WebAssembly.instantiate(_,t)}else {let _=await WebAssembly.instantiate(a,t);return _ instanceof WebAssembly.Instance?{instance:_,module:a}:_}function e(_){switch(_){case "basic":case "cors":case "default":return true}return false}}function jt(a){if(n!==void 0)return n;a!==void 0&&(Object.getPrototypeOf(a)===Object.prototype?{module:a}=a:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let t=et();a instanceof WebAssembly.Module||(a=new WebAssembly.Module(a));let e=new WebAssembly.Instance(a,t);return nt(e)}async function qt(a){if(n!==void 0)return n;a!==void 0&&(Object.getPrototypeOf(a)===Object.prototype?{module_or_path:a}=a:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),a===void 0&&(a=new URL("openrtc_bg.wasm",import.meta.url));let t=et();(typeof a=="string"||typeof Request=="function"&&a instanceof Request||typeof URL=="function"&&a instanceof URL)&&(a=fetch(a));let{instance:e,module:_}=await Mt(await a,t);return nt(e)}export{q as BiStream,L as IntoUnderlyingByteSource,N as IntoUnderlyingSink,O as IntoUnderlyingSource,B as PeerUniStream,U as WasmClient,D as WasmConnection,qt as default,jt as initSync,Wt as start};
Binary file
@@ -1,7 +1,7 @@
1
- import { D as DelegatingRuntimeAdapter, a as WasmBridgeOptions } from '../DelegatingRuntimeAdapter-BFZDC604.js';
2
- import '../ITransport-WV6gGMnX.js';
3
- import '../types-DVNSd5B9.js';
4
- import '../capabilities-BfZi4Cd7.js';
1
+ import { D as DelegatingRuntimeAdapter, a as WasmBridgeOptions } from '../DelegatingRuntimeAdapter-BkLR3TNN.js';
2
+ import '../ITransport-yaruAmx3.js';
3
+ import '../types-D67HlF0p.js';
4
+ import '../capabilities-BwzPe51I.js';
5
5
 
6
6
  declare class WasmRuntimeAdapter extends DelegatingRuntimeAdapter {
7
7
  constructor(options: WasmBridgeOptions);
@@ -1 +1 @@
1
- import {a}from'../chunk-D2OJN5S5.js';import {y}from'../chunk-VOCOZ57Q.js';import'../chunk-AG2F6MOB.js';import'../chunk-CWGKLGJZ.js';import'../chunk-KJTJLLJE.js';import'../chunk-45WBH7E3.js';import'../chunk-NRXEG5GQ.js';var n=class extends a{constructor(e){super(new y(e));}setWasmClient(e){this.unwrap().setWasmClient(e);}};export{n as WasmRuntimeAdapter};
1
+ import {a}from'../chunk-F4BJ72HN.js';import {z}from'../chunk-OUFHVLDQ.js';import'../chunk-AJQVMVYW.js';import'../chunk-NXM5ZGHD.js';import'../chunk-NRXEG5GQ.js';import'../chunk-SUWCBTBQ.js';import'../chunk-LN4ALFT6.js';var n=class extends a{constructor(e){super(new z(e));}setWasmClient(e){this.unwrap().setWasmClient(e);}};export{n as WasmRuntimeAdapter};