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