@janssenproject/cedarling_wasm 0.0.229-nodejs → 0.0.230-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.
@@ -12,6 +12,7 @@ export function init(config: any): Promise<Cedarling>;
12
12
  export class AuthorizeResult {
13
13
  private constructor();
14
14
  free(): void;
15
+ [Symbol.dispose](): void;
15
16
  /**
16
17
  * Convert `AuthorizeResult` to json string value
17
18
  */
@@ -53,6 +54,7 @@ export class AuthorizeResult {
53
54
  export class AuthorizeResultResponse {
54
55
  private constructor();
55
56
  free(): void;
57
+ [Symbol.dispose](): void;
56
58
  /**
57
59
  * Authorization decision
58
60
  */
@@ -68,6 +70,7 @@ export class AuthorizeResultResponse {
68
70
  export class Cedarling {
69
71
  private constructor();
70
72
  free(): void;
73
+ [Symbol.dispose](): void;
71
74
  /**
72
75
  * Create a new instance of the Cedarling application.
73
76
  * Assume that config is `Object`
@@ -133,6 +136,7 @@ export class Cedarling {
133
136
  export class Diagnostics {
134
137
  private constructor();
135
138
  free(): void;
139
+ [Symbol.dispose](): void;
136
140
  /**
137
141
  * `PolicyId`s of the policies that contributed to the decision.
138
142
  * If no policies applied to the request, this set will be empty.
@@ -148,6 +152,7 @@ export class Diagnostics {
148
152
  }
149
153
  export class JsJsonLogic {
150
154
  free(): void;
155
+ [Symbol.dispose](): void;
151
156
  constructor();
152
157
  apply(logic: any, data: any): any;
153
158
  }
@@ -160,6 +165,7 @@ export class JsJsonLogic {
160
165
  export class PolicyEvaluationError {
161
166
  private constructor();
162
167
  free(): void;
168
+ [Symbol.dispose](): void;
163
169
  /**
164
170
  * Id of the policy with an error
165
171
  */
package/cedarling_wasm.js CHANGED
@@ -1,8 +1,6 @@
1
1
 
2
2
  let imports = {};
3
3
  imports['__wbindgen_placeholder__'] = module.exports;
4
- let wasm;
5
- const { TextDecoder, TextEncoder } = require(`util`);
6
4
 
7
5
  let cachedUint8ArrayMemory0 = null;
8
6
 
@@ -28,20 +26,18 @@ function getStringFromWasm0(ptr, len) {
28
26
 
29
27
  let WASM_VECTOR_LEN = 0;
30
28
 
31
- const cachedTextEncoder = new TextEncoder('utf-8');
29
+ const cachedTextEncoder = new TextEncoder();
32
30
 
33
- const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
34
- ? function (arg, view) {
35
- return cachedTextEncoder.encodeInto(arg, view);
31
+ if (!('encodeInto' in cachedTextEncoder)) {
32
+ cachedTextEncoder.encodeInto = function (arg, view) {
33
+ const buf = cachedTextEncoder.encode(arg);
34
+ view.set(buf);
35
+ return {
36
+ read: arg.length,
37
+ written: buf.length
38
+ };
39
+ }
36
40
  }
37
- : function (arg, view) {
38
- const buf = cachedTextEncoder.encode(arg);
39
- view.set(buf);
40
- return {
41
- read: arg.length,
42
- written: buf.length
43
- };
44
- });
45
41
 
46
42
  function passStringToWasm0(arg, malloc, realloc) {
47
43
 
@@ -72,7 +68,7 @@ function passStringToWasm0(arg, malloc, realloc) {
72
68
  }
73
69
  ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
74
70
  const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
75
- const ret = encodeString(arg, view);
71
+ const ret = cachedTextEncoder.encodeInto(arg, view);
76
72
 
77
73
  offset += ret.written;
78
74
  ptr = realloc(ptr, len, offset, 1) >>> 0;
@@ -115,37 +111,6 @@ function isLikeNone(x) {
115
111
  return x === undefined || x === null;
116
112
  }
117
113
 
118
- const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
119
- ? { register: () => {}, unregister: () => {} }
120
- : new FinalizationRegistry(state => {
121
- wasm.__wbindgen_export_5.get(state.dtor)(state.a, state.b)
122
- });
123
-
124
- function makeMutClosure(arg0, arg1, dtor, f) {
125
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
126
- const real = (...args) => {
127
- // First up with a closure we increment the internal reference
128
- // count. This ensures that the Rust closure environment won't
129
- // be deallocated while we're invoking it.
130
- state.cnt++;
131
- const a = state.a;
132
- state.a = 0;
133
- try {
134
- return f(a, state.b, ...args);
135
- } finally {
136
- if (--state.cnt === 0) {
137
- wasm.__wbindgen_export_5.get(state.dtor)(a, state.b);
138
- CLOSURE_DTORS.unregister(state);
139
- } else {
140
- state.a = a;
141
- }
142
- }
143
- };
144
- real.original = state;
145
- CLOSURE_DTORS.register(real, state, state);
146
- return real;
147
- }
148
-
149
114
  function debugString(val) {
150
115
  // primitive types
151
116
  const type = typeof val;
@@ -210,13 +175,47 @@ function debugString(val) {
210
175
  // TODO we could test for more things here, like `Set`s and `Map`s.
211
176
  return className;
212
177
  }
178
+
179
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
180
+ ? { register: () => {}, unregister: () => {} }
181
+ : new FinalizationRegistry(
182
+ state => {
183
+ wasm.__wbindgen_export_5.get(state.dtor)(state.a, state.b);
184
+ }
185
+ );
186
+
187
+ function makeMutClosure(arg0, arg1, dtor, f) {
188
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
189
+ const real = (...args) => {
190
+
191
+ // First up with a closure we increment the internal reference
192
+ // count. This ensures that the Rust closure environment won't
193
+ // be deallocated while we're invoking it.
194
+ state.cnt++;
195
+ const a = state.a;
196
+ state.a = 0;
197
+ try {
198
+ return f(a, state.b, ...args);
199
+ } finally {
200
+ if (--state.cnt === 0) {
201
+ wasm.__wbindgen_export_5.get(state.dtor)(a, state.b);
202
+ CLOSURE_DTORS.unregister(state);
203
+ } else {
204
+ state.a = a;
205
+ }
206
+ }
207
+ };
208
+ real.original = state;
209
+ CLOSURE_DTORS.register(real, state, state);
210
+ return real;
211
+ }
213
212
  /**
214
213
  * Create a new instance of the Cedarling application.
215
214
  * This function can take as config parameter the eather `Map` other `Object`
216
215
  * @param {any} config
217
216
  * @returns {Promise<Cedarling>}
218
217
  */
219
- module.exports.init = function(config) {
218
+ exports.init = function(config) {
220
219
  const ret = wasm.init(config);
221
220
  return ret;
222
221
  };
@@ -243,16 +242,16 @@ function _assertClass(instance, klass) {
243
242
  throw new Error(`expected instance of ${klass.name}`);
244
243
  }
245
244
  }
246
- function __wbg_adapter_48(arg0, arg1) {
247
- wasm.wasm_bindgen__convert__closures_____invoke__he9f048cde4473dbf(arg0, arg1);
245
+ function __wbg_adapter_12(arg0, arg1, arg2) {
246
+ wasm.closure548_externref_shim(arg0, arg1, arg2);
248
247
  }
249
248
 
250
- function __wbg_adapter_51(arg0, arg1, arg2) {
251
- wasm.closure542_externref_shim(arg0, arg1, arg2);
249
+ function __wbg_adapter_15(arg0, arg1) {
250
+ wasm.wasm_bindgen__convert__closures_____invoke__h214c7aec3b7a80e2(arg0, arg1);
252
251
  }
253
252
 
254
- function __wbg_adapter_244(arg0, arg1, arg2, arg3) {
255
- wasm.closure1817_externref_shim(arg0, arg1, arg2, arg3);
253
+ function __wbg_adapter_212(arg0, arg1, arg2, arg3) {
254
+ wasm.closure1836_externref_shim(arg0, arg1, arg2, arg3);
256
255
  }
257
256
 
258
257
  const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
@@ -404,7 +403,9 @@ class AuthorizeResult {
404
403
  return ret === 0 ? undefined : AuthorizeResultResponse.__wrap(ret);
405
404
  }
406
405
  }
407
- module.exports.AuthorizeResult = AuthorizeResult;
406
+ if (Symbol.dispose) AuthorizeResult.prototype[Symbol.dispose] = AuthorizeResult.prototype.free;
407
+
408
+ exports.AuthorizeResult = AuthorizeResult;
408
409
 
409
410
  const AuthorizeResultResponseFinalization = (typeof FinalizationRegistry === 'undefined')
410
411
  ? { register: () => {}, unregister: () => {} }
@@ -451,7 +452,9 @@ class AuthorizeResultResponse {
451
452
  return Diagnostics.__wrap(ret);
452
453
  }
453
454
  }
454
- module.exports.AuthorizeResultResponse = AuthorizeResultResponse;
455
+ if (Symbol.dispose) AuthorizeResultResponse.prototype[Symbol.dispose] = AuthorizeResultResponse.prototype.free;
456
+
457
+ exports.AuthorizeResultResponse = AuthorizeResultResponse;
455
458
 
456
459
  const CedarlingFinalization = (typeof FinalizationRegistry === 'undefined')
457
460
  ? { register: () => {}, unregister: () => {} }
@@ -620,7 +623,9 @@ class Cedarling {
620
623
  return ret;
621
624
  }
622
625
  }
623
- module.exports.Cedarling = Cedarling;
626
+ if (Symbol.dispose) Cedarling.prototype[Symbol.dispose] = Cedarling.prototype.free;
627
+
628
+ exports.Cedarling = Cedarling;
624
629
 
625
630
  const DiagnosticsFinalization = (typeof FinalizationRegistry === 'undefined')
626
631
  ? { register: () => {}, unregister: () => {} }
@@ -677,7 +682,9 @@ class Diagnostics {
677
682
  return v1;
678
683
  }
679
684
  }
680
- module.exports.Diagnostics = Diagnostics;
685
+ if (Symbol.dispose) Diagnostics.prototype[Symbol.dispose] = Diagnostics.prototype.free;
686
+
687
+ exports.Diagnostics = Diagnostics;
681
688
 
682
689
  const JsJsonLogicFinalization = (typeof FinalizationRegistry === 'undefined')
683
690
  ? { register: () => {}, unregister: () => {} }
@@ -715,7 +722,9 @@ class JsJsonLogic {
715
722
  return takeFromExternrefTable0(ret[0]);
716
723
  }
717
724
  }
718
- module.exports.JsJsonLogic = JsJsonLogic;
725
+ if (Symbol.dispose) JsJsonLogic.prototype[Symbol.dispose] = JsJsonLogic.prototype.free;
726
+
727
+ exports.JsJsonLogic = JsJsonLogic;
719
728
 
720
729
  const PolicyEvaluationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
721
730
  ? { register: () => {}, unregister: () => {} }
@@ -780,14 +789,16 @@ class PolicyEvaluationError {
780
789
  }
781
790
  }
782
791
  }
783
- module.exports.PolicyEvaluationError = PolicyEvaluationError;
792
+ if (Symbol.dispose) PolicyEvaluationError.prototype[Symbol.dispose] = PolicyEvaluationError.prototype.free;
793
+
794
+ exports.PolicyEvaluationError = PolicyEvaluationError;
784
795
 
785
- module.exports.__wbg_Error_0497d5bdba9362e5 = function(arg0, arg1) {
796
+ exports.__wbg_Error_e17e777aac105295 = function(arg0, arg1) {
786
797
  const ret = Error(getStringFromWasm0(arg0, arg1));
787
798
  return ret;
788
799
  };
789
800
 
790
- module.exports.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
801
+ exports.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
791
802
  const ret = String(arg1);
792
803
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
793
804
  const len1 = WASM_VECTOR_LEN;
@@ -795,140 +806,135 @@ module.exports.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
795
806
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
796
807
  };
797
808
 
798
- module.exports.__wbg_abort_18ba44d46e13d7fe = function(arg0) {
809
+ exports.__wbg_abort_67e1b49bf6614565 = function(arg0) {
799
810
  arg0.abort();
800
811
  };
801
812
 
802
- module.exports.__wbg_abort_4198a1129c47f21a = function(arg0, arg1) {
813
+ exports.__wbg_abort_d830bf2e9aa6ec5b = function(arg0, arg1) {
803
814
  arg0.abort(arg1);
804
815
  };
805
816
 
806
- module.exports.__wbg_append_0342728346e47425 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
817
+ exports.__wbg_append_72a3c0addd2bce38 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
807
818
  arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
808
819
  }, arguments) };
809
820
 
810
- module.exports.__wbg_arrayBuffer_d58b858456021d7f = function() { return handleError(function (arg0) {
821
+ exports.__wbg_arrayBuffer_9c99b8e2809e8cbb = function() { return handleError(function (arg0) {
811
822
  const ret = arg0.arrayBuffer();
812
823
  return ret;
813
824
  }, arguments) };
814
825
 
815
- module.exports.__wbg_authorizeresult_new = function(arg0) {
826
+ exports.__wbg_authorizeresult_new = function(arg0) {
816
827
  const ret = AuthorizeResult.__wrap(arg0);
817
828
  return ret;
818
829
  };
819
830
 
820
- module.exports.__wbg_buffer_a1a27a0dfa70165d = function(arg0) {
821
- const ret = arg0.buffer;
822
- return ret;
823
- };
824
-
825
- module.exports.__wbg_call_f2db6205e5c51dc8 = function() { return handleError(function (arg0, arg1, arg2) {
826
- const ret = arg0.call(arg1, arg2);
831
+ exports.__wbg_call_13410aac570ffff7 = function() { return handleError(function (arg0, arg1) {
832
+ const ret = arg0.call(arg1);
827
833
  return ret;
828
834
  }, arguments) };
829
835
 
830
- module.exports.__wbg_call_fbe8be8bf6436ce5 = function() { return handleError(function (arg0, arg1) {
831
- const ret = arg0.call(arg1);
836
+ exports.__wbg_call_a5400b25a865cfd8 = function() { return handleError(function (arg0, arg1, arg2) {
837
+ const ret = arg0.call(arg1, arg2);
832
838
  return ret;
833
839
  }, arguments) };
834
840
 
835
- module.exports.__wbg_cedarling_new = function(arg0) {
841
+ exports.__wbg_cedarling_new = function(arg0) {
836
842
  const ret = Cedarling.__wrap(arg0);
837
843
  return ret;
838
844
  };
839
845
 
840
- module.exports.__wbg_clearTimeout_6222fede17abcb1a = function(arg0) {
846
+ exports.__wbg_clearTimeout_6222fede17abcb1a = function(arg0) {
841
847
  const ret = clearTimeout(arg0);
842
848
  return ret;
843
849
  };
844
850
 
845
- module.exports.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
851
+ exports.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
846
852
  const ret = arg0.crypto;
847
853
  return ret;
848
854
  };
849
855
 
850
- module.exports.__wbg_debug_d6b79b0bf4da29c2 = function(arg0) {
856
+ exports.__wbg_debug_3bc8bd5a0fc361c6 = function(arg0) {
851
857
  console.debug(...arg0);
852
858
  };
853
859
 
854
- module.exports.__wbg_done_4d01f352bade43b7 = function(arg0) {
860
+ exports.__wbg_done_75ed0ee6dd243d9d = function(arg0) {
855
861
  const ret = arg0.done;
856
862
  return ret;
857
863
  };
858
864
 
859
- module.exports.__wbg_entries_41651c850143b957 = function(arg0) {
865
+ exports.__wbg_entries_2be2f15bd5554996 = function(arg0) {
860
866
  const ret = Object.entries(arg0);
861
867
  return ret;
862
868
  };
863
869
 
864
- module.exports.__wbg_entries_c951fa14164704e7 = function(arg0) {
870
+ exports.__wbg_entries_7a842f4caac72cb9 = function(arg0) {
865
871
  const ret = arg0.entries();
866
872
  return ret;
867
873
  };
868
874
 
869
- module.exports.__wbg_error_5cb390bc4013f9d1 = function(arg0) {
875
+ exports.__wbg_error_3e65ef00ce5a8b19 = function(arg0) {
870
876
  console.error(...arg0);
871
877
  };
872
878
 
873
- module.exports.__wbg_fetch_a8e43a4e138dfc93 = function(arg0, arg1) {
879
+ exports.__wbg_fetch_87aed7f306ec6d63 = function(arg0, arg1) {
874
880
  const ret = arg0.fetch(arg1);
875
881
  return ret;
876
882
  };
877
883
 
878
- module.exports.__wbg_fetch_f156d10be9a5c88a = function(arg0) {
884
+ exports.__wbg_fetch_f156d10be9a5c88a = function(arg0) {
879
885
  const ret = fetch(arg0);
880
886
  return ret;
881
887
  };
882
888
 
883
- module.exports.__wbg_fromEntries_91e19ec7b6783aeb = function() { return handleError(function (arg0) {
889
+ exports.__wbg_fromEntries_90d06c670ebbfb45 = function() { return handleError(function (arg0) {
884
890
  const ret = Object.fromEntries(arg0);
885
891
  return ret;
886
892
  }, arguments) };
887
893
 
888
- module.exports.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
894
+ exports.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
889
895
  arg0.getRandomValues(arg1);
890
896
  }, arguments) };
891
897
 
892
- module.exports.__wbg_getTime_2afe67905d873e92 = function(arg0) {
898
+ exports.__wbg_getTime_6bb3f64e0f18f817 = function(arg0) {
893
899
  const ret = arg0.getTime();
894
900
  return ret;
895
901
  };
896
902
 
897
- module.exports.__wbg_getTimezoneOffset_31f33c0868da345e = function(arg0) {
903
+ exports.__wbg_getTimezoneOffset_1e3ddc1382e7c8b0 = function(arg0) {
898
904
  const ret = arg0.getTimezoneOffset();
899
905
  return ret;
900
906
  };
901
907
 
902
- module.exports.__wbg_get_92470be87867c2e5 = function() { return handleError(function (arg0, arg1) {
903
- const ret = Reflect.get(arg0, arg1);
904
- return ret;
905
- }, arguments) };
906
-
907
- module.exports.__wbg_get_a131a44bd1eb6979 = function(arg0, arg1) {
908
+ exports.__wbg_get_0da715ceaecea5c8 = function(arg0, arg1) {
908
909
  const ret = arg0[arg1 >>> 0];
909
910
  return ret;
910
911
  };
911
912
 
912
- module.exports.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
913
+ exports.__wbg_get_458e874b43b18b25 = function() { return handleError(function (arg0, arg1) {
914
+ const ret = Reflect.get(arg0, arg1);
915
+ return ret;
916
+ }, arguments) };
917
+
918
+ exports.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
913
919
  const ret = arg0[arg1];
914
920
  return ret;
915
921
  };
916
922
 
917
- module.exports.__wbg_has_809e438ee9d787a7 = function() { return handleError(function (arg0, arg1) {
923
+ exports.__wbg_has_b89e451f638123e3 = function() { return handleError(function (arg0, arg1) {
918
924
  const ret = Reflect.has(arg0, arg1);
919
925
  return ret;
920
926
  }, arguments) };
921
927
 
922
- module.exports.__wbg_headers_0f0cbdc6290b6780 = function(arg0) {
928
+ exports.__wbg_headers_29fec3c72865cd75 = function(arg0) {
923
929
  const ret = arg0.headers;
924
930
  return ret;
925
931
  };
926
932
 
927
- module.exports.__wbg_info_6bba09377e5a3490 = function(arg0) {
933
+ exports.__wbg_info_8fdedfc14c52e0d2 = function(arg0) {
928
934
  console.info(...arg0);
929
935
  };
930
936
 
931
- module.exports.__wbg_instanceof_ArrayBuffer_a8b6f580b363f2bc = function(arg0) {
937
+ exports.__wbg_instanceof_ArrayBuffer_67f3012529f6a2dd = function(arg0) {
932
938
  let result;
933
939
  try {
934
940
  result = arg0 instanceof ArrayBuffer;
@@ -939,7 +945,7 @@ module.exports.__wbg_instanceof_ArrayBuffer_a8b6f580b363f2bc = function(arg0) {
939
945
  return ret;
940
946
  };
941
947
 
942
- module.exports.__wbg_instanceof_Array_b740b533930f065b = function(arg0) {
948
+ exports.__wbg_instanceof_Array_0b7383f4189e69c2 = function(arg0) {
943
949
  let result;
944
950
  try {
945
951
  result = arg0 instanceof Array;
@@ -950,7 +956,7 @@ module.exports.__wbg_instanceof_Array_b740b533930f065b = function(arg0) {
950
956
  return ret;
951
957
  };
952
958
 
953
- module.exports.__wbg_instanceof_Map_80cc65041c96417a = function(arg0) {
959
+ exports.__wbg_instanceof_Map_ebb01a5b6b5ffd0b = function(arg0) {
954
960
  let result;
955
961
  try {
956
962
  result = arg0 instanceof Map;
@@ -961,7 +967,7 @@ module.exports.__wbg_instanceof_Map_80cc65041c96417a = function(arg0) {
961
967
  return ret;
962
968
  };
963
969
 
964
- module.exports.__wbg_instanceof_Response_e80ce8b7a2b968d2 = function(arg0) {
970
+ exports.__wbg_instanceof_Response_50fde2cd696850bf = function(arg0) {
965
971
  let result;
966
972
  try {
967
973
  result = arg0 instanceof Response;
@@ -972,7 +978,7 @@ module.exports.__wbg_instanceof_Response_e80ce8b7a2b968d2 = function(arg0) {
972
978
  return ret;
973
979
  };
974
980
 
975
- module.exports.__wbg_instanceof_Uint8Array_ca460677bc155827 = function(arg0) {
981
+ exports.__wbg_instanceof_Uint8Array_9a8378d955933db7 = function(arg0) {
976
982
  let result;
977
983
  try {
978
984
  result = arg0 instanceof Uint8Array;
@@ -983,88 +989,68 @@ module.exports.__wbg_instanceof_Uint8Array_ca460677bc155827 = function(arg0) {
983
989
  return ret;
984
990
  };
985
991
 
986
- module.exports.__wbg_isArray_5f090bed72bd4f89 = function(arg0) {
992
+ exports.__wbg_isArray_030cce220591fb41 = function(arg0) {
987
993
  const ret = Array.isArray(arg0);
988
994
  return ret;
989
995
  };
990
996
 
991
- module.exports.__wbg_isSafeInteger_90d7c4674047d684 = function(arg0) {
997
+ exports.__wbg_isSafeInteger_1c0d1af5542e102a = function(arg0) {
992
998
  const ret = Number.isSafeInteger(arg0);
993
999
  return ret;
994
1000
  };
995
1001
 
996
- module.exports.__wbg_iterator_4068add5b2aef7a6 = function() {
1002
+ exports.__wbg_iterator_f370b34483c71a1c = function() {
997
1003
  const ret = Symbol.iterator;
998
1004
  return ret;
999
1005
  };
1000
1006
 
1001
- module.exports.__wbg_keys_42062809bf87339e = function(arg0) {
1007
+ exports.__wbg_keys_ef52390b2ae0e714 = function(arg0) {
1002
1008
  const ret = Object.keys(arg0);
1003
1009
  return ret;
1004
1010
  };
1005
1011
 
1006
- module.exports.__wbg_length_ab6d22b5ead75c72 = function(arg0) {
1012
+ exports.__wbg_length_186546c51cd61acd = function(arg0) {
1007
1013
  const ret = arg0.length;
1008
1014
  return ret;
1009
1015
  };
1010
1016
 
1011
- module.exports.__wbg_length_f00ec12454a5d9fd = function(arg0) {
1017
+ exports.__wbg_length_6bb7e81f9d7713e4 = function(arg0) {
1012
1018
  const ret = arg0.length;
1013
1019
  return ret;
1014
1020
  };
1015
1021
 
1016
- module.exports.__wbg_log_7e417898f19eba17 = function(arg0) {
1022
+ exports.__wbg_log_77195989eb27ffe5 = function(arg0) {
1017
1023
  console.log(...arg0);
1018
1024
  };
1019
1025
 
1020
- module.exports.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
1026
+ exports.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
1021
1027
  const ret = arg0.msCrypto;
1022
1028
  return ret;
1023
1029
  };
1024
1030
 
1025
- module.exports.__wbg_new0_97314565408dea38 = function() {
1031
+ exports.__wbg_new0_b0a0a38c201e6df5 = function() {
1026
1032
  const ret = new Date();
1027
1033
  return ret;
1028
1034
  };
1029
1035
 
1030
- module.exports.__wbg_new_07b483f72211fd66 = function() {
1036
+ exports.__wbg_new_19c25a3f2fa63a02 = function() {
1031
1037
  const ret = new Object();
1032
1038
  return ret;
1033
1039
  };
1034
1040
 
1035
- module.exports.__wbg_new_186abcfdff244e42 = function() { return handleError(function () {
1036
- const ret = new AbortController();
1037
- return ret;
1038
- }, arguments) };
1039
-
1040
- module.exports.__wbg_new_4796e1cd2eb9ea6d = function() { return handleError(function () {
1041
- const ret = new Headers();
1042
- return ret;
1043
- }, arguments) };
1044
-
1045
- module.exports.__wbg_new_58353953ad2097cc = function() {
1041
+ exports.__wbg_new_1f3a344cf3123716 = function() {
1046
1042
  const ret = new Array();
1047
1043
  return ret;
1048
1044
  };
1049
1045
 
1050
- module.exports.__wbg_new_a2957aa5684de228 = function(arg0) {
1051
- const ret = new Date(arg0);
1052
- return ret;
1053
- };
1054
-
1055
- module.exports.__wbg_new_a979b4b45bd55c7f = function() {
1056
- const ret = new Map();
1057
- return ret;
1058
- };
1059
-
1060
- module.exports.__wbg_new_e30c39c06edaabf2 = function(arg0, arg1) {
1046
+ exports.__wbg_new_2e3c58a15f39f5f9 = function(arg0, arg1) {
1061
1047
  try {
1062
1048
  var state0 = {a: arg0, b: arg1};
1063
1049
  var cb0 = (arg0, arg1) => {
1064
1050
  const a = state0.a;
1065
1051
  state0.a = 0;
1066
1052
  try {
1067
- return __wbg_adapter_244(a, state0.b, arg0, arg1);
1053
+ return __wbg_adapter_212(a, state0.b, arg0, arg1);
1068
1054
  } finally {
1069
1055
  state0.a = a;
1070
1056
  }
@@ -1076,209 +1062,224 @@ module.exports.__wbg_new_e30c39c06edaabf2 = function(arg0, arg1) {
1076
1062
  }
1077
1063
  };
1078
1064
 
1079
- module.exports.__wbg_new_e52b3efaaa774f96 = function(arg0) {
1065
+ exports.__wbg_new_2ff1f68f3676ea53 = function() {
1066
+ const ret = new Map();
1067
+ return ret;
1068
+ };
1069
+
1070
+ exports.__wbg_new_5a2ae4557f92b50e = function(arg0) {
1071
+ const ret = new Date(arg0);
1072
+ return ret;
1073
+ };
1074
+
1075
+ exports.__wbg_new_638ebfaedbf32a5e = function(arg0) {
1080
1076
  const ret = new Uint8Array(arg0);
1081
1077
  return ret;
1082
1078
  };
1083
1079
 
1084
- module.exports.__wbg_newfromslice_7c05ab1297cb2d88 = function(arg0, arg1) {
1080
+ exports.__wbg_new_66b9434b4e59b63e = function() { return handleError(function () {
1081
+ const ret = new AbortController();
1082
+ return ret;
1083
+ }, arguments) };
1084
+
1085
+ exports.__wbg_new_f6e53210afea8e45 = function() { return handleError(function () {
1086
+ const ret = new Headers();
1087
+ return ret;
1088
+ }, arguments) };
1089
+
1090
+ exports.__wbg_newfromslice_074c56947bd43469 = function(arg0, arg1) {
1085
1091
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
1086
1092
  return ret;
1087
1093
  };
1088
1094
 
1089
- module.exports.__wbg_newnoargs_ff528e72d35de39a = function(arg0, arg1) {
1095
+ exports.__wbg_newnoargs_254190557c45b4ec = function(arg0, arg1) {
1090
1096
  const ret = new Function(getStringFromWasm0(arg0, arg1));
1091
1097
  return ret;
1092
1098
  };
1093
1099
 
1094
- module.exports.__wbg_newwithargs_17a05078fc85d3aa = function(arg0, arg1, arg2, arg3) {
1100
+ exports.__wbg_newwithargs_b8065bb443501079 = function(arg0, arg1, arg2, arg3) {
1095
1101
  const ret = new Function(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
1096
1102
  return ret;
1097
1103
  };
1098
1104
 
1099
- module.exports.__wbg_newwithbyteoffsetandlength_3b01ecda099177e8 = function(arg0, arg1, arg2) {
1100
- const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
1101
- return ret;
1102
- };
1103
-
1104
- module.exports.__wbg_newwithlength_08f872dc1e3ada2e = function(arg0) {
1105
+ exports.__wbg_newwithlength_a167dcc7aaa3ba77 = function(arg0) {
1105
1106
  const ret = new Uint8Array(arg0 >>> 0);
1106
1107
  return ret;
1107
1108
  };
1108
1109
 
1109
- module.exports.__wbg_newwithstrandinit_f8a9dbe009d6be37 = function() { return handleError(function (arg0, arg1, arg2) {
1110
+ exports.__wbg_newwithstrandinit_b5d168a29a3fd85f = function() { return handleError(function (arg0, arg1, arg2) {
1110
1111
  const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
1111
1112
  return ret;
1112
1113
  }, arguments) };
1113
1114
 
1114
- module.exports.__wbg_next_8bb824d217961b5d = function(arg0) {
1115
+ exports.__wbg_next_5b3530e612fde77d = function(arg0) {
1115
1116
  const ret = arg0.next;
1116
1117
  return ret;
1117
1118
  };
1118
1119
 
1119
- module.exports.__wbg_next_e2da48d8fff7439a = function() { return handleError(function (arg0) {
1120
+ exports.__wbg_next_692e82279131b03c = function() { return handleError(function (arg0) {
1120
1121
  const ret = arg0.next();
1121
1122
  return ret;
1122
1123
  }, arguments) };
1123
1124
 
1124
- module.exports.__wbg_node_905d3e251edff8a2 = function(arg0) {
1125
+ exports.__wbg_node_905d3e251edff8a2 = function(arg0) {
1125
1126
  const ret = arg0.node;
1126
1127
  return ret;
1127
1128
  };
1128
1129
 
1129
- module.exports.__wbg_policyevaluationerror_new = function(arg0) {
1130
+ exports.__wbg_policyevaluationerror_new = function(arg0) {
1130
1131
  const ret = PolicyEvaluationError.__wrap(arg0);
1131
1132
  return ret;
1132
1133
  };
1133
1134
 
1134
- module.exports.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
1135
+ exports.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
1135
1136
  const ret = arg0.process;
1136
1137
  return ret;
1137
1138
  };
1138
1139
 
1139
- module.exports.__wbg_push_73fd7b5550ebf707 = function(arg0, arg1) {
1140
+ exports.__wbg_prototypesetcall_3d4a26c1ed734349 = function(arg0, arg1, arg2) {
1141
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
1142
+ };
1143
+
1144
+ exports.__wbg_push_330b2eb93e4e1212 = function(arg0, arg1) {
1140
1145
  const ret = arg0.push(arg1);
1141
1146
  return ret;
1142
1147
  };
1143
1148
 
1144
- module.exports.__wbg_queueMicrotask_46c1df247678729f = function(arg0) {
1149
+ exports.__wbg_queueMicrotask_25d0739ac89e8c88 = function(arg0) {
1145
1150
  queueMicrotask(arg0);
1146
1151
  };
1147
1152
 
1148
- module.exports.__wbg_queueMicrotask_8acf3ccb75ed8d11 = function(arg0) {
1153
+ exports.__wbg_queueMicrotask_4488407636f5bf24 = function(arg0) {
1149
1154
  const ret = arg0.queueMicrotask;
1150
1155
  return ret;
1151
1156
  };
1152
1157
 
1153
- module.exports.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
1158
+ exports.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
1154
1159
  arg0.randomFillSync(arg1);
1155
1160
  }, arguments) };
1156
1161
 
1157
- module.exports.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
1162
+ exports.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
1158
1163
  const ret = module.require;
1159
1164
  return ret;
1160
1165
  }, arguments) };
1161
1166
 
1162
- module.exports.__wbg_resolve_0dac8c580ffd4678 = function(arg0) {
1167
+ exports.__wbg_resolve_4055c623acdd6a1b = function(arg0) {
1163
1168
  const ret = Promise.resolve(arg0);
1164
1169
  return ret;
1165
1170
  };
1166
1171
 
1167
- module.exports.__wbg_setTimeout_2b339866a2aa3789 = function(arg0, arg1) {
1172
+ exports.__wbg_setTimeout_2b339866a2aa3789 = function(arg0, arg1) {
1168
1173
  const ret = setTimeout(arg0, arg1);
1169
1174
  return ret;
1170
1175
  };
1171
1176
 
1172
- module.exports.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
1177
+ exports.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
1173
1178
  arg0[arg1] = arg2;
1174
1179
  };
1175
1180
 
1176
- module.exports.__wbg_set_7422acbe992d64ab = function(arg0, arg1, arg2) {
1177
- arg0[arg1 >>> 0] = arg2;
1178
- };
1179
-
1180
- module.exports.__wbg_set_c43293f93a35998a = function() { return handleError(function (arg0, arg1, arg2) {
1181
+ exports.__wbg_set_453345bcda80b89a = function() { return handleError(function (arg0, arg1, arg2) {
1181
1182
  const ret = Reflect.set(arg0, arg1, arg2);
1182
1183
  return ret;
1183
1184
  }, arguments) };
1184
1185
 
1185
- module.exports.__wbg_set_d6bdfd275fb8a4ce = function(arg0, arg1, arg2) {
1186
- const ret = arg0.set(arg1, arg2);
1187
- return ret;
1186
+ exports.__wbg_set_90f6c0f7bd8c0415 = function(arg0, arg1, arg2) {
1187
+ arg0[arg1 >>> 0] = arg2;
1188
1188
  };
1189
1189
 
1190
- module.exports.__wbg_set_fe4e79d1ed3b0e9b = function(arg0, arg1, arg2) {
1191
- arg0.set(arg1, arg2 >>> 0);
1190
+ exports.__wbg_set_b7f1cf4fae26fe2a = function(arg0, arg1, arg2) {
1191
+ const ret = arg0.set(arg1, arg2);
1192
+ return ret;
1192
1193
  };
1193
1194
 
1194
- module.exports.__wbg_setbody_971ec015fc13d6b4 = function(arg0, arg1) {
1195
+ exports.__wbg_setbody_c8460bdf44147df8 = function(arg0, arg1) {
1195
1196
  arg0.body = arg1;
1196
1197
  };
1197
1198
 
1198
- module.exports.__wbg_setcache_a94cd14dc0cc72a2 = function(arg0, arg1) {
1199
+ exports.__wbg_setcache_90ca4ad8a8ad40d3 = function(arg0, arg1) {
1199
1200
  arg0.cache = __wbindgen_enum_RequestCache[arg1];
1200
1201
  };
1201
1202
 
1202
- module.exports.__wbg_setcredentials_920d91fb5984c94a = function(arg0, arg1) {
1203
+ exports.__wbg_setcredentials_9cd60d632c9d5dfc = function(arg0, arg1) {
1203
1204
  arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
1204
1205
  };
1205
1206
 
1206
- module.exports.__wbg_setheaders_65a4eb4c0443ae61 = function(arg0, arg1) {
1207
+ exports.__wbg_setheaders_0052283e2f3503d1 = function(arg0, arg1) {
1207
1208
  arg0.headers = arg1;
1208
1209
  };
1209
1210
 
1210
- module.exports.__wbg_setmethod_8ce1be0b4d701b7c = function(arg0, arg1, arg2) {
1211
+ exports.__wbg_setmethod_9b504d5b855b329c = function(arg0, arg1, arg2) {
1211
1212
  arg0.method = getStringFromWasm0(arg1, arg2);
1212
1213
  };
1213
1214
 
1214
- module.exports.__wbg_setmode_bd35f026f55b6247 = function(arg0, arg1) {
1215
+ exports.__wbg_setmode_a23e1a2ad8b512f8 = function(arg0, arg1) {
1215
1216
  arg0.mode = __wbindgen_enum_RequestMode[arg1];
1216
1217
  };
1217
1218
 
1218
- module.exports.__wbg_setsignal_8e72abfe7ee03c97 = function(arg0, arg1) {
1219
+ exports.__wbg_setsignal_8c45ad1247a74809 = function(arg0, arg1) {
1219
1220
  arg0.signal = arg1;
1220
1221
  };
1221
1222
 
1222
- module.exports.__wbg_signal_b96223519a041faa = function(arg0) {
1223
+ exports.__wbg_signal_da4d466ce86118b5 = function(arg0) {
1223
1224
  const ret = arg0.signal;
1224
1225
  return ret;
1225
1226
  };
1226
1227
 
1227
- module.exports.__wbg_static_accessor_GLOBAL_487c52c58d65314d = function() {
1228
+ exports.__wbg_static_accessor_GLOBAL_8921f820c2ce3f12 = function() {
1228
1229
  const ret = typeof global === 'undefined' ? null : global;
1229
1230
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1230
1231
  };
1231
1232
 
1232
- module.exports.__wbg_static_accessor_GLOBAL_THIS_ee9704f328b6b291 = function() {
1233
+ exports.__wbg_static_accessor_GLOBAL_THIS_f0a4409105898184 = function() {
1233
1234
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
1234
1235
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1235
1236
  };
1236
1237
 
1237
- module.exports.__wbg_static_accessor_SELF_78c9e3071b912620 = function() {
1238
+ exports.__wbg_static_accessor_SELF_995b214ae681ff99 = function() {
1238
1239
  const ret = typeof self === 'undefined' ? null : self;
1239
1240
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1240
1241
  };
1241
1242
 
1242
- module.exports.__wbg_static_accessor_WINDOW_a093d21393777366 = function() {
1243
+ exports.__wbg_static_accessor_WINDOW_cde3890479c675ea = function() {
1243
1244
  const ret = typeof window === 'undefined' ? null : window;
1244
1245
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1245
1246
  };
1246
1247
 
1247
- module.exports.__wbg_status_a54682bbe52f9058 = function(arg0) {
1248
+ exports.__wbg_status_3fea3036088621d6 = function(arg0) {
1248
1249
  const ret = arg0.status;
1249
1250
  return ret;
1250
1251
  };
1251
1252
 
1252
- module.exports.__wbg_stringify_c242842b97f054cc = function() { return handleError(function (arg0) {
1253
+ exports.__wbg_stringify_b98c93d0a190446a = function() { return handleError(function (arg0) {
1253
1254
  const ret = JSON.stringify(arg0);
1254
1255
  return ret;
1255
1256
  }, arguments) };
1256
1257
 
1257
- module.exports.__wbg_subarray_dd4ade7d53bd8e26 = function(arg0, arg1, arg2) {
1258
+ exports.__wbg_subarray_70fd07feefe14294 = function(arg0, arg1, arg2) {
1258
1259
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
1259
1260
  return ret;
1260
1261
  };
1261
1262
 
1262
- module.exports.__wbg_text_ec0e22f60e30dd2f = function() { return handleError(function (arg0) {
1263
+ exports.__wbg_text_0f69a215637b9b34 = function() { return handleError(function (arg0) {
1263
1264
  const ret = arg0.text();
1264
1265
  return ret;
1265
1266
  }, arguments) };
1266
1267
 
1267
- module.exports.__wbg_then_82ab9fb4080f1707 = function(arg0, arg1, arg2) {
1268
+ exports.__wbg_then_b33a773d723afa3e = function(arg0, arg1, arg2) {
1268
1269
  const ret = arg0.then(arg1, arg2);
1269
1270
  return ret;
1270
1271
  };
1271
1272
 
1272
- module.exports.__wbg_then_db882932c0c714c6 = function(arg0, arg1) {
1273
+ exports.__wbg_then_e22500defe16819f = function(arg0, arg1) {
1273
1274
  const ret = arg0.then(arg1);
1274
1275
  return ret;
1275
1276
  };
1276
1277
 
1277
- module.exports.__wbg_trace_f1ea3a49486fac2c = function(arg0) {
1278
+ exports.__wbg_trace_fe562a020dec3e6f = function(arg0) {
1278
1279
  console.trace(...arg0);
1279
1280
  };
1280
1281
 
1281
- module.exports.__wbg_url_e6ed869ea05b7a71 = function(arg0, arg1) {
1282
+ exports.__wbg_url_e5720dfacf77b05e = function(arg0, arg1) {
1282
1283
  const ret = arg1.url;
1283
1284
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1284
1285
  const len1 = WASM_VECTOR_LEN;
@@ -1286,44 +1287,34 @@ module.exports.__wbg_url_e6ed869ea05b7a71 = function(arg0, arg1) {
1286
1287
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1287
1288
  };
1288
1289
 
1289
- module.exports.__wbg_value_17b896954e14f896 = function(arg0) {
1290
+ exports.__wbg_value_dd9372230531eade = function(arg0) {
1290
1291
  const ret = arg0.value;
1291
1292
  return ret;
1292
1293
  };
1293
1294
 
1294
- module.exports.__wbg_versions_c01dfd4722a88165 = function(arg0) {
1295
+ exports.__wbg_versions_c01dfd4722a88165 = function(arg0) {
1295
1296
  const ret = arg0.versions;
1296
1297
  return ret;
1297
1298
  };
1298
1299
 
1299
- module.exports.__wbg_warn_c6a0f82186237bfa = function(arg0) {
1300
+ exports.__wbg_warn_3e0e93af109bb736 = function(arg0) {
1300
1301
  console.warn(...arg0);
1301
1302
  };
1302
1303
 
1303
- module.exports.__wbindgen_bigint_from_i64 = function(arg0) {
1304
- const ret = arg0;
1305
- return ret;
1306
- };
1307
-
1308
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
1309
- const ret = BigInt.asUintN(64, arg0);
1310
- return ret;
1311
- };
1312
-
1313
- module.exports.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
1304
+ exports.__wbg_wbindgenbigintgetasi64_ac743ece6ab9bba1 = function(arg0, arg1) {
1314
1305
  const v = arg1;
1315
1306
  const ret = typeof(v) === 'bigint' ? v : undefined;
1316
1307
  getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
1317
1308
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1318
1309
  };
1319
1310
 
1320
- module.exports.__wbindgen_boolean_get = function(arg0) {
1311
+ exports.__wbg_wbindgenbooleanget_3fe6f642c7d97746 = function(arg0) {
1321
1312
  const v = arg0;
1322
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
1323
- return ret;
1313
+ const ret = typeof(v) === 'boolean' ? v : undefined;
1314
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
1324
1315
  };
1325
1316
 
1326
- module.exports.__wbindgen_cb_drop = function(arg0) {
1317
+ exports.__wbg_wbindgencbdrop_eb10308566512b88 = function(arg0) {
1327
1318
  const obj = arg0.original;
1328
1319
  if (obj.cnt-- == 1) {
1329
1320
  obj.a = 0;
@@ -1333,17 +1324,7 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
1333
1324
  return ret;
1334
1325
  };
1335
1326
 
1336
- module.exports.__wbindgen_closure_wrapper3929 = function(arg0, arg1, arg2) {
1337
- const ret = makeMutClosure(arg0, arg1, 497, __wbg_adapter_48);
1338
- return ret;
1339
- };
1340
-
1341
- module.exports.__wbindgen_closure_wrapper4078 = function(arg0, arg1, arg2) {
1342
- const ret = makeMutClosure(arg0, arg1, 541, __wbg_adapter_51);
1343
- return ret;
1344
- };
1345
-
1346
- module.exports.__wbindgen_debug_string = function(arg0, arg1) {
1327
+ exports.__wbg_wbindgendebugstring_99ef257a3ddda34d = function(arg0, arg1) {
1347
1328
  const ret = debugString(arg1);
1348
1329
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1349
1330
  const len1 = WASM_VECTOR_LEN;
@@ -1351,76 +1332,55 @@ module.exports.__wbindgen_debug_string = function(arg0, arg1) {
1351
1332
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1352
1333
  };
1353
1334
 
1354
- module.exports.__wbindgen_in = function(arg0, arg1) {
1335
+ exports.__wbg_wbindgenin_d7a1ee10933d2d55 = function(arg0, arg1) {
1355
1336
  const ret = arg0 in arg1;
1356
1337
  return ret;
1357
1338
  };
1358
1339
 
1359
- module.exports.__wbindgen_init_externref_table = function() {
1360
- const table = wasm.__wbindgen_export_4;
1361
- const offset = table.grow(4);
1362
- table.set(0, undefined);
1363
- table.set(offset + 0, undefined);
1364
- table.set(offset + 1, null);
1365
- table.set(offset + 2, true);
1366
- table.set(offset + 3, false);
1367
- ;
1368
- };
1369
-
1370
- module.exports.__wbindgen_is_bigint = function(arg0) {
1340
+ exports.__wbg_wbindgenisbigint_ecb90cc08a5a9154 = function(arg0) {
1371
1341
  const ret = typeof(arg0) === 'bigint';
1372
1342
  return ret;
1373
1343
  };
1374
1344
 
1375
- module.exports.__wbindgen_is_function = function(arg0) {
1345
+ exports.__wbg_wbindgenisfunction_8cee7dce3725ae74 = function(arg0) {
1376
1346
  const ret = typeof(arg0) === 'function';
1377
1347
  return ret;
1378
1348
  };
1379
1349
 
1380
- module.exports.__wbindgen_is_object = function(arg0) {
1350
+ exports.__wbg_wbindgenisobject_307a53c6bd97fbf8 = function(arg0) {
1381
1351
  const val = arg0;
1382
1352
  const ret = typeof(val) === 'object' && val !== null;
1383
1353
  return ret;
1384
1354
  };
1385
1355
 
1386
- module.exports.__wbindgen_is_string = function(arg0) {
1356
+ exports.__wbg_wbindgenisstring_d4fa939789f003b0 = function(arg0) {
1387
1357
  const ret = typeof(arg0) === 'string';
1388
1358
  return ret;
1389
1359
  };
1390
1360
 
1391
- module.exports.__wbindgen_is_undefined = function(arg0) {
1361
+ exports.__wbg_wbindgenisundefined_c4b71d073b92f3c5 = function(arg0) {
1392
1362
  const ret = arg0 === undefined;
1393
1363
  return ret;
1394
1364
  };
1395
1365
 
1396
- module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
1366
+ exports.__wbg_wbindgenjsvaleq_e6f2ad59ccae1b58 = function(arg0, arg1) {
1397
1367
  const ret = arg0 === arg1;
1398
1368
  return ret;
1399
1369
  };
1400
1370
 
1401
- module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
1371
+ exports.__wbg_wbindgenjsvallooseeq_9bec8c9be826bed1 = function(arg0, arg1) {
1402
1372
  const ret = arg0 == arg1;
1403
1373
  return ret;
1404
1374
  };
1405
1375
 
1406
- module.exports.__wbindgen_memory = function() {
1407
- const ret = wasm.memory;
1408
- return ret;
1409
- };
1410
-
1411
- module.exports.__wbindgen_number_get = function(arg0, arg1) {
1376
+ exports.__wbg_wbindgennumberget_f74b4c7525ac05cb = function(arg0, arg1) {
1412
1377
  const obj = arg1;
1413
1378
  const ret = typeof(obj) === 'number' ? obj : undefined;
1414
1379
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
1415
1380
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1416
1381
  };
1417
1382
 
1418
- module.exports.__wbindgen_number_new = function(arg0) {
1419
- const ret = arg0;
1420
- return ret;
1421
- };
1422
-
1423
- module.exports.__wbindgen_string_get = function(arg0, arg1) {
1383
+ exports.__wbg_wbindgenstringget_0f16a6ddddef376f = function(arg0, arg1) {
1424
1384
  const obj = arg1;
1425
1385
  const ret = typeof(obj) === 'string' ? obj : undefined;
1426
1386
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -1429,22 +1389,67 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
1429
1389
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1430
1390
  };
1431
1391
 
1432
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
1392
+ exports.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function(arg0, arg1) {
1393
+ throw new Error(getStringFromWasm0(arg0, arg1));
1394
+ };
1395
+
1396
+ exports.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
1397
+ // Cast intrinsic for `Ref(String) -> Externref`.
1433
1398
  const ret = getStringFromWasm0(arg0, arg1);
1434
1399
  return ret;
1435
1400
  };
1436
1401
 
1437
- module.exports.__wbindgen_throw = function(arg0, arg1) {
1438
- throw new Error(getStringFromWasm0(arg0, arg1));
1402
+ exports.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
1403
+ // Cast intrinsic for `U64 -> Externref`.
1404
+ const ret = BigInt.asUintN(64, arg0);
1405
+ return ret;
1406
+ };
1407
+
1408
+ exports.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
1409
+ // Cast intrinsic for `I64 -> Externref`.
1410
+ const ret = arg0;
1411
+ return ret;
1412
+ };
1413
+
1414
+ exports.__wbindgen_cast_c50ab2c557280b7e = function(arg0, arg1) {
1415
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 501, function: Function { arguments: [], shim_idx: 502, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1416
+ const ret = makeMutClosure(arg0, arg1, 501, __wbg_adapter_15);
1417
+ return ret;
1418
+ };
1419
+
1420
+ exports.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
1421
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
1422
+ const ret = getArrayU8FromWasm0(arg0, arg1);
1423
+ return ret;
1424
+ };
1425
+
1426
+ exports.__wbindgen_cast_cf04d869ccc8e004 = function(arg0, arg1) {
1427
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 547, function: Function { arguments: [Externref], shim_idx: 548, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1428
+ const ret = makeMutClosure(arg0, arg1, 547, __wbg_adapter_12);
1429
+ return ret;
1430
+ };
1431
+
1432
+ exports.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
1433
+ // Cast intrinsic for `F64 -> Externref`.
1434
+ const ret = arg0;
1435
+ return ret;
1439
1436
  };
1440
1437
 
1441
- const path = require('path').join(__dirname, 'cedarling_wasm_bg.wasm');
1442
- const bytes = require('fs').readFileSync(path);
1438
+ exports.__wbindgen_init_externref_table = function() {
1439
+ const table = wasm.__wbindgen_export_4;
1440
+ const offset = table.grow(4);
1441
+ table.set(0, undefined);
1442
+ table.set(offset + 0, undefined);
1443
+ table.set(offset + 1, null);
1444
+ table.set(offset + 2, true);
1445
+ table.set(offset + 3, false);
1446
+ ;
1447
+ };
1443
1448
 
1444
- const wasmModule = new WebAssembly.Module(bytes);
1445
- const wasmInstance = new WebAssembly.Instance(wasmModule, imports);
1446
- wasm = wasmInstance.exports;
1447
- module.exports.__wasm = wasm;
1449
+ const wasmPath = `${__dirname}/cedarling_wasm_bg.wasm`;
1450
+ const wasmBytes = require('fs').readFileSync(wasmPath);
1451
+ const wasmModule = new WebAssembly.Module(wasmBytes);
1452
+ const wasm = exports.__wasm = new WebAssembly.Instance(wasmModule, imports).exports;
1448
1453
 
1449
1454
  wasm.__wbindgen_start();
1450
1455
 
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@janssenproject/cedarling_wasm",
3
3
  "description": "The Cedarling is a performant local authorization service that runs the Rust Cedar Engine",
4
- "version": "0.0.229-nodejs",
4
+ "version": "0.0.230-nodejs",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",