@janssenproject/cedarling_wasm 0.0.307-nodejs → 0.0.308-nodejs
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +64 -5
- package/cedarling_wasm.d.ts +207 -161
- package/cedarling_wasm.js +976 -1069
- package/cedarling_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/cedarling_wasm.js
CHANGED
|
@@ -1,275 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
let imports = {};
|
|
3
|
-
imports['__wbindgen_placeholder__'] = module.exports;
|
|
4
|
-
|
|
5
|
-
function addToExternrefTable0(obj) {
|
|
6
|
-
const idx = wasm.__externref_table_alloc();
|
|
7
|
-
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
8
|
-
return idx;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
function _assertClass(instance, klass) {
|
|
12
|
-
if (!(instance instanceof klass)) {
|
|
13
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
18
|
-
? { register: () => {}, unregister: () => {} }
|
|
19
|
-
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
20
|
-
|
|
21
|
-
function debugString(val) {
|
|
22
|
-
// primitive types
|
|
23
|
-
const type = typeof val;
|
|
24
|
-
if (type == 'number' || type == 'boolean' || val == null) {
|
|
25
|
-
return `${val}`;
|
|
26
|
-
}
|
|
27
|
-
if (type == 'string') {
|
|
28
|
-
return `"${val}"`;
|
|
29
|
-
}
|
|
30
|
-
if (type == 'symbol') {
|
|
31
|
-
const description = val.description;
|
|
32
|
-
if (description == null) {
|
|
33
|
-
return 'Symbol';
|
|
34
|
-
} else {
|
|
35
|
-
return `Symbol(${description})`;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
if (type == 'function') {
|
|
39
|
-
const name = val.name;
|
|
40
|
-
if (typeof name == 'string' && name.length > 0) {
|
|
41
|
-
return `Function(${name})`;
|
|
42
|
-
} else {
|
|
43
|
-
return 'Function';
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
// objects
|
|
47
|
-
if (Array.isArray(val)) {
|
|
48
|
-
const length = val.length;
|
|
49
|
-
let debug = '[';
|
|
50
|
-
if (length > 0) {
|
|
51
|
-
debug += debugString(val[0]);
|
|
52
|
-
}
|
|
53
|
-
for(let i = 1; i < length; i++) {
|
|
54
|
-
debug += ', ' + debugString(val[i]);
|
|
55
|
-
}
|
|
56
|
-
debug += ']';
|
|
57
|
-
return debug;
|
|
58
|
-
}
|
|
59
|
-
// Test for built-in
|
|
60
|
-
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
61
|
-
let className;
|
|
62
|
-
if (builtInMatches && builtInMatches.length > 1) {
|
|
63
|
-
className = builtInMatches[1];
|
|
64
|
-
} else {
|
|
65
|
-
// Failed to match the standard '[object ClassName]'
|
|
66
|
-
return toString.call(val);
|
|
67
|
-
}
|
|
68
|
-
if (className == 'Object') {
|
|
69
|
-
// we're a user defined class or Object
|
|
70
|
-
// JSON.stringify avoids problems with cycles, and is generally much
|
|
71
|
-
// easier than looping through ownProperties of `val`.
|
|
72
|
-
try {
|
|
73
|
-
return 'Object(' + JSON.stringify(val) + ')';
|
|
74
|
-
} catch (_) {
|
|
75
|
-
return 'Object';
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
// errors
|
|
79
|
-
if (val instanceof Error) {
|
|
80
|
-
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
81
|
-
}
|
|
82
|
-
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
83
|
-
return className;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
function getArrayJsValueFromWasm0(ptr, len) {
|
|
87
|
-
ptr = ptr >>> 0;
|
|
88
|
-
const mem = getDataViewMemory0();
|
|
89
|
-
const result = [];
|
|
90
|
-
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
91
|
-
result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
|
|
92
|
-
}
|
|
93
|
-
wasm.__externref_drop_slice(ptr, len);
|
|
94
|
-
return result;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
98
|
-
ptr = ptr >>> 0;
|
|
99
|
-
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
let cachedDataViewMemory0 = null;
|
|
103
|
-
function getDataViewMemory0() {
|
|
104
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
105
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
106
|
-
}
|
|
107
|
-
return cachedDataViewMemory0;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
function getStringFromWasm0(ptr, len) {
|
|
111
|
-
ptr = ptr >>> 0;
|
|
112
|
-
return decodeText(ptr, len);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
let cachedUint8ArrayMemory0 = null;
|
|
116
|
-
function getUint8ArrayMemory0() {
|
|
117
|
-
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
118
|
-
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
119
|
-
}
|
|
120
|
-
return cachedUint8ArrayMemory0;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
function handleError(f, args) {
|
|
124
|
-
try {
|
|
125
|
-
return f.apply(this, args);
|
|
126
|
-
} catch (e) {
|
|
127
|
-
const idx = addToExternrefTable0(e);
|
|
128
|
-
wasm.__wbindgen_exn_store(idx);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
function isLikeNone(x) {
|
|
133
|
-
return x === undefined || x === null;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
137
|
-
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
138
|
-
const real = (...args) => {
|
|
139
|
-
|
|
140
|
-
// First up with a closure we increment the internal reference
|
|
141
|
-
// count. This ensures that the Rust closure environment won't
|
|
142
|
-
// be deallocated while we're invoking it.
|
|
143
|
-
state.cnt++;
|
|
144
|
-
const a = state.a;
|
|
145
|
-
state.a = 0;
|
|
146
|
-
try {
|
|
147
|
-
return f(a, state.b, ...args);
|
|
148
|
-
} finally {
|
|
149
|
-
state.a = a;
|
|
150
|
-
real._wbg_cb_unref();
|
|
151
|
-
}
|
|
152
|
-
};
|
|
153
|
-
real._wbg_cb_unref = () => {
|
|
154
|
-
if (--state.cnt === 0) {
|
|
155
|
-
state.dtor(state.a, state.b);
|
|
156
|
-
state.a = 0;
|
|
157
|
-
CLOSURE_DTORS.unregister(state);
|
|
158
|
-
}
|
|
159
|
-
};
|
|
160
|
-
CLOSURE_DTORS.register(real, state, state);
|
|
161
|
-
return real;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
function passStringToWasm0(arg, malloc, realloc) {
|
|
165
|
-
if (realloc === undefined) {
|
|
166
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
167
|
-
const ptr = malloc(buf.length, 1) >>> 0;
|
|
168
|
-
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
169
|
-
WASM_VECTOR_LEN = buf.length;
|
|
170
|
-
return ptr;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
let len = arg.length;
|
|
174
|
-
let ptr = malloc(len, 1) >>> 0;
|
|
175
|
-
|
|
176
|
-
const mem = getUint8ArrayMemory0();
|
|
177
|
-
|
|
178
|
-
let offset = 0;
|
|
179
|
-
|
|
180
|
-
for (; offset < len; offset++) {
|
|
181
|
-
const code = arg.charCodeAt(offset);
|
|
182
|
-
if (code > 0x7F) break;
|
|
183
|
-
mem[ptr + offset] = code;
|
|
184
|
-
}
|
|
185
|
-
if (offset !== len) {
|
|
186
|
-
if (offset !== 0) {
|
|
187
|
-
arg = arg.slice(offset);
|
|
188
|
-
}
|
|
189
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
190
|
-
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
191
|
-
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
192
|
-
|
|
193
|
-
offset += ret.written;
|
|
194
|
-
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
WASM_VECTOR_LEN = offset;
|
|
198
|
-
return ptr;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
function takeFromExternrefTable0(idx) {
|
|
202
|
-
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
203
|
-
wasm.__externref_table_dealloc(idx);
|
|
204
|
-
return value;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
208
|
-
cachedTextDecoder.decode();
|
|
209
|
-
function decodeText(ptr, len) {
|
|
210
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
const cachedTextEncoder = new TextEncoder();
|
|
214
|
-
|
|
215
|
-
if (!('encodeInto' in cachedTextEncoder)) {
|
|
216
|
-
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
217
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
218
|
-
view.set(buf);
|
|
219
|
-
return {
|
|
220
|
-
read: arg.length,
|
|
221
|
-
written: buf.length
|
|
222
|
-
};
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
let WASM_VECTOR_LEN = 0;
|
|
227
|
-
|
|
228
|
-
function wasm_bindgen__convert__closures_____invoke__h5208add59d64c287(arg0, arg1) {
|
|
229
|
-
wasm.wasm_bindgen__convert__closures_____invoke__h5208add59d64c287(arg0, arg1);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
function wasm_bindgen__convert__closures_____invoke__h7f8b71809a8d7577(arg0, arg1, arg2) {
|
|
233
|
-
wasm.wasm_bindgen__convert__closures_____invoke__h7f8b71809a8d7577(arg0, arg1, arg2);
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
function wasm_bindgen__convert__closures_____invoke__h3a7d0d99d266e2f8(arg0, arg1, arg2, arg3) {
|
|
237
|
-
wasm.wasm_bindgen__convert__closures_____invoke__h3a7d0d99d266e2f8(arg0, arg1, arg2, arg3);
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
|
|
241
|
-
|
|
242
|
-
const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
243
|
-
|
|
244
|
-
const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
|
|
245
|
-
|
|
246
|
-
const AuthorizeResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
247
|
-
? { register: () => {}, unregister: () => {} }
|
|
248
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_authorizeresult_free(ptr >>> 0, 1));
|
|
249
|
-
|
|
250
|
-
const AuthorizeResultResponseFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
251
|
-
? { register: () => {}, unregister: () => {} }
|
|
252
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_authorizeresultresponse_free(ptr >>> 0, 1));
|
|
253
|
-
|
|
254
|
-
const CedarlingFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
255
|
-
? { register: () => {}, unregister: () => {} }
|
|
256
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_cedarling_free(ptr >>> 0, 1));
|
|
257
|
-
|
|
258
|
-
const DiagnosticsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
259
|
-
? { register: () => {}, unregister: () => {} }
|
|
260
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_diagnostics_free(ptr >>> 0, 1));
|
|
261
|
-
|
|
262
|
-
const JsJsonLogicFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
263
|
-
? { register: () => {}, unregister: () => {} }
|
|
264
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_jsjsonlogic_free(ptr >>> 0, 1));
|
|
265
|
-
|
|
266
|
-
const MultiIssuerAuthorizeResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
267
|
-
? { register: () => {}, unregister: () => {} }
|
|
268
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_multiissuerauthorizeresult_free(ptr >>> 0, 1));
|
|
269
|
-
|
|
270
|
-
const PolicyEvaluationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
271
|
-
? { register: () => {}, unregister: () => {} }
|
|
272
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_policyevaluationerror_free(ptr >>> 0, 1));
|
|
1
|
+
/* @ts-self-types="./cedarling_wasm.d.ts" */
|
|
273
2
|
|
|
274
3
|
/**
|
|
275
4
|
* A WASM wrapper for the Rust `cedarling::AuthorizeResult` struct.
|
|
@@ -293,46 +22,32 @@ class AuthorizeResult {
|
|
|
293
22
|
const ptr = this.__destroy_into_raw();
|
|
294
23
|
wasm.__wbg_authorizeresult_free(ptr, 0);
|
|
295
24
|
}
|
|
296
|
-
/**
|
|
297
|
-
*
|
|
298
|
-
* @returns {
|
|
299
|
-
*/
|
|
300
|
-
get workload() {
|
|
301
|
-
const ret = wasm.__wbg_get_authorizeresult_workload(this.__wbg_ptr);
|
|
302
|
-
return ret === 0 ? undefined : AuthorizeResultResponse.__wrap(ret);
|
|
303
|
-
}
|
|
304
|
-
/**
|
|
305
|
-
* Result of authorization where principal is `Jans::Workload`
|
|
306
|
-
* @param {AuthorizeResultResponse | null} [arg0]
|
|
25
|
+
/**
|
|
26
|
+
* Convert `AuthorizeResult` to json string value
|
|
27
|
+
* @returns {string}
|
|
307
28
|
*/
|
|
308
|
-
|
|
309
|
-
let
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
29
|
+
json_string() {
|
|
30
|
+
let deferred1_0;
|
|
31
|
+
let deferred1_1;
|
|
32
|
+
try {
|
|
33
|
+
const ret = wasm.authorizeresult_json_string(this.__wbg_ptr);
|
|
34
|
+
deferred1_0 = ret[0];
|
|
35
|
+
deferred1_1 = ret[1];
|
|
36
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
37
|
+
} finally {
|
|
38
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
313
39
|
}
|
|
314
|
-
wasm.__wbg_set_authorizeresult_workload(this.__wbg_ptr, ptr0);
|
|
315
40
|
}
|
|
316
41
|
/**
|
|
317
|
-
*
|
|
42
|
+
* @param {string} principal
|
|
318
43
|
* @returns {AuthorizeResultResponse | undefined}
|
|
319
44
|
*/
|
|
320
|
-
|
|
321
|
-
const
|
|
45
|
+
principal(principal) {
|
|
46
|
+
const ptr0 = passStringToWasm0(principal, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
47
|
+
const len0 = WASM_VECTOR_LEN;
|
|
48
|
+
const ret = wasm.authorizeresult_principal(this.__wbg_ptr, ptr0, len0);
|
|
322
49
|
return ret === 0 ? undefined : AuthorizeResultResponse.__wrap(ret);
|
|
323
50
|
}
|
|
324
|
-
/**
|
|
325
|
-
* Result of authorization where principal is `Jans::User`
|
|
326
|
-
* @param {AuthorizeResultResponse | null} [arg0]
|
|
327
|
-
*/
|
|
328
|
-
set person(arg0) {
|
|
329
|
-
let ptr0 = 0;
|
|
330
|
-
if (!isLikeNone(arg0)) {
|
|
331
|
-
_assertClass(arg0, AuthorizeResultResponse);
|
|
332
|
-
ptr0 = arg0.__destroy_into_raw();
|
|
333
|
-
}
|
|
334
|
-
wasm.__wbg_set_authorizeresult_person(this.__wbg_ptr, ptr0);
|
|
335
|
-
}
|
|
336
51
|
/**
|
|
337
52
|
* Result of authorization
|
|
338
53
|
* true means `ALLOW`
|
|
@@ -346,15 +61,12 @@ class AuthorizeResult {
|
|
|
346
61
|
return ret !== 0;
|
|
347
62
|
}
|
|
348
63
|
/**
|
|
349
|
-
* Result of authorization
|
|
350
|
-
*
|
|
351
|
-
* false means `Deny`
|
|
352
|
-
*
|
|
353
|
-
* this field is [`bool`] type to be compatible with [authzen Access Evaluation Decision](https://openid.github.io/authzen/#section-6.2.1).
|
|
354
|
-
* @param {boolean} arg0
|
|
64
|
+
* Result of authorization where principal is `Jans::User`
|
|
65
|
+
* @returns {AuthorizeResultResponse | undefined}
|
|
355
66
|
*/
|
|
356
|
-
|
|
357
|
-
wasm.
|
|
67
|
+
get person() {
|
|
68
|
+
const ret = wasm.__wbg_get_authorizeresult_person(this.__wbg_ptr);
|
|
69
|
+
return ret === 0 ? undefined : AuthorizeResultResponse.__wrap(ret);
|
|
358
70
|
}
|
|
359
71
|
/**
|
|
360
72
|
* Request ID of the authorization request
|
|
@@ -372,6 +84,37 @@ class AuthorizeResult {
|
|
|
372
84
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
373
85
|
}
|
|
374
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* Result of authorization where principal is `Jans::Workload`
|
|
89
|
+
* @returns {AuthorizeResultResponse | undefined}
|
|
90
|
+
*/
|
|
91
|
+
get workload() {
|
|
92
|
+
const ret = wasm.__wbg_get_authorizeresult_workload(this.__wbg_ptr);
|
|
93
|
+
return ret === 0 ? undefined : AuthorizeResultResponse.__wrap(ret);
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Result of authorization
|
|
97
|
+
* true means `ALLOW`
|
|
98
|
+
* false means `Deny`
|
|
99
|
+
*
|
|
100
|
+
* this field is [`bool`] type to be compatible with [authzen Access Evaluation Decision](https://openid.github.io/authzen/#section-6.2.1).
|
|
101
|
+
* @param {boolean} arg0
|
|
102
|
+
*/
|
|
103
|
+
set decision(arg0) {
|
|
104
|
+
wasm.__wbg_set_authorizeresult_decision(this.__wbg_ptr, arg0);
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Result of authorization where principal is `Jans::User`
|
|
108
|
+
* @param {AuthorizeResultResponse | null} [arg0]
|
|
109
|
+
*/
|
|
110
|
+
set person(arg0) {
|
|
111
|
+
let ptr0 = 0;
|
|
112
|
+
if (!isLikeNone(arg0)) {
|
|
113
|
+
_assertClass(arg0, AuthorizeResultResponse);
|
|
114
|
+
ptr0 = arg0.__destroy_into_raw();
|
|
115
|
+
}
|
|
116
|
+
wasm.__wbg_set_authorizeresult_person(this.__wbg_ptr, ptr0);
|
|
117
|
+
}
|
|
375
118
|
/**
|
|
376
119
|
* Request ID of the authorization request
|
|
377
120
|
* @param {string} arg0
|
|
@@ -382,30 +125,16 @@ class AuthorizeResult {
|
|
|
382
125
|
wasm.__wbg_set_authorizeresult_request_id(this.__wbg_ptr, ptr0, len0);
|
|
383
126
|
}
|
|
384
127
|
/**
|
|
385
|
-
*
|
|
386
|
-
* @
|
|
128
|
+
* Result of authorization where principal is `Jans::Workload`
|
|
129
|
+
* @param {AuthorizeResultResponse | null} [arg0]
|
|
387
130
|
*/
|
|
388
|
-
|
|
389
|
-
let
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
deferred1_0 = ret[0];
|
|
394
|
-
deferred1_1 = ret[1];
|
|
395
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
396
|
-
} finally {
|
|
397
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
131
|
+
set workload(arg0) {
|
|
132
|
+
let ptr0 = 0;
|
|
133
|
+
if (!isLikeNone(arg0)) {
|
|
134
|
+
_assertClass(arg0, AuthorizeResultResponse);
|
|
135
|
+
ptr0 = arg0.__destroy_into_raw();
|
|
398
136
|
}
|
|
399
|
-
|
|
400
|
-
/**
|
|
401
|
-
* @param {string} principal
|
|
402
|
-
* @returns {AuthorizeResultResponse | undefined}
|
|
403
|
-
*/
|
|
404
|
-
principal(principal) {
|
|
405
|
-
const ptr0 = passStringToWasm0(principal, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
406
|
-
const len0 = WASM_VECTOR_LEN;
|
|
407
|
-
const ret = wasm.authorizeresult_principal(this.__wbg_ptr, ptr0, len0);
|
|
408
|
-
return ret === 0 ? undefined : AuthorizeResultResponse.__wrap(ret);
|
|
137
|
+
wasm.__wbg_set_authorizeresult_workload(this.__wbg_ptr, ptr0);
|
|
409
138
|
}
|
|
410
139
|
}
|
|
411
140
|
if (Symbol.dispose) AuthorizeResult.prototype[Symbol.dispose] = AuthorizeResult.prototype.free;
|
|
@@ -474,26 +203,6 @@ class Cedarling {
|
|
|
474
203
|
const ptr = this.__destroy_into_raw();
|
|
475
204
|
wasm.__wbg_cedarling_free(ptr, 0);
|
|
476
205
|
}
|
|
477
|
-
/**
|
|
478
|
-
* Create a new instance of the Cedarling application.
|
|
479
|
-
* Assume that config is `Object`
|
|
480
|
-
* @param {object} config
|
|
481
|
-
* @returns {Promise<Cedarling>}
|
|
482
|
-
*/
|
|
483
|
-
static new(config) {
|
|
484
|
-
const ret = wasm.cedarling_new(config);
|
|
485
|
-
return ret;
|
|
486
|
-
}
|
|
487
|
-
/**
|
|
488
|
-
* Create a new instance of the Cedarling application.
|
|
489
|
-
* Assume that config is `Map`
|
|
490
|
-
* @param {Map<any, any>} config
|
|
491
|
-
* @returns {Promise<Cedarling>}
|
|
492
|
-
*/
|
|
493
|
-
static new_from_map(config) {
|
|
494
|
-
const ret = wasm.cedarling_new_from_map(config);
|
|
495
|
-
return ret;
|
|
496
|
-
}
|
|
497
206
|
/**
|
|
498
207
|
* Authorize request
|
|
499
208
|
* makes authorization decision based on the [`Request`]
|
|
@@ -504,16 +213,6 @@ class Cedarling {
|
|
|
504
213
|
const ret = wasm.cedarling_authorize(this.__wbg_ptr, request);
|
|
505
214
|
return ret;
|
|
506
215
|
}
|
|
507
|
-
/**
|
|
508
|
-
* Authorize request for unsigned principals.
|
|
509
|
-
* makes authorization decision based on the [`RequestUnsigned`]
|
|
510
|
-
* @param {any} request
|
|
511
|
-
* @returns {Promise<AuthorizeResult>}
|
|
512
|
-
*/
|
|
513
|
-
authorize_unsigned(request) {
|
|
514
|
-
const ret = wasm.cedarling_authorize_unsigned(this.__wbg_ptr, request);
|
|
515
|
-
return ret;
|
|
516
|
-
}
|
|
517
216
|
/**
|
|
518
217
|
* Authorize multi-issuer request.
|
|
519
218
|
* Makes authorization decision based on multiple JWT tokens from different issuers
|
|
@@ -525,16 +224,14 @@ class Cedarling {
|
|
|
525
224
|
return ret;
|
|
526
225
|
}
|
|
527
226
|
/**
|
|
528
|
-
*
|
|
529
|
-
*
|
|
530
|
-
* @
|
|
227
|
+
* Authorize request for unsigned principals.
|
|
228
|
+
* makes authorization decision based on the [`RequestUnsigned`]
|
|
229
|
+
* @param {any} request
|
|
230
|
+
* @returns {Promise<AuthorizeResult>}
|
|
531
231
|
*/
|
|
532
|
-
|
|
533
|
-
const ret = wasm.
|
|
534
|
-
|
|
535
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
536
|
-
}
|
|
537
|
-
return takeFromExternrefTable0(ret[0]);
|
|
232
|
+
authorize_unsigned(request) {
|
|
233
|
+
const ret = wasm.cedarling_authorize_unsigned(this.__wbg_ptr, request);
|
|
234
|
+
return ret;
|
|
538
235
|
}
|
|
539
236
|
/**
|
|
540
237
|
* Get specific log entry.
|
|
@@ -560,23 +257,6 @@ class Cedarling {
|
|
|
560
257
|
const ret = wasm.cedarling_get_log_ids(this.__wbg_ptr);
|
|
561
258
|
return ret;
|
|
562
259
|
}
|
|
563
|
-
/**
|
|
564
|
-
* Get logs by tag, like `log_kind` or `log level`.
|
|
565
|
-
* Tag can be `log_kind`, `log_level`.
|
|
566
|
-
* @param {string} tag
|
|
567
|
-
* @returns {any[]}
|
|
568
|
-
*/
|
|
569
|
-
get_logs_by_tag(tag) {
|
|
570
|
-
const ptr0 = passStringToWasm0(tag, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
571
|
-
const len0 = WASM_VECTOR_LEN;
|
|
572
|
-
const ret = wasm.cedarling_get_logs_by_tag(this.__wbg_ptr, ptr0, len0);
|
|
573
|
-
if (ret[3]) {
|
|
574
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
575
|
-
}
|
|
576
|
-
var v2 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
577
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
578
|
-
return v2;
|
|
579
|
-
}
|
|
580
260
|
/**
|
|
581
261
|
* Get logs by request_id.
|
|
582
262
|
* Return log entries that match the given request_id.
|
|
@@ -615,6 +295,55 @@ class Cedarling {
|
|
|
615
295
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
616
296
|
return v3;
|
|
617
297
|
}
|
|
298
|
+
/**
|
|
299
|
+
* Get logs by tag, like `log_kind` or `log level`.
|
|
300
|
+
* Tag can be `log_kind`, `log_level`.
|
|
301
|
+
* @param {string} tag
|
|
302
|
+
* @returns {any[]}
|
|
303
|
+
*/
|
|
304
|
+
get_logs_by_tag(tag) {
|
|
305
|
+
const ptr0 = passStringToWasm0(tag, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
306
|
+
const len0 = WASM_VECTOR_LEN;
|
|
307
|
+
const ret = wasm.cedarling_get_logs_by_tag(this.__wbg_ptr, ptr0, len0);
|
|
308
|
+
if (ret[3]) {
|
|
309
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
310
|
+
}
|
|
311
|
+
var v2 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
312
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
313
|
+
return v2;
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* Create a new instance of the Cedarling application.
|
|
317
|
+
* Assume that config is `Object`
|
|
318
|
+
* @param {object} config
|
|
319
|
+
* @returns {Promise<Cedarling>}
|
|
320
|
+
*/
|
|
321
|
+
static new(config) {
|
|
322
|
+
const ret = wasm.cedarling_new(config);
|
|
323
|
+
return ret;
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* Create a new instance of the Cedarling application.
|
|
327
|
+
* Assume that config is `Map`
|
|
328
|
+
* @param {Map<any, any>} config
|
|
329
|
+
* @returns {Promise<Cedarling>}
|
|
330
|
+
*/
|
|
331
|
+
static new_from_map(config) {
|
|
332
|
+
const ret = wasm.cedarling_new_from_map(config);
|
|
333
|
+
return ret;
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* Get logs and remove them from the storage.
|
|
337
|
+
* Returns `Array` of `Map`
|
|
338
|
+
* @returns {Array<any>}
|
|
339
|
+
*/
|
|
340
|
+
pop_logs() {
|
|
341
|
+
const ret = wasm.cedarling_pop_logs(this.__wbg_ptr);
|
|
342
|
+
if (ret[2]) {
|
|
343
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
344
|
+
}
|
|
345
|
+
return takeFromExternrefTable0(ret[0]);
|
|
346
|
+
}
|
|
618
347
|
/**
|
|
619
348
|
* Closes the connections to the Lock Server and pushes all available logs.
|
|
620
349
|
* @returns {Promise<void>}
|
|
@@ -651,6 +380,17 @@ class Diagnostics {
|
|
|
651
380
|
const ptr = this.__destroy_into_raw();
|
|
652
381
|
wasm.__wbg_diagnostics_free(ptr, 0);
|
|
653
382
|
}
|
|
383
|
+
/**
|
|
384
|
+
* Errors that occurred during authorization. The errors should be
|
|
385
|
+
* treated as unordered, since policies may be evaluated in any order.
|
|
386
|
+
* @returns {PolicyEvaluationError[]}
|
|
387
|
+
*/
|
|
388
|
+
get errors() {
|
|
389
|
+
const ret = wasm.diagnostics_errors(this.__wbg_ptr);
|
|
390
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
391
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
392
|
+
return v1;
|
|
393
|
+
}
|
|
654
394
|
/**
|
|
655
395
|
* `PolicyId`s of the policies that contributed to the decision.
|
|
656
396
|
* If no policies applied to the request, this set will be empty.
|
|
@@ -664,17 +404,6 @@ class Diagnostics {
|
|
|
664
404
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
665
405
|
return v1;
|
|
666
406
|
}
|
|
667
|
-
/**
|
|
668
|
-
* Errors that occurred during authorization. The errors should be
|
|
669
|
-
* treated as unordered, since policies may be evaluated in any order.
|
|
670
|
-
* @returns {PolicyEvaluationError[]}
|
|
671
|
-
*/
|
|
672
|
-
get errors() {
|
|
673
|
-
const ret = wasm.diagnostics_errors(this.__wbg_ptr);
|
|
674
|
-
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
675
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
676
|
-
return v1;
|
|
677
|
-
}
|
|
678
407
|
}
|
|
679
408
|
if (Symbol.dispose) Diagnostics.prototype[Symbol.dispose] = Diagnostics.prototype.free;
|
|
680
409
|
exports.Diagnostics = Diagnostics;
|
|
@@ -690,12 +419,6 @@ class JsJsonLogic {
|
|
|
690
419
|
const ptr = this.__destroy_into_raw();
|
|
691
420
|
wasm.__wbg_jsjsonlogic_free(ptr, 0);
|
|
692
421
|
}
|
|
693
|
-
constructor() {
|
|
694
|
-
const ret = wasm.jsjsonlogic_new();
|
|
695
|
-
this.__wbg_ptr = ret >>> 0;
|
|
696
|
-
JsJsonLogicFinalization.register(this, this.__wbg_ptr, this);
|
|
697
|
-
return this;
|
|
698
|
-
}
|
|
699
422
|
/**
|
|
700
423
|
* @param {any} logic
|
|
701
424
|
* @param {any} data
|
|
@@ -708,6 +431,12 @@ class JsJsonLogic {
|
|
|
708
431
|
}
|
|
709
432
|
return takeFromExternrefTable0(ret[0]);
|
|
710
433
|
}
|
|
434
|
+
constructor() {
|
|
435
|
+
const ret = wasm.jsjsonlogic_new();
|
|
436
|
+
this.__wbg_ptr = ret >>> 0;
|
|
437
|
+
JsJsonLogicFinalization.register(this, this.__wbg_ptr, this);
|
|
438
|
+
return this;
|
|
439
|
+
}
|
|
711
440
|
}
|
|
712
441
|
if (Symbol.dispose) JsJsonLogic.prototype[Symbol.dispose] = JsJsonLogic.prototype.free;
|
|
713
442
|
exports.JsJsonLogic = JsJsonLogic;
|
|
@@ -734,23 +463,6 @@ class MultiIssuerAuthorizeResult {
|
|
|
734
463
|
const ptr = this.__destroy_into_raw();
|
|
735
464
|
wasm.__wbg_multiissuerauthorizeresult_free(ptr, 0);
|
|
736
465
|
}
|
|
737
|
-
/**
|
|
738
|
-
* Result of Cedar policy authorization
|
|
739
|
-
* @returns {AuthorizeResultResponse}
|
|
740
|
-
*/
|
|
741
|
-
get response() {
|
|
742
|
-
const ret = wasm.__wbg_get_multiissuerauthorizeresult_response(this.__wbg_ptr);
|
|
743
|
-
return AuthorizeResultResponse.__wrap(ret);
|
|
744
|
-
}
|
|
745
|
-
/**
|
|
746
|
-
* Result of Cedar policy authorization
|
|
747
|
-
* @param {AuthorizeResultResponse} arg0
|
|
748
|
-
*/
|
|
749
|
-
set response(arg0) {
|
|
750
|
-
_assertClass(arg0, AuthorizeResultResponse);
|
|
751
|
-
var ptr0 = arg0.__destroy_into_raw();
|
|
752
|
-
wasm.__wbg_set_multiissuerauthorizeresult_response(this.__wbg_ptr, ptr0);
|
|
753
|
-
}
|
|
754
466
|
/**
|
|
755
467
|
* Result of authorization
|
|
756
468
|
* true means `ALLOW`
|
|
@@ -761,15 +473,6 @@ class MultiIssuerAuthorizeResult {
|
|
|
761
473
|
const ret = wasm.__wbg_get_multiissuerauthorizeresult_decision(this.__wbg_ptr);
|
|
762
474
|
return ret !== 0;
|
|
763
475
|
}
|
|
764
|
-
/**
|
|
765
|
-
* Result of authorization
|
|
766
|
-
* true means `ALLOW`
|
|
767
|
-
* false means `Deny`
|
|
768
|
-
* @param {boolean} arg0
|
|
769
|
-
*/
|
|
770
|
-
set decision(arg0) {
|
|
771
|
-
wasm.__wbg_set_multiissuerauthorizeresult_decision(this.__wbg_ptr, arg0);
|
|
772
|
-
}
|
|
773
476
|
/**
|
|
774
477
|
* Request ID of the authorization request
|
|
775
478
|
* @returns {string}
|
|
@@ -787,13 +490,12 @@ class MultiIssuerAuthorizeResult {
|
|
|
787
490
|
}
|
|
788
491
|
}
|
|
789
492
|
/**
|
|
790
|
-
*
|
|
791
|
-
* @
|
|
493
|
+
* Result of Cedar policy authorization
|
|
494
|
+
* @returns {AuthorizeResultResponse}
|
|
792
495
|
*/
|
|
793
|
-
|
|
794
|
-
const
|
|
795
|
-
|
|
796
|
-
wasm.__wbg_set_multiissuerauthorizeresult_request_id(this.__wbg_ptr, ptr0, len0);
|
|
496
|
+
get response() {
|
|
497
|
+
const ret = wasm.__wbg_get_multiissuerauthorizeresult_response(this.__wbg_ptr);
|
|
498
|
+
return AuthorizeResultResponse.__wrap(ret);
|
|
797
499
|
}
|
|
798
500
|
/**
|
|
799
501
|
* Convert `MultiIssuerAuthorizeResult` to json string value
|
|
@@ -811,6 +513,33 @@ class MultiIssuerAuthorizeResult {
|
|
|
811
513
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
812
514
|
}
|
|
813
515
|
}
|
|
516
|
+
/**
|
|
517
|
+
* Result of authorization
|
|
518
|
+
* true means `ALLOW`
|
|
519
|
+
* false means `Deny`
|
|
520
|
+
* @param {boolean} arg0
|
|
521
|
+
*/
|
|
522
|
+
set decision(arg0) {
|
|
523
|
+
wasm.__wbg_set_multiissuerauthorizeresult_decision(this.__wbg_ptr, arg0);
|
|
524
|
+
}
|
|
525
|
+
/**
|
|
526
|
+
* Request ID of the authorization request
|
|
527
|
+
* @param {string} arg0
|
|
528
|
+
*/
|
|
529
|
+
set request_id(arg0) {
|
|
530
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
531
|
+
const len0 = WASM_VECTOR_LEN;
|
|
532
|
+
wasm.__wbg_set_multiissuerauthorizeresult_request_id(this.__wbg_ptr, ptr0, len0);
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
* Result of Cedar policy authorization
|
|
536
|
+
* @param {AuthorizeResultResponse} arg0
|
|
537
|
+
*/
|
|
538
|
+
set response(arg0) {
|
|
539
|
+
_assertClass(arg0, AuthorizeResultResponse);
|
|
540
|
+
var ptr0 = arg0.__destroy_into_raw();
|
|
541
|
+
wasm.__wbg_set_multiissuerauthorizeresult_response(this.__wbg_ptr, ptr0);
|
|
542
|
+
}
|
|
814
543
|
}
|
|
815
544
|
if (Symbol.dispose) MultiIssuerAuthorizeResult.prototype[Symbol.dispose] = MultiIssuerAuthorizeResult.prototype.free;
|
|
816
545
|
exports.MultiIssuerAuthorizeResult = MultiIssuerAuthorizeResult;
|
|
@@ -840,14 +569,14 @@ class PolicyEvaluationError {
|
|
|
840
569
|
wasm.__wbg_policyevaluationerror_free(ptr, 0);
|
|
841
570
|
}
|
|
842
571
|
/**
|
|
843
|
-
*
|
|
572
|
+
* Underlying evaluation error string representation
|
|
844
573
|
* @returns {string}
|
|
845
574
|
*/
|
|
846
|
-
get
|
|
575
|
+
get error() {
|
|
847
576
|
let deferred1_0;
|
|
848
577
|
let deferred1_1;
|
|
849
578
|
try {
|
|
850
|
-
const ret = wasm.
|
|
579
|
+
const ret = wasm.policyevaluationerror_error(this.__wbg_ptr);
|
|
851
580
|
deferred1_0 = ret[0];
|
|
852
581
|
deferred1_1 = ret[1];
|
|
853
582
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -856,14 +585,14 @@ class PolicyEvaluationError {
|
|
|
856
585
|
}
|
|
857
586
|
}
|
|
858
587
|
/**
|
|
859
|
-
*
|
|
588
|
+
* Id of the policy with an error
|
|
860
589
|
* @returns {string}
|
|
861
590
|
*/
|
|
862
|
-
get
|
|
591
|
+
get id() {
|
|
863
592
|
let deferred1_0;
|
|
864
593
|
let deferred1_1;
|
|
865
594
|
try {
|
|
866
|
-
const ret = wasm.
|
|
595
|
+
const ret = wasm.policyevaluationerror_id(this.__wbg_ptr);
|
|
867
596
|
deferred1_0 = ret[0];
|
|
868
597
|
deferred1_1 = ret[1];
|
|
869
598
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -887,669 +616,847 @@ function init(config) {
|
|
|
887
616
|
}
|
|
888
617
|
exports.init = init;
|
|
889
618
|
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
}
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
913
|
-
};
|
|
914
|
-
|
|
915
|
-
exports.__wbg___wbindgen_boolean_get_dea25b33882b895b = function(arg0) {
|
|
916
|
-
const v = arg0;
|
|
917
|
-
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
918
|
-
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
919
|
-
};
|
|
920
|
-
|
|
921
|
-
exports.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(arg0, arg1) {
|
|
922
|
-
const ret = debugString(arg1);
|
|
923
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
924
|
-
const len1 = WASM_VECTOR_LEN;
|
|
925
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
926
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
927
|
-
};
|
|
928
|
-
|
|
929
|
-
exports.__wbg___wbindgen_in_0d3e1e8f0c669317 = function(arg0, arg1) {
|
|
930
|
-
const ret = arg0 in arg1;
|
|
931
|
-
return ret;
|
|
932
|
-
};
|
|
933
|
-
|
|
934
|
-
exports.__wbg___wbindgen_is_bigint_0e1a2e3f55cfae27 = function(arg0) {
|
|
935
|
-
const ret = typeof(arg0) === 'bigint';
|
|
936
|
-
return ret;
|
|
937
|
-
};
|
|
938
|
-
|
|
939
|
-
exports.__wbg___wbindgen_is_function_8d400b8b1af978cd = function(arg0) {
|
|
940
|
-
const ret = typeof(arg0) === 'function';
|
|
941
|
-
return ret;
|
|
942
|
-
};
|
|
943
|
-
|
|
944
|
-
exports.__wbg___wbindgen_is_object_ce774f3490692386 = function(arg0) {
|
|
945
|
-
const val = arg0;
|
|
946
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
947
|
-
return ret;
|
|
948
|
-
};
|
|
949
|
-
|
|
950
|
-
exports.__wbg___wbindgen_is_string_704ef9c8fc131030 = function(arg0) {
|
|
951
|
-
const ret = typeof(arg0) === 'string';
|
|
952
|
-
return ret;
|
|
953
|
-
};
|
|
954
|
-
|
|
955
|
-
exports.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) {
|
|
956
|
-
const ret = arg0 === undefined;
|
|
957
|
-
return ret;
|
|
958
|
-
};
|
|
959
|
-
|
|
960
|
-
exports.__wbg___wbindgen_jsval_eq_b6101cc9cef1fe36 = function(arg0, arg1) {
|
|
961
|
-
const ret = arg0 === arg1;
|
|
962
|
-
return ret;
|
|
963
|
-
};
|
|
964
|
-
|
|
965
|
-
exports.__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d = function(arg0, arg1) {
|
|
966
|
-
const ret = arg0 == arg1;
|
|
967
|
-
return ret;
|
|
968
|
-
};
|
|
969
|
-
|
|
970
|
-
exports.__wbg___wbindgen_number_get_9619185a74197f95 = function(arg0, arg1) {
|
|
971
|
-
const obj = arg1;
|
|
972
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
973
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
974
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
975
|
-
};
|
|
976
|
-
|
|
977
|
-
exports.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(arg0, arg1) {
|
|
978
|
-
const obj = arg1;
|
|
979
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
980
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
981
|
-
var len1 = WASM_VECTOR_LEN;
|
|
982
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
983
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
984
|
-
};
|
|
985
|
-
|
|
986
|
-
exports.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
|
|
987
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
988
|
-
};
|
|
989
|
-
|
|
990
|
-
exports.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7 = function(arg0) {
|
|
991
|
-
arg0._wbg_cb_unref();
|
|
992
|
-
};
|
|
993
|
-
|
|
994
|
-
exports.__wbg_abort_07646c894ebbf2bd = function(arg0) {
|
|
995
|
-
arg0.abort();
|
|
996
|
-
};
|
|
997
|
-
|
|
998
|
-
exports.__wbg_abort_399ecbcfd6ef3c8e = function(arg0, arg1) {
|
|
999
|
-
arg0.abort(arg1);
|
|
1000
|
-
};
|
|
1001
|
-
|
|
1002
|
-
exports.__wbg_append_c5cbdf46455cc776 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1003
|
-
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1004
|
-
}, arguments) };
|
|
1005
|
-
|
|
1006
|
-
exports.__wbg_arrayBuffer_c04af4fce566092d = function() { return handleError(function (arg0) {
|
|
1007
|
-
const ret = arg0.arrayBuffer();
|
|
1008
|
-
return ret;
|
|
1009
|
-
}, arguments) };
|
|
1010
|
-
|
|
1011
|
-
exports.__wbg_authorizeresult_new = function(arg0) {
|
|
1012
|
-
const ret = AuthorizeResult.__wrap(arg0);
|
|
1013
|
-
return ret;
|
|
1014
|
-
};
|
|
1015
|
-
|
|
1016
|
-
exports.__wbg_call_3020136f7a2d6e44 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1017
|
-
const ret = arg0.call(arg1, arg2);
|
|
1018
|
-
return ret;
|
|
1019
|
-
}, arguments) };
|
|
1020
|
-
|
|
1021
|
-
exports.__wbg_call_abb4ff46ce38be40 = function() { return handleError(function (arg0, arg1) {
|
|
1022
|
-
const ret = arg0.call(arg1);
|
|
1023
|
-
return ret;
|
|
1024
|
-
}, arguments) };
|
|
1025
|
-
|
|
1026
|
-
exports.__wbg_cedarling_new = function(arg0) {
|
|
1027
|
-
const ret = Cedarling.__wrap(arg0);
|
|
1028
|
-
return ret;
|
|
1029
|
-
};
|
|
1030
|
-
|
|
1031
|
-
exports.__wbg_clearTimeout_b716ecb44bea14ed = function(arg0) {
|
|
1032
|
-
const ret = clearTimeout(arg0);
|
|
1033
|
-
return ret;
|
|
1034
|
-
};
|
|
1035
|
-
|
|
1036
|
-
exports.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
|
|
1037
|
-
const ret = arg0.crypto;
|
|
1038
|
-
return ret;
|
|
1039
|
-
};
|
|
1040
|
-
|
|
1041
|
-
exports.__wbg_debug_24d884048190fccc = function(arg0) {
|
|
1042
|
-
console.debug(...arg0);
|
|
1043
|
-
};
|
|
1044
|
-
|
|
1045
|
-
exports.__wbg_done_62ea16af4ce34b24 = function(arg0) {
|
|
1046
|
-
const ret = arg0.done;
|
|
1047
|
-
return ret;
|
|
1048
|
-
};
|
|
1049
|
-
|
|
1050
|
-
exports.__wbg_entries_83c79938054e065f = function(arg0) {
|
|
1051
|
-
const ret = Object.entries(arg0);
|
|
1052
|
-
return ret;
|
|
1053
|
-
};
|
|
1054
|
-
|
|
1055
|
-
exports.__wbg_entries_9af46b7eaf7dfefa = function(arg0) {
|
|
1056
|
-
const ret = arg0.entries();
|
|
1057
|
-
return ret;
|
|
1058
|
-
};
|
|
1059
|
-
|
|
1060
|
-
exports.__wbg_error_98d791de55bc7c97 = function(arg0) {
|
|
1061
|
-
console.error(...arg0);
|
|
1062
|
-
};
|
|
1063
|
-
|
|
1064
|
-
exports.__wbg_fetch_7fb7602a1bf647ec = function(arg0) {
|
|
1065
|
-
const ret = fetch(arg0);
|
|
1066
|
-
return ret;
|
|
1067
|
-
};
|
|
1068
|
-
|
|
1069
|
-
exports.__wbg_fetch_90447c28cc0b095e = function(arg0, arg1) {
|
|
1070
|
-
const ret = arg0.fetch(arg1);
|
|
1071
|
-
return ret;
|
|
1072
|
-
};
|
|
1073
|
-
|
|
1074
|
-
exports.__wbg_fromEntries_743eaaa008e6db37 = function() { return handleError(function (arg0) {
|
|
1075
|
-
const ret = Object.fromEntries(arg0);
|
|
1076
|
-
return ret;
|
|
1077
|
-
}, arguments) };
|
|
1078
|
-
|
|
1079
|
-
exports.__wbg_getRandomValues_1c61fac11405ffdc = function() { return handleError(function (arg0, arg1) {
|
|
1080
|
-
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
1081
|
-
}, arguments) };
|
|
1082
|
-
|
|
1083
|
-
exports.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
|
|
1084
|
-
arg0.getRandomValues(arg1);
|
|
1085
|
-
}, arguments) };
|
|
1086
|
-
|
|
1087
|
-
exports.__wbg_getTime_ad1e9878a735af08 = function(arg0) {
|
|
1088
|
-
const ret = arg0.getTime();
|
|
1089
|
-
return ret;
|
|
1090
|
-
};
|
|
1091
|
-
|
|
1092
|
-
exports.__wbg_getTimezoneOffset_45389e26d6f46823 = function(arg0) {
|
|
1093
|
-
const ret = arg0.getTimezoneOffset();
|
|
1094
|
-
return ret;
|
|
1095
|
-
};
|
|
1096
|
-
|
|
1097
|
-
exports.__wbg_get_6b7bd52aca3f9671 = function(arg0, arg1) {
|
|
1098
|
-
const ret = arg0[arg1 >>> 0];
|
|
1099
|
-
return ret;
|
|
1100
|
-
};
|
|
1101
|
-
|
|
1102
|
-
exports.__wbg_get_af9dab7e9603ea93 = function() { return handleError(function (arg0, arg1) {
|
|
1103
|
-
const ret = Reflect.get(arg0, arg1);
|
|
1104
|
-
return ret;
|
|
1105
|
-
}, arguments) };
|
|
1106
|
-
|
|
1107
|
-
exports.__wbg_get_with_ref_key_1dc361bd10053bfe = function(arg0, arg1) {
|
|
1108
|
-
const ret = arg0[arg1];
|
|
1109
|
-
return ret;
|
|
1110
|
-
};
|
|
1111
|
-
|
|
1112
|
-
exports.__wbg_has_0e670569d65d3a45 = function() { return handleError(function (arg0, arg1) {
|
|
1113
|
-
const ret = Reflect.has(arg0, arg1);
|
|
1114
|
-
return ret;
|
|
1115
|
-
}, arguments) };
|
|
1116
|
-
|
|
1117
|
-
exports.__wbg_headers_654c30e1bcccc552 = function(arg0) {
|
|
1118
|
-
const ret = arg0.headers;
|
|
1119
|
-
return ret;
|
|
1120
|
-
};
|
|
1121
|
-
|
|
1122
|
-
exports.__wbg_info_e951478d580c1573 = function(arg0) {
|
|
1123
|
-
console.info(...arg0);
|
|
1124
|
-
};
|
|
1125
|
-
|
|
1126
|
-
exports.__wbg_instanceof_ArrayBuffer_f3320d2419cd0355 = function(arg0) {
|
|
1127
|
-
let result;
|
|
1128
|
-
try {
|
|
1129
|
-
result = arg0 instanceof ArrayBuffer;
|
|
1130
|
-
} catch (_) {
|
|
1131
|
-
result = false;
|
|
1132
|
-
}
|
|
1133
|
-
const ret = result;
|
|
1134
|
-
return ret;
|
|
1135
|
-
};
|
|
1136
|
-
|
|
1137
|
-
exports.__wbg_instanceof_Array_bc64f5da83077362 = function(arg0) {
|
|
1138
|
-
let result;
|
|
1139
|
-
try {
|
|
1140
|
-
result = arg0 instanceof Array;
|
|
1141
|
-
} catch (_) {
|
|
1142
|
-
result = false;
|
|
1143
|
-
}
|
|
1144
|
-
const ret = result;
|
|
1145
|
-
return ret;
|
|
1146
|
-
};
|
|
1147
|
-
|
|
1148
|
-
exports.__wbg_instanceof_Map_084be8da74364158 = function(arg0) {
|
|
1149
|
-
let result;
|
|
1150
|
-
try {
|
|
1151
|
-
result = arg0 instanceof Map;
|
|
1152
|
-
} catch (_) {
|
|
1153
|
-
result = false;
|
|
1154
|
-
}
|
|
1155
|
-
const ret = result;
|
|
1156
|
-
return ret;
|
|
1157
|
-
};
|
|
1158
|
-
|
|
1159
|
-
exports.__wbg_instanceof_Response_cd74d1c2ac92cb0b = function(arg0) {
|
|
1160
|
-
let result;
|
|
1161
|
-
try {
|
|
1162
|
-
result = arg0 instanceof Response;
|
|
1163
|
-
} catch (_) {
|
|
1164
|
-
result = false;
|
|
1165
|
-
}
|
|
1166
|
-
const ret = result;
|
|
1167
|
-
return ret;
|
|
1168
|
-
};
|
|
1169
|
-
|
|
1170
|
-
exports.__wbg_instanceof_Uint8Array_da54ccc9d3e09434 = function(arg0) {
|
|
1171
|
-
let result;
|
|
1172
|
-
try {
|
|
1173
|
-
result = arg0 instanceof Uint8Array;
|
|
1174
|
-
} catch (_) {
|
|
1175
|
-
result = false;
|
|
1176
|
-
}
|
|
1177
|
-
const ret = result;
|
|
1178
|
-
return ret;
|
|
1179
|
-
};
|
|
1180
|
-
|
|
1181
|
-
exports.__wbg_isArray_51fd9e6422c0a395 = function(arg0) {
|
|
1182
|
-
const ret = Array.isArray(arg0);
|
|
1183
|
-
return ret;
|
|
1184
|
-
};
|
|
1185
|
-
|
|
1186
|
-
exports.__wbg_isSafeInteger_ae7d3f054d55fa16 = function(arg0) {
|
|
1187
|
-
const ret = Number.isSafeInteger(arg0);
|
|
1188
|
-
return ret;
|
|
1189
|
-
};
|
|
1190
|
-
|
|
1191
|
-
exports.__wbg_iterator_27b7c8b35ab3e86b = function() {
|
|
1192
|
-
const ret = Symbol.iterator;
|
|
1193
|
-
return ret;
|
|
1194
|
-
};
|
|
1195
|
-
|
|
1196
|
-
exports.__wbg_keys_f5c6002ff150fc6c = function(arg0) {
|
|
1197
|
-
const ret = Object.keys(arg0);
|
|
1198
|
-
return ret;
|
|
1199
|
-
};
|
|
1200
|
-
|
|
1201
|
-
exports.__wbg_length_22ac23eaec9d8053 = function(arg0) {
|
|
1202
|
-
const ret = arg0.length;
|
|
1203
|
-
return ret;
|
|
1204
|
-
};
|
|
1205
|
-
|
|
1206
|
-
exports.__wbg_length_d45040a40c570362 = function(arg0) {
|
|
1207
|
-
const ret = arg0.length;
|
|
1208
|
-
return ret;
|
|
1209
|
-
};
|
|
1210
|
-
|
|
1211
|
-
exports.__wbg_log_3f650af133a6de58 = function(arg0) {
|
|
1212
|
-
console.log(...arg0);
|
|
1213
|
-
};
|
|
1214
|
-
|
|
1215
|
-
exports.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
|
|
1216
|
-
const ret = arg0.msCrypto;
|
|
1217
|
-
return ret;
|
|
1218
|
-
};
|
|
1219
|
-
|
|
1220
|
-
exports.__wbg_multiissuerauthorizeresult_new = function(arg0) {
|
|
1221
|
-
const ret = MultiIssuerAuthorizeResult.__wrap(arg0);
|
|
1222
|
-
return ret;
|
|
1223
|
-
};
|
|
1224
|
-
|
|
1225
|
-
exports.__wbg_new_0_23cedd11d9b40c9d = function() {
|
|
1226
|
-
const ret = new Date();
|
|
1227
|
-
return ret;
|
|
1228
|
-
};
|
|
1229
|
-
|
|
1230
|
-
exports.__wbg_new_1ba21ce319a06297 = function() {
|
|
1231
|
-
const ret = new Object();
|
|
1232
|
-
return ret;
|
|
1233
|
-
};
|
|
1234
|
-
|
|
1235
|
-
exports.__wbg_new_25f239778d6112b9 = function() {
|
|
1236
|
-
const ret = new Array();
|
|
1237
|
-
return ret;
|
|
1238
|
-
};
|
|
1239
|
-
|
|
1240
|
-
exports.__wbg_new_3c79b3bb1b32b7d3 = function() { return handleError(function () {
|
|
1241
|
-
const ret = new Headers();
|
|
1242
|
-
return ret;
|
|
1243
|
-
}, arguments) };
|
|
1244
|
-
|
|
1245
|
-
exports.__wbg_new_6421f6084cc5bc5a = function(arg0) {
|
|
1246
|
-
const ret = new Uint8Array(arg0);
|
|
1247
|
-
return ret;
|
|
1248
|
-
};
|
|
1249
|
-
|
|
1250
|
-
exports.__wbg_new_881a222c65f168fc = function() { return handleError(function () {
|
|
1251
|
-
const ret = new AbortController();
|
|
1252
|
-
return ret;
|
|
1253
|
-
}, arguments) };
|
|
1254
|
-
|
|
1255
|
-
exports.__wbg_new_b2db8aa2650f793a = function(arg0) {
|
|
1256
|
-
const ret = new Date(arg0);
|
|
1257
|
-
return ret;
|
|
1258
|
-
};
|
|
1259
|
-
|
|
1260
|
-
exports.__wbg_new_b546ae120718850e = function() {
|
|
1261
|
-
const ret = new Map();
|
|
619
|
+
/**
|
|
620
|
+
* Create a new instance of the Cedarling application from archive bytes.
|
|
621
|
+
*
|
|
622
|
+
* This function allows loading a policy store from a Cedar Archive (.cjar)
|
|
623
|
+
* that was fetched with custom logic (e.g., with authentication headers).
|
|
624
|
+
*
|
|
625
|
+
* # Arguments
|
|
626
|
+
* * `config` - Bootstrap configuration (Map or Object). Policy store config is ignored.
|
|
627
|
+
* * `archive_bytes` - The .cjar archive bytes (Uint8Array)
|
|
628
|
+
*
|
|
629
|
+
* # Example
|
|
630
|
+
* ```javascript
|
|
631
|
+
* const response = await fetch(url, { headers: { Authorization: 'Bearer ...' } });
|
|
632
|
+
* const bytes = new Uint8Array(await response.arrayBuffer());
|
|
633
|
+
* const cedarling = await init_from_archive_bytes(config, bytes);
|
|
634
|
+
* ```
|
|
635
|
+
* @param {any} config
|
|
636
|
+
* @param {Uint8Array} archive_bytes
|
|
637
|
+
* @returns {Promise<Cedarling>}
|
|
638
|
+
*/
|
|
639
|
+
function init_from_archive_bytes(config, archive_bytes) {
|
|
640
|
+
const ret = wasm.init_from_archive_bytes(config, archive_bytes);
|
|
1262
641
|
return ret;
|
|
1263
|
-
}
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
642
|
+
}
|
|
643
|
+
exports.init_from_archive_bytes = init_from_archive_bytes;
|
|
644
|
+
|
|
645
|
+
function __wbg_get_imports() {
|
|
646
|
+
const import0 = {
|
|
647
|
+
__proto__: null,
|
|
648
|
+
__wbg_Error_8c4e43fe74559d73: function(arg0, arg1) {
|
|
649
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
650
|
+
return ret;
|
|
651
|
+
},
|
|
652
|
+
__wbg_Number_04624de7d0e8332d: function(arg0) {
|
|
653
|
+
const ret = Number(arg0);
|
|
654
|
+
return ret;
|
|
655
|
+
},
|
|
656
|
+
__wbg_String_8f0eb39a4a4c2f66: function(arg0, arg1) {
|
|
657
|
+
const ret = String(arg1);
|
|
658
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
659
|
+
const len1 = WASM_VECTOR_LEN;
|
|
660
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
661
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
662
|
+
},
|
|
663
|
+
__wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2: function(arg0, arg1) {
|
|
664
|
+
const v = arg1;
|
|
665
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
666
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
667
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
668
|
+
},
|
|
669
|
+
__wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25: function(arg0) {
|
|
670
|
+
const v = arg0;
|
|
671
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
672
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
673
|
+
},
|
|
674
|
+
__wbg___wbindgen_debug_string_0bc8482c6e3508ae: function(arg0, arg1) {
|
|
675
|
+
const ret = debugString(arg1);
|
|
676
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
677
|
+
const len1 = WASM_VECTOR_LEN;
|
|
678
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
679
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
680
|
+
},
|
|
681
|
+
__wbg___wbindgen_in_47fa6863be6f2f25: function(arg0, arg1) {
|
|
682
|
+
const ret = arg0 in arg1;
|
|
683
|
+
return ret;
|
|
684
|
+
},
|
|
685
|
+
__wbg___wbindgen_is_bigint_31b12575b56f32fc: function(arg0) {
|
|
686
|
+
const ret = typeof(arg0) === 'bigint';
|
|
687
|
+
return ret;
|
|
688
|
+
},
|
|
689
|
+
__wbg___wbindgen_is_function_0095a73b8b156f76: function(arg0) {
|
|
690
|
+
const ret = typeof(arg0) === 'function';
|
|
691
|
+
return ret;
|
|
692
|
+
},
|
|
693
|
+
__wbg___wbindgen_is_object_5ae8e5880f2c1fbd: function(arg0) {
|
|
694
|
+
const val = arg0;
|
|
695
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
696
|
+
return ret;
|
|
697
|
+
},
|
|
698
|
+
__wbg___wbindgen_is_string_cd444516edc5b180: function(arg0) {
|
|
699
|
+
const ret = typeof(arg0) === 'string';
|
|
700
|
+
return ret;
|
|
701
|
+
},
|
|
702
|
+
__wbg___wbindgen_is_undefined_9e4d92534c42d778: function(arg0) {
|
|
703
|
+
const ret = arg0 === undefined;
|
|
704
|
+
return ret;
|
|
705
|
+
},
|
|
706
|
+
__wbg___wbindgen_jsval_eq_11888390b0186270: function(arg0, arg1) {
|
|
707
|
+
const ret = arg0 === arg1;
|
|
708
|
+
return ret;
|
|
709
|
+
},
|
|
710
|
+
__wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811: function(arg0, arg1) {
|
|
711
|
+
const ret = arg0 == arg1;
|
|
712
|
+
return ret;
|
|
713
|
+
},
|
|
714
|
+
__wbg___wbindgen_number_get_8ff4255516ccad3e: function(arg0, arg1) {
|
|
715
|
+
const obj = arg1;
|
|
716
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
717
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
718
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
719
|
+
},
|
|
720
|
+
__wbg___wbindgen_string_get_72fb696202c56729: function(arg0, arg1) {
|
|
721
|
+
const obj = arg1;
|
|
722
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
723
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
724
|
+
var len1 = WASM_VECTOR_LEN;
|
|
725
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
726
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
727
|
+
},
|
|
728
|
+
__wbg___wbindgen_throw_be289d5034ed271b: function(arg0, arg1) {
|
|
729
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
730
|
+
},
|
|
731
|
+
__wbg__wbg_cb_unref_d9b87ff7982e3b21: function(arg0) {
|
|
732
|
+
arg0._wbg_cb_unref();
|
|
733
|
+
},
|
|
734
|
+
__wbg_abort_2f0584e03e8e3950: function(arg0) {
|
|
735
|
+
arg0.abort();
|
|
736
|
+
},
|
|
737
|
+
__wbg_abort_d549b92d3c665de1: function(arg0, arg1) {
|
|
738
|
+
arg0.abort(arg1);
|
|
739
|
+
},
|
|
740
|
+
__wbg_append_a992ccc37aa62dc4: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
741
|
+
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
742
|
+
}, arguments); },
|
|
743
|
+
__wbg_arrayBuffer_bb54076166006c39: function() { return handleError(function (arg0) {
|
|
744
|
+
const ret = arg0.arrayBuffer();
|
|
745
|
+
return ret;
|
|
746
|
+
}, arguments); },
|
|
747
|
+
__wbg_authorizeresult_new: function(arg0) {
|
|
748
|
+
const ret = AuthorizeResult.__wrap(arg0);
|
|
749
|
+
return ret;
|
|
750
|
+
},
|
|
751
|
+
__wbg_call_389efe28435a9388: function() { return handleError(function (arg0, arg1) {
|
|
752
|
+
const ret = arg0.call(arg1);
|
|
753
|
+
return ret;
|
|
754
|
+
}, arguments); },
|
|
755
|
+
__wbg_call_4708e0c13bdc8e95: function() { return handleError(function (arg0, arg1, arg2) {
|
|
756
|
+
const ret = arg0.call(arg1, arg2);
|
|
757
|
+
return ret;
|
|
758
|
+
}, arguments); },
|
|
759
|
+
__wbg_cedarling_new: function(arg0) {
|
|
760
|
+
const ret = Cedarling.__wrap(arg0);
|
|
761
|
+
return ret;
|
|
762
|
+
},
|
|
763
|
+
__wbg_clearTimeout_42d9ccd50822fd3a: function(arg0) {
|
|
764
|
+
const ret = clearTimeout(arg0);
|
|
765
|
+
return ret;
|
|
766
|
+
},
|
|
767
|
+
__wbg_crypto_86f2631e91b51511: function(arg0) {
|
|
768
|
+
const ret = arg0.crypto;
|
|
769
|
+
return ret;
|
|
770
|
+
},
|
|
771
|
+
__wbg_debug_8b4b5465cbd54cd3: function(arg0) {
|
|
772
|
+
console.debug(...arg0);
|
|
773
|
+
},
|
|
774
|
+
__wbg_done_57b39ecd9addfe81: function(arg0) {
|
|
775
|
+
const ret = arg0.done;
|
|
776
|
+
return ret;
|
|
777
|
+
},
|
|
778
|
+
__wbg_entries_200a450561fa274f: function(arg0) {
|
|
779
|
+
const ret = arg0.entries();
|
|
780
|
+
return ret;
|
|
781
|
+
},
|
|
782
|
+
__wbg_entries_58c7934c745daac7: function(arg0) {
|
|
783
|
+
const ret = Object.entries(arg0);
|
|
784
|
+
return ret;
|
|
785
|
+
},
|
|
786
|
+
__wbg_error_62201eec3c0d66f9: function(arg0) {
|
|
787
|
+
console.error(...arg0);
|
|
788
|
+
},
|
|
789
|
+
__wbg_fetch_6bbc32f991730587: function(arg0) {
|
|
790
|
+
const ret = fetch(arg0);
|
|
791
|
+
return ret;
|
|
792
|
+
},
|
|
793
|
+
__wbg_fetch_afb6a4b6cacf876d: function(arg0, arg1) {
|
|
794
|
+
const ret = arg0.fetch(arg1);
|
|
795
|
+
return ret;
|
|
796
|
+
},
|
|
797
|
+
__wbg_fromEntries_7fb5bc874dbe50d5: function() { return handleError(function (arg0) {
|
|
798
|
+
const ret = Object.fromEntries(arg0);
|
|
799
|
+
return ret;
|
|
800
|
+
}, arguments); },
|
|
801
|
+
__wbg_getRandomValues_1c61fac11405ffdc: function() { return handleError(function (arg0, arg1) {
|
|
802
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
803
|
+
}, arguments); },
|
|
804
|
+
__wbg_getRandomValues_b3f15fcbfabb0f8b: function() { return handleError(function (arg0, arg1) {
|
|
805
|
+
arg0.getRandomValues(arg1);
|
|
806
|
+
}, arguments); },
|
|
807
|
+
__wbg_getTime_1e3cd1391c5c3995: function(arg0) {
|
|
808
|
+
const ret = arg0.getTime();
|
|
809
|
+
return ret;
|
|
810
|
+
},
|
|
811
|
+
__wbg_getTimezoneOffset_81776d10a4ec18a8: function(arg0) {
|
|
812
|
+
const ret = arg0.getTimezoneOffset();
|
|
813
|
+
return ret;
|
|
814
|
+
},
|
|
815
|
+
__wbg_get_9b94d73e6221f75c: function(arg0, arg1) {
|
|
816
|
+
const ret = arg0[arg1 >>> 0];
|
|
817
|
+
return ret;
|
|
818
|
+
},
|
|
819
|
+
__wbg_get_b3ed3ad4be2bc8ac: function() { return handleError(function (arg0, arg1) {
|
|
820
|
+
const ret = Reflect.get(arg0, arg1);
|
|
821
|
+
return ret;
|
|
822
|
+
}, arguments); },
|
|
823
|
+
__wbg_get_with_ref_key_1dc361bd10053bfe: function(arg0, arg1) {
|
|
824
|
+
const ret = arg0[arg1];
|
|
825
|
+
return ret;
|
|
826
|
+
},
|
|
827
|
+
__wbg_has_d4e53238966c12b6: function() { return handleError(function (arg0, arg1) {
|
|
828
|
+
const ret = Reflect.has(arg0, arg1);
|
|
829
|
+
return ret;
|
|
830
|
+
}, arguments); },
|
|
831
|
+
__wbg_headers_59a2938db9f80985: function(arg0) {
|
|
832
|
+
const ret = arg0.headers;
|
|
833
|
+
return ret;
|
|
834
|
+
},
|
|
835
|
+
__wbg_info_eb43cb09e10f8150: function(arg0) {
|
|
836
|
+
console.info(...arg0);
|
|
837
|
+
},
|
|
838
|
+
__wbg_instanceof_ArrayBuffer_c367199e2fa2aa04: function(arg0) {
|
|
839
|
+
let result;
|
|
1271
840
|
try {
|
|
1272
|
-
|
|
1273
|
-
}
|
|
1274
|
-
|
|
841
|
+
result = arg0 instanceof ArrayBuffer;
|
|
842
|
+
} catch (_) {
|
|
843
|
+
result = false;
|
|
1275
844
|
}
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
}
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
};
|
|
845
|
+
const ret = result;
|
|
846
|
+
return ret;
|
|
847
|
+
},
|
|
848
|
+
__wbg_instanceof_Array_d9eac779cd191cbc: function(arg0) {
|
|
849
|
+
let result;
|
|
850
|
+
try {
|
|
851
|
+
result = arg0 instanceof Array;
|
|
852
|
+
} catch (_) {
|
|
853
|
+
result = false;
|
|
854
|
+
}
|
|
855
|
+
const ret = result;
|
|
856
|
+
return ret;
|
|
857
|
+
},
|
|
858
|
+
__wbg_instanceof_Map_53af74335dec57f4: function(arg0) {
|
|
859
|
+
let result;
|
|
860
|
+
try {
|
|
861
|
+
result = arg0 instanceof Map;
|
|
862
|
+
} catch (_) {
|
|
863
|
+
result = false;
|
|
864
|
+
}
|
|
865
|
+
const ret = result;
|
|
866
|
+
return ret;
|
|
867
|
+
},
|
|
868
|
+
__wbg_instanceof_Response_ee1d54d79ae41977: function(arg0) {
|
|
869
|
+
let result;
|
|
870
|
+
try {
|
|
871
|
+
result = arg0 instanceof Response;
|
|
872
|
+
} catch (_) {
|
|
873
|
+
result = false;
|
|
874
|
+
}
|
|
875
|
+
const ret = result;
|
|
876
|
+
return ret;
|
|
877
|
+
},
|
|
878
|
+
__wbg_instanceof_Uint8Array_9b9075935c74707c: function(arg0) {
|
|
879
|
+
let result;
|
|
880
|
+
try {
|
|
881
|
+
result = arg0 instanceof Uint8Array;
|
|
882
|
+
} catch (_) {
|
|
883
|
+
result = false;
|
|
884
|
+
}
|
|
885
|
+
const ret = result;
|
|
886
|
+
return ret;
|
|
887
|
+
},
|
|
888
|
+
__wbg_isArray_d314bb98fcf08331: function(arg0) {
|
|
889
|
+
const ret = Array.isArray(arg0);
|
|
890
|
+
return ret;
|
|
891
|
+
},
|
|
892
|
+
__wbg_isSafeInteger_bfbc7332a9768d2a: function(arg0) {
|
|
893
|
+
const ret = Number.isSafeInteger(arg0);
|
|
894
|
+
return ret;
|
|
895
|
+
},
|
|
896
|
+
__wbg_iterator_6ff6560ca1568e55: function() {
|
|
897
|
+
const ret = Symbol.iterator;
|
|
898
|
+
return ret;
|
|
899
|
+
},
|
|
900
|
+
__wbg_keys_b50a709a76add04e: function(arg0) {
|
|
901
|
+
const ret = Object.keys(arg0);
|
|
902
|
+
return ret;
|
|
903
|
+
},
|
|
904
|
+
__wbg_length_32ed9a279acd054c: function(arg0) {
|
|
905
|
+
const ret = arg0.length;
|
|
906
|
+
return ret;
|
|
907
|
+
},
|
|
908
|
+
__wbg_length_35a7bace40f36eac: function(arg0) {
|
|
909
|
+
const ret = arg0.length;
|
|
910
|
+
return ret;
|
|
911
|
+
},
|
|
912
|
+
__wbg_log_aa96eafb763b3303: function(arg0) {
|
|
913
|
+
console.log(...arg0);
|
|
914
|
+
},
|
|
915
|
+
__wbg_msCrypto_d562bbe83e0d4b91: function(arg0) {
|
|
916
|
+
const ret = arg0.msCrypto;
|
|
917
|
+
return ret;
|
|
918
|
+
},
|
|
919
|
+
__wbg_multiissuerauthorizeresult_new: function(arg0) {
|
|
920
|
+
const ret = MultiIssuerAuthorizeResult.__wrap(arg0);
|
|
921
|
+
return ret;
|
|
922
|
+
},
|
|
923
|
+
__wbg_new_0_73afc35eb544e539: function() {
|
|
924
|
+
const ret = new Date();
|
|
925
|
+
return ret;
|
|
926
|
+
},
|
|
927
|
+
__wbg_new_245cd5c49157e602: function(arg0) {
|
|
928
|
+
const ret = new Date(arg0);
|
|
929
|
+
return ret;
|
|
930
|
+
},
|
|
931
|
+
__wbg_new_361308b2356cecd0: function() {
|
|
932
|
+
const ret = new Object();
|
|
933
|
+
return ret;
|
|
934
|
+
},
|
|
935
|
+
__wbg_new_3eb36ae241fe6f44: function() {
|
|
936
|
+
const ret = new Array();
|
|
937
|
+
return ret;
|
|
938
|
+
},
|
|
939
|
+
__wbg_new_64284bd487f9d239: function() { return handleError(function () {
|
|
940
|
+
const ret = new Headers();
|
|
941
|
+
return ret;
|
|
942
|
+
}, arguments); },
|
|
943
|
+
__wbg_new_b5d9e2fb389fef91: function(arg0, arg1) {
|
|
944
|
+
try {
|
|
945
|
+
var state0 = {a: arg0, b: arg1};
|
|
946
|
+
var cb0 = (arg0, arg1) => {
|
|
947
|
+
const a = state0.a;
|
|
948
|
+
state0.a = 0;
|
|
949
|
+
try {
|
|
950
|
+
return wasm_bindgen__convert__closures_____invoke__h0faf1ddcbd616c7a(a, state0.b, arg0, arg1);
|
|
951
|
+
} finally {
|
|
952
|
+
state0.a = a;
|
|
953
|
+
}
|
|
954
|
+
};
|
|
955
|
+
const ret = new Promise(cb0);
|
|
956
|
+
return ret;
|
|
957
|
+
} finally {
|
|
958
|
+
state0.a = state0.b = 0;
|
|
959
|
+
}
|
|
960
|
+
},
|
|
961
|
+
__wbg_new_b949e7f56150a5d1: function() { return handleError(function () {
|
|
962
|
+
const ret = new AbortController();
|
|
963
|
+
return ret;
|
|
964
|
+
}, arguments); },
|
|
965
|
+
__wbg_new_dca287b076112a51: function() {
|
|
966
|
+
const ret = new Map();
|
|
967
|
+
return ret;
|
|
968
|
+
},
|
|
969
|
+
__wbg_new_dd2b680c8bf6ae29: function(arg0) {
|
|
970
|
+
const ret = new Uint8Array(arg0);
|
|
971
|
+
return ret;
|
|
972
|
+
},
|
|
973
|
+
__wbg_new_from_slice_a3d2629dc1826784: function(arg0, arg1) {
|
|
974
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
975
|
+
return ret;
|
|
976
|
+
},
|
|
977
|
+
__wbg_new_no_args_1c7c842f08d00ebb: function(arg0, arg1) {
|
|
978
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
979
|
+
return ret;
|
|
980
|
+
},
|
|
981
|
+
__wbg_new_with_args_7bba34e94b1cfa40: function(arg0, arg1, arg2, arg3) {
|
|
982
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
983
|
+
return ret;
|
|
984
|
+
},
|
|
985
|
+
__wbg_new_with_length_a2c39cbe88fd8ff1: function(arg0) {
|
|
986
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
987
|
+
return ret;
|
|
988
|
+
},
|
|
989
|
+
__wbg_new_with_str_and_init_a61cbc6bdef21614: function() { return handleError(function (arg0, arg1, arg2) {
|
|
990
|
+
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
991
|
+
return ret;
|
|
992
|
+
}, arguments); },
|
|
993
|
+
__wbg_next_3482f54c49e8af19: function() { return handleError(function (arg0) {
|
|
994
|
+
const ret = arg0.next();
|
|
995
|
+
return ret;
|
|
996
|
+
}, arguments); },
|
|
997
|
+
__wbg_next_418f80d8f5303233: function(arg0) {
|
|
998
|
+
const ret = arg0.next;
|
|
999
|
+
return ret;
|
|
1000
|
+
},
|
|
1001
|
+
__wbg_node_e1f24f89a7336c2e: function(arg0) {
|
|
1002
|
+
const ret = arg0.node;
|
|
1003
|
+
return ret;
|
|
1004
|
+
},
|
|
1005
|
+
__wbg_policyevaluationerror_new: function(arg0) {
|
|
1006
|
+
const ret = PolicyEvaluationError.__wrap(arg0);
|
|
1007
|
+
return ret;
|
|
1008
|
+
},
|
|
1009
|
+
__wbg_process_3975fd6c72f520aa: function(arg0) {
|
|
1010
|
+
const ret = arg0.process;
|
|
1011
|
+
return ret;
|
|
1012
|
+
},
|
|
1013
|
+
__wbg_prototypesetcall_bdcdcc5842e4d77d: function(arg0, arg1, arg2) {
|
|
1014
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1015
|
+
},
|
|
1016
|
+
__wbg_push_8ffdcb2063340ba5: function(arg0, arg1) {
|
|
1017
|
+
const ret = arg0.push(arg1);
|
|
1018
|
+
return ret;
|
|
1019
|
+
},
|
|
1020
|
+
__wbg_queueMicrotask_0aa0a927f78f5d98: function(arg0) {
|
|
1021
|
+
const ret = arg0.queueMicrotask;
|
|
1022
|
+
return ret;
|
|
1023
|
+
},
|
|
1024
|
+
__wbg_queueMicrotask_5bb536982f78a56f: function(arg0) {
|
|
1025
|
+
queueMicrotask(arg0);
|
|
1026
|
+
},
|
|
1027
|
+
__wbg_randomFillSync_f8c153b79f285817: function() { return handleError(function (arg0, arg1) {
|
|
1028
|
+
arg0.randomFillSync(arg1);
|
|
1029
|
+
}, arguments); },
|
|
1030
|
+
__wbg_require_b74f47fc2d022fd6: function() { return handleError(function () {
|
|
1031
|
+
const ret = module.require;
|
|
1032
|
+
return ret;
|
|
1033
|
+
}, arguments); },
|
|
1034
|
+
__wbg_resolve_002c4b7d9d8f6b64: function(arg0) {
|
|
1035
|
+
const ret = Promise.resolve(arg0);
|
|
1036
|
+
return ret;
|
|
1037
|
+
},
|
|
1038
|
+
__wbg_setTimeout_4ec014681668a581: function(arg0, arg1) {
|
|
1039
|
+
const ret = setTimeout(arg0, arg1);
|
|
1040
|
+
return ret;
|
|
1041
|
+
},
|
|
1042
|
+
__wbg_set_1eb0999cf5d27fc8: function(arg0, arg1, arg2) {
|
|
1043
|
+
const ret = arg0.set(arg1, arg2);
|
|
1044
|
+
return ret;
|
|
1045
|
+
},
|
|
1046
|
+
__wbg_set_3f1d0b984ed272ed: function(arg0, arg1, arg2) {
|
|
1047
|
+
arg0[arg1] = arg2;
|
|
1048
|
+
},
|
|
1049
|
+
__wbg_set_6cb8631f80447a67: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1050
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1051
|
+
return ret;
|
|
1052
|
+
}, arguments); },
|
|
1053
|
+
__wbg_set_body_9a7e00afe3cfe244: function(arg0, arg1) {
|
|
1054
|
+
arg0.body = arg1;
|
|
1055
|
+
},
|
|
1056
|
+
__wbg_set_cache_315a3ed773a41543: function(arg0, arg1) {
|
|
1057
|
+
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
1058
|
+
},
|
|
1059
|
+
__wbg_set_credentials_c4a58d2e05ef24fb: function(arg0, arg1) {
|
|
1060
|
+
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1061
|
+
},
|
|
1062
|
+
__wbg_set_f43e577aea94465b: function(arg0, arg1, arg2) {
|
|
1063
|
+
arg0[arg1 >>> 0] = arg2;
|
|
1064
|
+
},
|
|
1065
|
+
__wbg_set_headers_cfc5f4b2c1f20549: function(arg0, arg1) {
|
|
1066
|
+
arg0.headers = arg1;
|
|
1067
|
+
},
|
|
1068
|
+
__wbg_set_method_c3e20375f5ae7fac: function(arg0, arg1, arg2) {
|
|
1069
|
+
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
1070
|
+
},
|
|
1071
|
+
__wbg_set_mode_b13642c312648202: function(arg0, arg1) {
|
|
1072
|
+
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
1073
|
+
},
|
|
1074
|
+
__wbg_set_signal_f2d3f8599248896d: function(arg0, arg1) {
|
|
1075
|
+
arg0.signal = arg1;
|
|
1076
|
+
},
|
|
1077
|
+
__wbg_signal_d1285ecab4ebc5ad: function(arg0) {
|
|
1078
|
+
const ret = arg0.signal;
|
|
1079
|
+
return ret;
|
|
1080
|
+
},
|
|
1081
|
+
__wbg_static_accessor_GLOBAL_12837167ad935116: function() {
|
|
1082
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
1083
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1084
|
+
},
|
|
1085
|
+
__wbg_static_accessor_GLOBAL_THIS_e628e89ab3b1c95f: function() {
|
|
1086
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1087
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1088
|
+
},
|
|
1089
|
+
__wbg_static_accessor_SELF_a621d3dfbb60d0ce: function() {
|
|
1090
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
1091
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1092
|
+
},
|
|
1093
|
+
__wbg_static_accessor_WINDOW_f8727f0cf888e0bd: function() {
|
|
1094
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
1095
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1096
|
+
},
|
|
1097
|
+
__wbg_status_89d7e803db911ee7: function(arg0) {
|
|
1098
|
+
const ret = arg0.status;
|
|
1099
|
+
return ret;
|
|
1100
|
+
},
|
|
1101
|
+
__wbg_stringify_8d1cc6ff383e8bae: function() { return handleError(function (arg0) {
|
|
1102
|
+
const ret = JSON.stringify(arg0);
|
|
1103
|
+
return ret;
|
|
1104
|
+
}, arguments); },
|
|
1105
|
+
__wbg_subarray_a96e1fef17ed23cb: function(arg0, arg1, arg2) {
|
|
1106
|
+
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1107
|
+
return ret;
|
|
1108
|
+
},
|
|
1109
|
+
__wbg_text_083b8727c990c8c0: function() { return handleError(function (arg0) {
|
|
1110
|
+
const ret = arg0.text();
|
|
1111
|
+
return ret;
|
|
1112
|
+
}, arguments); },
|
|
1113
|
+
__wbg_then_0d9fe2c7b1857d32: function(arg0, arg1, arg2) {
|
|
1114
|
+
const ret = arg0.then(arg1, arg2);
|
|
1115
|
+
return ret;
|
|
1116
|
+
},
|
|
1117
|
+
__wbg_then_b9e7b3b5f1a9e1b5: function(arg0, arg1) {
|
|
1118
|
+
const ret = arg0.then(arg1);
|
|
1119
|
+
return ret;
|
|
1120
|
+
},
|
|
1121
|
+
__wbg_trace_21a493b80d415f00: function(arg0) {
|
|
1122
|
+
console.trace(...arg0);
|
|
1123
|
+
},
|
|
1124
|
+
__wbg_url_c484c26b1fbf5126: function(arg0, arg1) {
|
|
1125
|
+
const ret = arg1.url;
|
|
1126
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1127
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1128
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1129
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1130
|
+
},
|
|
1131
|
+
__wbg_value_0546255b415e96c1: function(arg0) {
|
|
1132
|
+
const ret = arg0.value;
|
|
1133
|
+
return ret;
|
|
1134
|
+
},
|
|
1135
|
+
__wbg_versions_4e31226f5e8dc909: function(arg0) {
|
|
1136
|
+
const ret = arg0.versions;
|
|
1137
|
+
return ret;
|
|
1138
|
+
},
|
|
1139
|
+
__wbg_warn_f3657073f42e55b4: function(arg0) {
|
|
1140
|
+
console.warn(...arg0);
|
|
1141
|
+
},
|
|
1142
|
+
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1143
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 553, function: Function { arguments: [], shim_idx: 554, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1144
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h093a13d1206f793f, wasm_bindgen__convert__closures_____invoke__h07e5bc5e1bd52c7a);
|
|
1145
|
+
return ret;
|
|
1146
|
+
},
|
|
1147
|
+
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1148
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 597, function: Function { arguments: [Externref], shim_idx: 598, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1149
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h203c69ac48ff2433, wasm_bindgen__convert__closures_____invoke__h409efd46af9acece);
|
|
1150
|
+
return ret;
|
|
1151
|
+
},
|
|
1152
|
+
__wbindgen_cast_0000000000000003: function(arg0) {
|
|
1153
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
1154
|
+
const ret = arg0;
|
|
1155
|
+
return ret;
|
|
1156
|
+
},
|
|
1157
|
+
__wbindgen_cast_0000000000000004: function(arg0) {
|
|
1158
|
+
// Cast intrinsic for `I64 -> Externref`.
|
|
1159
|
+
const ret = arg0;
|
|
1160
|
+
return ret;
|
|
1161
|
+
},
|
|
1162
|
+
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
1163
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1164
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
1165
|
+
return ret;
|
|
1166
|
+
},
|
|
1167
|
+
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
1168
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1169
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1170
|
+
return ret;
|
|
1171
|
+
},
|
|
1172
|
+
__wbindgen_cast_0000000000000007: function(arg0) {
|
|
1173
|
+
// Cast intrinsic for `U64 -> Externref`.
|
|
1174
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
1175
|
+
return ret;
|
|
1176
|
+
},
|
|
1177
|
+
__wbindgen_init_externref_table: function() {
|
|
1178
|
+
const table = wasm.__wbindgen_externrefs;
|
|
1179
|
+
const offset = table.grow(4);
|
|
1180
|
+
table.set(0, undefined);
|
|
1181
|
+
table.set(offset + 0, undefined);
|
|
1182
|
+
table.set(offset + 1, null);
|
|
1183
|
+
table.set(offset + 2, true);
|
|
1184
|
+
table.set(offset + 3, false);
|
|
1185
|
+
},
|
|
1186
|
+
};
|
|
1187
|
+
return {
|
|
1188
|
+
__proto__: null,
|
|
1189
|
+
"./cedarling_wasm_bg.js": import0,
|
|
1190
|
+
};
|
|
1191
|
+
}
|
|
1374
1192
|
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
}, arguments) };
|
|
1193
|
+
function wasm_bindgen__convert__closures_____invoke__h07e5bc5e1bd52c7a(arg0, arg1) {
|
|
1194
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h07e5bc5e1bd52c7a(arg0, arg1);
|
|
1195
|
+
}
|
|
1379
1196
|
|
|
1380
|
-
|
|
1381
|
-
arg0
|
|
1382
|
-
}
|
|
1197
|
+
function wasm_bindgen__convert__closures_____invoke__h409efd46af9acece(arg0, arg1, arg2) {
|
|
1198
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h409efd46af9acece(arg0, arg1, arg2);
|
|
1199
|
+
}
|
|
1383
1200
|
|
|
1384
|
-
|
|
1385
|
-
arg0
|
|
1386
|
-
}
|
|
1201
|
+
function wasm_bindgen__convert__closures_____invoke__h0faf1ddcbd616c7a(arg0, arg1, arg2, arg3) {
|
|
1202
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h0faf1ddcbd616c7a(arg0, arg1, arg2, arg3);
|
|
1203
|
+
}
|
|
1387
1204
|
|
|
1388
|
-
exports.__wbg_set_cache_0e437c7c8e838b9b = function(arg0, arg1) {
|
|
1389
|
-
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
1390
|
-
};
|
|
1391
1205
|
|
|
1392
|
-
|
|
1393
|
-
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1394
|
-
};
|
|
1206
|
+
const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
|
|
1395
1207
|
|
|
1396
|
-
exports.__wbg_set_efaaf145b9377369 = function(arg0, arg1, arg2) {
|
|
1397
|
-
const ret = arg0.set(arg1, arg2);
|
|
1398
|
-
return ret;
|
|
1399
|
-
};
|
|
1400
1208
|
|
|
1401
|
-
|
|
1402
|
-
arg0.headers = arg1;
|
|
1403
|
-
};
|
|
1209
|
+
const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
1404
1210
|
|
|
1405
|
-
exports.__wbg_set_method_76c69e41b3570627 = function(arg0, arg1, arg2) {
|
|
1406
|
-
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
1407
|
-
};
|
|
1408
1211
|
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
}
|
|
1212
|
+
const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
|
|
1213
|
+
const AuthorizeResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1214
|
+
? { register: () => {}, unregister: () => {} }
|
|
1215
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_authorizeresult_free(ptr >>> 0, 1));
|
|
1216
|
+
const AuthorizeResultResponseFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1217
|
+
? { register: () => {}, unregister: () => {} }
|
|
1218
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_authorizeresultresponse_free(ptr >>> 0, 1));
|
|
1219
|
+
const CedarlingFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1220
|
+
? { register: () => {}, unregister: () => {} }
|
|
1221
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_cedarling_free(ptr >>> 0, 1));
|
|
1222
|
+
const DiagnosticsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1223
|
+
? { register: () => {}, unregister: () => {} }
|
|
1224
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_diagnostics_free(ptr >>> 0, 1));
|
|
1225
|
+
const JsJsonLogicFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1226
|
+
? { register: () => {}, unregister: () => {} }
|
|
1227
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_jsjsonlogic_free(ptr >>> 0, 1));
|
|
1228
|
+
const MultiIssuerAuthorizeResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1229
|
+
? { register: () => {}, unregister: () => {} }
|
|
1230
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_multiissuerauthorizeresult_free(ptr >>> 0, 1));
|
|
1231
|
+
const PolicyEvaluationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1232
|
+
? { register: () => {}, unregister: () => {} }
|
|
1233
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_policyevaluationerror_free(ptr >>> 0, 1));
|
|
1412
1234
|
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1235
|
+
function addToExternrefTable0(obj) {
|
|
1236
|
+
const idx = wasm.__externref_table_alloc();
|
|
1237
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
1238
|
+
return idx;
|
|
1239
|
+
}
|
|
1416
1240
|
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
}
|
|
1241
|
+
function _assertClass(instance, klass) {
|
|
1242
|
+
if (!(instance instanceof klass)) {
|
|
1243
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1421
1246
|
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
};
|
|
1247
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
1248
|
+
? { register: () => {}, unregister: () => {} }
|
|
1249
|
+
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
1426
1250
|
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1251
|
+
function debugString(val) {
|
|
1252
|
+
// primitive types
|
|
1253
|
+
const type = typeof val;
|
|
1254
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
1255
|
+
return `${val}`;
|
|
1256
|
+
}
|
|
1257
|
+
if (type == 'string') {
|
|
1258
|
+
return `"${val}"`;
|
|
1259
|
+
}
|
|
1260
|
+
if (type == 'symbol') {
|
|
1261
|
+
const description = val.description;
|
|
1262
|
+
if (description == null) {
|
|
1263
|
+
return 'Symbol';
|
|
1264
|
+
} else {
|
|
1265
|
+
return `Symbol(${description})`;
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
if (type == 'function') {
|
|
1269
|
+
const name = val.name;
|
|
1270
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
1271
|
+
return `Function(${name})`;
|
|
1272
|
+
} else {
|
|
1273
|
+
return 'Function';
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
// objects
|
|
1277
|
+
if (Array.isArray(val)) {
|
|
1278
|
+
const length = val.length;
|
|
1279
|
+
let debug = '[';
|
|
1280
|
+
if (length > 0) {
|
|
1281
|
+
debug += debugString(val[0]);
|
|
1282
|
+
}
|
|
1283
|
+
for(let i = 1; i < length; i++) {
|
|
1284
|
+
debug += ', ' + debugString(val[i]);
|
|
1285
|
+
}
|
|
1286
|
+
debug += ']';
|
|
1287
|
+
return debug;
|
|
1288
|
+
}
|
|
1289
|
+
// Test for built-in
|
|
1290
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
1291
|
+
let className;
|
|
1292
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
1293
|
+
className = builtInMatches[1];
|
|
1294
|
+
} else {
|
|
1295
|
+
// Failed to match the standard '[object ClassName]'
|
|
1296
|
+
return toString.call(val);
|
|
1297
|
+
}
|
|
1298
|
+
if (className == 'Object') {
|
|
1299
|
+
// we're a user defined class or Object
|
|
1300
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
1301
|
+
// easier than looping through ownProperties of `val`.
|
|
1302
|
+
try {
|
|
1303
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
1304
|
+
} catch (_) {
|
|
1305
|
+
return 'Object';
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
// errors
|
|
1309
|
+
if (val instanceof Error) {
|
|
1310
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
1311
|
+
}
|
|
1312
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
1313
|
+
return className;
|
|
1314
|
+
}
|
|
1431
1315
|
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1316
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
|
1317
|
+
ptr = ptr >>> 0;
|
|
1318
|
+
const mem = getDataViewMemory0();
|
|
1319
|
+
const result = [];
|
|
1320
|
+
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
1321
|
+
result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
|
|
1322
|
+
}
|
|
1323
|
+
wasm.__externref_drop_slice(ptr, len);
|
|
1324
|
+
return result;
|
|
1325
|
+
}
|
|
1436
1326
|
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
return
|
|
1440
|
-
}
|
|
1327
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
1328
|
+
ptr = ptr >>> 0;
|
|
1329
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
1330
|
+
}
|
|
1441
1331
|
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1332
|
+
let cachedDataViewMemory0 = null;
|
|
1333
|
+
function getDataViewMemory0() {
|
|
1334
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
1335
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
1336
|
+
}
|
|
1337
|
+
return cachedDataViewMemory0;
|
|
1338
|
+
}
|
|
1446
1339
|
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
return
|
|
1450
|
-
}
|
|
1340
|
+
function getStringFromWasm0(ptr, len) {
|
|
1341
|
+
ptr = ptr >>> 0;
|
|
1342
|
+
return decodeText(ptr, len);
|
|
1343
|
+
}
|
|
1451
1344
|
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1345
|
+
let cachedUint8ArrayMemory0 = null;
|
|
1346
|
+
function getUint8ArrayMemory0() {
|
|
1347
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
1348
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
1349
|
+
}
|
|
1350
|
+
return cachedUint8ArrayMemory0;
|
|
1351
|
+
}
|
|
1456
1352
|
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
}
|
|
1353
|
+
function handleError(f, args) {
|
|
1354
|
+
try {
|
|
1355
|
+
return f.apply(this, args);
|
|
1356
|
+
} catch (e) {
|
|
1357
|
+
const idx = addToExternrefTable0(e);
|
|
1358
|
+
wasm.__wbindgen_exn_store(idx);
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1461
1361
|
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
};
|
|
1362
|
+
function isLikeNone(x) {
|
|
1363
|
+
return x === undefined || x === null;
|
|
1364
|
+
}
|
|
1466
1365
|
|
|
1467
|
-
|
|
1468
|
-
const
|
|
1469
|
-
|
|
1470
|
-
};
|
|
1366
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
1367
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
1368
|
+
const real = (...args) => {
|
|
1471
1369
|
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1370
|
+
// First up with a closure we increment the internal reference
|
|
1371
|
+
// count. This ensures that the Rust closure environment won't
|
|
1372
|
+
// be deallocated while we're invoking it.
|
|
1373
|
+
state.cnt++;
|
|
1374
|
+
const a = state.a;
|
|
1375
|
+
state.a = 0;
|
|
1376
|
+
try {
|
|
1377
|
+
return f(a, state.b, ...args);
|
|
1378
|
+
} finally {
|
|
1379
|
+
state.a = a;
|
|
1380
|
+
real._wbg_cb_unref();
|
|
1381
|
+
}
|
|
1382
|
+
};
|
|
1383
|
+
real._wbg_cb_unref = () => {
|
|
1384
|
+
if (--state.cnt === 0) {
|
|
1385
|
+
state.dtor(state.a, state.b);
|
|
1386
|
+
state.a = 0;
|
|
1387
|
+
CLOSURE_DTORS.unregister(state);
|
|
1388
|
+
}
|
|
1389
|
+
};
|
|
1390
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
1391
|
+
return real;
|
|
1392
|
+
}
|
|
1475
1393
|
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1394
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
1395
|
+
if (realloc === undefined) {
|
|
1396
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
1397
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
1398
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
1399
|
+
WASM_VECTOR_LEN = buf.length;
|
|
1400
|
+
return ptr;
|
|
1401
|
+
}
|
|
1483
1402
|
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
return ret;
|
|
1487
|
-
};
|
|
1403
|
+
let len = arg.length;
|
|
1404
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
1488
1405
|
|
|
1489
|
-
|
|
1490
|
-
const ret = arg0.versions;
|
|
1491
|
-
return ret;
|
|
1492
|
-
};
|
|
1406
|
+
const mem = getUint8ArrayMemory0();
|
|
1493
1407
|
|
|
1494
|
-
|
|
1495
|
-
console.warn(...arg0);
|
|
1496
|
-
};
|
|
1408
|
+
let offset = 0;
|
|
1497
1409
|
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
}
|
|
1410
|
+
for (; offset < len; offset++) {
|
|
1411
|
+
const code = arg.charCodeAt(offset);
|
|
1412
|
+
if (code > 0x7F) break;
|
|
1413
|
+
mem[ptr + offset] = code;
|
|
1414
|
+
}
|
|
1415
|
+
if (offset !== len) {
|
|
1416
|
+
if (offset !== 0) {
|
|
1417
|
+
arg = arg.slice(offset);
|
|
1418
|
+
}
|
|
1419
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
1420
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
1421
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
1503
1422
|
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
return ret;
|
|
1508
|
-
};
|
|
1423
|
+
offset += ret.written;
|
|
1424
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
1425
|
+
}
|
|
1509
1426
|
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
return ret;
|
|
1514
|
-
};
|
|
1427
|
+
WASM_VECTOR_LEN = offset;
|
|
1428
|
+
return ptr;
|
|
1429
|
+
}
|
|
1515
1430
|
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
return
|
|
1520
|
-
}
|
|
1431
|
+
function takeFromExternrefTable0(idx) {
|
|
1432
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
1433
|
+
wasm.__externref_table_dealloc(idx);
|
|
1434
|
+
return value;
|
|
1435
|
+
}
|
|
1521
1436
|
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
return
|
|
1526
|
-
}
|
|
1437
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
1438
|
+
cachedTextDecoder.decode();
|
|
1439
|
+
function decodeText(ptr, len) {
|
|
1440
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
1441
|
+
}
|
|
1527
1442
|
|
|
1528
|
-
|
|
1529
|
-
// Cast intrinsic for `F64 -> Externref`.
|
|
1530
|
-
const ret = arg0;
|
|
1531
|
-
return ret;
|
|
1532
|
-
};
|
|
1443
|
+
const cachedTextEncoder = new TextEncoder();
|
|
1533
1444
|
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1445
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
1446
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
1447
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
1448
|
+
view.set(buf);
|
|
1449
|
+
return {
|
|
1450
|
+
read: arg.length,
|
|
1451
|
+
written: buf.length
|
|
1452
|
+
};
|
|
1453
|
+
};
|
|
1454
|
+
}
|
|
1539
1455
|
|
|
1540
|
-
|
|
1541
|
-
const table = wasm.__wbindgen_externrefs;
|
|
1542
|
-
const offset = table.grow(4);
|
|
1543
|
-
table.set(0, undefined);
|
|
1544
|
-
table.set(offset + 0, undefined);
|
|
1545
|
-
table.set(offset + 1, null);
|
|
1546
|
-
table.set(offset + 2, true);
|
|
1547
|
-
table.set(offset + 3, false);
|
|
1548
|
-
};
|
|
1456
|
+
let WASM_VECTOR_LEN = 0;
|
|
1549
1457
|
|
|
1550
1458
|
const wasmPath = `${__dirname}/cedarling_wasm_bg.wasm`;
|
|
1551
1459
|
const wasmBytes = require('fs').readFileSync(wasmPath);
|
|
1552
1460
|
const wasmModule = new WebAssembly.Module(wasmBytes);
|
|
1553
|
-
const wasm =
|
|
1554
|
-
|
|
1461
|
+
const wasm = new WebAssembly.Instance(wasmModule, __wbg_get_imports()).exports;
|
|
1555
1462
|
wasm.__wbindgen_start();
|