qsharp-lang 1.12.2-dev → 1.12.4-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (312) hide show
  1. package/dist/compiler/compiler.d.ts +6 -4
  2. package/dist/compiler/compiler.js +7 -2
  3. package/dist/katas-content.generated.js +92 -1
  4. package/dist/katas-content.generated.md.js +92 -1
  5. package/dist/samples.generated.js +1 -1
  6. package/dist/workers/browser.js +1 -1
  7. package/docs/Microsoft.Quantum.Core/Length.md +1 -1
  8. package/docs/Microsoft.Quantum.Core/Repeated.md +1 -1
  9. package/docs/Microsoft.Quantum.Core/index.md +1 -1
  10. package/docs/Std.Arithmetic/AddLE.md +1 -1
  11. package/docs/Std.Arithmetic/ApplyIfEqualL.md +1 -1
  12. package/docs/Std.Arithmetic/ApplyIfEqualLE.md +1 -1
  13. package/docs/Std.Arithmetic/ApplyIfGreaterL.md +1 -1
  14. package/docs/Std.Arithmetic/ApplyIfGreaterLE.md +1 -1
  15. package/docs/Std.Arithmetic/ApplyIfGreaterOrEqualL.md +1 -1
  16. package/docs/Std.Arithmetic/ApplyIfGreaterOrEqualLE.md +1 -1
  17. package/docs/Std.Arithmetic/ApplyIfLessL.md +1 -1
  18. package/docs/Std.Arithmetic/ApplyIfLessLE.md +1 -1
  19. package/docs/Std.Arithmetic/ApplyIfLessOrEqualL.md +1 -1
  20. package/docs/Std.Arithmetic/ApplyIfLessOrEqualLE.md +1 -1
  21. package/docs/Std.Arithmetic/FourierTDIncByLE.md +1 -1
  22. package/docs/Std.Arithmetic/IncByI.md +1 -1
  23. package/docs/Std.Arithmetic/IncByIUsingIncByLE.md +1 -1
  24. package/docs/Std.Arithmetic/IncByL.md +1 -1
  25. package/docs/Std.Arithmetic/IncByLE.md +1 -1
  26. package/docs/Std.Arithmetic/IncByLEUsingAddLE.md +1 -1
  27. package/docs/Std.Arithmetic/IncByLUsingIncByLE.md +1 -1
  28. package/docs/Std.Arithmetic/LookAheadDKRSAddLE.md +1 -1
  29. package/docs/Std.Arithmetic/MAJ.md +1 -1
  30. package/docs/Std.Arithmetic/ReflectAboutInteger.md +1 -1
  31. package/docs/Std.Arithmetic/RippleCarryCGAddLE.md +1 -1
  32. package/docs/Std.Arithmetic/RippleCarryCGIncByLE.md +1 -1
  33. package/docs/Std.Arithmetic/RippleCarryTTKIncByLE.md +1 -1
  34. package/docs/Std.Arithmetic/index.md +1 -1
  35. package/docs/Std.Arrays/All.md +1 -1
  36. package/docs/Std.Arrays/Any.md +1 -1
  37. package/docs/Std.Arrays/Chunks.md +1 -1
  38. package/docs/Std.Arrays/CircularlyShifted.md +1 -1
  39. package/docs/Std.Arrays/ColumnAt.md +1 -1
  40. package/docs/Std.Arrays/Count.md +1 -1
  41. package/docs/Std.Arrays/Diagonal.md +1 -1
  42. package/docs/Std.Arrays/DrawMany.md +1 -1
  43. package/docs/Std.Arrays/Enumerated.md +1 -1
  44. package/docs/Std.Arrays/Excluding.md +1 -1
  45. package/docs/Std.Arrays/Filtered.md +1 -1
  46. package/docs/Std.Arrays/FlatMapped.md +1 -1
  47. package/docs/Std.Arrays/Flattened.md +1 -1
  48. package/docs/Std.Arrays/Fold.md +1 -1
  49. package/docs/Std.Arrays/ForEach.md +1 -1
  50. package/docs/Std.Arrays/Head.md +1 -1
  51. package/docs/Std.Arrays/HeadAndRest.md +1 -1
  52. package/docs/Std.Arrays/IndexOf.md +1 -1
  53. package/docs/Std.Arrays/IndexRange.md +1 -1
  54. package/docs/Std.Arrays/Interleaved.md +1 -1
  55. package/docs/Std.Arrays/IsEmpty.md +1 -1
  56. package/docs/Std.Arrays/IsRectangularArray.md +1 -1
  57. package/docs/Std.Arrays/IsSorted.md +1 -1
  58. package/docs/Std.Arrays/IsSquareArray.md +1 -1
  59. package/docs/Std.Arrays/Mapped.md +1 -1
  60. package/docs/Std.Arrays/MappedByIndex.md +1 -1
  61. package/docs/Std.Arrays/MappedOverRange.md +1 -1
  62. package/docs/Std.Arrays/Most.md +1 -1
  63. package/docs/Std.Arrays/MostAndTail.md +1 -1
  64. package/docs/Std.Arrays/Padded.md +1 -1
  65. package/docs/Std.Arrays/Partitioned.md +1 -1
  66. package/docs/Std.Arrays/Rest.md +1 -1
  67. package/docs/Std.Arrays/Reversed.md +1 -1
  68. package/docs/Std.Arrays/SequenceI.md +1 -1
  69. package/docs/Std.Arrays/SequenceL.md +1 -1
  70. package/docs/Std.Arrays/Sorted.md +1 -1
  71. package/docs/Std.Arrays/Subarray.md +1 -1
  72. package/docs/Std.Arrays/Swapped.md +1 -1
  73. package/docs/Std.Arrays/Tail.md +1 -1
  74. package/docs/Std.Arrays/Transposed.md +1 -1
  75. package/docs/Std.Arrays/Unzipped.md +1 -1
  76. package/docs/Std.Arrays/Where.md +1 -1
  77. package/docs/Std.Arrays/Windows.md +1 -1
  78. package/docs/Std.Arrays/Zipped.md +1 -1
  79. package/docs/Std.Arrays/index.md +1 -1
  80. package/docs/Std.Canon/ApplyCNOTChain.md +1 -1
  81. package/docs/Std.Canon/ApplyControlledOnBitString.md +1 -1
  82. package/docs/Std.Canon/ApplyControlledOnInt.md +1 -1
  83. package/docs/Std.Canon/ApplyP.md +1 -1
  84. package/docs/Std.Canon/ApplyPauli.md +1 -1
  85. package/docs/Std.Canon/ApplyPauliFromBitString.md +1 -1
  86. package/docs/Std.Canon/ApplyPauliFromInt.md +1 -1
  87. package/docs/Std.Canon/ApplyQFT.md +1 -1
  88. package/docs/Std.Canon/ApplyToEach.md +1 -1
  89. package/docs/Std.Canon/ApplyToEachA.md +1 -1
  90. package/docs/Std.Canon/ApplyToEachC.md +1 -1
  91. package/docs/Std.Canon/ApplyToEachCA.md +1 -1
  92. package/docs/Std.Canon/ApplyXorInPlace.md +1 -1
  93. package/docs/Std.Canon/ApplyXorInPlaceL.md +1 -1
  94. package/docs/Std.Canon/CX.md +1 -1
  95. package/docs/Std.Canon/CY.md +1 -1
  96. package/docs/Std.Canon/CZ.md +1 -1
  97. package/docs/Std.Canon/Fst.md +1 -1
  98. package/docs/Std.Canon/Relabel.md +1 -1
  99. package/docs/Std.Canon/Snd.md +1 -1
  100. package/docs/Std.Canon/SwapReverseRegister.md +1 -1
  101. package/docs/Std.Canon/index.md +1 -1
  102. package/docs/Std.Convert/BigIntAsBoolArray.md +1 -1
  103. package/docs/Std.Convert/BoolArrayAsBigInt.md +1 -1
  104. package/docs/Std.Convert/BoolArrayAsInt.md +1 -1
  105. package/docs/Std.Convert/BoolArrayAsResultArray.md +1 -1
  106. package/docs/Std.Convert/BoolAsResult.md +1 -1
  107. package/docs/Std.Convert/ComplexAsComplexPolar.md +1 -1
  108. package/docs/Std.Convert/ComplexPolarAsComplex.md +1 -1
  109. package/docs/Std.Convert/DoubleAsStringWithPrecision.md +1 -1
  110. package/docs/Std.Convert/IntAsBigInt.md +1 -1
  111. package/docs/Std.Convert/IntAsBoolArray.md +1 -1
  112. package/docs/Std.Convert/IntAsDouble.md +1 -1
  113. package/docs/Std.Convert/ResultArrayAsBoolArray.md +1 -1
  114. package/docs/Std.Convert/ResultArrayAsInt.md +1 -1
  115. package/docs/Std.Convert/ResultAsBool.md +1 -1
  116. package/docs/Std.Convert/index.md +1 -1
  117. package/docs/Std.Core/Length.md +1 -1
  118. package/docs/Std.Core/Repeated.md +1 -1
  119. package/docs/Std.Core/index.md +1 -1
  120. package/docs/Std.Diagnostics/ApplyIdleNoise.md +1 -1
  121. package/docs/Std.Diagnostics/BitFlipNoise.md +1 -1
  122. package/docs/Std.Diagnostics/CheckAllZero.md +1 -1
  123. package/docs/Std.Diagnostics/CheckOperationsAreEqual.md +1 -1
  124. package/docs/Std.Diagnostics/CheckZero.md +1 -1
  125. package/docs/Std.Diagnostics/ConfigurePauliNoise.md +1 -1
  126. package/docs/Std.Diagnostics/DepolarizingNoise.md +1 -1
  127. package/docs/Std.Diagnostics/DumpMachine.md +1 -1
  128. package/docs/Std.Diagnostics/DumpOperation.md +1 -1
  129. package/docs/Std.Diagnostics/DumpRegister.md +1 -1
  130. package/docs/Std.Diagnostics/Fact.md +1 -1
  131. package/docs/Std.Diagnostics/NoNoise.md +1 -1
  132. package/docs/Std.Diagnostics/PhaseFlipNoise.md +1 -1
  133. package/docs/Std.Diagnostics/StartCountingFunction.md +1 -1
  134. package/docs/Std.Diagnostics/StartCountingOperation.md +1 -1
  135. package/docs/Std.Diagnostics/StartCountingQubits.md +1 -1
  136. package/docs/Std.Diagnostics/StopCountingFunction.md +1 -1
  137. package/docs/Std.Diagnostics/StopCountingOperation.md +1 -1
  138. package/docs/Std.Diagnostics/StopCountingQubits.md +1 -1
  139. package/docs/Std.Diagnostics/index.md +1 -1
  140. package/docs/Std.Intrinsic/AND.md +1 -1
  141. package/docs/Std.Intrinsic/ApplyUnitary.md +1 -1
  142. package/docs/Std.Intrinsic/CCNOT.md +1 -1
  143. package/docs/Std.Intrinsic/CNOT.md +1 -1
  144. package/docs/Std.Intrinsic/Exp.md +1 -1
  145. package/docs/Std.Intrinsic/H.md +1 -1
  146. package/docs/Std.Intrinsic/I.md +1 -1
  147. package/docs/Std.Intrinsic/M.md +1 -1
  148. package/docs/Std.Intrinsic/Measure.md +1 -1
  149. package/docs/Std.Intrinsic/Message.md +1 -1
  150. package/docs/Std.Intrinsic/R.md +1 -1
  151. package/docs/Std.Intrinsic/R1.md +1 -1
  152. package/docs/Std.Intrinsic/R1Frac.md +1 -1
  153. package/docs/Std.Intrinsic/RFrac.md +1 -1
  154. package/docs/Std.Intrinsic/Reset.md +1 -1
  155. package/docs/Std.Intrinsic/ResetAll.md +1 -1
  156. package/docs/Std.Intrinsic/Rx.md +1 -1
  157. package/docs/Std.Intrinsic/Rxx.md +1 -1
  158. package/docs/Std.Intrinsic/Ry.md +1 -1
  159. package/docs/Std.Intrinsic/Ryy.md +1 -1
  160. package/docs/Std.Intrinsic/Rz.md +1 -1
  161. package/docs/Std.Intrinsic/Rzz.md +1 -1
  162. package/docs/Std.Intrinsic/S.md +1 -1
  163. package/docs/Std.Intrinsic/SWAP.md +1 -1
  164. package/docs/Std.Intrinsic/T.md +1 -1
  165. package/docs/Std.Intrinsic/X.md +1 -1
  166. package/docs/Std.Intrinsic/Y.md +1 -1
  167. package/docs/Std.Intrinsic/Z.md +1 -1
  168. package/docs/Std.Intrinsic/index.md +1 -1
  169. package/docs/Std.Logical/Xor.md +1 -1
  170. package/docs/Std.Logical/index.md +1 -1
  171. package/docs/Std.Math/AbsComplex.md +1 -1
  172. package/docs/Std.Math/AbsComplexPolar.md +1 -1
  173. package/docs/Std.Math/AbsD.md +1 -1
  174. package/docs/Std.Math/AbsI.md +1 -1
  175. package/docs/Std.Math/AbsL.md +1 -1
  176. package/docs/Std.Math/AbsSquaredComplex.md +1 -1
  177. package/docs/Std.Math/AbsSquaredComplexPolar.md +1 -1
  178. package/docs/Std.Math/ApproximateFactorial.md +1 -1
  179. package/docs/Std.Math/ArcCos.md +1 -1
  180. package/docs/Std.Math/ArcCosh.md +1 -1
  181. package/docs/Std.Math/ArcSin.md +1 -1
  182. package/docs/Std.Math/ArcSinh.md +1 -1
  183. package/docs/Std.Math/ArcTan.md +1 -1
  184. package/docs/Std.Math/ArcTan2.md +1 -1
  185. package/docs/Std.Math/ArcTanh.md +1 -1
  186. package/docs/Std.Math/ArgComplex.md +1 -1
  187. package/docs/Std.Math/ArgComplexPolar.md +1 -1
  188. package/docs/Std.Math/Binom.md +1 -1
  189. package/docs/Std.Math/BitSizeI.md +1 -1
  190. package/docs/Std.Math/BitSizeL.md +1 -1
  191. package/docs/Std.Math/Ceiling.md +1 -1
  192. package/docs/Std.Math/Complex.md +1 -1
  193. package/docs/Std.Math/ComplexPolar.md +1 -1
  194. package/docs/Std.Math/ContinuedFractionConvergentI.md +1 -1
  195. package/docs/Std.Math/ContinuedFractionConvergentL.md +1 -1
  196. package/docs/Std.Math/Cos.md +1 -1
  197. package/docs/Std.Math/Cosh.md +1 -1
  198. package/docs/Std.Math/DivRemI.md +1 -1
  199. package/docs/Std.Math/DivRemL.md +1 -1
  200. package/docs/Std.Math/DividedByC.md +1 -1
  201. package/docs/Std.Math/DividedByCP.md +1 -1
  202. package/docs/Std.Math/E.md +1 -1
  203. package/docs/Std.Math/ExpModI.md +1 -1
  204. package/docs/Std.Math/ExpModL.md +1 -1
  205. package/docs/Std.Math/ExtendedGreatestCommonDivisorI.md +1 -1
  206. package/docs/Std.Math/ExtendedGreatestCommonDivisorL.md +1 -1
  207. package/docs/Std.Math/FactorialI.md +1 -1
  208. package/docs/Std.Math/FactorialL.md +1 -1
  209. package/docs/Std.Math/Floor.md +1 -1
  210. package/docs/Std.Math/GreatestCommonDivisorI.md +1 -1
  211. package/docs/Std.Math/GreatestCommonDivisorL.md +1 -1
  212. package/docs/Std.Math/HammingWeightI.md +1 -1
  213. package/docs/Std.Math/InverseModI.md +1 -1
  214. package/docs/Std.Math/InverseModL.md +1 -1
  215. package/docs/Std.Math/IsCoprimeI.md +1 -1
  216. package/docs/Std.Math/IsCoprimeL.md +1 -1
  217. package/docs/Std.Math/IsInfinite.md +1 -1
  218. package/docs/Std.Math/IsNaN.md +1 -1
  219. package/docs/Std.Math/LargestFixedPoint.md +1 -1
  220. package/docs/Std.Math/Lg.md +1 -1
  221. package/docs/Std.Math/Log.md +1 -1
  222. package/docs/Std.Math/Log10.md +1 -1
  223. package/docs/Std.Math/LogFactorialD.md +1 -1
  224. package/docs/Std.Math/LogGammaD.md +1 -1
  225. package/docs/Std.Math/LogOf2.md +1 -1
  226. package/docs/Std.Math/Max.md +1 -1
  227. package/docs/Std.Math/MaxD.md +1 -1
  228. package/docs/Std.Math/MaxI.md +1 -1
  229. package/docs/Std.Math/MaxL.md +1 -1
  230. package/docs/Std.Math/Min.md +1 -1
  231. package/docs/Std.Math/MinD.md +1 -1
  232. package/docs/Std.Math/MinI.md +1 -1
  233. package/docs/Std.Math/MinL.md +1 -1
  234. package/docs/Std.Math/MinusC.md +1 -1
  235. package/docs/Std.Math/MinusCP.md +1 -1
  236. package/docs/Std.Math/ModulusI.md +1 -1
  237. package/docs/Std.Math/ModulusL.md +1 -1
  238. package/docs/Std.Math/NegationC.md +1 -1
  239. package/docs/Std.Math/NegationCP.md +1 -1
  240. package/docs/Std.Math/PI.md +1 -1
  241. package/docs/Std.Math/PNorm.md +1 -1
  242. package/docs/Std.Math/PNormalized.md +1 -1
  243. package/docs/Std.Math/PlusC.md +1 -1
  244. package/docs/Std.Math/PlusCP.md +1 -1
  245. package/docs/Std.Math/PowC.md +1 -1
  246. package/docs/Std.Math/PowCP.md +1 -1
  247. package/docs/Std.Math/RealMod.md +1 -1
  248. package/docs/Std.Math/Round.md +1 -1
  249. package/docs/Std.Math/SignD.md +1 -1
  250. package/docs/Std.Math/SignI.md +1 -1
  251. package/docs/Std.Math/SignL.md +1 -1
  252. package/docs/Std.Math/Sin.md +1 -1
  253. package/docs/Std.Math/Sinh.md +1 -1
  254. package/docs/Std.Math/SmallestFixedPoint.md +1 -1
  255. package/docs/Std.Math/Sqrt.md +1 -1
  256. package/docs/Std.Math/SquaredNorm.md +1 -1
  257. package/docs/Std.Math/Tan.md +1 -1
  258. package/docs/Std.Math/Tanh.md +1 -1
  259. package/docs/Std.Math/TimesC.md +1 -1
  260. package/docs/Std.Math/TimesCP.md +1 -1
  261. package/docs/Std.Math/TrailingZeroCountI.md +1 -1
  262. package/docs/Std.Math/TrailingZeroCountL.md +1 -1
  263. package/docs/Std.Math/Truncate.md +1 -1
  264. package/docs/Std.Math/index.md +1 -1
  265. package/docs/Std.Measurement/MResetEachZ.md +1 -1
  266. package/docs/Std.Measurement/MResetX.md +1 -1
  267. package/docs/Std.Measurement/MResetY.md +1 -1
  268. package/docs/Std.Measurement/MResetZ.md +1 -1
  269. package/docs/Std.Measurement/MeasureAllZ.md +1 -1
  270. package/docs/Std.Measurement/MeasureEachZ.md +1 -1
  271. package/docs/Std.Measurement/MeasureInteger.md +1 -1
  272. package/docs/Std.Measurement/index.md +1 -1
  273. package/docs/Std.Random/DrawRandomBool.md +1 -1
  274. package/docs/Std.Random/DrawRandomDouble.md +1 -1
  275. package/docs/Std.Random/DrawRandomInt.md +1 -1
  276. package/docs/Std.Random/index.md +1 -1
  277. package/docs/Std.Range/IsRangeEmpty.md +1 -1
  278. package/docs/Std.Range/RangeEnd.md +1 -1
  279. package/docs/Std.Range/RangeReverse.md +1 -1
  280. package/docs/Std.Range/RangeStart.md +1 -1
  281. package/docs/Std.Range/RangeStep.md +1 -1
  282. package/docs/Std.Range/index.md +1 -1
  283. package/docs/Std.ResourceEstimation/AccountForEstimates.md +1 -1
  284. package/docs/Std.ResourceEstimation/AuxQubitCount.md +1 -1
  285. package/docs/Std.ResourceEstimation/BeginEstimateCaching.md +1 -1
  286. package/docs/Std.ResourceEstimation/BeginRepeatEstimates.md +1 -1
  287. package/docs/Std.ResourceEstimation/CczCount.md +1 -1
  288. package/docs/Std.ResourceEstimation/EndEstimateCaching.md +1 -1
  289. package/docs/Std.ResourceEstimation/EndRepeatEstimates.md +1 -1
  290. package/docs/Std.ResourceEstimation/MeasurementCount.md +1 -1
  291. package/docs/Std.ResourceEstimation/PSSPCLayout.md +1 -1
  292. package/docs/Std.ResourceEstimation/RepeatEstimates.md +1 -1
  293. package/docs/Std.ResourceEstimation/RotationCount.md +1 -1
  294. package/docs/Std.ResourceEstimation/RotationDepth.md +1 -1
  295. package/docs/Std.ResourceEstimation/SingleVariant.md +1 -1
  296. package/docs/Std.ResourceEstimation/TCount.md +1 -1
  297. package/docs/Std.ResourceEstimation/index.md +1 -1
  298. package/docs/Std.StatePreparation/ApproximatelyPreparePureStateCP.md +1 -1
  299. package/docs/Std.StatePreparation/PreparePureStateD.md +1 -1
  300. package/docs/Std.StatePreparation/index.md +1 -1
  301. package/docs/Std.TableLookup/Select.md +1 -1
  302. package/docs/Std.TableLookup/index.md +1 -1
  303. package/docs/index.md +1 -1
  304. package/lib/node/qsc_wasm.cjs +559 -536
  305. package/lib/node/qsc_wasm.d.cts +16 -215
  306. package/lib/node/qsc_wasm_bg.wasm +0 -0
  307. package/lib/web/qsc_wasm.d.ts +20 -218
  308. package/lib/web/qsc_wasm.js +561 -532
  309. package/lib/web/qsc_wasm_bg.wasm +0 -0
  310. package/package.json +1 -1
  311. package/ux/circuit.tsx +4 -2
  312. package/ux/qsharp-ux.css +8 -5
@@ -71,10 +71,6 @@ function passStringToWasm0(arg, malloc, realloc) {
71
71
  return ptr;
72
72
  }
73
73
 
74
- function isLikeNone(x) {
75
- return x === undefined || x === null;
76
- }
77
-
78
74
  let cachedDataViewMemory0 = null;
79
75
 
80
76
  function getDataViewMemory0() {
@@ -86,16 +82,21 @@ function getDataViewMemory0() {
86
82
 
87
83
  let heap_next = heap.length;
88
84
 
89
- function dropObject(idx) {
90
- if (idx < 132) return;
91
- heap[idx] = heap_next;
92
- heap_next = idx;
85
+ function addHeapObject(obj) {
86
+ if (heap_next === heap.length) heap.push(heap.length + 1);
87
+ const idx = heap_next;
88
+ heap_next = heap[idx];
89
+
90
+ heap[idx] = obj;
91
+ return idx;
93
92
  }
94
93
 
95
- function takeObject(idx) {
96
- const ret = getObject(idx);
97
- dropObject(idx);
98
- return ret;
94
+ function handleError(f, args) {
95
+ try {
96
+ return f.apply(this, args);
97
+ } catch (e) {
98
+ wasm.__wbindgen_export_2(addHeapObject(e));
99
+ }
99
100
  }
100
101
 
101
102
  const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
@@ -107,13 +108,51 @@ function getStringFromWasm0(ptr, len) {
107
108
  return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
108
109
  }
109
110
 
110
- function addHeapObject(obj) {
111
- if (heap_next === heap.length) heap.push(heap.length + 1);
112
- const idx = heap_next;
113
- heap_next = heap[idx];
111
+ function isLikeNone(x) {
112
+ return x === undefined || x === null;
113
+ }
114
114
 
115
- heap[idx] = obj;
116
- return idx;
115
+ function dropObject(idx) {
116
+ if (idx < 132) return;
117
+ heap[idx] = heap_next;
118
+ heap_next = idx;
119
+ }
120
+
121
+ function takeObject(idx) {
122
+ const ret = getObject(idx);
123
+ dropObject(idx);
124
+ return ret;
125
+ }
126
+
127
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
128
+ ? { register: () => {}, unregister: () => {} }
129
+ : new FinalizationRegistry(state => {
130
+ wasm.__wbindgen_export_3.get(state.dtor)(state.a, state.b)
131
+ });
132
+
133
+ function makeMutClosure(arg0, arg1, dtor, f) {
134
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
135
+ const real = (...args) => {
136
+ // First up with a closure we increment the internal reference
137
+ // count. This ensures that the Rust closure environment won't
138
+ // be deallocated while we're invoking it.
139
+ state.cnt++;
140
+ const a = state.a;
141
+ state.a = 0;
142
+ try {
143
+ return f(a, state.b, ...args);
144
+ } finally {
145
+ if (--state.cnt === 0) {
146
+ wasm.__wbindgen_export_3.get(state.dtor)(a, state.b);
147
+ CLOSURE_DTORS.unregister(state);
148
+ } else {
149
+ state.a = a;
150
+ }
151
+ }
152
+ };
153
+ real.original = state;
154
+ CLOSURE_DTORS.register(real, state, state);
155
+ return real;
117
156
  }
118
157
 
119
158
  function debugString(val) {
@@ -157,7 +196,7 @@ function debugString(val) {
157
196
  // Test for built-in
158
197
  const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
159
198
  let className;
160
- if (builtInMatches.length > 1) {
199
+ if (builtInMatches && builtInMatches.length > 1) {
161
200
  className = builtInMatches[1];
162
201
  } else {
163
202
  // Failed to match the standard '[object ClassName]'
@@ -181,40 +220,6 @@ function debugString(val) {
181
220
  return className;
182
221
  }
183
222
 
184
- const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
185
- ? { register: () => {}, unregister: () => {} }
186
- : new FinalizationRegistry(state => {
187
- wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b)
188
- });
189
-
190
- function makeMutClosure(arg0, arg1, dtor, f) {
191
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
192
- const real = (...args) => {
193
- // First up with a closure we increment the internal reference
194
- // count. This ensures that the Rust closure environment won't
195
- // be deallocated while we're invoking it.
196
- state.cnt++;
197
- const a = state.a;
198
- state.a = 0;
199
- try {
200
- return f(a, state.b, ...args);
201
- } finally {
202
- if (--state.cnt === 0) {
203
- wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
204
- CLOSURE_DTORS.unregister(state);
205
- } else {
206
- state.a = a;
207
- }
208
- }
209
- };
210
- real.original = state;
211
- CLOSURE_DTORS.register(real, state, state);
212
- return real;
213
- }
214
- function __wbg_adapter_54(arg0, arg1, arg2) {
215
- wasm.__wbindgen_export_3(arg0, arg1, addHeapObject(arg2));
216
- }
217
-
218
223
  let stack_pointer = 128;
219
224
 
220
225
  function addBorrowedObject(obj) {
@@ -259,9 +264,9 @@ function getArrayJsValueFromWasm0(ptr, len) {
259
264
  return result;
260
265
  }
261
266
  /**
262
- * @param {any} callback
263
- * @param {number} level
264
- */
267
+ * @param {any} callback
268
+ * @param {number} level
269
+ */
265
270
  export function initLogging(callback, level) {
266
271
  try {
267
272
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -277,22 +282,15 @@ export function initLogging(callback, level) {
277
282
  }
278
283
 
279
284
  /**
280
- * @param {number} level
281
- */
285
+ * @param {number} level
286
+ */
282
287
  export function setLogLevel(level) {
283
288
  wasm.setLogLevel(level);
284
289
  }
285
290
 
286
- function handleError(f, args) {
287
- try {
288
- return f.apply(this, args);
289
- } catch (e) {
290
- wasm.__wbindgen_export_5(addHeapObject(e));
291
- }
292
- }
293
291
  /**
294
- * @returns {string}
295
- */
292
+ * @returns {string}
293
+ */
296
294
  export function git_hash() {
297
295
  let deferred1_0;
298
296
  let deferred1_1;
@@ -311,9 +309,9 @@ export function git_hash() {
311
309
  }
312
310
 
313
311
  /**
314
- * @param {IProgramConfig} program
315
- * @returns {string}
316
- */
312
+ * @param {IProgramConfig} program
313
+ * @returns {string}
314
+ */
317
315
  export function get_qir(program) {
318
316
  let deferred2_0;
319
317
  let deferred2_1;
@@ -340,10 +338,10 @@ export function get_qir(program) {
340
338
  }
341
339
 
342
340
  /**
343
- * @param {IProgramConfig} program
344
- * @param {string} params
345
- * @returns {string}
346
- */
341
+ * @param {IProgramConfig} program
342
+ * @param {string} params
343
+ * @returns {string}
344
+ */
347
345
  export function get_estimates(program, params) {
348
346
  let deferred3_0;
349
347
  let deferred3_1;
@@ -372,11 +370,11 @@ export function get_estimates(program, params) {
372
370
  }
373
371
 
374
372
  /**
375
- * @param {IProgramConfig} program
376
- * @param {boolean} simulate
377
- * @param {IOperationInfo | undefined} [operation]
378
- * @returns {any}
379
- */
373
+ * @param {IProgramConfig} program
374
+ * @param {boolean} simulate
375
+ * @param {IOperationInfo | null} [operation]
376
+ * @returns {any}
377
+ */
380
378
  export function get_circuit(program, simulate, operation) {
381
379
  try {
382
380
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -394,9 +392,9 @@ export function get_circuit(program, simulate, operation) {
394
392
  }
395
393
 
396
394
  /**
397
- * @param {string} name
398
- * @returns {string | undefined}
399
- */
395
+ * @param {string} name
396
+ * @returns {string | undefined}
397
+ */
400
398
  export function get_library_source_content(name) {
401
399
  try {
402
400
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -417,11 +415,11 @@ export function get_library_source_content(name) {
417
415
  }
418
416
 
419
417
  /**
420
- * @param {string} code
421
- * @param {(string)[]} language_features
422
- * @param {string} profile
423
- * @returns {string}
424
- */
418
+ * @param {string} code
419
+ * @param {string[]} language_features
420
+ * @param {string} profile
421
+ * @returns {string}
422
+ */
425
423
  export function get_ast(code, language_features, profile) {
426
424
  let deferred5_0;
427
425
  let deferred5_1;
@@ -454,11 +452,11 @@ export function get_ast(code, language_features, profile) {
454
452
  }
455
453
 
456
454
  /**
457
- * @param {string} code
458
- * @param {(string)[]} language_features
459
- * @param {string} profile
460
- * @returns {string}
461
- */
455
+ * @param {string} code
456
+ * @param {string[]} language_features
457
+ * @param {string} profile
458
+ * @returns {string}
459
+ */
462
460
  export function get_hir(code, language_features, profile) {
463
461
  let deferred5_0;
464
462
  let deferred5_1;
@@ -491,12 +489,35 @@ export function get_hir(code, language_features, profile) {
491
489
  }
492
490
 
493
491
  /**
494
- * @param {IProgramConfig} program
495
- * @param {string} expr
496
- * @param {Function} event_cb
497
- * @param {number} shots
498
- * @returns {boolean}
499
- */
492
+ * @param {IProgramConfig} program
493
+ * @returns {string[]}
494
+ */
495
+ export function get_rir(program) {
496
+ try {
497
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
498
+ wasm.get_rir(retptr, addHeapObject(program));
499
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
500
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
501
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
502
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
503
+ if (r3) {
504
+ throw takeObject(r2);
505
+ }
506
+ var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
507
+ wasm.__wbindgen_export_4(r0, r1 * 4, 4);
508
+ return v1;
509
+ } finally {
510
+ wasm.__wbindgen_add_to_stack_pointer(16);
511
+ }
512
+ }
513
+
514
+ /**
515
+ * @param {IProgramConfig} program
516
+ * @param {string} expr
517
+ * @param {Function} event_cb
518
+ * @param {number} shots
519
+ * @returns {boolean}
520
+ */
500
521
  export function run(program, expr, event_cb, shots) {
501
522
  try {
502
523
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -517,13 +538,13 @@ export function run(program, expr, event_cb, shots) {
517
538
  }
518
539
 
519
540
  /**
520
- * @param {IProgramConfig} program
521
- * @param {string} expr
522
- * @param {Function} event_cb
523
- * @param {number} shots
524
- * @param {any} pauliNoise
525
- * @returns {boolean}
526
- */
541
+ * @param {IProgramConfig} program
542
+ * @param {string} expr
543
+ * @param {Function} event_cb
544
+ * @param {number} shots
545
+ * @param {any} pauliNoise
546
+ * @returns {boolean}
547
+ */
527
548
  export function runWithPauliNoise(program, expr, event_cb, shots, pauliNoise) {
528
549
  try {
529
550
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -545,11 +566,11 @@ export function runWithPauliNoise(program, expr, event_cb, shots, pauliNoise) {
545
566
  }
546
567
 
547
568
  /**
548
- * @param {string} solution_code
549
- * @param {any} exercise_sources_js
550
- * @param {Function} event_cb
551
- * @returns {boolean}
552
- */
569
+ * @param {string} solution_code
570
+ * @param {any} exercise_sources_js
571
+ * @param {Function} event_cb
572
+ * @returns {boolean}
573
+ */
553
574
  export function check_exercise_solution(solution_code, exercise_sources_js, event_cb) {
554
575
  try {
555
576
  const ptr0 = passStringToWasm0(solution_code, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
@@ -562,9 +583,9 @@ export function check_exercise_solution(solution_code, exercise_sources_js, even
562
583
  }
563
584
 
564
585
  /**
565
- * @param {IProgramConfig | undefined} [additional_program]
566
- * @returns {(IDocFile)[]}
567
- */
586
+ * @param {IProgramConfig | null} [additional_program]
587
+ * @returns {IDocFile[]}
588
+ */
568
589
  export function generate_docs(additional_program) {
569
590
  try {
570
591
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -579,19 +600,29 @@ export function generate_docs(additional_program) {
579
600
  }
580
601
  }
581
602
 
582
- function __wbg_adapter_199(arg0, arg1, arg2, arg3) {
603
+ function __wbg_adapter_54(arg0, arg1, arg2) {
604
+ wasm.__wbindgen_export_5(arg0, arg1, addHeapObject(arg2));
605
+ }
606
+
607
+ function __wbg_adapter_200(arg0, arg1, arg2, arg3) {
583
608
  wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
584
609
  }
585
610
 
586
611
  /**
587
- */
588
- export const StepResultId = Object.freeze({ BreakpointHit:0,"0":"BreakpointHit",Next:1,"1":"Next",StepIn:2,"2":"StepIn",StepOut:3,"3":"StepOut",Return:4,"4":"Return", });
612
+ * @enum {0 | 1 | 2 | 3 | 4}
613
+ */
614
+ export const StepResultId = Object.freeze({
615
+ BreakpointHit: 0, "0": "BreakpointHit",
616
+ Next: 1, "1": "Next",
617
+ StepIn: 2, "2": "StepIn",
618
+ StepOut: 3, "3": "StepOut",
619
+ Return: 4, "4": "Return",
620
+ });
589
621
 
590
622
  const DebugServiceFinalization = (typeof FinalizationRegistry === 'undefined')
591
623
  ? { register: () => {}, unregister: () => {} }
592
624
  : new FinalizationRegistry(ptr => wasm.__wbg_debugservice_free(ptr >>> 0, 1));
593
- /**
594
- */
625
+
595
626
  export class DebugService {
596
627
 
597
628
  __destroy_into_raw() {
@@ -605,8 +636,6 @@ export class DebugService {
605
636
  const ptr = this.__destroy_into_raw();
606
637
  wasm.__wbg_debugservice_free(ptr, 0);
607
638
  }
608
- /**
609
- */
610
639
  constructor() {
611
640
  const ret = wasm.debugservice_new();
612
641
  this.__wbg_ptr = ret >>> 0;
@@ -614,10 +643,10 @@ export class DebugService {
614
643
  return this;
615
644
  }
616
645
  /**
617
- * @param {IProgramConfig} program
618
- * @param {string | undefined} [entry]
619
- * @returns {string}
620
- */
646
+ * @param {IProgramConfig} program
647
+ * @param {string | null} [entry]
648
+ * @returns {string}
649
+ */
621
650
  load_program(program, entry) {
622
651
  let deferred2_0;
623
652
  let deferred2_1;
@@ -637,15 +666,15 @@ export class DebugService {
637
666
  }
638
667
  }
639
668
  /**
640
- * @returns {IQuantumStateList}
641
- */
669
+ * @returns {IQuantumStateList}
670
+ */
642
671
  capture_quantum_state() {
643
672
  const ret = wasm.debugservice_capture_quantum_state(this.__wbg_ptr);
644
673
  return takeObject(ret);
645
674
  }
646
675
  /**
647
- * @returns {any}
648
- */
676
+ * @returns {any}
677
+ */
649
678
  get_circuit() {
650
679
  try {
651
680
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -662,17 +691,17 @@ export class DebugService {
662
691
  }
663
692
  }
664
693
  /**
665
- * @returns {IStackFrameList}
666
- */
694
+ * @returns {IStackFrameList}
695
+ */
667
696
  get_stack_frames() {
668
697
  const ret = wasm.debugservice_get_stack_frames(this.__wbg_ptr);
669
698
  return takeObject(ret);
670
699
  }
671
700
  /**
672
- * @param {Function} event_cb
673
- * @param {Uint32Array} ids
674
- * @returns {IStructStepResult}
675
- */
701
+ * @param {Function} event_cb
702
+ * @param {Uint32Array} ids
703
+ * @returns {IStructStepResult}
704
+ */
676
705
  eval_next(event_cb, ids) {
677
706
  try {
678
707
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -692,10 +721,10 @@ export class DebugService {
692
721
  }
693
722
  }
694
723
  /**
695
- * @param {Function} event_cb
696
- * @param {Uint32Array} ids
697
- * @returns {IStructStepResult}
698
- */
724
+ * @param {Function} event_cb
725
+ * @param {Uint32Array} ids
726
+ * @returns {IStructStepResult}
727
+ */
699
728
  eval_continue(event_cb, ids) {
700
729
  try {
701
730
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -715,10 +744,10 @@ export class DebugService {
715
744
  }
716
745
  }
717
746
  /**
718
- * @param {Function} event_cb
719
- * @param {Uint32Array} ids
720
- * @returns {IStructStepResult}
721
- */
747
+ * @param {Function} event_cb
748
+ * @param {Uint32Array} ids
749
+ * @returns {IStructStepResult}
750
+ */
722
751
  eval_step_in(event_cb, ids) {
723
752
  try {
724
753
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -738,10 +767,10 @@ export class DebugService {
738
767
  }
739
768
  }
740
769
  /**
741
- * @param {Function} event_cb
742
- * @param {Uint32Array} ids
743
- * @returns {IStructStepResult}
744
- */
770
+ * @param {Function} event_cb
771
+ * @param {Uint32Array} ids
772
+ * @returns {IStructStepResult}
773
+ */
745
774
  eval_step_out(event_cb, ids) {
746
775
  try {
747
776
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -761,9 +790,9 @@ export class DebugService {
761
790
  }
762
791
  }
763
792
  /**
764
- * @param {string} path
765
- * @returns {IBreakpointSpanList}
766
- */
793
+ * @param {string} path
794
+ * @returns {IBreakpointSpanList}
795
+ */
767
796
  get_breakpoints(path) {
768
797
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
769
798
  const len0 = WASM_VECTOR_LEN;
@@ -771,8 +800,8 @@ export class DebugService {
771
800
  return takeObject(ret);
772
801
  }
773
802
  /**
774
- * @returns {IVariableList}
775
- */
803
+ * @returns {IVariableList}
804
+ */
776
805
  get_locals() {
777
806
  const ret = wasm.debugservice_get_locals(this.__wbg_ptr);
778
807
  return takeObject(ret);
@@ -782,8 +811,7 @@ export class DebugService {
782
811
  const LanguageServiceFinalization = (typeof FinalizationRegistry === 'undefined')
783
812
  ? { register: () => {}, unregister: () => {} }
784
813
  : new FinalizationRegistry(ptr => wasm.__wbg_languageservice_free(ptr >>> 0, 1));
785
- /**
786
- */
814
+
787
815
  export class LanguageService {
788
816
 
789
817
  __destroy_into_raw() {
@@ -797,8 +825,6 @@ export class LanguageService {
797
825
  const ptr = this.__destroy_into_raw();
798
826
  wasm.__wbg_languageservice_free(ptr, 0);
799
827
  }
800
- /**
801
- */
802
828
  constructor() {
803
829
  const ret = wasm.languageservice_new();
804
830
  this.__wbg_ptr = ret >>> 0;
@@ -806,30 +832,28 @@ export class LanguageService {
806
832
  return this;
807
833
  }
808
834
  /**
809
- * @param {(uri: string, version: number | undefined, diagnostics: VSDiagnostic[]) => void} diagnostics_callback
810
- * @param {IProjectHost} host
811
- * @returns {Promise<any>}
812
- */
835
+ * @param {(uri: string, version: number | undefined, diagnostics: VSDiagnostic[]) => void} diagnostics_callback
836
+ * @param {IProjectHost} host
837
+ * @returns {Promise<any>}
838
+ */
813
839
  start_background_work(diagnostics_callback, host) {
814
840
  const ret = wasm.languageservice_start_background_work(this.__wbg_ptr, addHeapObject(diagnostics_callback), addHeapObject(host));
815
841
  return takeObject(ret);
816
842
  }
817
- /**
818
- */
819
843
  stop_background_work() {
820
844
  wasm.languageservice_stop_background_work(this.__wbg_ptr);
821
845
  }
822
846
  /**
823
- * @param {IWorkspaceConfiguration} config
824
- */
847
+ * @param {IWorkspaceConfiguration} config
848
+ */
825
849
  update_configuration(config) {
826
850
  wasm.languageservice_update_configuration(this.__wbg_ptr, addHeapObject(config));
827
851
  }
828
852
  /**
829
- * @param {string} uri
830
- * @param {number} version
831
- * @param {string} text
832
- */
853
+ * @param {string} uri
854
+ * @param {number} version
855
+ * @param {string} text
856
+ */
833
857
  update_document(uri, version, text) {
834
858
  const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
835
859
  const len0 = WASM_VECTOR_LEN;
@@ -838,18 +862,18 @@ export class LanguageService {
838
862
  wasm.languageservice_update_document(this.__wbg_ptr, ptr0, len0, version, ptr1, len1);
839
863
  }
840
864
  /**
841
- * @param {string} uri
842
- */
865
+ * @param {string} uri
866
+ */
843
867
  close_document(uri) {
844
868
  const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
845
869
  const len0 = WASM_VECTOR_LEN;
846
870
  wasm.languageservice_close_document(this.__wbg_ptr, ptr0, len0);
847
871
  }
848
872
  /**
849
- * @param {string} notebook_uri
850
- * @param {INotebookMetadata} notebook_metadata
851
- * @param {(ICell)[]} cells
852
- */
873
+ * @param {string} notebook_uri
874
+ * @param {INotebookMetadata} notebook_metadata
875
+ * @param {ICell[]} cells
876
+ */
853
877
  update_notebook_document(notebook_uri, notebook_metadata, cells) {
854
878
  const ptr0 = passStringToWasm0(notebook_uri, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
855
879
  const len0 = WASM_VECTOR_LEN;
@@ -858,18 +882,18 @@ export class LanguageService {
858
882
  wasm.languageservice_update_notebook_document(this.__wbg_ptr, ptr0, len0, addHeapObject(notebook_metadata), ptr1, len1);
859
883
  }
860
884
  /**
861
- * @param {string} notebook_uri
862
- */
885
+ * @param {string} notebook_uri
886
+ */
863
887
  close_notebook_document(notebook_uri) {
864
888
  const ptr0 = passStringToWasm0(notebook_uri, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
865
889
  const len0 = WASM_VECTOR_LEN;
866
890
  wasm.languageservice_close_notebook_document(this.__wbg_ptr, ptr0, len0);
867
891
  }
868
892
  /**
869
- * @param {string} uri
870
- * @param {IRange} range
871
- * @returns {(ICodeAction)[]}
872
- */
893
+ * @param {string} uri
894
+ * @param {IRange} range
895
+ * @returns {ICodeAction[]}
896
+ */
873
897
  get_code_actions(uri, range) {
874
898
  try {
875
899
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -886,10 +910,10 @@ export class LanguageService {
886
910
  }
887
911
  }
888
912
  /**
889
- * @param {string} uri
890
- * @param {IPosition} position
891
- * @returns {ICompletionList}
892
- */
913
+ * @param {string} uri
914
+ * @param {IPosition} position
915
+ * @returns {ICompletionList}
916
+ */
893
917
  get_completions(uri, position) {
894
918
  const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
895
919
  const len0 = WASM_VECTOR_LEN;
@@ -897,10 +921,10 @@ export class LanguageService {
897
921
  return takeObject(ret);
898
922
  }
899
923
  /**
900
- * @param {string} uri
901
- * @param {IPosition} position
902
- * @returns {ILocation | undefined}
903
- */
924
+ * @param {string} uri
925
+ * @param {IPosition} position
926
+ * @returns {ILocation | undefined}
927
+ */
904
928
  get_definition(uri, position) {
905
929
  const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
906
930
  const len0 = WASM_VECTOR_LEN;
@@ -908,11 +932,11 @@ export class LanguageService {
908
932
  return takeObject(ret);
909
933
  }
910
934
  /**
911
- * @param {string} uri
912
- * @param {IPosition} position
913
- * @param {boolean} include_declaration
914
- * @returns {(ILocation)[]}
915
- */
935
+ * @param {string} uri
936
+ * @param {IPosition} position
937
+ * @param {boolean} include_declaration
938
+ * @returns {ILocation[]}
939
+ */
916
940
  get_references(uri, position, include_declaration) {
917
941
  try {
918
942
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -929,9 +953,9 @@ export class LanguageService {
929
953
  }
930
954
  }
931
955
  /**
932
- * @param {string} uri
933
- * @returns {(ITextEdit)[]}
934
- */
956
+ * @param {string} uri
957
+ * @returns {ITextEdit[]}
958
+ */
935
959
  get_format_changes(uri) {
936
960
  try {
937
961
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -948,10 +972,10 @@ export class LanguageService {
948
972
  }
949
973
  }
950
974
  /**
951
- * @param {string} uri
952
- * @param {IPosition} position
953
- * @returns {IHover | undefined}
954
- */
975
+ * @param {string} uri
976
+ * @param {IPosition} position
977
+ * @returns {IHover | undefined}
978
+ */
955
979
  get_hover(uri, position) {
956
980
  const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
957
981
  const len0 = WASM_VECTOR_LEN;
@@ -959,10 +983,10 @@ export class LanguageService {
959
983
  return takeObject(ret);
960
984
  }
961
985
  /**
962
- * @param {string} uri
963
- * @param {IPosition} position
964
- * @returns {ISignatureHelp | undefined}
965
- */
986
+ * @param {string} uri
987
+ * @param {IPosition} position
988
+ * @returns {ISignatureHelp | undefined}
989
+ */
966
990
  get_signature_help(uri, position) {
967
991
  const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
968
992
  const len0 = WASM_VECTOR_LEN;
@@ -970,11 +994,11 @@ export class LanguageService {
970
994
  return takeObject(ret);
971
995
  }
972
996
  /**
973
- * @param {string} uri
974
- * @param {IPosition} position
975
- * @param {string} new_name
976
- * @returns {IWorkspaceEdit}
977
- */
997
+ * @param {string} uri
998
+ * @param {IPosition} position
999
+ * @param {string} new_name
1000
+ * @returns {IWorkspaceEdit}
1001
+ */
978
1002
  get_rename(uri, position, new_name) {
979
1003
  const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
980
1004
  const len0 = WASM_VECTOR_LEN;
@@ -984,10 +1008,10 @@ export class LanguageService {
984
1008
  return takeObject(ret);
985
1009
  }
986
1010
  /**
987
- * @param {string} uri
988
- * @param {IPosition} position
989
- * @returns {ITextEdit | undefined}
990
- */
1011
+ * @param {string} uri
1012
+ * @param {IPosition} position
1013
+ * @returns {ITextEdit | undefined}
1014
+ */
991
1015
  prepare_rename(uri, position) {
992
1016
  const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
993
1017
  const len0 = WASM_VECTOR_LEN;
@@ -995,9 +1019,9 @@ export class LanguageService {
995
1019
  return takeObject(ret);
996
1020
  }
997
1021
  /**
998
- * @param {string} uri
999
- * @returns {(ICodeLens)[]}
1000
- */
1022
+ * @param {string} uri
1023
+ * @returns {ICodeLens[]}
1024
+ */
1001
1025
  get_code_lenses(uri) {
1002
1026
  try {
1003
1027
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -1019,9 +1043,9 @@ const ProjectLoaderFinalization = (typeof FinalizationRegistry === 'undefined')
1019
1043
  ? { register: () => {}, unregister: () => {} }
1020
1044
  : new FinalizationRegistry(ptr => wasm.__wbg_projectloader_free(ptr >>> 0, 1));
1021
1045
  /**
1022
- * a minimal implementation for interacting with async JS filesystem callbacks to
1023
- * load project files
1024
- */
1046
+ * a minimal implementation for interacting with async JS filesystem callbacks to
1047
+ * load project files
1048
+ */
1025
1049
  export class ProjectLoader {
1026
1050
 
1027
1051
  __destroy_into_raw() {
@@ -1036,8 +1060,8 @@ export class ProjectLoader {
1036
1060
  wasm.__wbg_projectloader_free(ptr, 0);
1037
1061
  }
1038
1062
  /**
1039
- * @param {IProjectHost} project_host
1040
- */
1063
+ * @param {IProjectHost} project_host
1064
+ */
1041
1065
  constructor(project_host) {
1042
1066
  const ret = wasm.projectloader_new(addHeapObject(project_host));
1043
1067
  this.__wbg_ptr = ret >>> 0;
@@ -1045,9 +1069,9 @@ export class ProjectLoader {
1045
1069
  return this;
1046
1070
  }
1047
1071
  /**
1048
- * @param {string} directory
1049
- * @returns {Promise<IProjectConfig>}
1050
- */
1072
+ * @param {string} directory
1073
+ * @returns {Promise<IProjectConfig>}
1074
+ */
1051
1075
  load_project_with_deps(directory) {
1052
1076
  const ptr0 = passStringToWasm0(directory, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1053
1077
  const len0 = WASM_VECTOR_LEN;
@@ -1064,7 +1088,7 @@ async function __wbg_load(module, imports) {
1064
1088
 
1065
1089
  } catch (e) {
1066
1090
  if (module.headers.get('Content-Type') != 'application/wasm') {
1067
- console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
1091
+ console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
1068
1092
 
1069
1093
  } else {
1070
1094
  throw e;
@@ -1090,405 +1114,316 @@ async function __wbg_load(module, imports) {
1090
1114
  function __wbg_get_imports() {
1091
1115
  const imports = {};
1092
1116
  imports.wbg = {};
1093
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
1094
- const obj = getObject(arg1);
1095
- const ret = typeof(obj) === 'string' ? obj : undefined;
1096
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1097
- var len1 = WASM_VECTOR_LEN;
1117
+ imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
1118
+ const ret = String(getObject(arg1));
1119
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1120
+ const len1 = WASM_VECTOR_LEN;
1098
1121
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1099
1122
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1100
1123
  };
1101
- imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
1102
- const obj = getObject(arg1);
1103
- const ret = typeof(obj) === 'number' ? obj : undefined;
1104
- getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
1105
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1106
- };
1107
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
1108
- takeObject(arg0);
1109
- };
1110
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
1111
- const ret = getStringFromWasm0(arg0, arg1);
1124
+ imports.wbg.__wbg_buffer_aa30bbb65cb44323 = function(arg0) {
1125
+ const ret = getObject(arg0).buffer;
1112
1126
  return addHeapObject(ret);
1113
1127
  };
1114
- imports.wbg.__wbindgen_cb_drop = function(arg0) {
1115
- const obj = takeObject(arg0).original;
1116
- if (obj.cnt-- == 1) {
1117
- obj.a = 0;
1118
- return true;
1119
- }
1120
- const ret = false;
1121
- return ret;
1122
- };
1123
- imports.wbg.__wbindgen_boolean_get = function(arg0) {
1124
- const v = getObject(arg0);
1125
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
1126
- return ret;
1127
- };
1128
- imports.wbg.__wbindgen_is_bigint = function(arg0) {
1129
- const ret = typeof(getObject(arg0)) === 'bigint';
1130
- return ret;
1131
- };
1132
- imports.wbg.__wbindgen_is_object = function(arg0) {
1133
- const val = getObject(arg0);
1134
- const ret = typeof(val) === 'object' && val !== null;
1135
- return ret;
1136
- };
1137
- imports.wbg.__wbindgen_in = function(arg0, arg1) {
1138
- const ret = getObject(arg0) in getObject(arg1);
1139
- return ret;
1140
- };
1141
- imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
1142
- const ret = arg0;
1128
+ imports.wbg.__wbg_call_41c7efaf6b1182f8 = function() { return handleError(function (arg0, arg1, arg2) {
1129
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
1143
1130
  return addHeapObject(ret);
1144
- };
1145
- imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
1146
- const ret = getObject(arg0) === getObject(arg1);
1147
- return ret;
1148
- };
1149
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
1150
- const ret = BigInt.asUintN(64, arg0);
1131
+ }, arguments) };
1132
+ imports.wbg.__wbg_call_aff990758d3576e4 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1133
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));
1151
1134
  return addHeapObject(ret);
1152
- };
1153
- imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
1154
- const ret = new Error(getStringFromWasm0(arg0, arg1));
1135
+ }, arguments) };
1136
+ imports.wbg.__wbg_call_c45d13337ffb12ac = function() { return handleError(function (arg0, arg1) {
1137
+ const ret = getObject(arg0).call(getObject(arg1));
1138
+ return addHeapObject(ret);
1139
+ }, arguments) };
1140
+ imports.wbg.__wbg_crypto_ed58b8e10a292839 = function(arg0) {
1141
+ const ret = getObject(arg0).crypto;
1155
1142
  return addHeapObject(ret);
1156
1143
  };
1157
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
1158
- const ret = getObject(arg0) === undefined;
1159
- return ret;
1160
- };
1161
- imports.wbg.__wbindgen_is_string = function(arg0) {
1162
- const ret = typeof(getObject(arg0)) === 'string';
1144
+ imports.wbg.__wbg_done_362f78ab584a24b5 = function(arg0) {
1145
+ const ret = getObject(arg0).done;
1163
1146
  return ret;
1164
1147
  };
1165
- imports.wbg.__wbindgen_number_new = function(arg0) {
1166
- const ret = arg0;
1148
+ imports.wbg.__wbg_entries_27a445ca6b702f8d = function(arg0) {
1149
+ const ret = Object.entries(getObject(arg0));
1167
1150
  return addHeapObject(ret);
1168
1151
  };
1169
- imports.wbg.__wbg_getstacktracelimit_1795d5c8573c0904 = function(arg0) {
1170
- const ret = Error.stackTraceLimit;
1171
- getDataViewMemory0().setInt32(arg0 + 4 * 1, isLikeNone(ret) ? 0 : ret, true);
1172
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1173
- };
1174
- imports.wbg.__wbg_setstacktracelimit_11f38865cc4ff17c = function(arg0) {
1175
- Error.stackTraceLimit = arg0 >>> 0;
1176
- };
1177
- imports.wbg.__wbg_new_0232637a3cb0b1a7 = function() {
1178
- const ret = new Error();
1152
+ imports.wbg.__wbg_fetchGithub_8d40e9b8dedfdb81 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
1153
+ const ret = getObject(arg0).fetchGithub(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4), getStringFromWasm0(arg5, arg6), getStringFromWasm0(arg7, arg8));
1179
1154
  return addHeapObject(ret);
1180
- };
1181
- imports.wbg.__wbg_stack_3090cd8fd3702c6e = function(arg0, arg1) {
1182
- const ret = getObject(arg1).stack;
1183
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1184
- const len1 = WASM_VECTOR_LEN;
1185
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1186
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1187
- };
1188
- imports.wbg.__wbg_profile_431ee5e29ff55ee3 = function(arg0, arg1) {
1189
- const ret = getObject(arg1).profile;
1190
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1191
- const len1 = WASM_VECTOR_LEN;
1192
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1193
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1194
- };
1195
- imports.wbg.__wbg_packageGraphSources_612f292bc2b31ff9 = function(arg0) {
1196
- const ret = getObject(arg0).packageGraphSources;
1155
+ }, arguments) };
1156
+ imports.wbg.__wbg_findManifestDirectory_91ae20bc11401cd7 = function(arg0, arg1, arg2) {
1157
+ const ret = getObject(arg0).findManifestDirectory(getStringFromWasm0(arg1, arg2));
1197
1158
  return addHeapObject(ret);
1198
1159
  };
1199
- imports.wbg.__wbindgen_is_function = function(arg0) {
1200
- const ret = typeof(getObject(arg0)) === 'function';
1201
- return ret;
1202
- };
1203
- imports.wbg.__wbindgen_typeof = function(arg0) {
1204
- const ret = typeof getObject(arg0);
1160
+ imports.wbg.__wbg_from_b4bd31c02b6d179c = function(arg0) {
1161
+ const ret = Array.from(getObject(arg0));
1205
1162
  return addHeapObject(ret);
1206
1163
  };
1207
- imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
1208
- const ret = getObject(arg0);
1164
+ imports.wbg.__wbg_getRandomValues_bcb4912f16000dc4 = function() { return handleError(function (arg0, arg1) {
1165
+ getObject(arg0).getRandomValues(getObject(arg1));
1166
+ }, arguments) };
1167
+ imports.wbg.__wbg_get_01203e6a4116a116 = function(arg0, arg1) {
1168
+ const ret = getObject(arg0)[arg1 >>> 0];
1209
1169
  return addHeapObject(ret);
1210
1170
  };
1211
- imports.wbg.__wbg_readFile_3776aacd85682587 = function() { return handleError(function (arg0, arg1, arg2) {
1212
- const ret = getObject(arg0).readFile(getStringFromWasm0(arg1, arg2));
1171
+ imports.wbg.__wbg_get_e7114b7bf3d9d5f5 = function() { return handleError(function (arg0, arg1) {
1172
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
1213
1173
  return addHeapObject(ret);
1214
1174
  }, arguments) };
1215
- imports.wbg.__wbg_listDirectory_271976dbfbb2dc9f = function(arg0, arg1, arg2) {
1216
- const ret = getObject(arg0).listDirectory(getStringFromWasm0(arg1, arg2));
1175
+ imports.wbg.__wbg_getstacktracelimit_af8b40007957b07f = function() {
1176
+ const ret = Error.stackTraceLimit;
1177
+ return isLikeNone(ret) ? 0x100000001 : (ret) >>> 0;
1178
+ };
1179
+ imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
1180
+ const ret = getObject(arg0)[getObject(arg1)];
1217
1181
  return addHeapObject(ret);
1218
1182
  };
1219
- imports.wbg.__wbg_resolvePath_674360b3ad1067f3 = function(arg0, arg1, arg2, arg3, arg4) {
1220
- const ret = getObject(arg0).resolvePath(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
1221
- return addHeapObject(ret);
1222
- };
1223
- imports.wbg.__wbg_fetchGithub_67eddbdd1e277279 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
1224
- const ret = getObject(arg0).fetchGithub(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4), getStringFromWasm0(arg5, arg6), getStringFromWasm0(arg7, arg8));
1183
+ imports.wbg.__wbg_globalThis_856ff24a65e13540 = function() { return handleError(function () {
1184
+ const ret = globalThis.globalThis;
1225
1185
  return addHeapObject(ret);
1226
1186
  }, arguments) };
1227
- imports.wbg.__wbg_findManifestDirectory_1e22fa316acdbeff = function(arg0, arg1, arg2) {
1228
- const ret = getObject(arg0).findManifestDirectory(getStringFromWasm0(arg1, arg2));
1187
+ imports.wbg.__wbg_global_fc813a897a497d26 = function() { return handleError(function () {
1188
+ const ret = global.global;
1229
1189
  return addHeapObject(ret);
1230
- };
1231
- imports.wbg.__wbindgen_is_array = function(arg0) {
1232
- const ret = Array.isArray(getObject(arg0));
1190
+ }, arguments) };
1191
+ imports.wbg.__wbg_instanceof_ArrayBuffer_8b96bf6c71691dc9 = function(arg0) {
1192
+ let result;
1193
+ try {
1194
+ result = getObject(arg0) instanceof ArrayBuffer;
1195
+ } catch (_) {
1196
+ result = false;
1197
+ }
1198
+ const ret = result;
1233
1199
  return ret;
1234
1200
  };
1235
- imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
1236
- const ret = getObject(arg0) == getObject(arg1);
1201
+ imports.wbg.__wbg_instanceof_Error_35d55cc64fb61630 = function(arg0) {
1202
+ let result;
1203
+ try {
1204
+ result = getObject(arg0) instanceof Error;
1205
+ } catch (_) {
1206
+ result = false;
1207
+ }
1208
+ const ret = result;
1237
1209
  return ret;
1238
1210
  };
1239
- imports.wbg.__wbindgen_as_number = function(arg0) {
1240
- const ret = +getObject(arg0);
1211
+ imports.wbg.__wbg_instanceof_Map_cd976ea4854c21db = function(arg0) {
1212
+ let result;
1213
+ try {
1214
+ result = getObject(arg0) instanceof Map;
1215
+ } catch (_) {
1216
+ result = false;
1217
+ }
1218
+ const ret = result;
1241
1219
  return ret;
1242
1220
  };
1243
- imports.wbg.__wbg_String_b9412f8799faab3e = function(arg0, arg1) {
1244
- const ret = String(getObject(arg1));
1245
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1246
- const len1 = WASM_VECTOR_LEN;
1247
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1248
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1221
+ imports.wbg.__wbg_instanceof_Uint8Array_faa8901ba56cb8e9 = function(arg0) {
1222
+ let result;
1223
+ try {
1224
+ result = getObject(arg0) instanceof Uint8Array;
1225
+ } catch (_) {
1226
+ result = false;
1227
+ }
1228
+ const ret = result;
1229
+ return ret;
1249
1230
  };
1250
- imports.wbg.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
1251
- const ret = getObject(arg0)[getObject(arg1)];
1252
- return addHeapObject(ret);
1231
+ imports.wbg.__wbg_isArray_6836d46c89daf1b6 = function(arg0) {
1232
+ const ret = Array.isArray(getObject(arg0));
1233
+ return ret;
1253
1234
  };
1254
- imports.wbg.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
1255
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
1235
+ imports.wbg.__wbg_isSafeInteger_2fb2b4f942993af4 = function(arg0) {
1236
+ const ret = Number.isSafeInteger(getObject(arg0));
1237
+ return ret;
1256
1238
  };
1257
- imports.wbg.__wbg_queueMicrotask_48421b3cc9052b68 = function(arg0) {
1258
- const ret = getObject(arg0).queueMicrotask;
1239
+ imports.wbg.__wbg_iterator_773e0b022e7009f4 = function() {
1240
+ const ret = Symbol.iterator;
1259
1241
  return addHeapObject(ret);
1260
1242
  };
1261
- imports.wbg.__wbg_queueMicrotask_12a30234db4045d3 = function(arg0) {
1262
- queueMicrotask(getObject(arg0));
1263
- };
1264
- imports.wbg.__wbg_crypto_1d1f22824a6a080c = function(arg0) {
1265
- const ret = getObject(arg0).crypto;
1266
- return addHeapObject(ret);
1243
+ imports.wbg.__wbg_length_0a11127664108286 = function(arg0) {
1244
+ const ret = getObject(arg0).length;
1245
+ return ret;
1267
1246
  };
1268
- imports.wbg.__wbg_process_4a72847cc503995b = function(arg0) {
1269
- const ret = getObject(arg0).process;
1270
- return addHeapObject(ret);
1247
+ imports.wbg.__wbg_length_9aaa2867670f533a = function(arg0) {
1248
+ const ret = getObject(arg0).length;
1249
+ return ret;
1271
1250
  };
1272
- imports.wbg.__wbg_versions_f686565e586dd935 = function(arg0) {
1273
- const ret = getObject(arg0).versions;
1251
+ imports.wbg.__wbg_listDirectory_827a3459b52ecade = function(arg0, arg1, arg2) {
1252
+ const ret = getObject(arg0).listDirectory(getStringFromWasm0(arg1, arg2));
1274
1253
  return addHeapObject(ret);
1275
1254
  };
1276
- imports.wbg.__wbg_node_104a2ff8d6ea03a2 = function(arg0) {
1277
- const ret = getObject(arg0).node;
1255
+ imports.wbg.__wbg_message_b5668b9cb29859e1 = function(arg0) {
1256
+ const ret = getObject(arg0).message;
1278
1257
  return addHeapObject(ret);
1279
1258
  };
1280
- imports.wbg.__wbg_require_cca90b1a94a0255b = function() { return handleError(function () {
1281
- const ret = module.require;
1282
- return addHeapObject(ret);
1283
- }, arguments) };
1284
- imports.wbg.__wbg_msCrypto_eb05e62b530a1508 = function(arg0) {
1259
+ imports.wbg.__wbg_msCrypto_0a36e2ec3a343d26 = function(arg0) {
1285
1260
  const ret = getObject(arg0).msCrypto;
1286
1261
  return addHeapObject(ret);
1287
1262
  };
1288
- imports.wbg.__wbg_randomFillSync_5c9c955aa56b6049 = function() { return handleError(function (arg0, arg1) {
1289
- getObject(arg0).randomFillSync(takeObject(arg1));
1290
- }, arguments) };
1291
- imports.wbg.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) {
1292
- getObject(arg0).getRandomValues(getObject(arg1));
1293
- }, arguments) };
1294
- imports.wbg.__wbg_self_3093d5d1f7bcb682 = function() { return handleError(function () {
1295
- const ret = self.self;
1296
- return addHeapObject(ret);
1297
- }, arguments) };
1298
- imports.wbg.__wbg_window_3bcfc4d31bc012f8 = function() { return handleError(function () {
1299
- const ret = window.window;
1300
- return addHeapObject(ret);
1301
- }, arguments) };
1302
- imports.wbg.__wbg_globalThis_86b222e13bdf32ed = function() { return handleError(function () {
1303
- const ret = globalThis.globalThis;
1304
- return addHeapObject(ret);
1305
- }, arguments) };
1306
- imports.wbg.__wbg_global_e5a3fe56f8be9485 = function() { return handleError(function () {
1307
- const ret = global.global;
1308
- return addHeapObject(ret);
1309
- }, arguments) };
1310
- imports.wbg.__wbg_newnoargs_76313bd6ff35d0f2 = function(arg0, arg1) {
1311
- const ret = new Function(getStringFromWasm0(arg0, arg1));
1312
- return addHeapObject(ret);
1263
+ imports.wbg.__wbg_new_07527e5c188e7771 = function(arg0, arg1) {
1264
+ try {
1265
+ var state0 = {a: arg0, b: arg1};
1266
+ var cb0 = (arg0, arg1) => {
1267
+ const a = state0.a;
1268
+ state0.a = 0;
1269
+ try {
1270
+ return __wbg_adapter_200(a, state0.b, arg0, arg1);
1271
+ } finally {
1272
+ state0.a = a;
1273
+ }
1274
+ };
1275
+ const ret = new Promise(cb0);
1276
+ return addHeapObject(ret);
1277
+ } finally {
1278
+ state0.a = state0.b = 0;
1279
+ }
1313
1280
  };
1314
- imports.wbg.__wbg_call_1084a111329e68ce = function() { return handleError(function (arg0, arg1) {
1315
- const ret = getObject(arg0).call(getObject(arg1));
1316
- return addHeapObject(ret);
1317
- }, arguments) };
1318
- imports.wbg.__wbg_get_3baa728f9d58d3f6 = function(arg0, arg1) {
1319
- const ret = getObject(arg0)[arg1 >>> 0];
1281
+ imports.wbg.__wbg_new_4c16aab09d1eb450 = function() {
1282
+ const ret = new Object();
1320
1283
  return addHeapObject(ret);
1321
1284
  };
1322
- imports.wbg.__wbg_length_ae22078168b726f5 = function(arg0) {
1323
- const ret = getObject(arg0).length;
1324
- return ret;
1325
- };
1326
- imports.wbg.__wbg_new_a220cf903aa02ca2 = function() {
1285
+ imports.wbg.__wbg_new_6e254ba4a466646d = function() {
1327
1286
  const ret = new Array();
1328
1287
  return addHeapObject(ret);
1329
1288
  };
1330
- imports.wbg.__wbg_new_8608a2b51a5f6737 = function() {
1289
+ imports.wbg.__wbg_new_820d2bbee2d13ba3 = function() {
1331
1290
  const ret = new Map();
1332
1291
  return addHeapObject(ret);
1333
1292
  };
1334
- imports.wbg.__wbg_next_de3e9db4440638b2 = function(arg0) {
1335
- const ret = getObject(arg0).next;
1293
+ imports.wbg.__wbg_new_a774eb7503f03596 = function() {
1294
+ const ret = new Error();
1336
1295
  return addHeapObject(ret);
1337
1296
  };
1338
- imports.wbg.__wbg_next_f9cb570345655b9a = function() { return handleError(function (arg0) {
1339
- const ret = getObject(arg0).next();
1297
+ imports.wbg.__wbg_new_db41cf29086ce106 = function(arg0) {
1298
+ const ret = new Uint8Array(getObject(arg0));
1340
1299
  return addHeapObject(ret);
1341
- }, arguments) };
1342
- imports.wbg.__wbg_done_bfda7aa8f252b39f = function(arg0) {
1343
- const ret = getObject(arg0).done;
1344
- return ret;
1345
1300
  };
1346
- imports.wbg.__wbg_value_6d39332ab4788d86 = function(arg0) {
1347
- const ret = getObject(arg0).value;
1301
+ imports.wbg.__wbg_newnoargs_29f93ce2db72cd07 = function(arg0, arg1) {
1302
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
1348
1303
  return addHeapObject(ret);
1349
1304
  };
1350
- imports.wbg.__wbg_iterator_888179a48810a9fe = function() {
1351
- const ret = Symbol.iterator;
1305
+ imports.wbg.__wbg_newwithbyteoffsetandlength_c8ea72df7687880b = function(arg0, arg1, arg2) {
1306
+ const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
1352
1307
  return addHeapObject(ret);
1353
1308
  };
1354
- imports.wbg.__wbg_get_224d16597dbbfd96 = function() { return handleError(function (arg0, arg1) {
1355
- const ret = Reflect.get(getObject(arg0), getObject(arg1));
1309
+ imports.wbg.__wbg_newwithlength_60b9d756f80003a6 = function(arg0) {
1310
+ const ret = new Uint8Array(arg0 >>> 0);
1311
+ return addHeapObject(ret);
1312
+ };
1313
+ imports.wbg.__wbg_next_95ee887e1f50209d = function() { return handleError(function (arg0) {
1314
+ const ret = getObject(arg0).next();
1356
1315
  return addHeapObject(ret);
1357
1316
  }, arguments) };
1358
- imports.wbg.__wbg_new_525245e2b9901204 = function() {
1359
- const ret = new Object();
1317
+ imports.wbg.__wbg_next_b2690a2dab163f0f = function(arg0) {
1318
+ const ret = getObject(arg0).next;
1360
1319
  return addHeapObject(ret);
1361
1320
  };
1362
- imports.wbg.__wbg_set_673dda6c73d19609 = function(arg0, arg1, arg2) {
1363
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
1321
+ imports.wbg.__wbg_node_02999533c4ea02e3 = function(arg0) {
1322
+ const ret = getObject(arg0).node;
1323
+ return addHeapObject(ret);
1364
1324
  };
1365
- imports.wbg.__wbg_from_0791d740a9d37830 = function(arg0) {
1366
- const ret = Array.from(getObject(arg0));
1325
+ imports.wbg.__wbg_packageGraphSources_a4ff6a84f5812e15 = function(arg0) {
1326
+ const ret = getObject(arg0).packageGraphSources;
1367
1327
  return addHeapObject(ret);
1368
1328
  };
1369
- imports.wbg.__wbg_isArray_8364a5371e9737d8 = function(arg0) {
1370
- const ret = Array.isArray(getObject(arg0));
1371
- return ret;
1329
+ imports.wbg.__wbg_process_5c1d670bc53614b8 = function(arg0) {
1330
+ const ret = getObject(arg0).process;
1331
+ return addHeapObject(ret);
1372
1332
  };
1373
- imports.wbg.__wbg_instanceof_ArrayBuffer_61dfc3198373c902 = function(arg0) {
1374
- let result;
1375
- try {
1376
- result = getObject(arg0) instanceof ArrayBuffer;
1377
- } catch (_) {
1378
- result = false;
1379
- }
1380
- const ret = result;
1381
- return ret;
1333
+ imports.wbg.__wbg_profile_35b65d3ebe7ebbee = function(arg0, arg1) {
1334
+ const ret = getObject(arg1).profile;
1335
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1336
+ const len1 = WASM_VECTOR_LEN;
1337
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1338
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1382
1339
  };
1383
- imports.wbg.__wbg_instanceof_Error_69bde193b0cc95e3 = function(arg0) {
1384
- let result;
1385
- try {
1386
- result = getObject(arg0) instanceof Error;
1387
- } catch (_) {
1388
- result = false;
1389
- }
1390
- const ret = result;
1391
- return ret;
1340
+ imports.wbg.__wbg_queueMicrotask_98e746b9f850fe3d = function(arg0) {
1341
+ queueMicrotask(getObject(arg0));
1392
1342
  };
1393
- imports.wbg.__wbg_message_e18bae0a0e2c097a = function(arg0) {
1394
- const ret = getObject(arg0).message;
1343
+ imports.wbg.__wbg_queueMicrotask_c847cc8372bec908 = function(arg0) {
1344
+ const ret = getObject(arg0).queueMicrotask;
1395
1345
  return addHeapObject(ret);
1396
1346
  };
1397
- imports.wbg.__wbg_call_89af060b4e1523f2 = function() { return handleError(function (arg0, arg1, arg2) {
1398
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
1347
+ imports.wbg.__wbg_randomFillSync_ab2cfe79ebbf2740 = function() { return handleError(function (arg0, arg1) {
1348
+ getObject(arg0).randomFillSync(takeObject(arg1));
1349
+ }, arguments) };
1350
+ imports.wbg.__wbg_readFile_69715ec88ba8893d = function() { return handleError(function (arg0, arg1, arg2) {
1351
+ const ret = getObject(arg0).readFile(getStringFromWasm0(arg1, arg2));
1399
1352
  return addHeapObject(ret);
1400
1353
  }, arguments) };
1401
- imports.wbg.__wbg_call_7de908392845a9a5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1402
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));
1354
+ imports.wbg.__wbg_require_79b1e9274cde3c87 = function() { return handleError(function () {
1355
+ const ret = module.require;
1403
1356
  return addHeapObject(ret);
1404
1357
  }, arguments) };
1405
- imports.wbg.__wbg_instanceof_Map_763ce0e95960d55e = function(arg0) {
1406
- let result;
1407
- try {
1408
- result = getObject(arg0) instanceof Map;
1409
- } catch (_) {
1410
- result = false;
1411
- }
1412
- const ret = result;
1413
- return ret;
1358
+ imports.wbg.__wbg_resolvePath_589375b90e08e655 = function(arg0, arg1, arg2, arg3, arg4) {
1359
+ const ret = getObject(arg0).resolvePath(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
1360
+ return addHeapObject(ret);
1361
+ };
1362
+ imports.wbg.__wbg_resolve_03bf127fbf612c20 = function(arg0) {
1363
+ const ret = Promise.resolve(getObject(arg0));
1364
+ return addHeapObject(ret);
1414
1365
  };
1415
- imports.wbg.__wbg_set_49185437f0ab06f8 = function(arg0, arg1, arg2) {
1366
+ imports.wbg.__wbg_self_799f153b0b6e0183 = function() { return handleError(function () {
1367
+ const ret = self.self;
1368
+ return addHeapObject(ret);
1369
+ }, arguments) };
1370
+ imports.wbg.__wbg_set_1f2956726252aaf4 = function(arg0, arg1, arg2) {
1416
1371
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
1417
1372
  return addHeapObject(ret);
1418
1373
  };
1419
- imports.wbg.__wbg_isSafeInteger_7f1ed56200d90674 = function(arg0) {
1420
- const ret = Number.isSafeInteger(getObject(arg0));
1421
- return ret;
1374
+ imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
1375
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
1422
1376
  };
1423
- imports.wbg.__wbg_entries_7a0e06255456ebcd = function(arg0) {
1424
- const ret = Object.entries(getObject(arg0));
1425
- return addHeapObject(ret);
1377
+ imports.wbg.__wbg_set_e1b9d9ffeee30338 = function(arg0, arg1, arg2) {
1378
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
1426
1379
  };
1427
- imports.wbg.__wbg_buffer_b7b08af79b0b0974 = function(arg0) {
1428
- const ret = getObject(arg0).buffer;
1429
- return addHeapObject(ret);
1380
+ imports.wbg.__wbg_set_e97d203fd145cdae = function(arg0, arg1, arg2) {
1381
+ getObject(arg0).set(getObject(arg1), arg2 >>> 0);
1430
1382
  };
1431
- imports.wbg.__wbg_new_b85e72ed1bfd57f9 = function(arg0, arg1) {
1432
- try {
1433
- var state0 = {a: arg0, b: arg1};
1434
- var cb0 = (arg0, arg1) => {
1435
- const a = state0.a;
1436
- state0.a = 0;
1437
- try {
1438
- return __wbg_adapter_199(a, state0.b, arg0, arg1);
1439
- } finally {
1440
- state0.a = a;
1441
- }
1442
- };
1443
- const ret = new Promise(cb0);
1444
- return addHeapObject(ret);
1445
- } finally {
1446
- state0.a = state0.b = 0;
1447
- }
1383
+ imports.wbg.__wbg_setstacktracelimit_1055f99289ff0c7b = function(arg0) {
1384
+ Error.stackTraceLimit = arg0 >>> 0;
1448
1385
  };
1449
- imports.wbg.__wbg_resolve_570458cb99d56a43 = function(arg0) {
1450
- const ret = Promise.resolve(getObject(arg0));
1451
- return addHeapObject(ret);
1386
+ imports.wbg.__wbg_stack_ab46af82f81848ee = function(arg0, arg1) {
1387
+ const ret = getObject(arg1).stack;
1388
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1389
+ const len1 = WASM_VECTOR_LEN;
1390
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1391
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1452
1392
  };
1453
- imports.wbg.__wbg_then_95e6edc0f89b73b1 = function(arg0, arg1) {
1454
- const ret = getObject(arg0).then(getObject(arg1));
1393
+ imports.wbg.__wbg_subarray_a984c21c3cf98bbb = function(arg0, arg1, arg2) {
1394
+ const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
1455
1395
  return addHeapObject(ret);
1456
1396
  };
1457
- imports.wbg.__wbg_then_876bb3c633745cc6 = function(arg0, arg1, arg2) {
1397
+ imports.wbg.__wbg_then_5c9c71165832b5a1 = function(arg0, arg1, arg2) {
1458
1398
  const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
1459
1399
  return addHeapObject(ret);
1460
1400
  };
1461
- imports.wbg.__wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9 = function(arg0, arg1, arg2) {
1462
- const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
1401
+ imports.wbg.__wbg_then_d88c104795b9d5aa = function(arg0, arg1) {
1402
+ const ret = getObject(arg0).then(getObject(arg1));
1463
1403
  return addHeapObject(ret);
1464
1404
  };
1465
- imports.wbg.__wbg_new_ea1883e1e5e86686 = function(arg0) {
1466
- const ret = new Uint8Array(getObject(arg0));
1405
+ imports.wbg.__wbg_value_87c720f6568103d1 = function(arg0) {
1406
+ const ret = getObject(arg0).value;
1467
1407
  return addHeapObject(ret);
1468
1408
  };
1469
- imports.wbg.__wbg_set_d1e79e2388520f18 = function(arg0, arg1, arg2) {
1470
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
1471
- };
1472
- imports.wbg.__wbg_length_8339fcf5d8ecd12e = function(arg0) {
1473
- const ret = getObject(arg0).length;
1474
- return ret;
1409
+ imports.wbg.__wbg_versions_c71aa1626a93e0a1 = function(arg0) {
1410
+ const ret = getObject(arg0).versions;
1411
+ return addHeapObject(ret);
1475
1412
  };
1476
- imports.wbg.__wbg_instanceof_Uint8Array_247a91427532499e = function(arg0) {
1477
- let result;
1478
- try {
1479
- result = getObject(arg0) instanceof Uint8Array;
1480
- } catch (_) {
1481
- result = false;
1482
- }
1483
- const ret = result;
1413
+ imports.wbg.__wbg_window_cd65fa4478648b49 = function() { return handleError(function () {
1414
+ const ret = window.window;
1415
+ return addHeapObject(ret);
1416
+ }, arguments) };
1417
+ imports.wbg.__wbindgen_as_number = function(arg0) {
1418
+ const ret = +getObject(arg0);
1484
1419
  return ret;
1485
1420
  };
1486
- imports.wbg.__wbg_newwithlength_ec548f448387c968 = function(arg0) {
1487
- const ret = new Uint8Array(arg0 >>> 0);
1421
+ imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
1422
+ const ret = arg0;
1488
1423
  return addHeapObject(ret);
1489
1424
  };
1490
- imports.wbg.__wbg_subarray_7c2e3576afe181d1 = function(arg0, arg1, arg2) {
1491
- const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
1425
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
1426
+ const ret = BigInt.asUintN(64, arg0);
1492
1427
  return addHeapObject(ret);
1493
1428
  };
1494
1429
  imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
@@ -1497,6 +1432,24 @@ function __wbg_get_imports() {
1497
1432
  getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
1498
1433
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1499
1434
  };
1435
+ imports.wbg.__wbindgen_boolean_get = function(arg0) {
1436
+ const v = getObject(arg0);
1437
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
1438
+ return ret;
1439
+ };
1440
+ imports.wbg.__wbindgen_cb_drop = function(arg0) {
1441
+ const obj = takeObject(arg0).original;
1442
+ if (obj.cnt-- == 1) {
1443
+ obj.a = 0;
1444
+ return true;
1445
+ }
1446
+ const ret = false;
1447
+ return ret;
1448
+ };
1449
+ imports.wbg.__wbindgen_closure_wrapper949 = function(arg0, arg1, arg2) {
1450
+ const ret = makeMutClosure(arg0, arg1, 373, __wbg_adapter_54);
1451
+ return addHeapObject(ret);
1452
+ };
1500
1453
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
1501
1454
  const ret = debugString(getObject(arg1));
1502
1455
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
@@ -1504,15 +1457,85 @@ function __wbg_get_imports() {
1504
1457
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1505
1458
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1506
1459
  };
1507
- imports.wbg.__wbindgen_throw = function(arg0, arg1) {
1508
- throw new Error(getStringFromWasm0(arg0, arg1));
1460
+ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
1461
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
1462
+ return addHeapObject(ret);
1463
+ };
1464
+ imports.wbg.__wbindgen_in = function(arg0, arg1) {
1465
+ const ret = getObject(arg0) in getObject(arg1);
1466
+ return ret;
1467
+ };
1468
+ imports.wbg.__wbindgen_is_array = function(arg0) {
1469
+ const ret = Array.isArray(getObject(arg0));
1470
+ return ret;
1471
+ };
1472
+ imports.wbg.__wbindgen_is_bigint = function(arg0) {
1473
+ const ret = typeof(getObject(arg0)) === 'bigint';
1474
+ return ret;
1475
+ };
1476
+ imports.wbg.__wbindgen_is_function = function(arg0) {
1477
+ const ret = typeof(getObject(arg0)) === 'function';
1478
+ return ret;
1479
+ };
1480
+ imports.wbg.__wbindgen_is_object = function(arg0) {
1481
+ const val = getObject(arg0);
1482
+ const ret = typeof(val) === 'object' && val !== null;
1483
+ return ret;
1484
+ };
1485
+ imports.wbg.__wbindgen_is_string = function(arg0) {
1486
+ const ret = typeof(getObject(arg0)) === 'string';
1487
+ return ret;
1488
+ };
1489
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
1490
+ const ret = getObject(arg0) === undefined;
1491
+ return ret;
1492
+ };
1493
+ imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
1494
+ const ret = getObject(arg0) === getObject(arg1);
1495
+ return ret;
1496
+ };
1497
+ imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
1498
+ const ret = getObject(arg0) == getObject(arg1);
1499
+ return ret;
1509
1500
  };
1510
1501
  imports.wbg.__wbindgen_memory = function() {
1511
1502
  const ret = wasm.memory;
1512
1503
  return addHeapObject(ret);
1513
1504
  };
1514
- imports.wbg.__wbindgen_closure_wrapper927 = function(arg0, arg1, arg2) {
1515
- const ret = makeMutClosure(arg0, arg1, 369, __wbg_adapter_54);
1505
+ imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
1506
+ const obj = getObject(arg1);
1507
+ const ret = typeof(obj) === 'number' ? obj : undefined;
1508
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
1509
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1510
+ };
1511
+ imports.wbg.__wbindgen_number_new = function(arg0) {
1512
+ const ret = arg0;
1513
+ return addHeapObject(ret);
1514
+ };
1515
+ imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
1516
+ const ret = getObject(arg0);
1517
+ return addHeapObject(ret);
1518
+ };
1519
+ imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
1520
+ takeObject(arg0);
1521
+ };
1522
+ imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
1523
+ const obj = getObject(arg1);
1524
+ const ret = typeof(obj) === 'string' ? obj : undefined;
1525
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1526
+ var len1 = WASM_VECTOR_LEN;
1527
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1528
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1529
+ };
1530
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
1531
+ const ret = getStringFromWasm0(arg0, arg1);
1532
+ return addHeapObject(ret);
1533
+ };
1534
+ imports.wbg.__wbindgen_throw = function(arg0, arg1) {
1535
+ throw new Error(getStringFromWasm0(arg0, arg1));
1536
+ };
1537
+ imports.wbg.__wbindgen_typeof = function(arg0) {
1538
+ const ret = typeof getObject(arg0);
1516
1539
  return addHeapObject(ret);
1517
1540
  };
1518
1541
 
@@ -1539,10 +1562,13 @@ function initSync(module) {
1539
1562
  if (wasm !== undefined) return wasm;
1540
1563
 
1541
1564
 
1542
- if (typeof module !== 'undefined' && Object.getPrototypeOf(module) === Object.prototype)
1543
- ({module} = module)
1544
- else
1545
- console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
1565
+ if (typeof module !== 'undefined') {
1566
+ if (Object.getPrototypeOf(module) === Object.prototype) {
1567
+ ({module} = module)
1568
+ } else {
1569
+ console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
1570
+ }
1571
+ }
1546
1572
 
1547
1573
  const imports = __wbg_get_imports();
1548
1574
 
@@ -1561,10 +1587,13 @@ async function __wbg_init(module_or_path) {
1561
1587
  if (wasm !== undefined) return wasm;
1562
1588
 
1563
1589
 
1564
- if (typeof module_or_path !== 'undefined' && Object.getPrototypeOf(module_or_path) === Object.prototype)
1565
- ({module_or_path} = module_or_path)
1566
- else
1567
- console.warn('using deprecated parameters for the initialization function; pass a single object instead')
1590
+ if (typeof module_or_path !== 'undefined') {
1591
+ if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
1592
+ ({module_or_path} = module_or_path)
1593
+ } else {
1594
+ console.warn('using deprecated parameters for the initialization function; pass a single object instead')
1595
+ }
1596
+ }
1568
1597
 
1569
1598
  if (typeof module_or_path === 'undefined') {
1570
1599
  module_or_path = new URL('qsc_wasm_bg.wasm', import.meta.url);