Decompiled source of VRTRAKILL v2.0.3

patchers/AssetsTools.NET.dll

Decompiled 3 days ago
using System;
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using System.Text;
using System.Text.RegularExpressions;
using AssetsTools.NET.Extra;
using AssetsTools.NET.Extra.Decompressors.LZ4;
using LZ4ps;
using SevenZip;
using SevenZip.Compression.LZ;
using SevenZip.Compression.LZMA;
using SevenZip.Compression.RangeCoder;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("AssetsTools.NET")]
[assembly: AssemblyDescription("A remake and port of SeriousCache's AssetTools")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("nesrak1")]
[assembly: AssemblyProduct("AssetsTools.NET")]
[assembly: AssemblyCopyright("Written by nes")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("e09d5ac2-1a2e-4ec1-94ad-3f5e22f17658")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.0", FrameworkDisplayName = ".NET Framework 4")]
[assembly: AssemblyVersion("3.0.0.0")]
namespace SevenZip
{
	internal class CRC
	{
		public static readonly uint[] Table;

		private uint _value = uint.MaxValue;

		static CRC()
		{
			Table = new uint[256];
			for (uint num = 0u; num < 256; num++)
			{
				uint num2 = num;
				for (int i = 0; i < 8; i++)
				{
					num2 = (((num2 & 1) == 0) ? (num2 >> 1) : ((num2 >> 1) ^ 0xEDB88320u));
				}
				Table[num] = num2;
			}
		}

		public void Init()
		{
			_value = uint.MaxValue;
		}

		public void UpdateByte(byte b)
		{
			_value = Table[(byte)_value ^ b] ^ (_value >> 8);
		}

		public void Update(byte[] data, uint offset, uint size)
		{
			for (uint num = 0u; num < size; num++)
			{
				_value = Table[(byte)_value ^ data[offset + num]] ^ (_value >> 8);
			}
		}

		public uint GetDigest()
		{
			return _value ^ 0xFFFFFFFFu;
		}

		private static uint CalculateDigest(byte[] data, uint offset, uint size)
		{
			CRC cRC = new CRC();
			cRC.Update(data, offset, size);
			return cRC.GetDigest();
		}

		private static bool VerifyDigest(uint digest, byte[] data, uint offset, uint size)
		{
			return CalculateDigest(data, offset, size) == digest;
		}
	}
	internal class DataErrorException : ApplicationException
	{
		public DataErrorException()
			: base("Data Error")
		{
		}
	}
	internal class InvalidParamException : ApplicationException
	{
		public InvalidParamException()
			: base("Invalid Parameter")
		{
		}
	}
	public interface ICodeProgress
	{
		void SetProgress(long inSize, long outSize);
	}
	public interface ICoder
	{
		void Code(Stream inStream, Stream outStream, long inSize, long outSize, ICodeProgress progress);
	}
	public enum CoderPropID
	{
		DefaultProp,
		DictionarySize,
		UsedMemorySize,
		Order,
		BlockSize,
		PosStateBits,
		LitContextBits,
		LitPosBits,
		NumFastBytes,
		MatchFinder,
		MatchFinderCycles,
		NumPasses,
		Algorithm,
		NumThreads,
		EndMarker
	}
	public interface ISetCoderProperties
	{
		void SetCoderProperties(CoderPropID[] propIDs, object[] properties);
	}
	public interface IWriteCoderProperties
	{
		void WriteCoderProperties(Stream outStream);
	}
	public interface ISetDecoderProperties
	{
		void SetDecoderProperties(byte[] properties);
	}
}
namespace SevenZip.Compression.RangeCoder
{
	internal class Encoder
	{
		public const uint kTopValue = 16777216u;

		private Stream Stream;

		public ulong Low;

		public uint Range;

		private uint _cacheSize;

		private byte _cache;

		private long StartPosition;

		public void SetStream(Stream stream)
		{
			Stream = stream;
		}

		public void ReleaseStream()
		{
			Stream = null;
		}

		public void Init()
		{
			StartPosition = Stream.Position;
			Low = 0uL;
			Range = uint.MaxValue;
			_cacheSize = 1u;
			_cache = 0;
		}

		public void FlushData()
		{
			for (int i = 0; i < 5; i++)
			{
				ShiftLow();
			}
		}

		public void FlushStream()
		{
			Stream.Flush();
		}

		public void CloseStream()
		{
			Stream.Close();
		}

		public void Encode(uint start, uint size, uint total)
		{
			Low += start * (Range /= total);
			Range *= size;
			while (Range < 16777216)
			{
				Range <<= 8;
				ShiftLow();
			}
		}

		public void ShiftLow()
		{
			if ((uint)Low < 4278190080u || (int)(Low >> 32) == 1)
			{
				byte b = _cache;
				do
				{
					Stream.WriteByte((byte)(b + (Low >> 32)));
					b = byte.MaxValue;
				}
				while (--_cacheSize != 0);
				_cache = (byte)((uint)Low >> 24);
			}
			_cacheSize++;
			Low = (uint)((int)Low << 8);
		}

		public void EncodeDirectBits(uint v, int numTotalBits)
		{
			for (int num = numTotalBits - 1; num >= 0; num--)
			{
				Range >>= 1;
				if (((v >> num) & 1) == 1)
				{
					Low += Range;
				}
				if (Range < 16777216)
				{
					Range <<= 8;
					ShiftLow();
				}
			}
		}

		public void EncodeBit(uint size0, int numTotalBits, uint symbol)
		{
			uint num = (Range >> numTotalBits) * size0;
			if (symbol == 0)
			{
				Range = num;
			}
			else
			{
				Low += num;
				Range -= num;
			}
			while (Range < 16777216)
			{
				Range <<= 8;
				ShiftLow();
			}
		}

		public long GetProcessedSizeAdd()
		{
			return _cacheSize + Stream.Position - StartPosition + 4;
		}
	}
	internal class Decoder
	{
		public const uint kTopValue = 16777216u;

		public uint Range;

		public uint Code;

		public Stream Stream;

		public void Init(Stream stream)
		{
			Stream = stream;
			Code = 0u;
			Range = uint.MaxValue;
			for (int i = 0; i < 5; i++)
			{
				Code = (Code << 8) | (byte)Stream.ReadByte();
			}
		}

		public void ReleaseStream()
		{
			Stream = null;
		}

		public void CloseStream()
		{
			Stream.Close();
		}

		public void Normalize()
		{
			while (Range < 16777216)
			{
				Code = (Code << 8) | (byte)Stream.ReadByte();
				Range <<= 8;
			}
		}

		public void Normalize2()
		{
			if (Range < 16777216)
			{
				Code = (Code << 8) | (byte)Stream.ReadByte();
				Range <<= 8;
			}
		}

		public uint GetThreshold(uint total)
		{
			return Code / (Range /= total);
		}

		public void Decode(uint start, uint size, uint total)
		{
			Code -= start * Range;
			Range *= size;
			Normalize();
		}

		public uint DecodeDirectBits(int numTotalBits)
		{
			uint num = Range;
			uint num2 = Code;
			uint num3 = 0u;
			for (int num4 = numTotalBits; num4 > 0; num4--)
			{
				num >>= 1;
				uint num5 = num2 - num >> 31;
				num2 -= num & (num5 - 1);
				num3 = (num3 << 1) | (1 - num5);
				if (num < 16777216)
				{
					num2 = (num2 << 8) | (byte)Stream.ReadByte();
					num <<= 8;
				}
			}
			Range = num;
			Code = num2;
			return num3;
		}

		public uint DecodeBit(uint size0, int numTotalBits)
		{
			uint num = (Range >> numTotalBits) * size0;
			uint result;
			if (Code < num)
			{
				result = 0u;
				Range = num;
			}
			else
			{
				result = 1u;
				Code -= num;
				Range -= num;
			}
			Normalize();
			return result;
		}
	}
	internal struct BitEncoder
	{
		public const int kNumBitModelTotalBits = 11;

		public const uint kBitModelTotal = 2048u;

		private const int kNumMoveBits = 5;

		private const int kNumMoveReducingBits = 2;

		public const int kNumBitPriceShiftBits = 6;

		private uint Prob;

		private static uint[] ProbPrices;

		public void Init()
		{
			Prob = 1024u;
		}

		public void UpdateModel(uint symbol)
		{
			if (symbol == 0)
			{
				Prob += 2048 - Prob >> 5;
			}
			else
			{
				Prob -= Prob >> 5;
			}
		}

		public void Encode(Encoder encoder, uint symbol)
		{
			uint num = (encoder.Range >> 11) * Prob;
			if (symbol == 0)
			{
				encoder.Range = num;
				Prob += 2048 - Prob >> 5;
			}
			else
			{
				encoder.Low += num;
				encoder.Range -= num;
				Prob -= Prob >> 5;
			}
			if (encoder.Range < 16777216)
			{
				encoder.Range <<= 8;
				encoder.ShiftLow();
			}
		}

		static BitEncoder()
		{
			ProbPrices = new uint[512];
			for (int num = 8; num >= 0; num--)
			{
				int num2 = 1 << 9 - num - 1;
				uint num3 = (uint)(1 << 9 - num);
				for (uint num4 = (uint)num2; num4 < num3; num4++)
				{
					ProbPrices[num4] = (uint)(num << 6) + (num3 - num4 << 6 >> 9 - num - 1);
				}
			}
		}

		public uint GetPrice(uint symbol)
		{
			return ProbPrices[(((Prob - symbol) ^ (int)(0 - symbol)) & 0x7FF) >> 2];
		}

		public uint GetPrice0()
		{
			return ProbPrices[Prob >> 2];
		}

		public uint GetPrice1()
		{
			return ProbPrices[2048 - Prob >> 2];
		}
	}
	internal struct BitDecoder
	{
		public const int kNumBitModelTotalBits = 11;

		public const uint kBitModelTotal = 2048u;

		private const int kNumMoveBits = 5;

		private uint Prob;

		public void UpdateModel(int numMoveBits, uint symbol)
		{
			if (symbol == 0)
			{
				Prob += 2048 - Prob >> numMoveBits;
			}
			else
			{
				Prob -= Prob >> numMoveBits;
			}
		}

		public void Init()
		{
			Prob = 1024u;
		}

		public uint Decode(Decoder rangeDecoder)
		{
			uint num = (rangeDecoder.Range >> 11) * Prob;
			if (rangeDecoder.Code < num)
			{
				rangeDecoder.Range = num;
				Prob += 2048 - Prob >> 5;
				if (rangeDecoder.Range < 16777216)
				{
					rangeDecoder.Code = (rangeDecoder.Code << 8) | (byte)rangeDecoder.Stream.ReadByte();
					rangeDecoder.Range <<= 8;
				}
				return 0u;
			}
			rangeDecoder.Range -= num;
			rangeDecoder.Code -= num;
			Prob -= Prob >> 5;
			if (rangeDecoder.Range < 16777216)
			{
				rangeDecoder.Code = (rangeDecoder.Code << 8) | (byte)rangeDecoder.Stream.ReadByte();
				rangeDecoder.Range <<= 8;
			}
			return 1u;
		}
	}
	internal struct BitTreeEncoder
	{
		private BitEncoder[] Models;

		private int NumBitLevels;

		public BitTreeEncoder(int numBitLevels)
		{
			NumBitLevels = numBitLevels;
			Models = new BitEncoder[1 << numBitLevels];
		}

		public void Init()
		{
			for (uint num = 1u; num < 1 << NumBitLevels; num++)
			{
				Models[num].Init();
			}
		}

		public void Encode(Encoder rangeEncoder, uint symbol)
		{
			uint num = 1u;
			int num2 = NumBitLevels;
			while (num2 > 0)
			{
				num2--;
				uint num3 = (symbol >> num2) & 1;
				Models[num].Encode(rangeEncoder, num3);
				num = (num << 1) | num3;
			}
		}

		public void ReverseEncode(Encoder rangeEncoder, uint symbol)
		{
			uint num = 1u;
			for (uint num2 = 0u; num2 < NumBitLevels; num2++)
			{
				uint num3 = symbol & 1;
				Models[num].Encode(rangeEncoder, num3);
				num = (num << 1) | num3;
				symbol >>= 1;
			}
		}

		public uint GetPrice(uint symbol)
		{
			uint num = 0u;
			uint num2 = 1u;
			int num3 = NumBitLevels;
			while (num3 > 0)
			{
				num3--;
				uint num4 = (symbol >> num3) & 1;
				num += Models[num2].GetPrice(num4);
				num2 = (num2 << 1) + num4;
			}
			return num;
		}

		public uint ReverseGetPrice(uint symbol)
		{
			uint num = 0u;
			uint num2 = 1u;
			for (int num3 = NumBitLevels; num3 > 0; num3--)
			{
				uint num4 = symbol & 1;
				symbol >>= 1;
				num += Models[num2].GetPrice(num4);
				num2 = (num2 << 1) | num4;
			}
			return num;
		}

		public static uint ReverseGetPrice(BitEncoder[] Models, uint startIndex, int NumBitLevels, uint symbol)
		{
			uint num = 0u;
			uint num2 = 1u;
			for (int num3 = NumBitLevels; num3 > 0; num3--)
			{
				uint num4 = symbol & 1;
				symbol >>= 1;
				num += Models[startIndex + num2].GetPrice(num4);
				num2 = (num2 << 1) | num4;
			}
			return num;
		}

		public static void ReverseEncode(BitEncoder[] Models, uint startIndex, Encoder rangeEncoder, int NumBitLevels, uint symbol)
		{
			uint num = 1u;
			for (int i = 0; i < NumBitLevels; i++)
			{
				uint num2 = symbol & 1;
				Models[startIndex + num].Encode(rangeEncoder, num2);
				num = (num << 1) | num2;
				symbol >>= 1;
			}
		}
	}
	internal struct BitTreeDecoder
	{
		private BitDecoder[] Models;

		private int NumBitLevels;

		public BitTreeDecoder(int numBitLevels)
		{
			NumBitLevels = numBitLevels;
			Models = new BitDecoder[1 << numBitLevels];
		}

		public void Init()
		{
			for (uint num = 1u; num < 1 << NumBitLevels; num++)
			{
				Models[num].Init();
			}
		}

		public uint Decode(Decoder rangeDecoder)
		{
			uint num = 1u;
			for (int num2 = NumBitLevels; num2 > 0; num2--)
			{
				num = (num << 1) + Models[num].Decode(rangeDecoder);
			}
			return num - (uint)(1 << NumBitLevels);
		}

		public uint ReverseDecode(Decoder rangeDecoder)
		{
			uint num = 1u;
			uint num2 = 0u;
			for (int i = 0; i < NumBitLevels; i++)
			{
				uint num3 = Models[num].Decode(rangeDecoder);
				num <<= 1;
				num += num3;
				num2 |= num3 << i;
			}
			return num2;
		}

		public static uint ReverseDecode(BitDecoder[] Models, uint startIndex, Decoder rangeDecoder, int NumBitLevels)
		{
			uint num = 1u;
			uint num2 = 0u;
			for (int i = 0; i < NumBitLevels; i++)
			{
				uint num3 = Models[startIndex + num].Decode(rangeDecoder);
				num <<= 1;
				num += num3;
				num2 |= num3 << i;
			}
			return num2;
		}
	}
}
namespace SevenZip.Compression.LZ
{
	internal interface IInWindowStream
	{
		void SetStream(Stream inStream);

		void Init();

		void ReleaseStream();

		byte GetIndexByte(int index);

		uint GetMatchLen(int index, uint distance, uint limit);

		uint GetNumAvailableBytes();
	}
	internal interface IMatchFinder : IInWindowStream
	{
		void Create(uint historySize, uint keepAddBufferBefore, uint matchMaxLen, uint keepAddBufferAfter);

		uint GetMatches(uint[] distances);

		void Skip(uint num);
	}
	public class BinTree : InWindow, IMatchFinder, IInWindowStream
	{
		private uint _cyclicBufferPos;

		private uint _cyclicBufferSize;

		private uint _matchMaxLen;

		private uint[] _son;

		private uint[] _hash;

		private uint _cutValue = 255u;

		private uint _hashMask;

		private uint _hashSizeSum;

		private bool HASH_ARRAY = true;

		private const uint kHash2Size = 1024u;

		private const uint kHash3Size = 65536u;

		private const uint kBT2HashSize = 65536u;

		private const uint kStartMaxLen = 1u;

		private const uint kHash3Offset = 1024u;

		private const uint kEmptyHashValue = 0u;

		private const uint kMaxValForNormalize = 2147483647u;

		private uint kNumHashDirectBytes;

		private uint kMinMatchCheck = 4u;

		private uint kFixHashSize = 66560u;

		public void SetType(int numHashBytes)
		{
			HASH_ARRAY = numHashBytes > 2;
			if (HASH_ARRAY)
			{
				kNumHashDirectBytes = 0u;
				kMinMatchCheck = 4u;
				kFixHashSize = 66560u;
			}
			else
			{
				kNumHashDirectBytes = 2u;
				kMinMatchCheck = 3u;
				kFixHashSize = 0u;
			}
		}

		public new void SetStream(Stream stream)
		{
			base.SetStream(stream);
		}

		public new void ReleaseStream()
		{
			base.ReleaseStream();
		}

		public new void Init()
		{
			base.Init();
			for (uint num = 0u; num < _hashSizeSum; num++)
			{
				_hash[num] = 0u;
			}
			_cyclicBufferPos = 0u;
			ReduceOffsets(-1);
		}

		public new void MovePos()
		{
			if (++_cyclicBufferPos >= _cyclicBufferSize)
			{
				_cyclicBufferPos = 0u;
			}
			base.MovePos();
			if (_pos == int.MaxValue)
			{
				Normalize();
			}
		}

		public new byte GetIndexByte(int index)
		{
			return base.GetIndexByte(index);
		}

		public new uint GetMatchLen(int index, uint distance, uint limit)
		{
			return base.GetMatchLen(index, distance, limit);
		}

		public new uint GetNumAvailableBytes()
		{
			return base.GetNumAvailableBytes();
		}

		public void Create(uint historySize, uint keepAddBufferBefore, uint matchMaxLen, uint keepAddBufferAfter)
		{
			if (historySize > 2147483391)
			{
				throw new Exception();
			}
			_cutValue = 16 + (matchMaxLen >> 1);
			uint keepSizeReserv = (historySize + keepAddBufferBefore + matchMaxLen + keepAddBufferAfter) / 2 + 256;
			Create(historySize + keepAddBufferBefore, matchMaxLen + keepAddBufferAfter, keepSizeReserv);
			_matchMaxLen = matchMaxLen;
			uint num = historySize + 1;
			if (_cyclicBufferSize != num)
			{
				_son = new uint[(_cyclicBufferSize = num) * 2];
			}
			uint num2 = 65536u;
			if (HASH_ARRAY)
			{
				num2 = historySize - 1;
				num2 |= num2 >> 1;
				num2 |= num2 >> 2;
				num2 |= num2 >> 4;
				num2 |= num2 >> 8;
				num2 >>= 1;
				num2 |= 0xFFFF;
				if (num2 > 16777216)
				{
					num2 >>= 1;
				}
				_hashMask = num2;
				num2++;
				num2 += kFixHashSize;
			}
			if (num2 != _hashSizeSum)
			{
				_hash = new uint[_hashSizeSum = num2];
			}
		}

		public uint GetMatches(uint[] distances)
		{
			uint num;
			if (_pos + _matchMaxLen <= _streamPos)
			{
				num = _matchMaxLen;
			}
			else
			{
				num = _streamPos - _pos;
				if (num < kMinMatchCheck)
				{
					MovePos();
					return 0u;
				}
			}
			uint num2 = 0u;
			uint num3 = ((_pos > _cyclicBufferSize) ? (_pos - _cyclicBufferSize) : 0u);
			uint num4 = _bufferOffset + _pos;
			uint num5 = 1u;
			uint num6 = 0u;
			uint num7 = 0u;
			uint num10;
			if (HASH_ARRAY)
			{
				uint num8 = CRC.Table[_bufferBase[num4]] ^ _bufferBase[num4 + 1];
				num6 = num8 & 0x3FF;
				int num9 = (int)num8 ^ (_bufferBase[num4 + 2] << 8);
				num7 = (uint)(num9 & 0xFFFF);
				num10 = ((uint)num9 ^ (CRC.Table[_bufferBase[num4 + 3]] << 5)) & _hashMask;
			}
			else
			{
				num10 = (uint)(_bufferBase[num4] ^ (_bufferBase[num4 + 1] << 8));
			}
			uint num11 = _hash[kFixHashSize + num10];
			if (HASH_ARRAY)
			{
				uint num12 = _hash[num6];
				uint num13 = _hash[1024 + num7];
				_hash[num6] = _pos;
				_hash[1024 + num7] = _pos;
				if (num12 > num3 && _bufferBase[_bufferOffset + num12] == _bufferBase[num4])
				{
					num5 = (distances[num2++] = 2u);
					distances[num2++] = _pos - num12 - 1;
				}
				if (num13 > num3 && _bufferBase[_bufferOffset + num13] == _bufferBase[num4])
				{
					if (num13 == num12)
					{
						num2 -= 2;
					}
					num5 = (distances[num2++] = 3u);
					distances[num2++] = _pos - num13 - 1;
					num12 = num13;
				}
				if (num2 != 0 && num12 == num11)
				{
					num2 -= 2;
					num5 = 1u;
				}
			}
			_hash[kFixHashSize + num10] = _pos;
			uint num14 = (_cyclicBufferPos << 1) + 1;
			uint num15 = _cyclicBufferPos << 1;
			uint val2;
			uint val = (val2 = kNumHashDirectBytes);
			if (kNumHashDirectBytes != 0 && num11 > num3 && _bufferBase[_bufferOffset + num11 + kNumHashDirectBytes] != _bufferBase[num4 + kNumHashDirectBytes])
			{
				num5 = (distances[num2++] = kNumHashDirectBytes);
				distances[num2++] = _pos - num11 - 1;
			}
			uint cutValue = _cutValue;
			while (true)
			{
				if (num11 <= num3 || cutValue-- == 0)
				{
					_son[num14] = (_son[num15] = 0u);
					break;
				}
				uint num16 = _pos - num11;
				uint num17 = ((num16 <= _cyclicBufferPos) ? (_cyclicBufferPos - num16) : (_cyclicBufferPos - num16 + _cyclicBufferSize)) << 1;
				uint num18 = _bufferOffset + num11;
				uint num19 = Math.Min(val, val2);
				if (_bufferBase[num18 + num19] == _bufferBase[num4 + num19])
				{
					while (++num19 != num && _bufferBase[num18 + num19] == _bufferBase[num4 + num19])
					{
					}
					if (num5 < num19)
					{
						num5 = (distances[num2++] = num19);
						distances[num2++] = num16 - 1;
						if (num19 == num)
						{
							_son[num15] = _son[num17];
							_son[num14] = _son[num17 + 1];
							break;
						}
					}
				}
				if (_bufferBase[num18 + num19] < _bufferBase[num4 + num19])
				{
					_son[num15] = num11;
					num15 = num17 + 1;
					num11 = _son[num15];
					val2 = num19;
				}
				else
				{
					_son[num14] = num11;
					num14 = num17;
					num11 = _son[num14];
					val = num19;
				}
			}
			MovePos();
			return num2;
		}

		public void Skip(uint num)
		{
			do
			{
				uint num2;
				if (_pos + _matchMaxLen <= _streamPos)
				{
					num2 = _matchMaxLen;
				}
				else
				{
					num2 = _streamPos - _pos;
					if (num2 < kMinMatchCheck)
					{
						MovePos();
						continue;
					}
				}
				uint num3 = ((_pos > _cyclicBufferSize) ? (_pos - _cyclicBufferSize) : 0u);
				uint num4 = _bufferOffset + _pos;
				uint num9;
				if (HASH_ARRAY)
				{
					uint num5 = CRC.Table[_bufferBase[num4]] ^ _bufferBase[num4 + 1];
					uint num6 = num5 & 0x3FF;
					_hash[num6] = _pos;
					int num7 = (int)num5 ^ (_bufferBase[num4 + 2] << 8);
					uint num8 = (uint)(num7 & 0xFFFF);
					_hash[1024 + num8] = _pos;
					num9 = ((uint)num7 ^ (CRC.Table[_bufferBase[num4 + 3]] << 5)) & _hashMask;
				}
				else
				{
					num9 = (uint)(_bufferBase[num4] ^ (_bufferBase[num4 + 1] << 8));
				}
				uint num10 = _hash[kFixHashSize + num9];
				_hash[kFixHashSize + num9] = _pos;
				uint num11 = (_cyclicBufferPos << 1) + 1;
				uint num12 = _cyclicBufferPos << 1;
				uint val2;
				uint val = (val2 = kNumHashDirectBytes);
				uint cutValue = _cutValue;
				while (true)
				{
					if (num10 <= num3 || cutValue-- == 0)
					{
						_son[num11] = (_son[num12] = 0u);
						break;
					}
					uint num13 = _pos - num10;
					uint num14 = ((num13 <= _cyclicBufferPos) ? (_cyclicBufferPos - num13) : (_cyclicBufferPos - num13 + _cyclicBufferSize)) << 1;
					uint num15 = _bufferOffset + num10;
					uint num16 = Math.Min(val, val2);
					if (_bufferBase[num15 + num16] == _bufferBase[num4 + num16])
					{
						while (++num16 != num2 && _bufferBase[num15 + num16] == _bufferBase[num4 + num16])
						{
						}
						if (num16 == num2)
						{
							_son[num12] = _son[num14];
							_son[num11] = _son[num14 + 1];
							break;
						}
					}
					if (_bufferBase[num15 + num16] < _bufferBase[num4 + num16])
					{
						_son[num12] = num10;
						num12 = num14 + 1;
						num10 = _son[num12];
						val2 = num16;
					}
					else
					{
						_son[num11] = num10;
						num11 = num14;
						num10 = _son[num11];
						val = num16;
					}
				}
				MovePos();
			}
			while (--num != 0);
		}

		private void NormalizeLinks(uint[] items, uint numItems, uint subValue)
		{
			for (uint num = 0u; num < numItems; num++)
			{
				uint num2 = items[num];
				num2 = ((num2 > subValue) ? (num2 - subValue) : 0u);
				items[num] = num2;
			}
		}

		private void Normalize()
		{
			uint subValue = _pos - _cyclicBufferSize;
			NormalizeLinks(_son, _cyclicBufferSize * 2, subValue);
			NormalizeLinks(_hash, _hashSizeSum, subValue);
			ReduceOffsets((int)subValue);
		}

		public void SetCutValue(uint cutValue)
		{
			_cutValue = cutValue;
		}
	}
	public class InWindow
	{
		public byte[] _bufferBase;

		private Stream _stream;

		private uint _posLimit;

		private bool _streamEndWasReached;

		private uint _pointerToLastSafePosition;

		public uint _bufferOffset;

		public uint _blockSize;

		public uint _pos;

		private uint _keepSizeBefore;

		private uint _keepSizeAfter;

		public uint _streamPos;

		public void MoveBlock()
		{
			uint num = _bufferOffset + _pos - _keepSizeBefore;
			if (num != 0)
			{
				num--;
			}
			uint num2 = _bufferOffset + _streamPos - num;
			for (uint num3 = 0u; num3 < num2; num3++)
			{
				_bufferBase[num3] = _bufferBase[num + num3];
			}
			_bufferOffset -= num;
		}

		public virtual void ReadBlock()
		{
			if (_streamEndWasReached)
			{
				return;
			}
			while (true)
			{
				int num = (int)(0 - _bufferOffset + _blockSize - _streamPos);
				if (num == 0)
				{
					return;
				}
				int num2 = _stream.Read(_bufferBase, (int)(_bufferOffset + _streamPos), num);
				if (num2 == 0)
				{
					break;
				}
				_streamPos += (uint)num2;
				if (_streamPos >= _pos + _keepSizeAfter)
				{
					_posLimit = _streamPos - _keepSizeAfter;
				}
			}
			_posLimit = _streamPos;
			if (_bufferOffset + _posLimit > _pointerToLastSafePosition)
			{
				_posLimit = _pointerToLastSafePosition - _bufferOffset;
			}
			_streamEndWasReached = true;
		}

		private void Free()
		{
			_bufferBase = null;
		}

		public void Create(uint keepSizeBefore, uint keepSizeAfter, uint keepSizeReserv)
		{
			_keepSizeBefore = keepSizeBefore;
			_keepSizeAfter = keepSizeAfter;
			uint num = keepSizeBefore + keepSizeAfter + keepSizeReserv;
			if (_bufferBase == null || _blockSize != num)
			{
				Free();
				_blockSize = num;
				_bufferBase = new byte[_blockSize];
			}
			_pointerToLastSafePosition = _blockSize - keepSizeAfter;
		}

		public void SetStream(Stream stream)
		{
			_stream = stream;
		}

		public void ReleaseStream()
		{
			_stream = null;
		}

		public void Init()
		{
			_bufferOffset = 0u;
			_pos = 0u;
			_streamPos = 0u;
			_streamEndWasReached = false;
			ReadBlock();
		}

		public void MovePos()
		{
			_pos++;
			if (_pos > _posLimit)
			{
				if (_bufferOffset + _pos > _pointerToLastSafePosition)
				{
					MoveBlock();
				}
				ReadBlock();
			}
		}

		public byte GetIndexByte(int index)
		{
			return _bufferBase[_bufferOffset + _pos + index];
		}

		public uint GetMatchLen(int index, uint distance, uint limit)
		{
			if (_streamEndWasReached && _pos + index + limit > _streamPos)
			{
				limit = _streamPos - (uint)(int)(_pos + index);
			}
			distance++;
			uint num = _bufferOffset + _pos + (uint)index;
			uint num2;
			for (num2 = 0u; num2 < limit && _bufferBase[num + num2] == _bufferBase[num + num2 - distance]; num2++)
			{
			}
			return num2;
		}

		public uint GetNumAvailableBytes()
		{
			return _streamPos - _pos;
		}

		public void ReduceOffsets(int subValue)
		{
			_bufferOffset += (uint)subValue;
			_posLimit -= (uint)subValue;
			_pos -= (uint)subValue;
			_streamPos -= (uint)subValue;
		}
	}
	public class OutWindow
	{
		private byte[] _buffer;

		private uint _pos;

		private uint _windowSize;

		private uint _streamPos;

		private Stream _stream;

		public uint TrainSize;

		public void Create(uint windowSize)
		{
			if (_windowSize != windowSize)
			{
				_buffer = new byte[windowSize];
			}
			_windowSize = windowSize;
			_pos = 0u;
			_streamPos = 0u;
		}

		public void Init(Stream stream, bool solid)
		{
			ReleaseStream();
			_stream = stream;
			if (!solid)
			{
				_streamPos = 0u;
				_pos = 0u;
				TrainSize = 0u;
			}
		}

		public bool Train(Stream stream)
		{
			long length = stream.Length;
			uint num = (TrainSize = (uint)((length < _windowSize) ? length : _windowSize));
			stream.Position = length - num;
			_streamPos = (_pos = 0u);
			while (num != 0)
			{
				uint num2 = _windowSize - _pos;
				if (num < num2)
				{
					num2 = num;
				}
				int num3 = stream.Read(_buffer, (int)_pos, (int)num2);
				if (num3 == 0)
				{
					return false;
				}
				num -= (uint)num3;
				_pos += (uint)num3;
				_streamPos += (uint)num3;
				if (_pos == _windowSize)
				{
					_streamPos = (_pos = 0u);
				}
			}
			return true;
		}

		public void ReleaseStream()
		{
			Flush();
			_stream = null;
		}

		public void Flush()
		{
			uint num = _pos - _streamPos;
			if (num != 0)
			{
				_stream.Write(_buffer, (int)_streamPos, (int)num);
				if (_pos >= _windowSize)
				{
					_pos = 0u;
				}
				_streamPos = _pos;
			}
		}

		public void CopyBlock(uint distance, uint len)
		{
			uint num = _pos - distance - 1;
			if (num >= _windowSize)
			{
				num += _windowSize;
			}
			while (len != 0)
			{
				if (num >= _windowSize)
				{
					num = 0u;
				}
				_buffer[_pos++] = _buffer[num++];
				if (_pos >= _windowSize)
				{
					Flush();
				}
				len--;
			}
		}

		public void PutByte(byte b)
		{
			_buffer[_pos++] = b;
			if (_pos >= _windowSize)
			{
				Flush();
			}
		}

		public byte GetByte(uint distance)
		{
			uint num = _pos - distance - 1;
			if (num >= _windowSize)
			{
				num += _windowSize;
			}
			return _buffer[num];
		}
	}
}
namespace SevenZip.Compression.LZMA
{
	internal abstract class Base
	{
		public struct State
		{
			public uint Index;

			public void Init()
			{
				Index = 0u;
			}

			public void UpdateChar()
			{
				if (Index < 4)
				{
					Index = 0u;
				}
				else if (Index < 10)
				{
					Index -= 3u;
				}
				else
				{
					Index -= 6u;
				}
			}

			public void UpdateMatch()
			{
				Index = ((Index < 7) ? 7u : 10u);
			}

			public void UpdateRep()
			{
				Index = ((Index < 7) ? 8u : 11u);
			}

			public void UpdateShortRep()
			{
				Index = ((Index < 7) ? 9u : 11u);
			}

			public bool IsCharState()
			{
				return Index < 7;
			}
		}

		public const uint kNumRepDistances = 4u;

		public const uint kNumStates = 12u;

		public const int kNumPosSlotBits = 6;

		public const int kDicLogSizeMin = 0;

		public const int kNumLenToPosStatesBits = 2;

		public const uint kNumLenToPosStates = 4u;

		public const uint kMatchMinLen = 2u;

		public const int kNumAlignBits = 4;

		public const uint kAlignTableSize = 16u;

		public const uint kAlignMask = 15u;

		public const uint kStartPosModelIndex = 4u;

		public const uint kEndPosModelIndex = 14u;

		public const uint kNumPosModels = 10u;

		public const uint kNumFullDistances = 128u;

		public const uint kNumLitPosStatesBitsEncodingMax = 4u;

		public const uint kNumLitContextBitsMax = 8u;

		public const int kNumPosStatesBitsMax = 4;

		public const uint kNumPosStatesMax = 16u;

		public const int kNumPosStatesBitsEncodingMax = 4;

		public const uint kNumPosStatesEncodingMax = 16u;

		public const int kNumLowLenBits = 3;

		public const int kNumMidLenBits = 3;

		public const int kNumHighLenBits = 8;

		public const uint kNumLowLenSymbols = 8u;

		public const uint kNumMidLenSymbols = 8u;

		public const uint kNumLenSymbols = 272u;

		public const uint kMatchMaxLen = 273u;

		public static uint GetLenToPosState(uint len)
		{
			len -= 2;
			if (len < 4)
			{
				return len;
			}
			return 3u;
		}
	}
	public class Decoder : ICoder, ISetDecoderProperties
	{
		private class LenDecoder
		{
			private BitDecoder m_Choice;

			private BitDecoder m_Choice2;

			private BitTreeDecoder[] m_LowCoder = new BitTreeDecoder[16];

			private BitTreeDecoder[] m_MidCoder = new BitTreeDecoder[16];

			private BitTreeDecoder m_HighCoder = new BitTreeDecoder(8);

			private uint m_NumPosStates;

			public void Create(uint numPosStates)
			{
				for (uint num = m_NumPosStates; num < numPosStates; num++)
				{
					m_LowCoder[num] = new BitTreeDecoder(3);
					m_MidCoder[num] = new BitTreeDecoder(3);
				}
				m_NumPosStates = numPosStates;
			}

			public void Init()
			{
				m_Choice.Init();
				for (uint num = 0u; num < m_NumPosStates; num++)
				{
					m_LowCoder[num].Init();
					m_MidCoder[num].Init();
				}
				m_Choice2.Init();
				m_HighCoder.Init();
			}

			public uint Decode(SevenZip.Compression.RangeCoder.Decoder rangeDecoder, uint posState)
			{
				if (m_Choice.Decode(rangeDecoder) == 0)
				{
					return m_LowCoder[posState].Decode(rangeDecoder);
				}
				uint num = 8u;
				if (m_Choice2.Decode(rangeDecoder) == 0)
				{
					return num + m_MidCoder[posState].Decode(rangeDecoder);
				}
				num += 8;
				return num + m_HighCoder.Decode(rangeDecoder);
			}
		}

		private class LiteralDecoder
		{
			private struct Decoder2
			{
				private BitDecoder[] m_Decoders;

				public void Create()
				{
					m_Decoders = new BitDecoder[768];
				}

				public void Init()
				{
					for (int i = 0; i < 768; i++)
					{
						m_Decoders[i].Init();
					}
				}

				public byte DecodeNormal(SevenZip.Compression.RangeCoder.Decoder rangeDecoder)
				{
					uint num = 1u;
					do
					{
						num = (num << 1) | m_Decoders[num].Decode(rangeDecoder);
					}
					while (num < 256);
					return (byte)num;
				}

				public byte DecodeWithMatchByte(SevenZip.Compression.RangeCoder.Decoder rangeDecoder, byte matchByte)
				{
					uint num = 1u;
					do
					{
						uint num2 = (uint)((matchByte >> 7) & 1);
						matchByte <<= 1;
						uint num3 = m_Decoders[(1 + num2 << 8) + num].Decode(rangeDecoder);
						num = (num << 1) | num3;
						if (num2 != num3)
						{
							while (num < 256)
							{
								num = (num << 1) | m_Decoders[num].Decode(rangeDecoder);
							}
							break;
						}
					}
					while (num < 256);
					return (byte)num;
				}
			}

			private Decoder2[] m_Coders;

			private int m_NumPrevBits;

			private int m_NumPosBits;

			private uint m_PosMask;

			public void Create(int numPosBits, int numPrevBits)
			{
				if (m_Coders == null || m_NumPrevBits != numPrevBits || m_NumPosBits != numPosBits)
				{
					m_NumPosBits = numPosBits;
					m_PosMask = (uint)((1 << numPosBits) - 1);
					m_NumPrevBits = numPrevBits;
					uint num = (uint)(1 << m_NumPrevBits + m_NumPosBits);
					m_Coders = new Decoder2[num];
					for (uint num2 = 0u; num2 < num; num2++)
					{
						m_Coders[num2].Create();
					}
				}
			}

			public void Init()
			{
				uint num = (uint)(1 << m_NumPrevBits + m_NumPosBits);
				for (uint num2 = 0u; num2 < num; num2++)
				{
					m_Coders[num2].Init();
				}
			}

			private uint GetState(uint pos, byte prevByte)
			{
				return ((pos & m_PosMask) << m_NumPrevBits) + (uint)(prevByte >> 8 - m_NumPrevBits);
			}

			public byte DecodeNormal(SevenZip.Compression.RangeCoder.Decoder rangeDecoder, uint pos, byte prevByte)
			{
				return m_Coders[GetState(pos, prevByte)].DecodeNormal(rangeDecoder);
			}

			public byte DecodeWithMatchByte(SevenZip.Compression.RangeCoder.Decoder rangeDecoder, uint pos, byte prevByte, byte matchByte)
			{
				return m_Coders[GetState(pos, prevByte)].DecodeWithMatchByte(rangeDecoder, matchByte);
			}
		}

		private OutWindow m_OutWindow = new OutWindow();

		private SevenZip.Compression.RangeCoder.Decoder m_RangeDecoder = new SevenZip.Compression.RangeCoder.Decoder();

		private BitDecoder[] m_IsMatchDecoders = new BitDecoder[192];

		private BitDecoder[] m_IsRepDecoders = new BitDecoder[12];

		private BitDecoder[] m_IsRepG0Decoders = new BitDecoder[12];

		private BitDecoder[] m_IsRepG1Decoders = new BitDecoder[12];

		private BitDecoder[] m_IsRepG2Decoders = new BitDecoder[12];

		private BitDecoder[] m_IsRep0LongDecoders = new BitDecoder[192];

		private BitTreeDecoder[] m_PosSlotDecoder = new BitTreeDecoder[4];

		private BitDecoder[] m_PosDecoders = new BitDecoder[114];

		private BitTreeDecoder m_PosAlignDecoder = new BitTreeDecoder(4);

		private LenDecoder m_LenDecoder = new LenDecoder();

		private LenDecoder m_RepLenDecoder = new LenDecoder();

		private LiteralDecoder m_LiteralDecoder = new LiteralDecoder();

		private uint m_DictionarySize;

		private uint m_DictionarySizeCheck;

		private uint m_PosStateMask;

		private bool _solid;

		public Decoder()
		{
			m_DictionarySize = uint.MaxValue;
			for (int i = 0; (long)i < 4L; i++)
			{
				m_PosSlotDecoder[i] = new BitTreeDecoder(6);
			}
		}

		private void SetDictionarySize(uint dictionarySize)
		{
			if (m_DictionarySize != dictionarySize)
			{
				m_DictionarySize = dictionarySize;
				m_DictionarySizeCheck = Math.Max(m_DictionarySize, 1u);
				uint windowSize = Math.Max(m_DictionarySizeCheck, 4096u);
				m_OutWindow.Create(windowSize);
			}
		}

		private void SetLiteralProperties(int lp, int lc)
		{
			if (lp > 8)
			{
				throw new InvalidParamException();
			}
			if (lc > 8)
			{
				throw new InvalidParamException();
			}
			m_LiteralDecoder.Create(lp, lc);
		}

		private void SetPosBitsProperties(int pb)
		{
			if (pb > 4)
			{
				throw new InvalidParamException();
			}
			uint num = (uint)(1 << pb);
			m_LenDecoder.Create(num);
			m_RepLenDecoder.Create(num);
			m_PosStateMask = num - 1;
		}

		private void Init(Stream inStream, Stream outStream)
		{
			m_RangeDecoder.Init(inStream);
			m_OutWindow.Init(outStream, _solid);
			for (uint num = 0u; num < 12; num++)
			{
				for (uint num2 = 0u; num2 <= m_PosStateMask; num2++)
				{
					uint num3 = (num << 4) + num2;
					m_IsMatchDecoders[num3].Init();
					m_IsRep0LongDecoders[num3].Init();
				}
				m_IsRepDecoders[num].Init();
				m_IsRepG0Decoders[num].Init();
				m_IsRepG1Decoders[num].Init();
				m_IsRepG2Decoders[num].Init();
			}
			m_LiteralDecoder.Init();
			for (uint num = 0u; num < 4; num++)
			{
				m_PosSlotDecoder[num].Init();
			}
			for (uint num = 0u; num < 114; num++)
			{
				m_PosDecoders[num].Init();
			}
			m_LenDecoder.Init();
			m_RepLenDecoder.Init();
			m_PosAlignDecoder.Init();
		}

		public void Code(Stream inStream, Stream outStream, long inSize, long outSize, ICodeProgress progress)
		{
			Init(inStream, outStream);
			Base.State state = default(Base.State);
			state.Init();
			uint num = 0u;
			uint num2 = 0u;
			uint num3 = 0u;
			uint num4 = 0u;
			ulong num5 = 0uL;
			if (num5 < (ulong)outSize)
			{
				if (m_IsMatchDecoders[state.Index << 4].Decode(m_RangeDecoder) != 0)
				{
					throw new DataErrorException();
				}
				state.UpdateChar();
				byte b = m_LiteralDecoder.DecodeNormal(m_RangeDecoder, 0u, 0);
				m_OutWindow.PutByte(b);
				num5++;
			}
			while (num5 < (ulong)outSize)
			{
				uint num6 = (uint)(int)num5 & m_PosStateMask;
				if (m_IsMatchDecoders[(state.Index << 4) + num6].Decode(m_RangeDecoder) == 0)
				{
					byte prevByte = m_OutWindow.GetByte(0u);
					byte b2 = (state.IsCharState() ? m_LiteralDecoder.DecodeNormal(m_RangeDecoder, (uint)num5, prevByte) : m_LiteralDecoder.DecodeWithMatchByte(m_RangeDecoder, (uint)num5, prevByte, m_OutWindow.GetByte(num)));
					m_OutWindow.PutByte(b2);
					state.UpdateChar();
					num5++;
					continue;
				}
				uint num8;
				if (m_IsRepDecoders[state.Index].Decode(m_RangeDecoder) == 1)
				{
					if (m_IsRepG0Decoders[state.Index].Decode(m_RangeDecoder) == 0)
					{
						if (m_IsRep0LongDecoders[(state.Index << 4) + num6].Decode(m_RangeDecoder) == 0)
						{
							state.UpdateShortRep();
							m_OutWindow.PutByte(m_OutWindow.GetByte(num));
							num5++;
							continue;
						}
					}
					else
					{
						uint num7;
						if (m_IsRepG1Decoders[state.Index].Decode(m_RangeDecoder) == 0)
						{
							num7 = num2;
						}
						else
						{
							if (m_IsRepG2Decoders[state.Index].Decode(m_RangeDecoder) == 0)
							{
								num7 = num3;
							}
							else
							{
								num7 = num4;
								num4 = num3;
							}
							num3 = num2;
						}
						num2 = num;
						num = num7;
					}
					num8 = m_RepLenDecoder.Decode(m_RangeDecoder, num6) + 2;
					state.UpdateRep();
				}
				else
				{
					num4 = num3;
					num3 = num2;
					num2 = num;
					num8 = 2 + m_LenDecoder.Decode(m_RangeDecoder, num6);
					state.UpdateMatch();
					uint num9 = m_PosSlotDecoder[Base.GetLenToPosState(num8)].Decode(m_RangeDecoder);
					if (num9 >= 4)
					{
						int num10 = (int)((num9 >> 1) - 1);
						num = (2 | (num9 & 1)) << num10;
						if (num9 < 14)
						{
							num += BitTreeDecoder.ReverseDecode(m_PosDecoders, num - num9 - 1, m_RangeDecoder, num10);
						}
						else
						{
							num += m_RangeDecoder.DecodeDirectBits(num10 - 4) << 4;
							num += m_PosAlignDecoder.ReverseDecode(m_RangeDecoder);
						}
					}
					else
					{
						num = num9;
					}
				}
				if (num >= m_OutWindow.TrainSize + num5 || num >= m_DictionarySizeCheck)
				{
					if (num == uint.MaxValue)
					{
						break;
					}
					throw new DataErrorException();
				}
				m_OutWindow.CopyBlock(num, num8);
				num5 += num8;
			}
			m_OutWindow.Flush();
			m_OutWindow.ReleaseStream();
			m_RangeDecoder.ReleaseStream();
		}

		public void SetDecoderProperties(byte[] properties)
		{
			if (properties.Length < 5)
			{
				throw new InvalidParamException();
			}
			int lc = properties[0] % 9;
			int num = properties[0] / 9;
			int lp = num % 5;
			int num2 = num / 5;
			if (num2 > 4)
			{
				throw new InvalidParamException();
			}
			uint num3 = 0u;
			for (int i = 0; i < 4; i++)
			{
				num3 += (uint)(properties[1 + i] << i * 8);
			}
			SetDictionarySize(num3);
			SetLiteralProperties(lp, lc);
			SetPosBitsProperties(num2);
		}

		public bool Train(Stream stream)
		{
			_solid = true;
			return m_OutWindow.Train(stream);
		}
	}
	public class Encoder : ICoder, ISetCoderProperties, IWriteCoderProperties
	{
		private enum EMatchFinderType
		{
			BT2,
			BT4
		}

		private class LiteralEncoder
		{
			public struct Encoder2
			{
				private BitEncoder[] m_Encoders;

				public void Create()
				{
					m_Encoders = new BitEncoder[768];
				}

				public void Init()
				{
					for (int i = 0; i < 768; i++)
					{
						m_Encoders[i].Init();
					}
				}

				public void Encode(SevenZip.Compression.RangeCoder.Encoder rangeEncoder, byte symbol)
				{
					uint num = 1u;
					for (int num2 = 7; num2 >= 0; num2--)
					{
						uint num3 = (uint)((symbol >> num2) & 1);
						m_Encoders[num].Encode(rangeEncoder, num3);
						num = (num << 1) | num3;
					}
				}

				public void EncodeMatched(SevenZip.Compression.RangeCoder.Encoder rangeEncoder, byte matchByte, byte symbol)
				{
					uint num = 1u;
					bool flag = true;
					for (int num2 = 7; num2 >= 0; num2--)
					{
						uint num3 = (uint)((symbol >> num2) & 1);
						uint num4 = num;
						if (flag)
						{
							uint num5 = (uint)((matchByte >> num2) & 1);
							num4 += 1 + num5 << 8;
							flag = num5 == num3;
						}
						m_Encoders[num4].Encode(rangeEncoder, num3);
						num = (num << 1) | num3;
					}
				}

				public uint GetPrice(bool matchMode, byte matchByte, byte symbol)
				{
					uint num = 0u;
					uint num2 = 1u;
					int num3 = 7;
					if (matchMode)
					{
						while (num3 >= 0)
						{
							uint num4 = (uint)((matchByte >> num3) & 1);
							uint num5 = (uint)((symbol >> num3) & 1);
							num += m_Encoders[(1 + num4 << 8) + num2].GetPrice(num5);
							num2 = (num2 << 1) | num5;
							if (num4 != num5)
							{
								num3--;
								break;
							}
							num3--;
						}
					}
					while (num3 >= 0)
					{
						uint num6 = (uint)((symbol >> num3) & 1);
						num += m_Encoders[num2].GetPrice(num6);
						num2 = (num2 << 1) | num6;
						num3--;
					}
					return num;
				}
			}

			private Encoder2[] m_Coders;

			private int m_NumPrevBits;

			private int m_NumPosBits;

			private uint m_PosMask;

			public void Create(int numPosBits, int numPrevBits)
			{
				if (m_Coders == null || m_NumPrevBits != numPrevBits || m_NumPosBits != numPosBits)
				{
					m_NumPosBits = numPosBits;
					m_PosMask = (uint)((1 << numPosBits) - 1);
					m_NumPrevBits = numPrevBits;
					uint num = (uint)(1 << m_NumPrevBits + m_NumPosBits);
					m_Coders = new Encoder2[num];
					for (uint num2 = 0u; num2 < num; num2++)
					{
						m_Coders[num2].Create();
					}
				}
			}

			public void Init()
			{
				uint num = (uint)(1 << m_NumPrevBits + m_NumPosBits);
				for (uint num2 = 0u; num2 < num; num2++)
				{
					m_Coders[num2].Init();
				}
			}

			public Encoder2 GetSubCoder(uint pos, byte prevByte)
			{
				return m_Coders[(int)((pos & m_PosMask) << m_NumPrevBits) + (prevByte >> 8 - m_NumPrevBits)];
			}
		}

		private class LenEncoder
		{
			private BitEncoder _choice;

			private BitEncoder _choice2;

			private BitTreeEncoder[] _lowCoder = new BitTreeEncoder[16];

			private BitTreeEncoder[] _midCoder = new BitTreeEncoder[16];

			private BitTreeEncoder _highCoder = new BitTreeEncoder(8);

			public LenEncoder()
			{
				for (uint num = 0u; num < 16; num++)
				{
					_lowCoder[num] = new BitTreeEncoder(3);
					_midCoder[num] = new BitTreeEncoder(3);
				}
			}

			public void Init(uint numPosStates)
			{
				_choice.Init();
				_choice2.Init();
				for (uint num = 0u; num < numPosStates; num++)
				{
					_lowCoder[num].Init();
					_midCoder[num].Init();
				}
				_highCoder.Init();
			}

			public void Encode(SevenZip.Compression.RangeCoder.Encoder rangeEncoder, uint symbol, uint posState)
			{
				if (symbol < 8)
				{
					_choice.Encode(rangeEncoder, 0u);
					_lowCoder[posState].Encode(rangeEncoder, symbol);
					return;
				}
				symbol -= 8;
				_choice.Encode(rangeEncoder, 1u);
				if (symbol < 8)
				{
					_choice2.Encode(rangeEncoder, 0u);
					_midCoder[posState].Encode(rangeEncoder, symbol);
				}
				else
				{
					_choice2.Encode(rangeEncoder, 1u);
					_highCoder.Encode(rangeEncoder, symbol - 8);
				}
			}

			public void SetPrices(uint posState, uint numSymbols, uint[] prices, uint st)
			{
				uint price = _choice.GetPrice0();
				uint price2 = _choice.GetPrice1();
				uint num = price2 + _choice2.GetPrice0();
				uint num2 = price2 + _choice2.GetPrice1();
				uint num3 = 0u;
				for (num3 = 0u; num3 < 8; num3++)
				{
					if (num3 >= numSymbols)
					{
						return;
					}
					prices[st + num3] = price + _lowCoder[posState].GetPrice(num3);
				}
				for (; num3 < 16; num3++)
				{
					if (num3 >= numSymbols)
					{
						return;
					}
					prices[st + num3] = num + _midCoder[posState].GetPrice(num3 - 8);
				}
				for (; num3 < numSymbols; num3++)
				{
					prices[st + num3] = num2 + _highCoder.GetPrice(num3 - 8 - 8);
				}
			}
		}

		private class LenPriceTableEncoder : LenEncoder
		{
			private uint[] _prices = new uint[4352];

			private uint _tableSize;

			private uint[] _counters = new uint[16];

			public void SetTableSize(uint tableSize)
			{
				_tableSize = tableSize;
			}

			public uint GetPrice(uint symbol, uint posState)
			{
				return _prices[posState * 272 + symbol];
			}

			private void UpdateTable(uint posState)
			{
				SetPrices(posState, _tableSize, _prices, posState * 272);
				_counters[posState] = _tableSize;
			}

			public void UpdateTables(uint numPosStates)
			{
				for (uint num = 0u; num < numPosStates; num++)
				{
					UpdateTable(num);
				}
			}

			public new void Encode(SevenZip.Compression.RangeCoder.Encoder rangeEncoder, uint symbol, uint posState)
			{
				base.Encode(rangeEncoder, symbol, posState);
				if (--_counters[posState] == 0)
				{
					UpdateTable(posState);
				}
			}
		}

		private class Optimal
		{
			public Base.State State;

			public bool Prev1IsChar;

			public bool Prev2;

			public uint PosPrev2;

			public uint BackPrev2;

			public uint Price;

			public uint PosPrev;

			public uint BackPrev;

			public uint Backs0;

			public uint Backs1;

			public uint Backs2;

			public uint Backs3;

			public void MakeAsChar()
			{
				BackPrev = uint.MaxValue;
				Prev1IsChar = false;
			}

			public void MakeAsShortRep()
			{
				BackPrev = 0u;
				Prev1IsChar = false;
			}

			public bool IsShortRep()
			{
				return BackPrev == 0;
			}
		}

		private const uint kIfinityPrice = 268435455u;

		private static byte[] g_FastPos;

		private Base.State _state;

		private byte _previousByte;

		private uint[] _repDistances = new uint[4];

		private const int kDefaultDictionaryLogSize = 22;

		private const uint kNumFastBytesDefault = 32u;

		private const uint kNumLenSpecSymbols = 16u;

		private const uint kNumOpts = 4096u;

		private Optimal[] _optimum = new Optimal[4096];

		private IMatchFinder _matchFinder;

		private SevenZip.Compression.RangeCoder.Encoder _rangeEncoder = new SevenZip.Compression.RangeCoder.Encoder();

		private BitEncoder[] _isMatch = new BitEncoder[192];

		private BitEncoder[] _isRep = new BitEncoder[12];

		private BitEncoder[] _isRepG0 = new BitEncoder[12];

		private BitEncoder[] _isRepG1 = new BitEncoder[12];

		private BitEncoder[] _isRepG2 = new BitEncoder[12];

		private BitEncoder[] _isRep0Long = new BitEncoder[192];

		private BitTreeEncoder[] _posSlotEncoder = new BitTreeEncoder[4];

		private BitEncoder[] _posEncoders = new BitEncoder[114];

		private BitTreeEncoder _posAlignEncoder = new BitTreeEncoder(4);

		private LenPriceTableEncoder _lenEncoder = new LenPriceTableEncoder();

		private LenPriceTableEncoder _repMatchLenEncoder = new LenPriceTableEncoder();

		private LiteralEncoder _literalEncoder = new LiteralEncoder();

		private uint[] _matchDistances = new uint[548];

		private uint _numFastBytes = 32u;

		private uint _longestMatchLength;

		private uint _numDistancePairs;

		private uint _additionalOffset;

		private uint _optimumEndIndex;

		private uint _optimumCurrentIndex;

		private bool _longestMatchWasFound;

		private uint[] _posSlotPrices = new uint[256];

		private uint[] _distancesPrices = new uint[512];

		private uint[] _alignPrices = new uint[16];

		private uint _alignPriceCount;

		private uint _distTableSize = 44u;

		private int _posStateBits = 2;

		private uint _posStateMask = 3u;

		private int _numLiteralPosStateBits;

		private int _numLiteralContextBits = 3;

		private uint _dictionarySize = 4194304u;

		private uint _dictionarySizePrev = uint.MaxValue;

		private uint _numFastBytesPrev = uint.MaxValue;

		private long nowPos64;

		private bool _finished;

		private Stream _inStream;

		private EMatchFinderType _matchFinderType = EMatchFinderType.BT4;

		private bool _writeEndMark;

		private bool _needReleaseMFStream;

		private uint[] reps = new uint[4];

		private uint[] repLens = new uint[4];

		private const int kPropSize = 5;

		private byte[] properties = new byte[5];

		private uint[] tempPrices = new uint[128];

		private uint _matchPriceCount;

		private static string[] kMatchFinderIDs;

		private uint _trainSize;

		static Encoder()
		{
			g_FastPos = new byte[2048];
			kMatchFinderIDs = new string[2] { "BT2", "BT4" };
			int num = 2;
			g_FastPos[0] = 0;
			g_FastPos[1] = 1;
			for (byte b = 2; b < 22; b++)
			{
				uint num2 = (uint)(1 << (b >> 1) - 1);
				uint num3 = 0u;
				while (num3 < num2)
				{
					g_FastPos[num] = b;
					num3++;
					num++;
				}
			}
		}

		private static uint GetPosSlot(uint pos)
		{
			if (pos < 2048)
			{
				return g_FastPos[pos];
			}
			if (pos < 2097152)
			{
				return (uint)(g_FastPos[pos >> 10] + 20);
			}
			return (uint)(g_FastPos[pos >> 20] + 40);
		}

		private static uint GetPosSlot2(uint pos)
		{
			if (pos < 131072)
			{
				return (uint)(g_FastPos[pos >> 6] + 12);
			}
			if (pos < 134217728)
			{
				return (uint)(g_FastPos[pos >> 16] + 32);
			}
			return (uint)(g_FastPos[pos >> 26] + 52);
		}

		private void BaseInit()
		{
			_state.Init();
			_previousByte = 0;
			for (uint num = 0u; num < 4; num++)
			{
				_repDistances[num] = 0u;
			}
		}

		private void Create()
		{
			if (_matchFinder == null)
			{
				BinTree binTree = new BinTree();
				int type = 4;
				if (_matchFinderType == EMatchFinderType.BT2)
				{
					type = 2;
				}
				binTree.SetType(type);
				_matchFinder = binTree;
			}
			_literalEncoder.Create(_numLiteralPosStateBits, _numLiteralContextBits);
			if (_dictionarySize != _dictionarySizePrev || _numFastBytesPrev != _numFastBytes)
			{
				_matchFinder.Create(_dictionarySize, 4096u, _numFastBytes, 274u);
				_dictionarySizePrev = _dictionarySize;
				_numFastBytesPrev = _numFastBytes;
			}
		}

		public Encoder()
		{
			for (int i = 0; (long)i < 4096L; i++)
			{
				_optimum[i] = new Optimal();
			}
			for (int j = 0; (long)j < 4L; j++)
			{
				_posSlotEncoder[j] = new BitTreeEncoder(6);
			}
		}

		private void SetWriteEndMarkerMode(bool writeEndMarker)
		{
			_writeEndMark = writeEndMarker;
		}

		private void Init()
		{
			BaseInit();
			_rangeEncoder.Init();
			for (uint num = 0u; num < 12; num++)
			{
				for (uint num2 = 0u; num2 <= _posStateMask; num2++)
				{
					uint num3 = (num << 4) + num2;
					_isMatch[num3].Init();
					_isRep0Long[num3].Init();
				}
				_isRep[num].Init();
				_isRepG0[num].Init();
				_isRepG1[num].Init();
				_isRepG2[num].Init();
			}
			_literalEncoder.Init();
			for (uint num = 0u; num < 4; num++)
			{
				_posSlotEncoder[num].Init();
			}
			for (uint num = 0u; num < 114; num++)
			{
				_posEncoders[num].Init();
			}
			_lenEncoder.Init((uint)(1 << _posStateBits));
			_repMatchLenEncoder.Init((uint)(1 << _posStateBits));
			_posAlignEncoder.Init();
			_longestMatchWasFound = false;
			_optimumEndIndex = 0u;
			_optimumCurrentIndex = 0u;
			_additionalOffset = 0u;
		}

		private void ReadMatchDistances(out uint lenRes, out uint numDistancePairs)
		{
			lenRes = 0u;
			numDistancePairs = _matchFinder.GetMatches(_matchDistances);
			if (numDistancePairs != 0)
			{
				lenRes = _matchDistances[numDistancePairs - 2];
				if (lenRes == _numFastBytes)
				{
					lenRes += _matchFinder.GetMatchLen((int)(lenRes - 1), _matchDistances[numDistancePairs - 1], 273 - lenRes);
				}
			}
			_additionalOffset++;
		}

		private void MovePos(uint num)
		{
			if (num != 0)
			{
				_matchFinder.Skip(num);
				_additionalOffset += num;
			}
		}

		private uint GetRepLen1Price(Base.State state, uint posState)
		{
			return _isRepG0[state.Index].GetPrice0() + _isRep0Long[(state.Index << 4) + posState].GetPrice0();
		}

		private uint GetPureRepPrice(uint repIndex, Base.State state, uint posState)
		{
			uint price;
			if (repIndex == 0)
			{
				price = _isRepG0[state.Index].GetPrice0();
				return price + _isRep0Long[(state.Index << 4) + posState].GetPrice1();
			}
			price = _isRepG0[state.Index].GetPrice1();
			if (repIndex == 1)
			{
				return price + _isRepG1[state.Index].GetPrice0();
			}
			price += _isRepG1[state.Index].GetPrice1();
			return price + _isRepG2[state.Index].GetPrice(repIndex - 2);
		}

		private uint GetRepPrice(uint repIndex, uint len, Base.State state, uint posState)
		{
			return _repMatchLenEncoder.GetPrice(len - 2, posState) + GetPureRepPrice(repIndex, state, posState);
		}

		private uint GetPosLenPrice(uint pos, uint len, uint posState)
		{
			uint lenToPosState = Base.GetLenToPosState(len);
			uint num = ((pos >= 128) ? (_posSlotPrices[(lenToPosState << 6) + GetPosSlot2(pos)] + _alignPrices[pos & 0xF]) : _distancesPrices[lenToPosState * 128 + pos]);
			return num + _lenEncoder.GetPrice(len - 2, posState);
		}

		private uint Backward(out uint backRes, uint cur)
		{
			_optimumEndIndex = cur;
			uint posPrev = _optimum[cur].PosPrev;
			uint backPrev = _optimum[cur].BackPrev;
			do
			{
				if (_optimum[cur].Prev1IsChar)
				{
					_optimum[posPrev].MakeAsChar();
					_optimum[posPrev].PosPrev = posPrev - 1;
					if (_optimum[cur].Prev2)
					{
						_optimum[posPrev - 1].Prev1IsChar = false;
						_optimum[posPrev - 1].PosPrev = _optimum[cur].PosPrev2;
						_optimum[posPrev - 1].BackPrev = _optimum[cur].BackPrev2;
					}
				}
				uint num = posPrev;
				uint backPrev2 = backPrev;
				backPrev = _optimum[num].BackPrev;
				posPrev = _optimum[num].PosPrev;
				_optimum[num].BackPrev = backPrev2;
				_optimum[num].PosPrev = cur;
				cur = num;
			}
			while (cur != 0);
			backRes = _optimum[0].BackPrev;
			_optimumCurrentIndex = _optimum[0].PosPrev;
			return _optimumCurrentIndex;
		}

		private uint GetOptimum(uint position, out uint backRes)
		{
			if (_optimumEndIndex != _optimumCurrentIndex)
			{
				uint result = _optimum[_optimumCurrentIndex].PosPrev - _optimumCurrentIndex;
				backRes = _optimum[_optimumCurrentIndex].BackPrev;
				_optimumCurrentIndex = _optimum[_optimumCurrentIndex].PosPrev;
				return result;
			}
			_optimumCurrentIndex = (_optimumEndIndex = 0u);
			uint lenRes;
			uint numDistancePairs;
			if (!_longestMatchWasFound)
			{
				ReadMatchDistances(out lenRes, out numDistancePairs);
			}
			else
			{
				lenRes = _longestMatchLength;
				numDistancePairs = _numDistancePairs;
				_longestMatchWasFound = false;
			}
			uint num = _matchFinder.GetNumAvailableBytes() + 1;
			if (num < 2)
			{
				backRes = uint.MaxValue;
				return 1u;
			}
			if (num > 273)
			{
				num = 273u;
			}
			uint num2 = 0u;
			for (uint num3 = 0u; num3 < 4; num3++)
			{
				reps[num3] = _repDistances[num3];
				repLens[num3] = _matchFinder.GetMatchLen(-1, reps[num3], 273u);
				if (repLens[num3] > repLens[num2])
				{
					num2 = num3;
				}
			}
			if (repLens[num2] >= _numFastBytes)
			{
				backRes = num2;
				uint num4 = repLens[num2];
				MovePos(num4 - 1);
				return num4;
			}
			if (lenRes >= _numFastBytes)
			{
				backRes = _matchDistances[numDistancePairs - 1] + 4;
				MovePos(lenRes - 1);
				return lenRes;
			}
			byte indexByte = _matchFinder.GetIndexByte(-1);
			byte indexByte2 = _matchFinder.GetIndexByte((int)(0 - _repDistances[0] - 1 - 1));
			if (lenRes < 2 && indexByte != indexByte2 && repLens[num2] < 2)
			{
				backRes = uint.MaxValue;
				return 1u;
			}
			_optimum[0].State = _state;
			uint num5 = position & _posStateMask;
			_optimum[1].Price = _isMatch[(_state.Index << 4) + num5].GetPrice0() + _literalEncoder.GetSubCoder(position, _previousByte).GetPrice(!_state.IsCharState(), indexByte2, indexByte);
			_optimum[1].MakeAsChar();
			uint price = _isMatch[(_state.Index << 4) + num5].GetPrice1();
			uint num6 = price + _isRep[_state.Index].GetPrice1();
			if (indexByte2 == indexByte)
			{
				uint num7 = num6 + GetRepLen1Price(_state, num5);
				if (num7 < _optimum[1].Price)
				{
					_optimum[1].Price = num7;
					_optimum[1].MakeAsShortRep();
				}
			}
			uint num8 = ((lenRes >= repLens[num2]) ? lenRes : repLens[num2]);
			if (num8 < 2)
			{
				backRes = _optimum[1].BackPrev;
				return 1u;
			}
			_optimum[1].PosPrev = 0u;
			_optimum[0].Backs0 = reps[0];
			_optimum[0].Backs1 = reps[1];
			_optimum[0].Backs2 = reps[2];
			_optimum[0].Backs3 = reps[3];
			uint num9 = num8;
			do
			{
				_optimum[num9--].Price = 268435455u;
			}
			while (num9 >= 2);
			for (uint num3 = 0u; num3 < 4; num3++)
			{
				uint num10 = repLens[num3];
				if (num10 < 2)
				{
					continue;
				}
				uint num11 = num6 + GetPureRepPrice(num3, _state, num5);
				do
				{
					uint num12 = num11 + _repMatchLenEncoder.GetPrice(num10 - 2, num5);
					Optimal optimal = _optimum[num10];
					if (num12 < optimal.Price)
					{
						optimal.Price = num12;
						optimal.PosPrev = 0u;
						optimal.BackPrev = num3;
						optimal.Prev1IsChar = false;
					}
				}
				while (--num10 >= 2);
			}
			uint num13 = price + _isRep[_state.Index].GetPrice0();
			num9 = ((repLens[0] >= 2) ? (repLens[0] + 1) : 2u);
			if (num9 <= lenRes)
			{
				uint num14;
				for (num14 = 0u; num9 > _matchDistances[num14]; num14 += 2)
				{
				}
				while (true)
				{
					uint num15 = _matchDistances[num14 + 1];
					uint num16 = num13 + GetPosLenPrice(num15, num9, num5);
					Optimal optimal2 = _optimum[num9];
					if (num16 < optimal2.Price)
					{
						optimal2.Price = num16;
						optimal2.PosPrev = 0u;
						optimal2.BackPrev = num15 + 4;
						optimal2.Prev1IsChar = false;
					}
					if (num9 == _matchDistances[num14])
					{
						num14 += 2;
						if (num14 == numDistancePairs)
						{
							break;
						}
					}
					num9++;
				}
			}
			uint num17 = 0u;
			uint lenRes2;
			while (true)
			{
				num17++;
				if (num17 == num8)
				{
					return Backward(out backRes, num17);
				}
				ReadMatchDistances(out lenRes2, out numDistancePairs);
				if (lenRes2 >= _numFastBytes)
				{
					break;
				}
				position++;
				uint num18 = _optimum[num17].PosPrev;
				Base.State state;
				if (_optimum[num17].Prev1IsChar)
				{
					num18--;
					if (_optimum[num17].Prev2)
					{
						state = _optimum[_optimum[num17].PosPrev2].State;
						if (_optimum[num17].BackPrev2 < 4)
						{
							state.UpdateRep();
						}
						else
						{
							state.UpdateMatch();
						}
					}
					else
					{
						state = _optimum[num18].State;
					}
					state.UpdateChar();
				}
				else
				{
					state = _optimum[num18].State;
				}
				if (num18 == num17 - 1)
				{
					if (_optimum[num17].IsShortRep())
					{
						state.UpdateShortRep();
					}
					else
					{
						state.UpdateChar();
					}
				}
				else
				{
					uint num19;
					if (_optimum[num17].Prev1IsChar && _optimum[num17].Prev2)
					{
						num18 = _optimum[num17].PosPrev2;
						num19 = _optimum[num17].BackPrev2;
						state.UpdateRep();
					}
					else
					{
						num19 = _optimum[num17].BackPrev;
						if (num19 < 4)
						{
							state.UpdateRep();
						}
						else
						{
							state.UpdateMatch();
						}
					}
					Optimal optimal3 = _optimum[num18];
					switch (num19)
					{
					case 0u:
						reps[0] = optimal3.Backs0;
						reps[1] = optimal3.Backs1;
						reps[2] = optimal3.Backs2;
						reps[3] = optimal3.Backs3;
						break;
					case 1u:
						reps[0] = optimal3.Backs1;
						reps[1] = optimal3.Backs0;
						reps[2] = optimal3.Backs2;
						reps[3] = optimal3.Backs3;
						break;
					case 2u:
						reps[0] = optimal3.Backs2;
						reps[1] = optimal3.Backs0;
						reps[2] = optimal3.Backs1;
						reps[3] = optimal3.Backs3;
						break;
					case 3u:
						reps[0] = optimal3.Backs3;
						reps[1] = optimal3.Backs0;
						reps[2] = optimal3.Backs1;
						reps[3] = optimal3.Backs2;
						break;
					default:
						reps[0] = num19 - 4;
						reps[1] = optimal3.Backs0;
						reps[2] = optimal3.Backs1;
						reps[3] = optimal3.Backs2;
						break;
					}
				}
				_optimum[num17].State = state;
				_optimum[num17].Backs0 = reps[0];
				_optimum[num17].Backs1 = reps[1];
				_optimum[num17].Backs2 = reps[2];
				_optimum[num17].Backs3 = reps[3];
				uint price2 = _optimum[num17].Price;
				indexByte = _matchFinder.GetIndexByte(-1);
				indexByte2 = _matchFinder.GetIndexByte((int)(0 - reps[0] - 1 - 1));
				num5 = position & _posStateMask;
				uint num20 = price2 + _isMatch[(state.Index << 4) + num5].GetPrice0() + _literalEncoder.GetSubCoder(position, _matchFinder.GetIndexByte(-2)).GetPrice(!state.IsCharState(), indexByte2, indexByte);
				Optimal optimal4 = _optimum[num17 + 1];
				bool flag = false;
				if (num20 < optimal4.Price)
				{
					optimal4.Price = num20;
					optimal4.PosPrev = num17;
					optimal4.MakeAsChar();
					flag = true;
				}
				price = price2 + _isMatch[(state.Index << 4) + num5].GetPrice1();
				num6 = price + _isRep[state.Index].GetPrice1();
				if (indexByte2 == indexByte && (optimal4.PosPrev >= num17 || optimal4.BackPrev != 0))
				{
					uint num21 = num6 + GetRepLen1Price(state, num5);
					if (num21 <= optimal4.Price)
					{
						optimal4.Price = num21;
						optimal4.PosPrev = num17;
						optimal4.MakeAsShortRep();
						flag = true;
					}
				}
				uint val = _matchFinder.GetNumAvailableBytes() + 1;
				val = Math.Min(4095 - num17, val);
				num = val;
				if (num < 2)
				{
					continue;
				}
				if (num > _numFastBytes)
				{
					num = _numFastBytes;
				}
				if (!flag && indexByte2 != indexByte)
				{
					uint limit = Math.Min(val - 1, _numFastBytes);
					uint matchLen = _matchFinder.GetMatchLen(0, reps[0], limit);
					if (matchLen >= 2)
					{
						Base.State state2 = state;
						state2.UpdateChar();
						uint num22 = (position + 1) & _posStateMask;
						uint num23 = num20 + _isMatch[(state2.Index << 4) + num22].GetPrice1() + _isRep[state2.Index].GetPrice1();
						uint num24 = num17 + 1 + matchLen;
						while (num8 < num24)
						{
							_optimum[++num8].Price = 268435455u;
						}
						uint num25 = num23 + GetRepPrice(0u, matchLen, state2, num22);
						Optimal optimal5 = _optimum[num24];
						if (num25 < optimal5.Price)
						{
							optimal5.Price = num25;
							optimal5.PosPrev = num17 + 1;
							optimal5.BackPrev = 0u;
							optimal5.Prev1IsChar = true;
							optimal5.Prev2 = false;
						}
					}
				}
				uint num26 = 2u;
				for (uint num27 = 0u; num27 < 4; num27++)
				{
					uint num28 = _matchFinder.GetMatchLen(-1, reps[num27], num);
					if (num28 < 2)
					{
						continue;
					}
					uint num29 = num28;
					while (true)
					{
						if (num8 < num17 + num28)
						{
							_optimum[++num8].Price = 268435455u;
							continue;
						}
						uint num30 = num6 + GetRepPrice(num27, num28, state, num5);
						Optimal optimal6 = _optimum[num17 + num28];
						if (num30 < optimal6.Price)
						{
							optimal6.Price = num30;
							optimal6.PosPrev = num17;
							optimal6.BackPrev = num27;
							optimal6.Prev1IsChar = false;
						}
						if (--num28 < 2)
						{
							break;
						}
					}
					num28 = num29;
					if (num27 == 0)
					{
						num26 = num28 + 1;
					}
					if (num28 >= val)
					{
						continue;
					}
					uint limit2 = Math.Min(val - 1 - num28, _numFastBytes);
					uint matchLen2 = _matchFinder.GetMatchLen((int)num28, reps[num27], limit2);
					if (matchLen2 >= 2)
					{
						Base.State state3 = state;
						state3.UpdateRep();
						uint num31 = (position + num28) & _posStateMask;
						uint num32 = num6 + GetRepPrice(num27, num28, state, num5) + _isMatch[(state3.Index << 4) + num31].GetPrice0() + _literalEncoder.GetSubCoder(position + num28, _matchFinder.GetIndexByte((int)(num28 - 1 - 1))).GetPrice(matchMode: true, _matchFinder.GetIndexByte((int)(num28 - 1 - (reps[num27] + 1))), _matchFinder.GetIndexByte((int)(num28 - 1)));
						state3.UpdateChar();
						num31 = (position + num28 + 1) & _posStateMask;
						uint num33 = num32 + _isMatch[(state3.Index << 4) + num31].GetPrice1() + _isRep[state3.Index].GetPrice1();
						uint num34 = num28 + 1 + matchLen2;
						while (num8 < num17 + num34)
						{
							_optimum[++num8].Price = 268435455u;
						}
						uint num35 = num33 + GetRepPrice(0u, matchLen2, state3, num31);
						Optimal optimal7 = _optimum[num17 + num34];
						if (num35 < optimal7.Price)
						{
							optimal7.Price = num35;
							optimal7.PosPrev = num17 + num28 + 1;
							optimal7.BackPrev = 0u;
							optimal7.Prev1IsChar = true;
							optimal7.Prev2 = true;
							optimal7.PosPrev2 = num17;
							optimal7.BackPrev2 = num27;
						}
					}
				}
				if (lenRes2 > num)
				{
					lenRes2 = num;
					for (numDistancePairs = 0u; lenRes2 > _matchDistances[numDistancePairs]; numDistancePairs += 2)
					{
					}
					_matchDistances[numDistancePairs] = lenRes2;
					numDistancePairs += 2;
				}
				if (lenRes2 < num26)
				{
					continue;
				}
				num13 = price + _isRep[state.Index].GetPrice0();
				while (num8 < num17 + lenRes2)
				{
					_optimum[++num8].Price = 268435455u;
				}
				uint num36;
				for (num36 = 0u; num26 > _matchDistances[num36]; num36 += 2)
				{
				}
				uint num37 = num26;
				while (true)
				{
					uint num38 = _matchDistances[num36 + 1];
					uint num39 = num13 + GetPosLenPrice(num38, num37, num5);
					Optimal optimal8 = _optimum[num17 + num37];
					if (num39 < optimal8.Price)
					{
						optimal8.Price = num39;
						optimal8.PosPrev = num17;
						optimal8.BackPrev = num38 + 4;
						optimal8.Prev1IsChar = false;
					}
					if (num37 == _matchDistances[num36])
					{
						if (num37 < val)
						{
							uint limit3 = Math.Min(val - 1 - num37, _numFastBytes);
							uint matchLen3 = _matchFinder.GetMatchLen((int)num37, num38, limit3);
							if (matchLen3 >= 2)
							{
								Base.State state4 = state;
								state4.UpdateMatch();
								uint num40 = (position + num37) & _posStateMask;
								uint num41 = num39 + _isMatch[(state4.Index << 4) + num40].GetPrice0() + _literalEncoder.GetSubCoder(position + num37, _matchFinder.GetIndexByte((int)(num37 - 1 - 1))).GetPrice(matchMode: true, _matchFinder.GetIndexByte((int)(num37 - (num38 + 1) - 1)), _matchFinder.GetIndexByte((int)(num37 - 1)));
								state4.UpdateChar();
								num40 = (position + num37 + 1) & _posStateMask;
								uint num42 = num41 + _isMatch[(state4.Index << 4) + num40].GetPrice1() + _isRep[state4.Index].GetPrice1();
								uint num43 = num37 + 1 + matchLen3;
								while (num8 < num17 + num43)
								{
									_optimum[++num8].Price = 268435455u;
								}
								num39 = num42 + GetRepPrice(0u, matchLen3, state4, num40);
								optimal8 = _optimum[num17 + num43];
								if (num39 < optimal8.Price)
								{
									optimal8.Price = num39;
									optimal8.PosPrev = num17 + num37 + 1;
									optimal8.BackPrev = 0u;
									optimal8.Prev1IsChar = true;
									optimal8.Prev2 = true;
									optimal8.PosPrev2 = num17;
									optimal8.BackPrev2 = num38 + 4;
								}
							}
						}
						num36 += 2;
						if (num36 == numDistancePairs)
						{
							break;
						}
					}
					num37++;
				}
			}
			_numDistancePairs = numDistancePairs;
			_longestMatchLength = lenRes2;
			_longestMatchWasFound = true;
			return Backward(out backRes, num17);
		}

		private bool ChangePair(uint smallDist, uint bigDist)
		{
			if (smallDist < 33554432)
			{
				return bigDist >= smallDist << 7;
			}
			return false;
		}

		private void WriteEndMarker(uint posState)
		{
			if (_writeEndMark)
			{
				_isMatch[(_state.Index << 4) + posState].Encode(_rangeEncoder, 1u);
				_isRep[_state.Index].Encode(_rangeEncoder, 0u);
				_state.UpdateMatch();
				uint num = 2u;
				_lenEncoder.Encode(_rangeEncoder, num - 2, posState);
				uint symbol = 63u;
				uint lenToPosState = Base.GetLenToPosState(num);
				_posSlotEncoder[lenToPosState].Encode(_rangeEncoder, symbol);
				int num2 = 30;
				uint num3 = (uint)((1 << num2) - 1);
				_rangeEncoder.EncodeDirectBits(num3 >> 4, num2 - 4);
				_posAlignEncoder.ReverseEncode(_rangeEncoder, num3 & 0xF);
			}
		}

		private void Flush(uint nowPos)
		{
			ReleaseMFStream();
			WriteEndMarker(nowPos & _posStateMask);
			_rangeEncoder.FlushData();
			_rangeEncoder.FlushStream();
		}

		public void CodeOneBlock(out long inSize, out long outSize, out bool finished)
		{
			inSize = 0L;
			outSize = 0L;
			finished = true;
			if (_inStream != null)
			{
				_matchFinder.SetStream(_inStream);
				_matchFinder.Init();
				_needReleaseMFStream = true;
				_inStream = null;
				if (_trainSize != 0)
				{
					_matchFinder.Skip(_trainSize);
				}
			}
			if (_finished)
			{
				return;
			}
			_finished = true;
			long num = nowPos64;
			if (nowPos64 == 0L)
			{
				if (_matchFinder.GetNumAvailableBytes() == 0)
				{
					Flush((uint)nowPos64);
					return;
				}
				ReadMatchDistances(out var _, out var _);
				uint num2 = (uint)(int)nowPos64 & _posStateMask;
				_isMatch[(_state.Index << 4) + num2].Encode(_rangeEncoder, 0u);
				_state.UpdateChar();
				byte indexByte = _matchFinder.GetIndexByte((int)(0 - _additionalOffset));
				_literalEncoder.GetSubCoder((uint)nowPos64, _previousByte).Encode(_rangeEncoder, indexByte);
				_previousByte = indexByte;
				_additionalOffset--;
				nowPos64++;
			}
			if (_matchFinder.GetNumAvailableBytes() == 0)
			{
				Flush((uint)nowPos64);
				return;
			}
			while (true)
			{
				uint backRes;
				uint optimum = GetOptimum((uint)nowPos64, out backRes);
				uint num3 = (uint)(int)nowPos64 & _posStateMask;
				uint num4 = (_state.Index << 4) + num3;
				if (optimum == 1 && backRes == uint.MaxValue)
				{
					_isMatch[num4].Encode(_rangeEncoder, 0u);
					byte indexByte2 = _matchFinder.GetIndexByte((int)(0 - _additionalOffset));
					LiteralEncoder.Encoder2 subCoder = _literalEncoder.GetSubCoder((uint)nowPos64, _previousByte);
					if (!_state.IsCharState())
					{
						byte indexByte3 = _matchFinder.GetIndexByte((int)(0 - _repDistances[0] - 1 - _additionalOffset));
						subCoder.EncodeMatched(_rangeEncoder, indexByte3, indexByte2);
					}
					else
					{
						subCoder.Encode(_rangeEncoder, indexByte2);
					}
					_previousByte = indexByte2;
					_state.UpdateChar();
				}
				else
				{
					_isMatch[num4].Encode(_rangeEncoder, 1u);
					if (backRes < 4)
					{
						_isRep[_state.Index].Encode(_rangeEncoder, 1u);
						if (backRes == 0)
						{
							_isRepG0[_state.Index].Encode(_rangeEncoder, 0u);
							if (optimum == 1)
							{
								_isRep0Long[num4].Encode(_rangeEncoder, 0u);
							}
							else
							{
								_isRep0Long[num4].Encode(_rangeEncoder, 1u);
							}
						}
						else
						{
							_isRepG0[_state.Index].Encode(_rangeEncoder, 1u);
							if (backRes == 1)
							{
								_isRepG1[_state.Index].Encode(_rangeEncoder, 0u);
							}
							else
							{
								_isRepG1[_state.Index].Encode(_rangeEncoder, 1u);
								_isRepG2[_state.Index].Encode(_rangeEncoder, backRes - 2);
							}
						}
						if (optimum == 1)
						{
							_state.UpdateShortRep();
						}
						else
						{
							_repMatchLenEncoder.Encode(_rangeEncoder, optimum - 2, num3);
							_state.UpdateRep();
						}
						uint num5 = _repDistances[backRes];
						if (backRes != 0)
						{
							for (uint num6 = backRes; num6 >= 1; num6--)
							{
								_repDistances[num6] = _repDistances[num6 - 1];
							}
							_repDistances[0] = num5;
						}
					}
					else
					{
						_isRep[_state.Index].Encode(_rangeEncoder, 0u);
						_state.UpdateMatch();
						_lenEncoder.Encode(_rangeEncoder, optimum - 2, num3);
						backRes -= 4;
						uint posSlot = GetPosSlot(backRes);
						uint lenToPosState = Base.GetLenToPosState(optimum);
						_posSlotEncoder[lenToPosState].Encode(_rangeEncoder, posSlot);
						if (posSlot >= 4)
						{
							int num7 = (int)((posSlot >> 1) - 1);
							uint num8 = (2 | (posSlot & 1)) << num7;
							uint num9 = backRes - num8;
							if (posSlot < 14)
							{
								BitTreeEncoder.ReverseEncode(_posEncoders, num8 - posSlot - 1, _rangeEncoder, num7, num9);
							}
							else
							{
								_rangeEncoder.EncodeDirectBits(num9 >> 4, num7 - 4);
								_posAlignEncoder.ReverseEncode(_rangeEncoder, num9 & 0xF);
								_alignPriceCount++;
							}
						}
						uint num10 = backRes;
						for (uint num11 = 3u; num11 >= 1; num11--)
						{
							_repDistances[num11] = _repDistances[num11 - 1];
						}
						_repDistances[0] = num10;
						_matchPriceCount++;
					}
					_previousByte = _matchFinder.GetIndexByte((int)(optimum - 1 - _additionalOffset));
				}
				_additionalOffset -= optimum;
				nowPos64 += optimum;
				if (_additionalOffset == 0)
				{
					if (_matchPriceCount >= 128)
					{
						FillDistancesPrices();
					}
					if (_alignPriceCount >= 16)
					{
						FillAlignPrices();
					}
					inSize = nowPos64;
					outSize = _rangeEncoder.GetProcessedSizeAdd();
					if (_matchFinder.GetNumAvailableBytes() == 0)
					{
						Flush((uint)nowPos64);
						return;
					}
					if (nowPos64 - num >= 4096)
					{
						break;
					}
				}
			}
			_finished = false;
			finished = false;
		}

		private void ReleaseMFStream()
		{
			if (_matchFinder != null && _needReleaseMFStream)
			{
				_matchFinder.ReleaseStream();
				_needReleaseMFStream = false;
			}
		}

		private void SetOutStream(Stream outStream)
		{
			_rangeEncoder.SetStream(outStream);
		}

		private void ReleaseOutStream()
		{
			_rangeEncoder.ReleaseStream();
		}

		private void ReleaseStreams()
		{
			ReleaseMFStream();
			ReleaseOutStream();
		}

		private void SetStreams(Stream inStream, Stream outStream, long inSize, long outSize)
		{
			_inStream = inStream;
			_finished = false;
			Create();
			SetOutStream(outStream);
			Init();
			FillDistancesPrices();
			FillAlignPrices();
			_lenEncoder.SetTableSize(_numFastBytes + 1 - 2);
			_lenEncoder.UpdateTables((uint)(1 << _posStateBits));
			_repMatchLenEncoder.SetTableSize(_numFastBytes + 1 - 2);
			_repMatchLenEncoder.UpdateTables((uint)(1 << _posStateBits));
			nowPos64 = 0L;
		}

		public void Code(Stream inStream, Stream outStream, long inSize, long outSize, ICodeProgress progress)
		{
			_needReleaseMFStream = false;
			try
			{
				SetStreams(inStream, outStream, inSize, outSize);
				while (true)
				{
					CodeOneBlock(out var inSize2, out var outSize2, out var finished);
					if (finished)
					{
						break;
					}
					progress?.SetProgress(inSize2, outSize2);
				}
			}
			finally
			{
				ReleaseStreams();
			}
		}

		public void WriteCoderProperties(Stream outStream)
		{
			properties[0] = (byte)((_posStateBits * 5 + _numLiteralPosStateBits) * 9 + _numLiteralContextBits);
			for (int i = 0; i < 4; i++)
			{
				properties[1 + i] = (byte)((_dictionarySize >> 8 * i) & 0xFF);
			}
			outStream.Write(properties, 0, 5);
		}

		private void FillDistancesPrices()
		{
			for (uint num = 4u; num < 128; num++)
			{
				uint posSlot = GetPosSlot(num);
				int num2 = (int)((posSlot >> 1) - 1);
				uint num3 = (2 | (posSlot & 1)) << num2;
				tempPrices[num] = BitTreeEncoder.ReverseGetPrice(_posEncoders, num3 - posSlot - 1, num2, num - num3);
			}
			for (uint num4 = 0u; num4 < 4; num4++)
			{
				BitTreeEncoder bitTreeEncoder = _posSlotEncoder[num4];
				uint num5 = num4 << 6;
				for (uint num6 = 0u; num6 < _distTableSize; num6++)
				{
					_posSlotPrices[num5 + num6] = bitTreeEncoder.GetPrice(num6);
				}
				for (uint num6 = 14u; num6 < _distTableSize; num6++)
				{
					_posSlotPrices[num5 + num6] += (num6 >> 1) - 1 - 4 << 6;
				}
				uint num7 = num4 * 128;
				uint num8;
				for (num8 = 0u; num8 < 4; num8++)
				{
					_distancesPrices[num7 + num8] = _posSlotPrices[num5 + num8];
				}
				for (; num8 < 128; num8++)
				{
					_distancesPrices[num7 + num8] = _posSlotPrices[num5 + GetPosSlot(num8)] + tempPrices[num8];
				}
			}
			_matchPriceCount = 0u;
		}

		private void FillAlignPrices()
		{
			for (uint num = 0u; num < 16; num++)
			{
				_alignPrices[num] = _posAlignEncoder.ReverseGetPrice(num);
			}
			_alignPriceCount = 0u;
		}

		private static int FindMatchFinder(string s)
		{
			for (int i = 0; i < kMatchFinderIDs.Length; i++)
			{
				if (s == kMatchFinderIDs[i])
				{
					return i;
				}
			}
			return -1;
		}

		public void SetCoderProperties(CoderPropID[] propIDs, object[] properties)
		{
			for (uint num = 0u; num < properties.Length; num++)
			{
				object obj = properties[num];
				switch (propIDs[num])
				{
				case CoderPropID.NumFastBytes:
					if (!(obj is int num2))
					{
						throw new InvalidParamException();
					}
					if (num2 < 5 || (long)num2 > 273L)
					{
						throw new InvalidParamException();
					}
					_numFastBytes = (uint)num2;
					break;
				case CoderPropID.MatchFinder:
				{
					if (!(obj is string))
					{
						throw new InvalidParamException();
					}
					EMatchFinderType matchFinderType = _matchFinderType;
					int num6 = FindMatchFinder(((string)obj).ToUpper());
					if (num6 < 0)
					{
						throw new InvalidParamException();
					}
					_matchFinderType = (EMatchFinderType)num6;
					if (_matchFinder != null && matchFinderType != _matchFinderType)
					{
						_dictionarySizePrev = uint.MaxValue;
						_matchFinder = null;
					}
					break;
				}
				case CoderPropID.DictionarySize:
				{
					if (!(obj is int num7))
					{
						throw new InvalidParamException();
					}
					if ((long)num7 < 1L || (long)num7 > 1073741824L)
					{
						throw new InvalidParamException();
					}
					_dictionarySize = (uint)num7;
					int i;
					for (i = 0; (long)i < 30L && num7 > (uint)(1 << i); i++)
					{
					}
					_distTableSize = (uint)(i * 2);
					break;
				}
				case CoderPropID.PosStateBits:
					if (!(obj is int num3))
					{
						throw new InvalidParamException();
					}
					if (num3 < 0 || (long)num3 > 4L)
					{
						throw new InvalidParamException();
					}
					_posStateBits = num3;
					_posStateMask = (uint)((1 << _posStateBits) - 1);
					break;
				case CoderPropID.LitPosBits:
					if (!(obj is int num5))
					{
						throw new InvalidParamException();
					}
					if (num5 < 0 || (long)num5 > 4L)
					{
						throw new InvalidParamException();
					}
					_numLiteralPosStateBits = num5;
					break;
				case CoderPropID.LitContextBits:
					if (!(obj is int num4))
					{
						throw new InvalidParamException();
					}
					if (num4 < 0 || (long)num4 > 8L)
					{
						throw new InvalidParamException();
					}
					_numLiteralContextBits = num4;
					break;
				case CoderPropID.EndMarker:
					if (!(obj is bool))
					{
						throw new InvalidParamException();
					}
					SetWriteEndMarkerMode((bool)obj);
					break;
				default:
					throw new InvalidParamException();
				case CoderPropID.Algorithm:
					break;
				}
			}
		}

		public void SetTrainSize(uint trainSize)
		{
			_trainSize = trainSize;
		}
	}
	public static class SevenZipHelper
	{
		private static CoderPropID[] propIDs = new CoderPropID[8]
		{
			CoderPropID.DictionarySize,
			CoderPropID.PosStateBits,
			CoderPropID.LitContextBits,
			CoderPropID.LitPosBits,
			CoderPropID.Algorithm,
			CoderPropID.NumFastBytes,
			CoderPropID.MatchFinder,
			CoderPropID.EndMarker
		};

		private static object[] properties = new object[8] { 2097152, 2, 3, 0, 2, 32, "bt4", false };

		public static byte[] Compress(byte[] inputBytes, ICodeProgress progress = null)
		{
			MemoryStream inStream = new MemoryStream(inputBytes);
			MemoryStream memoryStream = new MemoryStream();
			Compress(inStream, memoryStream, progress);
			return memoryStream.ToArray();
		}

		public static void Compress(Stream inStream, Stream outStream, ICodeProgress progress = null)
		{
			Encoder encoder = new Encoder();
			encoder.SetCoderProperties(propIDs, properties);
			encoder.WriteCoderProperties(outStream);
			encoder.Code(inStream, outStream, -1L, -1L, progress);
		}

		public static byte[] Decompress(byte[] inputBytes)
		{
			MemoryStream memoryStream = new MemoryStream(inputBytes);
			Decoder decoder = new Decoder();
			memoryStream.Seek(0L, SeekOrigin.Begin);
			MemoryStream memoryStream2 = new MemoryStream();
			byte[] array = new byte[5];
			if (memoryStream.Read(array, 0, 5) != 5)
			{
				throw new Exception("input .lzma is too short");
			}
			long num = 0L;
			for (int i = 0; i < 8; i++)
			{
				int num2 = memoryStream.ReadByte();
				if (num2 < 0)
				{
					throw new Exception("Can't Read 1");
				}
				num |= (long)((ulong)(byte)num2 << 8 * i);
			}
			decoder.SetDecoderProperties(array);
			long inSize = memoryStream.Length - memoryStream.Position;
			decoder.Code(memoryStream, memoryStream2, inSize, num, null);
			return memoryStream2.ToArray();
		}

		public static MemoryStream StreamDecompress(MemoryStream newInStream)
		{
			Decoder decoder = new Decoder();
			newInStream.Seek(0L, SeekOrigin.Begin);
			MemoryStream memoryStream = new MemoryStream();
			byte[] array = new byte[5];
			if (newInStream.Read(array, 0, 5) != 5)
			{
				throw new Exception("input .lzma is too short");
			}
			long num = 0L;
			for (int i = 0; i < 8; i++)
			{
				int num2 = newInStream.ReadByte();
				if (num2 < 0)
				{
					throw new Exception("Can't Read 1");
				}
				num |= (long)((ulong)(byte)num2 << 8 * i);
			}
			decoder.SetDecoderProperties(array);
			long inSize = newInStream.Length - newInStream.Position;
			decoder.Code(newInStream, memoryStream, inSize, num, null);
			memoryStream.Position = 0L;
			return memoryStream;
		}

		public static MemoryStream StreamDecompress(MemoryStream newInStream, long outSize)
		{
			Decoder decoder = new Decoder();
			newInStream.Seek(0L, SeekOrigin.Begin);
			MemoryStream memoryStream = new MemoryStream();
			byte[] array = new byte[5];
			if (newInStream.Read(array, 0, 5) != 5)
			{
				throw new Exception("input .lzma is too short");
			}
			decoder.SetDecoderProperties(array);
			long inSize = newInStream.Length - newInStream.Position;
			decoder.Code(newInStream, memoryStream, inSize, outSize, null);
			memoryStream.Position = 0L;
			return memoryStream;
		}

		public static void StreamDecompress(Stream compressedStream, Stream decompressedStream, long compressedSize, long decompressedSize)
		{
			long position = compressedStream.Position;
			Decoder decoder = new Decoder();
			byte[] array = new byte[5];
			if (compressedStream.Read(array, 0, 5) != 5)
			{
				throw new Exception("input .lzma is too short");
			}
			decoder.SetDecoderProperties(array);
			decoder.Code(compressedStream, decompressedStream, compressedSize - 5, decompressedSize, null);
			compressedStream.Position = position + compressedSize;
		}
	}
}
namespace SevenZip.Buffer
{
	public class InBuffer
	{
		private byte[] m_Buffer;

		private uint m_Pos;

		private uint m_Limit;

		private uint m_BufferSize;

		private Stream m_Stream;

		private bool m_StreamWasExhausted;

		private ulong m_ProcessedSize;

		public InBuffer(uint bufferSize)
		{
			m_Buffer = new byte[bufferSize];
			m_BufferSize = bufferSize;
		}

		public void Init(Stream stream)
		{
			m_Stream = stream;
			m_ProcessedSize = 0uL;
			m_Limit = 0u;
			m_Pos = 0u;
			m_StreamWasExhausted = false;
		}

		public bool ReadBlock()
		{
			if (m_StreamWasExhausted)
			{
				return false;
			}
			m_ProcessedSize += m_Pos;
			int num = m_Stream.Read(m_Buffer, 0, (int)m_BufferSize);
			m_Pos = 0u;
			m_Limit = (uint)num;
			m_StreamWasExhausted = num == 0;
			return !m_StreamWasExhausted;
		}

		public void ReleaseStream()
		{
			m_Stream = null;
		}

		public bool ReadByte(byte b)
		{
			if (m_Pos >= m_Limit && !ReadBlock())
			{
				return false;
			}
			b = m_Buffer[m_Pos++];
			return true;
		}

		public byte ReadByte()
		{
			if (m_Pos >= m_Limit && !ReadBlock())
			{
				return byte.MaxValue;
			}
			return m_Buffer[m_Pos++];
		}

		public ulong GetProcessedSize()
		{
			return m_ProcessedSize + m_Pos;
		}
	}
	public class OutBuffer
	{
		private byte[] m_Buffer;

		private uint m_Pos;

		private uint m_BufferSize;

		private Stream m_Stream;

		private ulong m_ProcessedSize;

		public OutBuffer(uint bufferSize)
		{
			m_Buffer = new byte[bufferSize];
			m_BufferSize = bufferSize;
		}

		public void SetStream(Stream stream)
		{
			m_Stream = stream;
		}

		public void FlushStream()
		{
			m_Stream.Flush();
		}

		public void CloseStream()
		{
			m_Stream.Close();
		}

		public void ReleaseStream()
		{
			m_Stream = null;
		}

		public void Init()
		{
			m_ProcessedSize = 0uL;
			m_Pos = 0u;
		}

		public void WriteByte(byte b)
		{
			m_Buffer[m_Pos++] = b;
			if (m_Pos >= m_BufferSize)
			{
				FlushData();
			}
		}

		public void FlushData()
		{
			if (m_Pos != 0)
			{
				m_Stream.Write(m_Buffer, 0, (int)m_Pos);
				m_Pos = 0u;
			}
		}

		public ulong GetProcessedSize()
		{
			return m_ProcessedSize + m_Pos;
		}
	}
}
namespace SevenZip.CommandLineParser
{
	public enum SwitchType
	{
		Simple,
		PostMinus,
		LimitedPostString,
		UnLimitedPostString,
		PostChar
	}
	public class SwitchForm
	{
		public string IDString;

		public SwitchType Type;

		public bool Multi;

		public int MinLen;

		public int MaxLen;

		public string PostCharSet;

		public SwitchForm(string idString, SwitchType type, bool multi, int minLen, int maxLen, string postCharSet)
		{
			IDString = idString;
			Type = type;
			Multi = multi;
			MinLen = minLen;
			MaxLen = maxLen;
			PostCharSet = postCharSet;
		}

		public SwitchForm(string idString, SwitchType type, bool multi, int minLen)
			: this(idString, type, multi, minLen, 0, "")
		{
		}

		public SwitchForm(string idString, SwitchType type, bool multi)
			: this(idString, type, multi, 0)
		{
		}
	}
	public class SwitchResult
	{
		public bool ThereIs;

		public bool WithMinus;

		public ArrayList PostStrings = new ArrayList();

		public int PostCharIndex;

		public SwitchResult()
		{
			ThereIs = false;
		}
	}
	public class Parser
	{
		public ArrayList NonSwitchStrings = new ArrayList();

		private SwitchResult[] _switches;

		private const char kSwitchID1 = '-';

		private const char kSwitchID2 = '/';

		private const char kSwitchMinus = '-';

		private const string kStopSwitchParsing = "--";

		public SwitchResult this[int index] => _switches[index];

		public Parser(int numSwitches)
		{
			_switches = new SwitchResult[numSwitches];
			for (int i = 0; i < numSwitches; i++)
			{
				_switches[i] = new SwitchResult();
			}
		}

		private bool ParseString(string srcString, SwitchForm[] switchForms)
		{
			int length = srcString.Length;
			if (length == 0)
			{
				return false;
			}
			int num = 0;
			if (!IsItSwitchChar(srcString[num]))
			{
				return false;
			}
			while (num < length)
			{
				if (IsItSwitchChar(srcString[num]))
				{
					num++;
				}
				int num2 = 0;
				int num3 = -1;
				for (int i = 0; i < _switches.Length; i++)
				{
					int length2 = switchForms[i].IDString.Length;
					if (length2 > num3 && num + length2 <= length && string.Compare(switchForms[i].IDString, 0, srcString, num, length2, ignoreCase: true) == 0)
					{
						num2 = i;
						num3 = length2;
					}
				}
				if (num3 == -1)
				{
					throw new Exception("maxLen == kNoLen");
				}
				SwitchResult switchResult = _switches[num2];
				SwitchForm switchForm = switchForms[num2];
				if (!switchForm.Multi && switchResult.ThereIs)
				{
					throw new Exception("switch must be single");
				}
				switchResult.ThereIs = true;
				num += num3;
				int num4 = length - num;
				SwitchType type = switchForm.Type;
				switch (type)
				{
				case SwitchType.PostMinus:
					if (num4 == 0)
					{
						switchResult.WithMinus = false;
						break;
					}
					switchResult.WithMinus = srcString[num] == '-';
					if (switchResult.WithMinus)
					{
						num++;
					}
					break;
				case SwitchType.PostChar:
				{
					if (num4 < switchForm.MinLen)
					{
						throw new Exception("switch is not full");
					}
					string postCharSet = switchForm.PostCharSet;
					if (num4 == 0)
					{
						switchResult.PostCharIndex = -1;
						break;
					}
					int num6 = postCharSet.IndexOf(srcString[num]);
					if (num6 < 0)
					{
						switchResult.PostCharIndex = -1;
						break;
					}
					switchResult.PostCharIndex = num6;
					num++;
					break;
				}
				case SwitchType.LimitedPostString:
				case SwitchType.UnLimitedPostString:
				{
					int minLen = switchForm.MinLen;
					if (num4 < minLen)
					{
						throw new Exception("switch is not full");
					}
					if (type == SwitchType.UnLimitedPostString)
					{
						switchResult.PostStrings.Add(srcString.Substring(num));
						return true;
					}
					string text = srcString.Substring(num, minLen);
					num += minLen;
					int num5 = minLen;
					while (num5 < switchForm.MaxLen && num < length)
					{
						char c = srcString[num];
						if (IsItSwitchChar(c))
						{
							break;
						}
						text += c;
						num5++;
						num++;
					}
					switchResult.PostStrings.Add(text);
					break;
				}
				}
			}
			return true;
		}

		public void ParseStrings(SwitchForm[] switchForms, string[] commandStrings)
		{
			int num = commandStrings.Length;
			bool flag = false;
			for (int i = 0; i < num; i++)
			{
				string text = commandStrings[i];
				if (flag)
				{
					NonSwitchStrings.Add(text);
				}
				else if (text == "--")
				{
					flag = true;
				}
				else if (!ParseString(text, switchForms))
				{
					NonSwitchStrings.Add(text);
				}
			}
		}

		public static int ParseCommand(CommandForm[] commandForms, string commandString, out string postString)
		{
			for (int i = 0; i < commandForms.Length; i++)
			{
				string iDString = commandForms[i].IDString;
				if (commandForms[i].PostStringMode)
				{
					if (commandString.IndexOf(iDString) == 0)
					{
						postString = commandString.Substring(iDString.Length);
						return i;
					}
				}
				else if (commandString == iDString)
				{
					postString = "";
					return i;
				}
			}
			postString = "";
			return -1;
		}

		private static bool ParseSubCharsCommand(int numForms, CommandSubCharsSet[] forms, string commandString, ArrayList indices)
		{
			indices.Clear();
			int num = 0;
			for (int i = 0; i < numForms; i++)
			{
				CommandSubCharsSet commandSubCharsSet = forms[i];
				int num2 = -1;
				int length = commandSubCharsSet.Chars.Length;
				for (int j = 0; j < length; j++)
				{
					char value = commandSubCharsSet.Chars[j];
					int num3 = commandString.IndexOf(value);
					if (num3 >= 0)
					{
						if (num2 >= 0)
						{
							return false;
						}
						if (commandString.IndexOf(value, num3 + 1) >= 0)
						{
							return false;
						}
						num2 = j;
						num++;
					}
				}
				if (num2 == -1 && !commandSubCharsSet.EmptyAllowed)
				{
					return false;
				}
				indices.Add(num2);
			}
			return num == commandString.Length;
		}

		private static bool IsItSwitchChar(char c)
		{
			if (c != '-')
			{
				return c == '/';
			}
			return true;
		}
	}
	public class CommandForm
	{
		public string IDString = "";

		public bool PostStringMode;

		public CommandForm(string idString, bool postStringMode)
		{
			IDString = idString;
			PostStringMode = postStringMode;
		}
	}
	internal class CommandSubCharsSet
	{
		public string Chars = "";

		public bool EmptyAllowed;
	}
}
namespace LZ4ps
{
	public static class LZ4Codec
	{
		private class LZ4HC_Data_Structure
		{
			public byte[] src;

			public int src_base;

			public int src_end;

			public int src_LASTLITERALS;

			public byte[] dst;

			public int dst_base;

			public int dst_len;

			public int dst_end;

			public int[] hashTable;

			public ushort[] chainTable;

			public int nextToUpdate;
		}

		private const int MEMORY_USAGE = 14;

		private const int NOTCOMPRESSIBLE_DETECTIONLEVEL = 6;

		private const int BLOCK_COPY_LIMIT = 16;

		private const int MINMATCH = 4;

		private const int SKIPSTRENGTH = 6;

		private const int COPYLENGTH = 8;

		private const int LASTLITERALS = 5;

		private const int MFLIMIT = 12;

		private const int MINLENGTH = 13;

		private const int MAXD_LOG = 16;

		private const int MAXD = 65536;

		private const int MAXD_MASK = 65535;

		private const int MAX_DISTANCE = 65535;

		private const int ML_BITS = 4;

		private const int ML_MASK = 15;

		private const int RUN_BITS = 4;

		private const int RUN_MASK = 15;

		private const int STEPSIZE_64 = 8;

		private const int STEPSIZE_32 = 4;

		private const int LZ4_64KLIMIT = 65547;

		private const int HASH_LOG = 12;

		private const int HASH_TABLESIZE = 4096;

		private const int HASH_ADJUST = 20;

		private const int HASH64K_LOG = 13;

		private const int HASH64K_TABLESIZE = 8192;

		private const int HASH64K_ADJUST = 19;

		private const int HASHHC_LOG = 15;

		private const int HASHHC_TABLESIZE = 32768;

		private const int HASHHC_ADJUST = 17;

		private static readonly int[] DECODER_TABLE_32 = new int[8] { 0, 3, 2, 3, 0, 0, 0, 0 };

		private static readonly int[] DECODER_TABLE_64 = new int[8] { 0, 0, 0, -1, 0, 1, 2, 3 };

		private static readonly int[] DEBRUIJN_TABLE_32 = new int[32]
		{
			0, 0, 3, 0, 3, 1, 3, 0, 3, 2,
			2, 1, 3, 2, 0, 1, 3, 3, 1, 2,
			2, 2, 2, 0, 3, 1, 2, 0, 1, 0,
			1, 1
		};

		private static readonly int[] DEBRUIJN_TABLE_64 = new int[64]
		{
			0, 0, 0, 0, 0, 1, 1, 2, 0, 3,
			1, 3, 1, 4, 2, 7, 0, 2, 3, 6,
			1, 5, 3, 5, 1, 3, 4, 4, 2, 5,
			6, 7, 7, 0, 1, 2, 3, 3, 4, 6,
			2, 6, 5, 5, 3, 4, 5, 6, 7, 1,
			2, 4, 6, 4, 4, 5, 7, 2, 6, 5,
			7, 6, 7, 7
		};

		private const int MAX_NB_ATTEMPTS = 256;

		private const int OPTIMAL_ML = 18;

		public static int MaximumOutputLength(int inputLength)
		{
			return inputLength + inputLength / 255 + 16;
		}

		internal static void CheckArguments(byte[] input, int inputOffset, ref int inputLength, byte[] output, int outputOffset, ref int outputLength)
		{
			if (inputLength < 0)
			{
				inputLength = input.Length - inputOffset;
			}
			if (inputLength == 0)
			{
				outputLength = 0;
				return;
			}
			if (input == null)
			{
				throw new ArgumentNullException("input");
			}
			if (inputOffset < 0 || inputOffset + inputLength > input.Length)
			{
				throw new ArgumentException("inputOffset and inputLength are invalid for given input");
			}
			if (outputLength < 0)
			{
				outputLength = output.Length - outputOffset;
			}
			if (output == null)
			{
				throw new ArgumentNullException("output");
			}
			if (outputOffset >= 0 && outputOffset + outputLength <= output.Length)
			{
				return;
			}
			throw new ArgumentException("outputOffset and outputLength are invalid for given output");
		}

		[Conditional("DEBUG")]
		private static void Assert(bool condition, string errorMessage)
		{
			if (!condition)
			{
				throw new ArgumentException(errorMessage);
			}
		}

		internal static void Poke2(byte[] buffer, int offset, ushort value)
		{
			buffer[offset] = (byte)value;
			buffer[offset + 1] = (byte)(value >> 8);
		}

		internal static ushort Peek2(byte[] buffer, int offset)
		{
			return (ushort)(buffer[offset] | (buffer[offset + 1] << 8));
		}

		internal static uint Peek4(byte[] buffer, int offset)
		{
			return (uint)(buffer[offset] | (buffer[offset + 1] << 8) | (buffer[offset + 2] << 16) | (buffer[offset + 3] << 24));
		}

		private static uint Xor4(byte[] buffer, int offset1, int offset2)
		{
			int num = buffer[offset1] | (buffer[offset1 + 1] << 8) | (buffer[offset1 + 2] << 16) | (buffer[offset1 + 3] << 24);
			uint num2 = (uint)(buffer[offset2] | (buffer[offset2 + 1] << 8) | (buffer[offset2 + 2] << 16) | (buffer[offset2 + 3] << 24));
			return (uint)num ^ num2;
		}

		private static ulong Xor8(byte[] buffer, int offset1, int offset2)
		{
			ulong num = buffer[offset1] | ((ulong)buffer[offset1 + 1] << 8) | ((ulong)buffer[offset1 + 2] << 16) | ((ulong)buffer[offset1 + 3] << 24) | ((ulong)buffer[offset1 + 4] << 32) | ((ulong)buffer[offset1 + 5] << 40) | ((ulong)buffer[offset1 + 6] << 48) | ((ulong)buffer[offset1 + 7] << 56);
			ulong num2 = buffer[offset2] | ((ulong)buffer[offset2 + 1] << 8) | ((ulong)buffer[offset2 + 2] << 16) | ((ulong)buffer[offset2 + 3] << 24) | ((ulong)buffer[offset2 + 4] << 32) | ((ulong)buffer[offset2 + 5] << 40) | ((ulong)buffer[offset2 + 6] << 48) | ((ulong)buffer[offset2 + 7] << 56);
			return num ^ num2;
		}

		private static bool Equal2(byte[] buffer, int offset1, int offset2)
		{
			if (buffer[offset1] != buffer[offset2])
			{
				return false;
			}
			return buffer[offset1 + 1] == buffer[offset2 + 1];
		}

		private static bool Equal4(byte[] buffer, int offset1, int offset2)
		{
			if (buffer[offset1] != buffer[offset2])
			{
				return false;
			}
			if (buffer[offset1 + 1] != buffer[offset2 + 1])
			{
				return false;
			}
			if (buffer[offset1 + 2] != buffer[offset2 + 2])
			{
				return false;
			}
			return buffer[offset1 + 3] == buffer[offset2 + 3];
		}

		private static void Copy4(byte[] buf, int src, int dst)
		{
			buf[dst + 3] = buf[src + 3];
			buf[dst + 2] = buf[src + 2];
			buf[dst + 1] = buf[src + 1];
			buf[dst] = buf[src];
		}

		private static void Copy8(byte[] buf, int src, int dst)
		{
			buf[dst + 7] = buf[src + 7];
			buf[dst + 6] = buf[src + 6];
			buf[dst + 5] = buf[src + 5];
			buf[dst + 4] = buf[src + 4];
			buf[dst + 3] = buf[src + 3];
			buf[dst + 2] = buf[src + 2];
			buf[dst + 1] = buf[src + 1];
			buf[dst] = buf[src];
		}

		private static void BlockCopy(byte[] src, int src_0, byte[] dst, int dst_0, int len)
		{
			if (len >= 16)
			{
				Buffer.BlockCopy(src, src_0, dst, dst_0, len);
				return;
			}
			while (len >= 8)
			{
				dst[dst_0] = src[src_0];
				dst[dst_0 + 1] = src[src_0 + 1];
				dst[dst_0 + 2] = src[src_0 + 2];
				dst[dst_0 + 3] = src[src_0 + 3];
				dst[dst_0 + 4] = src[src_0 + 4];
				dst[dst_0 + 5] = src[src_0 + 5];
				dst[dst_0 + 6] = src[src_0 + 6];
				dst[dst_0 + 7] = src[src_0 + 7];
				len -= 8;
				src_0 += 8;
				dst_0 += 8;
			}
			while (len >= 4)
			{
				dst[dst_0] = src[src_0];
				dst[dst_0 + 1] = src[src_0 + 1];
				dst[dst_0 + 2] = src[src_0 + 2];
				dst[dst_0 + 3] = src[src_0 + 3];
				len -= 4;
				src_0 += 4;
				dst_0 += 4;
			}
			while (len-- > 0)
			{
				dst[dst_0++] = src[src_0++];
			}
		}

		private static int WildCopy(byte[] src, int src_0, byte[] dst, int dst_0, int dst_end)
		{
			int num = dst_end - dst_0;
			if (num >= 16)
			{
				Buffer.BlockCopy(src, src_0, dst, dst_0, num);
			}
			else
			{
				while (num >= 4)
				{
					dst[dst_0] = src[src_0];
					dst[dst_0 + 1] = src[src_0 + 1];
					dst[dst_0 + 2] = src[src_0 + 2];
					dst[dst_0 + 3] = src[src_0 + 3];
					num -= 4;
					src_0 += 4;
					dst_0 += 4;
				}
				while (num-- > 0)
				{
					dst[dst_0++] = src[src_0++];
				}
			}
			return num;
		}

		private static int SecureCopy(byte[] buffer, int src, int dst, int dst_end)
		{
			int num = dst - src;
			int num2 = dst_end - dst;
			int num3 = num2;
			if (num >= 16)
			{
				if (num >= num2)
				{
					Buffer.BlockCopy(buffer, src, buffer, dst, num2);
					return num2;
				}
				do
				{
					Buffer.BlockCopy(buffer, src, buffer, dst, num);
					src += num;
					dst += num;
					num3 -= num;
				}
				while (num3 >= num);
			}
			while (num3 >= 4)
			{
				buffer[dst] = buffer[src];
				buffer[dst + 1] = buffer[src + 1];
				buffer[dst + 2] = buffer[src + 2];
				buffer[dst + 3] = buffer[src + 3];
				dst += 4;
				src += 4;
				num3 -= 4;
			}
			while (num3-- > 0)
			{
				buffer[dst++] = buffer[src++];
			}
			return num2;
		}

		public static int Encode32(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset, int outputLength)
		{
			CheckArguments(input, inputOffset, ref inputLength, output, outputOffset, ref outputLength);
			if (outputLength == 0)
			{
				return 0;
			}
			if (inputLength < 65547)
			{
				return LZ4_compress64kCtx_safe32(new ushort[8192], input, output, inputOffset, outputOffset, inputLength, outputLength);
			}
			return LZ4_compressCtx_safe32(new int[4096], input, output, inputOffset, outputOffset, inputLength, outputLength);
		}

		public static byte[] Encode32(byte[] input, int inputOffset, int inputLength)
		{
			if (inputLength < 0)
			{
				inputLength = input.Length - inputOffset;
			}
			if (input == null)
			{
				throw new ArgumentNullException("input");
			}
			if (inputOffset < 0 || inputOffset + inputLength > input.Length)
			{
				throw new ArgumentException("inputOffset and inputLength are invalid for given input");
			}
			byte[] array = new byte[MaximumOutputLength(inputLength)];
			int num = Encode32(input, inputOffset, inputLength, array, 0, array.Length);
			if (num != array.Length)
			{
				if (num < 0)
				{
					throw new InvalidOperationException("Compression has been corrupted");
				}
				byte[] array2 = new byte[num];
				Buffer.BlockCopy(array, 0, array2, 0, num);
				return array2;
			}
			return array;
		}

		public static int Encode64(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset, int outputLength)
		{
			CheckArguments(input, inputOffset, ref inputLength, output, outputOffset, ref outputLength);
			if (outputLength == 0)
			{
				return 0;
			}
			if (inputLength < 65547)
			{
				return LZ4_compress64kCtx_safe64(new ushort[8192], input, output, inputOffset, outputOffset, inputLength, outputLength);
			}
			return LZ4_compressCtx_safe64(new int[4096], input, output, inputOffset, outputOffset, inputLength, outputLength);
		}

		public static byte[] Encode64(byte[] input, int inputOffset, int inputLength)
		{
			if (inputLength < 0)
			{
				inputLength = input.Length - inputOffset;
			}
			if (input == null)
			{
				throw new ArgumentNullException("input");
			}
			if (inputOffset < 0 || inputOffset + inputLength > input.Length)
			{
				throw new ArgumentException("inputOffset and inputLength are invalid for given input");
			}
			byte[] array = new byte[MaximumOutputLength(inputLength)];
			int num = Encode64(input, inputOffset, inputLength, array, 0, array.Length);
			if (num != array.Length)
			{
				if (num < 0)
				{
					throw new InvalidOperationException("Compression has been corrupted");
				}
				byte[] array2 = new byte[num];
				Buffer.BlockCopy(array, 0, array2, 0, num);
				return array2;
			}
			return array;
		}

		public static int Decode32(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset, int outputLength, bool knownOutputLength)
		{
			CheckArguments(input, inputOffset, ref inputLength, output, outputOffset, ref outputLength);
			

patchers/GameData/ULTRAKILL_Data/Managed/SteamVR.dll

Decompiled 3 days ago
using System;
using System.CodeDom.Compiler;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using Unity.XR.OpenVR;
using UnityEngine;
using UnityEngine.AI;
using UnityEngine.EventSystems;
using UnityEngine.Events;
using UnityEngine.Rendering;
using UnityEngine.SceneManagement;
using UnityEngine.Serialization;
using UnityEngine.SpatialTracking;
using UnityEngine.UI;
using UnityEngine.XR;
using Valve.Newtonsoft.Json;
using Valve.VR;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyVersion("0.0.0.0")]
[ExecuteInEditMode]
public class URPMaterialSwitcher : MonoBehaviour
{
	public bool children;
}
public static class SteamVR_Utils
{
	public class Event
	{
		public delegate void Handler(params object[] args);

		private static Hashtable listeners = new Hashtable();

		public static void Listen(string message, Handler action)
		{
			if (listeners[message] is Handler a)
			{
				listeners[message] = (Handler)Delegate.Combine(a, action);
			}
			else
			{
				listeners[message] = action;
			}
		}

		public static void Remove(string message, Handler action)
		{
			if (listeners[message] is Handler source)
			{
				listeners[message] = (Handler)Delegate.Remove(source, action);
			}
		}

		public static void Send(string message, params object[] args)
		{
			if (listeners[message] is Handler handler)
			{
				handler(args);
			}
		}
	}

	[Serializable]
	public struct RigidTransform
	{
		public Vector3 pos;

		public Quaternion rot;

		public static RigidTransform identity => new RigidTransform(Vector3.zero, Quaternion.identity);

		public static RigidTransform FromLocal(Transform t)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			return new RigidTransform(t.localPosition, t.localRotation);
		}

		public RigidTransform(Vector3 pos, Quaternion rot)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0008: Unknown result type (might be due to invalid IL or missing references)
			//IL_0009: Unknown result type (might be due to invalid IL or missing references)
			this.pos = pos;
			this.rot = rot;
		}

		public RigidTransform(Transform t)
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_000e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0013: Unknown result type (might be due to invalid IL or missing references)
			pos = t.position;
			rot = t.rotation;
		}

		public RigidTransform(Transform from, Transform to)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0006: Unknown result type (might be due to invalid IL or missing references)
			//IL_000b: Unknown result type (might be due to invalid IL or missing references)
			//IL_000d: Unknown result type (might be due to invalid IL or missing references)
			//IL_000f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0014: Unknown result type (might be due to invalid IL or missing references)
			//IL_0019: Unknown result type (might be due to invalid IL or missing references)
			//IL_001f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0021: Unknown result type (might be due to invalid IL or missing references)
			//IL_0027: Unknown result type (might be due to invalid IL or missing references)
			//IL_002c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0031: Unknown result type (might be due to invalid IL or missing references)
			//IL_0036: Unknown result type (might be due to invalid IL or missing references)
			Quaternion val = Quaternion.Inverse(from.rotation);
			rot = val * to.rotation;
			pos = val * (to.position - from.position);
		}

		public RigidTransform(HmdMatrix34_t pose)
		{
			//IL_0000: Unknown result type (might be due to invalid IL or missing references)
			//IL_0005: Unknown result type (might be due to invalid IL or missing references)
			//IL_000a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0019: Unknown result type (might be due to invalid IL or missing references)
			//IL_0028: Unknown result type (might be due to invalid IL or missing references)
			//IL_0038: Unknown result type (might be due to invalid IL or missing references)
			//IL_0047: Unknown result type (might be due to invalid IL or missing references)
			//IL_0056: Unknown result type (might be due to invalid IL or missing references)
			//IL_0065: Unknown result type (might be due to invalid IL or missing references)
			//IL_0075: Unknown result type (might be due to invalid IL or missing references)
			//IL_0084: Unknown result type (might be due to invalid IL or missing references)
			//IL_0094: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b3: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c2: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c7: Unknown result type (might be due to invalid IL or missing references)
			//IL_00cd: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ce: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d3: Unknown result type (might be due to invalid IL or missing references)
			Matrix4x4 matrix = Matrix4x4.identity;
			((Matrix4x4)(ref matrix))[0, 0] = pose.m0;
			((Matrix4x4)(ref matrix))[0, 1] = pose.m1;
			((Matrix4x4)(ref matrix))[0, 2] = 0f - pose.m2;
			((Matrix4x4)(ref matrix))[0, 3] = pose.m3;
			((Matrix4x4)(ref matrix))[1, 0] = pose.m4;
			((Matrix4x4)(ref matrix))[1, 1] = pose.m5;
			((Matrix4x4)(ref matrix))[1, 2] = 0f - pose.m6;
			((Matrix4x4)(ref matrix))[1, 3] = pose.m7;
			((Matrix4x4)(ref matrix))[2, 0] = 0f - pose.m8;
			((Matrix4x4)(ref matrix))[2, 1] = 0f - pose.m9;
			((Matrix4x4)(ref matrix))[2, 2] = pose.m10;
			((Matrix4x4)(ref matrix))[2, 3] = 0f - pose.m11;
			pos = ((Matrix4x4)(ref matrix)).GetPosition();
			rot = matrix.GetRotation();
		}

		public RigidTransform(HmdMatrix44_t pose)
		{
			//IL_0000: Unknown result type (might be due to invalid IL or missing references)
			//IL_0005: Unknown result type (might be due to invalid IL or missing references)
			//IL_000a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0019: Unknown result type (might be due to invalid IL or missing references)
			//IL_0028: Unknown result type (might be due to invalid IL or missing references)
			//IL_0038: Unknown result type (might be due to invalid IL or missing references)
			//IL_0047: Unknown result type (might be due to invalid IL or missing references)
			//IL_0056: Unknown result type (might be due to invalid IL or missing references)
			//IL_0065: Unknown result type (might be due to invalid IL or missing references)
			//IL_0075: Unknown result type (might be due to invalid IL or missing references)
			//IL_0084: Unknown result type (might be due to invalid IL or missing references)
			//IL_0094: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b3: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c3: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d2: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e1: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f1: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ff: Unknown result type (might be due to invalid IL or missing references)
			//IL_0104: Unknown result type (might be due to invalid IL or missing references)
			//IL_010a: Unknown result type (might be due to invalid IL or missing references)
			//IL_010b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0110: Unknown result type (might be due to invalid IL or missing references)
			Matrix4x4 matrix = Matrix4x4.identity;
			((Matrix4x4)(ref matrix))[0, 0] = pose.m0;
			((Matrix4x4)(ref matrix))[0, 1] = pose.m1;
			((Matrix4x4)(ref matrix))[0, 2] = 0f - pose.m2;
			((Matrix4x4)(ref matrix))[0, 3] = pose.m3;
			((Matrix4x4)(ref matrix))[1, 0] = pose.m4;
			((Matrix4x4)(ref matrix))[1, 1] = pose.m5;
			((Matrix4x4)(ref matrix))[1, 2] = 0f - pose.m6;
			((Matrix4x4)(ref matrix))[1, 3] = pose.m7;
			((Matrix4x4)(ref matrix))[2, 0] = 0f - pose.m8;
			((Matrix4x4)(ref matrix))[2, 1] = 0f - pose.m9;
			((Matrix4x4)(ref matrix))[2, 2] = pose.m10;
			((Matrix4x4)(ref matrix))[2, 3] = 0f - pose.m11;
			((Matrix4x4)(ref matrix))[3, 0] = pose.m12;
			((Matrix4x4)(ref matrix))[3, 1] = pose.m13;
			((Matrix4x4)(ref matrix))[3, 2] = 0f - pose.m14;
			((Matrix4x4)(ref matrix))[3, 3] = pose.m15;
			pos = ((Matrix4x4)(ref matrix)).GetPosition();
			rot = matrix.GetRotation();
		}

		public HmdMatrix44_t ToHmdMatrix44()
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_000c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0011: Unknown result type (might be due to invalid IL or missing references)
			//IL_0016: Unknown result type (might be due to invalid IL or missing references)
			//IL_0019: Unknown result type (might be due to invalid IL or missing references)
			//IL_0125: Unknown result type (might be due to invalid IL or missing references)
			Matrix4x4 val = Matrix4x4.TRS(pos, rot, Vector3.one);
			return new HmdMatrix44_t
			{
				m0 = ((Matrix4x4)(ref val))[0, 0],
				m1 = ((Matrix4x4)(ref val))[0, 1],
				m2 = 0f - ((Matrix4x4)(ref val))[0, 2],
				m3 = ((Matrix4x4)(ref val))[0, 3],
				m4 = ((Matrix4x4)(ref val))[1, 0],
				m5 = ((Matrix4x4)(ref val))[1, 1],
				m6 = 0f - ((Matrix4x4)(ref val))[1, 2],
				m7 = ((Matrix4x4)(ref val))[1, 3],
				m8 = 0f - ((Matrix4x4)(ref val))[2, 0],
				m9 = 0f - ((Matrix4x4)(ref val))[2, 1],
				m10 = ((Matrix4x4)(ref val))[2, 2],
				m11 = 0f - ((Matrix4x4)(ref val))[2, 3],
				m12 = ((Matrix4x4)(ref val))[3, 0],
				m13 = ((Matrix4x4)(ref val))[3, 1],
				m14 = 0f - ((Matrix4x4)(ref val))[3, 2],
				m15 = ((Matrix4x4)(ref val))[3, 3]
			};
		}

		public HmdMatrix34_t ToHmdMatrix34()
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_000c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0011: Unknown result type (might be due to invalid IL or missing references)
			//IL_0016: Unknown result type (might be due to invalid IL or missing references)
			//IL_0019: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e4: Unknown result type (might be due to invalid IL or missing references)
			Matrix4x4 val = Matrix4x4.TRS(pos, rot, Vector3.one);
			return new HmdMatrix34_t
			{
				m0 = ((Matrix4x4)(ref val))[0, 0],
				m1 = ((Matrix4x4)(ref val))[0, 1],
				m2 = 0f - ((Matrix4x4)(ref val))[0, 2],
				m3 = ((Matrix4x4)(ref val))[0, 3],
				m4 = ((Matrix4x4)(ref val))[1, 0],
				m5 = ((Matrix4x4)(ref val))[1, 1],
				m6 = 0f - ((Matrix4x4)(ref val))[1, 2],
				m7 = ((Matrix4x4)(ref val))[1, 3],
				m8 = 0f - ((Matrix4x4)(ref val))[2, 0],
				m9 = 0f - ((Matrix4x4)(ref val))[2, 1],
				m10 = ((Matrix4x4)(ref val))[2, 2],
				m11 = 0f - ((Matrix4x4)(ref val))[2, 3]
			};
		}

		public override bool Equals(object o)
		{
			//IL_0010: Unknown result type (might be due to invalid IL or missing references)
			//IL_0016: Unknown result type (might be due to invalid IL or missing references)
			//IL_0023: Unknown result type (might be due to invalid IL or missing references)
			//IL_0029: Unknown result type (might be due to invalid IL or missing references)
			if (o is RigidTransform rigidTransform)
			{
				if (pos == rigidTransform.pos)
				{
					return rot == rigidTransform.rot;
				}
				return false;
			}
			return false;
		}

		public override int GetHashCode()
		{
			return ((object)Unsafe.As<Vector3, Vector3>(ref pos)/*cast due to .constrained prefix*/).GetHashCode() ^ ((object)Unsafe.As<Quaternion, Quaternion>(ref rot)/*cast due to .constrained prefix*/).GetHashCode();
		}

		public static bool operator ==(RigidTransform a, RigidTransform b)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_0014: Unknown result type (might be due to invalid IL or missing references)
			//IL_001a: Unknown result type (might be due to invalid IL or missing references)
			if (a.pos == b.pos)
			{
				return a.rot == b.rot;
			}
			return false;
		}

		public static bool operator !=(RigidTransform a, RigidTransform b)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_0014: Unknown result type (might be due to invalid IL or missing references)
			//IL_001a: Unknown result type (might be due to invalid IL or missing references)
			if (!(a.pos != b.pos))
			{
				return a.rot != b.rot;
			}
			return true;
		}

		public static RigidTransform operator *(RigidTransform a, RigidTransform b)
		{
			//IL_000b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0011: Unknown result type (might be due to invalid IL or missing references)
			//IL_0016: Unknown result type (might be due to invalid IL or missing references)
			//IL_001b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0023: Unknown result type (might be due to invalid IL or missing references)
			//IL_0029: Unknown result type (might be due to invalid IL or missing references)
			//IL_002f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0034: Unknown result type (might be due to invalid IL or missing references)
			//IL_0039: Unknown result type (might be due to invalid IL or missing references)
			//IL_003e: Unknown result type (might be due to invalid IL or missing references)
			return new RigidTransform
			{
				rot = a.rot * b.rot,
				pos = a.pos + a.rot * b.pos
			};
		}

		public void Inverse()
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_000c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0013: Unknown result type (might be due to invalid IL or missing references)
			//IL_0019: Unknown result type (might be due to invalid IL or missing references)
			//IL_001e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0023: Unknown result type (might be due to invalid IL or missing references)
			//IL_0028: Unknown result type (might be due to invalid IL or missing references)
			rot = Quaternion.Inverse(rot);
			pos = -(rot * pos);
		}

		public RigidTransform GetInverse()
		{
			//IL_0003: Unknown result type (might be due to invalid IL or missing references)
			//IL_0009: Unknown result type (might be due to invalid IL or missing references)
			RigidTransform result = new RigidTransform(pos, rot);
			result.Inverse();
			return result;
		}

		public void Multiply(RigidTransform a, RigidTransform b)
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0008: Unknown result type (might be due to invalid IL or missing references)
			//IL_000d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0012: Unknown result type (might be due to invalid IL or missing references)
			//IL_0019: Unknown result type (might be due to invalid IL or missing references)
			//IL_001f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0025: Unknown result type (might be due to invalid IL or missing references)
			//IL_002a: Unknown result type (might be due to invalid IL or missing references)
			//IL_002f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0034: Unknown result type (might be due to invalid IL or missing references)
			rot = a.rot * b.rot;
			pos = a.pos + a.rot * b.pos;
		}

		public Vector3 InverseTransformPoint(Vector3 point)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0006: Unknown result type (might be due to invalid IL or missing references)
			//IL_000b: Unknown result type (might be due to invalid IL or missing references)
			//IL_000d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0012: Unknown result type (might be due to invalid IL or missing references)
			//IL_0017: Unknown result type (might be due to invalid IL or missing references)
			return Quaternion.Inverse(rot) * (point - pos);
		}

		public Vector3 TransformPoint(Vector3 point)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_000c: Unknown result type (might be due to invalid IL or missing references)
			//IL_000d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0012: Unknown result type (might be due to invalid IL or missing references)
			return pos + rot * point;
		}

		public static Vector3 operator *(RigidTransform t, Vector3 v)
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0003: Unknown result type (might be due to invalid IL or missing references)
			return t.TransformPoint(v);
		}

		public static RigidTransform Interpolate(RigidTransform a, RigidTransform b, float t)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_000d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0013: Unknown result type (might be due to invalid IL or missing references)
			//IL_0019: Unknown result type (might be due to invalid IL or missing references)
			//IL_001f: Unknown result type (might be due to invalid IL or missing references)
			return new RigidTransform(Vector3.Lerp(a.pos, b.pos, t), Quaternion.Slerp(a.rot, b.rot, t));
		}

		public void Interpolate(RigidTransform to, float t)
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0008: Unknown result type (might be due to invalid IL or missing references)
			//IL_000e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0013: Unknown result type (might be due to invalid IL or missing references)
			//IL_001a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0020: Unknown result type (might be due to invalid IL or missing references)
			//IL_0026: Unknown result type (might be due to invalid IL or missing references)
			//IL_002b: Unknown result type (might be due to invalid IL or missing references)
			pos = Lerp(pos, to.pos, t);
			rot = Slerp(rot, to.rot, t);
		}
	}

	public delegate object SystemFn(CVRSystem system, params object[] args);

	private const string secretKey = "foobar";

	public static bool IsValid(Vector3 vector)
	{
		//IL_0000: Unknown result type (might be due to invalid IL or missing references)
		//IL_000d: Unknown result type (might be due to invalid IL or missing references)
		//IL_001a: Unknown result type (might be due to invalid IL or missing references)
		if (!float.IsNaN(vector.x) && !float.IsNaN(vector.y))
		{
			return !float.IsNaN(vector.z);
		}
		return false;
	}

	public static bool IsValid(Quaternion rotation)
	{
		//IL_0000: Unknown result type (might be due to invalid IL or missing references)
		//IL_000d: Unknown result type (might be due to invalid IL or missing references)
		//IL_001a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0027: Unknown result type (might be due to invalid IL or missing references)
		//IL_0034: Unknown result type (might be due to invalid IL or missing references)
		//IL_0041: Unknown result type (might be due to invalid IL or missing references)
		//IL_004e: Unknown result type (might be due to invalid IL or missing references)
		//IL_005b: Unknown result type (might be due to invalid IL or missing references)
		if (!float.IsNaN(rotation.x) && !float.IsNaN(rotation.y) && !float.IsNaN(rotation.z) && !float.IsNaN(rotation.w))
		{
			if (rotation.x == 0f && rotation.y == 0f && rotation.z == 0f)
			{
				return rotation.w != 0f;
			}
			return true;
		}
		return false;
	}

	public static Quaternion Slerp(Quaternion A, Quaternion B, float t)
	{
		//IL_0000: Unknown result type (might be due to invalid IL or missing references)
		//IL_0006: Unknown result type (might be due to invalid IL or missing references)
		//IL_000d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0013: Unknown result type (might be due to invalid IL or missing references)
		//IL_001b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0021: Unknown result type (might be due to invalid IL or missing references)
		//IL_0029: Unknown result type (might be due to invalid IL or missing references)
		//IL_002f: Unknown result type (might be due to invalid IL or missing references)
		//IL_0051: Unknown result type (might be due to invalid IL or missing references)
		//IL_0058: Unknown result type (might be due to invalid IL or missing references)
		//IL_005f: Unknown result type (might be due to invalid IL or missing references)
		//IL_0066: Unknown result type (might be due to invalid IL or missing references)
		//IL_00bd: Unknown result type (might be due to invalid IL or missing references)
		//IL_00c5: Unknown result type (might be due to invalid IL or missing references)
		//IL_00ce: Unknown result type (might be due to invalid IL or missing references)
		//IL_00d6: Unknown result type (might be due to invalid IL or missing references)
		//IL_00df: Unknown result type (might be due to invalid IL or missing references)
		//IL_00e7: Unknown result type (might be due to invalid IL or missing references)
		//IL_00f0: Unknown result type (might be due to invalid IL or missing references)
		//IL_00f8: Unknown result type (might be due to invalid IL or missing references)
		//IL_0100: Unknown result type (might be due to invalid IL or missing references)
		float num = Mathf.Clamp(A.x * B.x + A.y * B.y + A.z * B.z + A.w * B.w, -1f, 1f);
		if (num < 0f)
		{
			((Quaternion)(ref B))..ctor(0f - B.x, 0f - B.y, 0f - B.z, 0f - B.w);
			num = 0f - num;
		}
		float num4;
		float num5;
		if (1f - num > 0.0001f)
		{
			float num2 = Mathf.Acos(num);
			float num3 = Mathf.Sin(num2);
			num4 = Mathf.Sin((1f - t) * num2) / num3;
			num5 = Mathf.Sin(t * num2) / num3;
		}
		else
		{
			num4 = 1f - t;
			num5 = t;
		}
		return new Quaternion(num4 * A.x + num5 * B.x, num4 * A.y + num5 * B.y, num4 * A.z + num5 * B.z, num4 * A.w + num5 * B.w);
	}

	public static Vector3 Lerp(Vector3 A, Vector3 B, float t)
	{
		//IL_0000: Unknown result type (might be due to invalid IL or missing references)
		//IL_0006: Unknown result type (might be due to invalid IL or missing references)
		//IL_0012: Unknown result type (might be due to invalid IL or missing references)
		//IL_0018: Unknown result type (might be due to invalid IL or missing references)
		//IL_0024: Unknown result type (might be due to invalid IL or missing references)
		//IL_002a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0036: Unknown result type (might be due to invalid IL or missing references)
		return new Vector3(Lerp(A.x, B.x, t), Lerp(A.y, B.y, t), Lerp(A.z, B.z, t));
	}

	public static float Lerp(float A, float B, float t)
	{
		return A + (B - A) * t;
	}

	public static double Lerp(double A, double B, double t)
	{
		return A + (B - A) * t;
	}

	public static float InverseLerp(Vector3 A, Vector3 B, Vector3 result)
	{
		//IL_0000: Unknown result type (might be due to invalid IL or missing references)
		//IL_0001: Unknown result type (might be due to invalid IL or missing references)
		//IL_0002: Unknown result type (might be due to invalid IL or missing references)
		//IL_0007: Unknown result type (might be due to invalid IL or missing references)
		//IL_0008: Unknown result type (might be due to invalid IL or missing references)
		//IL_0009: Unknown result type (might be due to invalid IL or missing references)
		return Vector3.Dot(result - A, B - A);
	}

	public static float InverseLerp(float A, float B, float result)
	{
		return (result - A) / (B - A);
	}

	public static double InverseLerp(double A, double B, double result)
	{
		return (result - A) / (B - A);
	}

	public static float Saturate(float A)
	{
		if (!(A < 0f))
		{
			if (!(A > 1f))
			{
				return A;
			}
			return 1f;
		}
		return 0f;
	}

	public static Vector2 Saturate(Vector2 A)
	{
		//IL_0000: Unknown result type (might be due to invalid IL or missing references)
		//IL_000b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0016: Unknown result type (might be due to invalid IL or missing references)
		return new Vector2(Saturate(A.x), Saturate(A.y));
	}

	public static float Abs(float A)
	{
		if (!(A < 0f))
		{
			return A;
		}
		return 0f - A;
	}

	public static Vector2 Abs(Vector2 A)
	{
		//IL_0000: Unknown result type (might be due to invalid IL or missing references)
		//IL_000b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0016: Unknown result type (might be due to invalid IL or missing references)
		return new Vector2(Abs(A.x), Abs(A.y));
	}

	private static float _copysign(float sizeval, float signval)
	{
		if (Mathf.Sign(signval) != 1f)
		{
			return 0f - Mathf.Abs(sizeval);
		}
		return Mathf.Abs(sizeval);
	}

	public static Quaternion GetRotation(this Matrix4x4 matrix)
	{
		//IL_0002: Unknown result type (might be due to invalid IL or missing references)
		//IL_0014: Unknown result type (might be due to invalid IL or missing references)
		//IL_001b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0022: Unknown result type (might be due to invalid IL or missing references)
		//IL_004a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0051: Unknown result type (might be due to invalid IL or missing references)
		//IL_0058: Unknown result type (might be due to invalid IL or missing references)
		//IL_0080: Unknown result type (might be due to invalid IL or missing references)
		//IL_0087: Unknown result type (might be due to invalid IL or missing references)
		//IL_008e: Unknown result type (might be due to invalid IL or missing references)
		//IL_00b6: Unknown result type (might be due to invalid IL or missing references)
		//IL_00bd: Unknown result type (might be due to invalid IL or missing references)
		//IL_00c4: Unknown result type (might be due to invalid IL or missing references)
		//IL_00e2: Unknown result type (might be due to invalid IL or missing references)
		//IL_00e8: Unknown result type (might be due to invalid IL or missing references)
		//IL_00ee: Unknown result type (might be due to invalid IL or missing references)
		//IL_0101: Unknown result type (might be due to invalid IL or missing references)
		//IL_0107: Unknown result type (might be due to invalid IL or missing references)
		//IL_010d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0120: Unknown result type (might be due to invalid IL or missing references)
		//IL_0126: Unknown result type (might be due to invalid IL or missing references)
		//IL_012c: Unknown result type (might be due to invalid IL or missing references)
		//IL_013d: Unknown result type (might be due to invalid IL or missing references)
		Quaternion val = default(Quaternion);
		val.w = Mathf.Sqrt(Mathf.Max(0f, 1f + matrix.m00 + matrix.m11 + matrix.m22)) / 2f;
		val.x = Mathf.Sqrt(Mathf.Max(0f, 1f + matrix.m00 - matrix.m11 - matrix.m22)) / 2f;
		val.y = Mathf.Sqrt(Mathf.Max(0f, 1f - matrix.m00 + matrix.m11 - matrix.m22)) / 2f;
		val.z = Mathf.Sqrt(Mathf.Max(0f, 1f - matrix.m00 - matrix.m11 + matrix.m22)) / 2f;
		val.x = _copysign(val.x, matrix.m21 - matrix.m12);
		val.y = _copysign(val.y, matrix.m02 - matrix.m20);
		val.z = _copysign(val.z, matrix.m10 - matrix.m01);
		return val;
	}

	public static Vector3 GetPosition(this Matrix4x4 matrix)
	{
		//IL_0000: Unknown result type (might be due to invalid IL or missing references)
		//IL_0006: Unknown result type (might be due to invalid IL or missing references)
		//IL_000d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0016: Unknown result type (might be due to invalid IL or missing references)
		float m = matrix.m03;
		float m2 = matrix.m13;
		float m3 = matrix.m23;
		return new Vector3(m, m2, m3);
	}

	public static Vector3 GetScale(this Matrix4x4 m)
	{
		//IL_0000: Unknown result type (might be due to invalid IL or missing references)
		//IL_0006: Unknown result type (might be due to invalid IL or missing references)
		//IL_000d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0013: Unknown result type (might be due to invalid IL or missing references)
		//IL_001b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0021: Unknown result type (might be due to invalid IL or missing references)
		//IL_002e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0034: Unknown result type (might be due to invalid IL or missing references)
		//IL_003b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0041: Unknown result type (might be due to invalid IL or missing references)
		//IL_0049: Unknown result type (might be due to invalid IL or missing references)
		//IL_004f: Unknown result type (might be due to invalid IL or missing references)
		//IL_005d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0063: Unknown result type (might be due to invalid IL or missing references)
		//IL_006a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0070: Unknown result type (might be due to invalid IL or missing references)
		//IL_0078: Unknown result type (might be due to invalid IL or missing references)
		//IL_007e: Unknown result type (might be due to invalid IL or missing references)
		//IL_008e: Unknown result type (might be due to invalid IL or missing references)
		float num = Mathf.Sqrt(m.m00 * m.m00 + m.m01 * m.m01 + m.m02 * m.m02);
		float num2 = Mathf.Sqrt(m.m10 * m.m10 + m.m11 * m.m11 + m.m12 * m.m12);
		float num3 = Mathf.Sqrt(m.m20 * m.m20 + m.m21 * m.m21 + m.m22 * m.m22);
		return new Vector3(num, num2, num3);
	}

	public static float GetLossyScale(Transform t)
	{
		//IL_0001: Unknown result type (might be due to invalid IL or missing references)
		return t.lossyScale.x;
	}

	public static string GetBadMD5Hash(string usedString)
	{
		return GetBadMD5Hash(Encoding.UTF8.GetBytes(usedString + "foobar"));
	}

	public static string GetBadMD5Hash(byte[] bytes)
	{
		byte[] array = new MD5CryptoServiceProvider().ComputeHash(bytes);
		StringBuilder stringBuilder = new StringBuilder();
		for (int i = 0; i < array.Length; i++)
		{
			stringBuilder.Append(array[i].ToString("x2"));
		}
		return stringBuilder.ToString();
	}

	public static string GetBadMD5HashFromFile(string filePath)
	{
		if (!File.Exists(filePath))
		{
			return null;
		}
		return GetBadMD5Hash(File.ReadAllText(filePath) + "foobar");
	}

	public static string SanitizePath(string path, bool allowLeadingSlash = true)
	{
		if (path.Contains("\\\\"))
		{
			path = path.Replace("\\\\", "\\");
		}
		if (path.Contains("//"))
		{
			path = path.Replace("//", "/");
		}
		if (!allowLeadingSlash && (path[0] == '/' || path[0] == '\\'))
		{
			path = path.Substring(1);
		}
		return path;
	}

	public static Type FindType(string typeName)
	{
		Type type = Type.GetType(typeName);
		if (type != null)
		{
			return type;
		}
		Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies();
		for (int i = 0; i < assemblies.Length; i++)
		{
			type = assemblies[i].GetType(typeName);
			if (type != null)
			{
				return type;
			}
		}
		return null;
	}

	public static object CallSystemFn(SystemFn fn, params object[] args)
	{
		//IL_0017: Unknown result type (might be due to invalid IL or missing references)
		bool flag = !SteamVR.active && !SteamVR.usingNativeSupport;
		if (flag)
		{
			EVRInitError val = (EVRInitError)0;
			OpenVR.Init(ref val, (EVRApplicationType)4, "");
		}
		CVRSystem system = OpenVR.System;
		object result = ((system != null) ? fn(system, args) : null);
		if (flag)
		{
			OpenVR.Shutdown();
		}
		return result;
	}

	public static void TakeStereoScreenshot(uint screenshotHandle, GameObject target, int cellSize, float ipd, ref string previewFilename, ref string VRFilename)
	{
		//IL_000c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0012: Expected O, but got Unknown
		//IL_0052: Unknown result type (might be due to invalid IL or missing references)
		//IL_0059: Expected O, but got Unknown
		//IL_0065: Unknown result type (might be due to invalid IL or missing references)
		//IL_006c: Expected O, but got Unknown
		//IL_008d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0092: Unknown result type (might be due to invalid IL or missing references)
		//IL_00e9: Unknown result type (might be due to invalid IL or missing references)
		//IL_011c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0121: Unknown result type (might be due to invalid IL or missing references)
		//IL_0129: Unknown result type (might be due to invalid IL or missing references)
		//IL_012e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0136: Unknown result type (might be due to invalid IL or missing references)
		//IL_013b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0148: Unknown result type (might be due to invalid IL or missing references)
		//IL_014d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0151: Unknown result type (might be due to invalid IL or missing references)
		//IL_0160: Unknown result type (might be due to invalid IL or missing references)
		//IL_0165: Unknown result type (might be due to invalid IL or missing references)
		//IL_0191: Unknown result type (might be due to invalid IL or missing references)
		//IL_0198: Expected O, but got Unknown
		//IL_0039: Unknown result type (might be due to invalid IL or missing references)
		//IL_0523: Unknown result type (might be due to invalid IL or missing references)
		//IL_059d: Unknown result type (might be due to invalid IL or missing references)
		//IL_05aa: Unknown result type (might be due to invalid IL or missing references)
		//IL_05b7: Unknown result type (might be due to invalid IL or missing references)
		//IL_04e6: Unknown result type (might be due to invalid IL or missing references)
		//IL_0290: Unknown result type (might be due to invalid IL or missing references)
		//IL_029e: Unknown result type (might be due to invalid IL or missing references)
		//IL_02a3: Unknown result type (might be due to invalid IL or missing references)
		//IL_02b4: Unknown result type (might be due to invalid IL or missing references)
		//IL_02b9: Unknown result type (might be due to invalid IL or missing references)
		//IL_02be: Unknown result type (might be due to invalid IL or missing references)
		//IL_02c2: Unknown result type (might be due to invalid IL or missing references)
		//IL_02c4: Unknown result type (might be due to invalid IL or missing references)
		//IL_02c6: Unknown result type (might be due to invalid IL or missing references)
		//IL_02d9: Unknown result type (might be due to invalid IL or missing references)
		//IL_02de: Unknown result type (might be due to invalid IL or missing references)
		//IL_02e2: Unknown result type (might be due to invalid IL or missing references)
		//IL_02e4: Unknown result type (might be due to invalid IL or missing references)
		//IL_02e6: Unknown result type (might be due to invalid IL or missing references)
		//IL_02f0: Unknown result type (might be due to invalid IL or missing references)
		//IL_02f2: Unknown result type (might be due to invalid IL or missing references)
		//IL_02f7: Unknown result type (might be due to invalid IL or missing references)
		//IL_02fc: Unknown result type (might be due to invalid IL or missing references)
		//IL_0351: Unknown result type (might be due to invalid IL or missing references)
		//IL_0356: Unknown result type (might be due to invalid IL or missing references)
		//IL_035b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0360: Unknown result type (might be due to invalid IL or missing references)
		//IL_0369: Unknown result type (might be due to invalid IL or missing references)
		//IL_036e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0373: Unknown result type (might be due to invalid IL or missing references)
		//IL_0378: Unknown result type (might be due to invalid IL or missing references)
		//IL_0383: Unknown result type (might be due to invalid IL or missing references)
		//IL_0388: Unknown result type (might be due to invalid IL or missing references)
		//IL_038d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0392: Unknown result type (might be due to invalid IL or missing references)
		//IL_039d: Unknown result type (might be due to invalid IL or missing references)
		//IL_03a2: Unknown result type (might be due to invalid IL or missing references)
		//IL_03a7: Unknown result type (might be due to invalid IL or missing references)
		//IL_03ac: Unknown result type (might be due to invalid IL or missing references)
		//IL_03ae: Unknown result type (might be due to invalid IL or missing references)
		//IL_03b0: Unknown result type (might be due to invalid IL or missing references)
		//IL_03b7: Unknown result type (might be due to invalid IL or missing references)
		//IL_03bc: Unknown result type (might be due to invalid IL or missing references)
		//IL_03be: Unknown result type (might be due to invalid IL or missing references)
		//IL_03c0: Unknown result type (might be due to invalid IL or missing references)
		//IL_03c2: Unknown result type (might be due to invalid IL or missing references)
		//IL_03c9: Unknown result type (might be due to invalid IL or missing references)
		//IL_03ce: Unknown result type (might be due to invalid IL or missing references)
		//IL_03d0: Unknown result type (might be due to invalid IL or missing references)
		//IL_03d2: Unknown result type (might be due to invalid IL or missing references)
		//IL_03d4: Unknown result type (might be due to invalid IL or missing references)
		//IL_03db: Unknown result type (might be due to invalid IL or missing references)
		//IL_03e0: Unknown result type (might be due to invalid IL or missing references)
		//IL_03e2: Unknown result type (might be due to invalid IL or missing references)
		//IL_03e3: Unknown result type (might be due to invalid IL or missing references)
		//IL_03ea: Unknown result type (might be due to invalid IL or missing references)
		//IL_03ef: Unknown result type (might be due to invalid IL or missing references)
		//IL_03f1: Unknown result type (might be due to invalid IL or missing references)
		//IL_03f3: Unknown result type (might be due to invalid IL or missing references)
		//IL_03f8: Unknown result type (might be due to invalid IL or missing references)
		//IL_03fa: Unknown result type (might be due to invalid IL or missing references)
		//IL_03fc: Unknown result type (might be due to invalid IL or missing references)
		//IL_0401: Unknown result type (might be due to invalid IL or missing references)
		//IL_0429: Unknown result type (might be due to invalid IL or missing references)
		//IL_042d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0432: Unknown result type (might be due to invalid IL or missing references)
		//IL_0434: Unknown result type (might be due to invalid IL or missing references)
		//IL_0438: Unknown result type (might be due to invalid IL or missing references)
		//IL_043d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0441: Unknown result type (might be due to invalid IL or missing references)
		//IL_044b: Unknown result type (might be due to invalid IL or missing references)
		//IL_044d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0451: Unknown result type (might be due to invalid IL or missing references)
		//IL_0453: Unknown result type (might be due to invalid IL or missing references)
		//IL_048f: Unknown result type (might be due to invalid IL or missing references)
		Texture2D val = new Texture2D(4096, 4096, (TextureFormat)5, false);
		Stopwatch stopwatch = new Stopwatch();
		Camera val2 = null;
		stopwatch.Start();
		Camera val3 = target.GetComponent<Camera>();
		if ((Object)(object)val3 == (Object)null)
		{
			if ((Object)(object)val2 == (Object)null)
			{
				val2 = new GameObject().AddComponent<Camera>();
			}
			val3 = val2;
		}
		Texture2D val4 = new Texture2D(2048, 2048, (TextureFormat)5, false);
		RenderTexture val5 = new RenderTexture(2048, 2048, 24);
		RenderTexture targetTexture = val3.targetTexture;
		bool orthographic = val3.orthographic;
		float fieldOfView = val3.fieldOfView;
		float aspect = val3.aspect;
		StereoTargetEyeMask stereoTargetEye = val3.stereoTargetEye;
		val3.stereoTargetEye = (StereoTargetEyeMask)0;
		val3.fieldOfView = 60f;
		val3.orthographic = false;
		val3.targetTexture = val5;
		val3.aspect = 1f;
		val3.Render();
		RenderTexture.active = val5;
		val4.ReadPixels(new Rect(0f, 0f, (float)((Texture)val5).width, (float)((Texture)val5).height), 0, 0);
		RenderTexture.active = null;
		val3.targetTexture = null;
		Object.DestroyImmediate((Object)(object)val5);
		SteamVR_SphericalProjection steamVR_SphericalProjection = ((Component)val3).gameObject.AddComponent<SteamVR_SphericalProjection>();
		Vector3 localPosition = target.transform.localPosition;
		Quaternion localRotation = target.transform.localRotation;
		Vector3 position = target.transform.position;
		Quaternion rotation = target.transform.rotation;
		Quaternion val6 = Quaternion.Euler(0f, ((Quaternion)(ref rotation)).eulerAngles.y, 0f);
		Transform transform = ((Component)val3).transform;
		int num = 1024 / cellSize;
		float num2 = 90f / (float)num;
		float num3 = num2 / 2f;
		RenderTexture val7 = new RenderTexture(cellSize, cellSize, 24);
		((Texture)val7).wrapMode = (TextureWrapMode)1;
		val7.antiAliasing = 8;
		val3.fieldOfView = num2;
		val3.orthographic = false;
		val3.targetTexture = val7;
		val3.aspect = aspect;
		val3.stereoTargetEye = (StereoTargetEyeMask)0;
		for (int i = 0; i < num; i++)
		{
			float num4 = 90f - (float)i * num2 - num3;
			int num5 = 4096 / ((Texture)val7).width;
			float num6 = 360f / (float)num5;
			float num7 = num6 / 2f;
			int num8 = i * 1024 / num;
			for (int j = 0; j < 2; j++)
			{
				if (j == 1)
				{
					num4 = 0f - num4;
					num8 = 2048 - num8 - cellSize;
				}
				for (int k = 0; k < num5; k++)
				{
					float num9 = -180f + (float)k * num6 + num7;
					int num10 = k * 4096 / num5;
					int num11 = 0;
					float num12 = (0f - ipd) / 2f * Mathf.Cos(num4 * (MathF.PI / 180f));
					for (int l = 0; l < 2; l++)
					{
						if (l == 1)
						{
							num11 = 2048;
							num12 = 0f - num12;
						}
						Vector3 val8 = val6 * Quaternion.Euler(0f, num9, 0f) * new Vector3(num12, 0f, 0f);
						transform.position = position + val8;
						Quaternion val9 = Quaternion.Euler(num4, num9, 0f);
						transform.rotation = val6 * val9;
						Vector3 val10 = val9 * Vector3.forward;
						float num13 = num9 - num6 / 2f;
						float num14 = num13 + num6;
						float num15 = num4 + num2 / 2f;
						float num16 = num15 - num2;
						float num17 = (num13 + num14) / 2f;
						float num18 = ((Mathf.Abs(num15) < Mathf.Abs(num16)) ? num15 : num16);
						Vector3 val11 = Quaternion.Euler(num18, num13, 0f) * Vector3.forward;
						Vector3 val12 = Quaternion.Euler(num18, num14, 0f) * Vector3.forward;
						Vector3 val13 = Quaternion.Euler(num15, num17, 0f) * Vector3.forward;
						Vector3 val14 = Quaternion.Euler(num16, num17, 0f) * Vector3.forward;
						Vector3 val15 = val11 / Vector3.Dot(val11, val10);
						Vector3 val16 = val12 / Vector3.Dot(val12, val10);
						Vector3 val17 = val13 / Vector3.Dot(val13, val10);
						Vector3 val18 = val14 / Vector3.Dot(val14, val10);
						Vector3 val19 = val16 - val15;
						Vector3 val20 = val18 - val17;
						float magnitude = ((Vector3)(ref val19)).magnitude;
						float magnitude2 = ((Vector3)(ref val20)).magnitude;
						float num19 = 1f / magnitude;
						float num20 = 1f / magnitude2;
						Vector3 uAxis = val19 * num19;
						Vector3 vAxis = val20 * num20;
						steamVR_SphericalProjection.Set(val10, num13, num14, num15, num16, uAxis, val15, num19, vAxis, val17, num20);
						val3.aspect = magnitude / magnitude2;
						val3.Render();
						RenderTexture.active = val7;
						val.ReadPixels(new Rect(0f, 0f, (float)((Texture)val7).width, (float)((Texture)val7).height), num10, num8 + num11);
						RenderTexture.active = null;
					}
					float num21 = ((float)i * ((float)num5 * 2f) + (float)k + (float)(j * num5)) / ((float)num * ((float)num5 * 2f));
					OpenVR.Screenshots.UpdateScreenshotProgress(screenshotHandle, num21);
				}
			}
		}
		OpenVR.Screenshots.UpdateScreenshotProgress(screenshotHandle, 1f);
		previewFilename += ".png";
		VRFilename += ".png";
		val4.Apply();
		File.WriteAllBytes(previewFilename, ImageConversion.EncodeToPNG(val4));
		val.Apply();
		File.WriteAllBytes(VRFilename, ImageConversion.EncodeToPNG(val));
		if ((Object)(object)val3 != (Object)(object)val2)
		{
			val3.targetTexture = targetTexture;
			val3.orthographic = orthographic;
			val3.fieldOfView = fieldOfView;
			val3.aspect = aspect;
			val3.stereoTargetEye = stereoTargetEye;
			target.transform.localPosition = localPosition;
			target.transform.localRotation = localRotation;
		}
		else
		{
			val2.targetTexture = null;
		}
		Object.DestroyImmediate((Object)(object)val7);
		Object.DestroyImmediate((Object)(object)steamVR_SphericalProjection);
		stopwatch.Stop();
		Debug.Log((object)$"Screenshot took {stopwatch.Elapsed} seconds.");
		if ((Object)(object)val2 != (Object)null)
		{
			Object.DestroyImmediate((Object)(object)((Component)val2).gameObject);
		}
		Object.DestroyImmediate((Object)(object)val4);
		Object.DestroyImmediate((Object)(object)val);
	}
}
[CompilerGenerated]
[EditorBrowsable(EditorBrowsableState.Never)]
[GeneratedCode("Unity.MonoScriptGenerator.MonoScriptInfoGenerator", null)]
internal class UnitySourceGeneratedAssemblyMonoScriptTypes_v1
{
	private struct MonoScriptData
	{
		public byte[] FilePathsData;

		public byte[] TypesData;

		public int TotalTypes;

		public int TotalFiles;

		public bool IsEditorOnly;
	}

	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	private static MonoScriptData Get()
	{
		return new MonoScriptData
		{
			FilePathsData = new byte[11552]
			{
				0, 0, 0, 1, 0, 0, 0, 46, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 69, 120, 116, 114, 97, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 95, 67,
				97, 109, 101, 114, 97, 72, 101, 108, 112, 101,
				114, 46, 99, 115, 0, 0, 0, 1, 0, 0,
				0, 50, 92, 65, 115, 115, 101, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 92, 69, 120,
				116, 114, 97, 115, 92, 83, 116, 101, 97, 109,
				86, 82, 95, 70, 111, 114, 99, 101, 83, 116,
				101, 97, 109, 86, 82, 77, 111, 100, 101, 46,
				99, 115, 0, 0, 0, 2, 0, 0, 0, 45,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 69, 120, 116, 114,
				97, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				95, 71, 97, 122, 101, 84, 114, 97, 99, 107,
				101, 114, 46, 99, 115, 0, 0, 0, 2, 0,
				0, 0, 46, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 69,
				120, 116, 114, 97, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 95, 76, 97, 115, 101, 114, 80,
				111, 105, 110, 116, 101, 114, 46, 99, 115, 0,
				0, 0, 1, 0, 0, 0, 43, 92, 65, 115,
				115, 101, 116, 115, 92, 83, 116, 101, 97, 109,
				86, 82, 92, 69, 120, 116, 114, 97, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 95, 84, 101,
				115, 116, 84, 104, 114, 111, 119, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 51, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 69, 120, 116, 114, 97, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 95, 84,
				101, 115, 116, 84, 114, 97, 99, 107, 101, 100,
				67, 97, 109, 101, 114, 97, 46, 99, 115, 0,
				0, 0, 1, 0, 0, 0, 76, 92, 65, 115,
				115, 101, 116, 115, 92, 83, 116, 101, 97, 109,
				86, 82, 92, 73, 110, 112, 117, 116, 92, 66,
				101, 104, 97, 118, 105, 111, 117, 114, 85, 110,
				105, 116, 121, 69, 118, 101, 110, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 95, 66, 101,
				104, 97, 118, 105, 111, 117, 114, 95, 66, 111,
				111, 108, 101, 97, 110, 69, 118, 101, 110, 116,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				73, 92, 65, 115, 115, 101, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 92, 73, 110, 112,
				117, 116, 92, 66, 101, 104, 97, 118, 105, 111,
				117, 114, 85, 110, 105, 116, 121, 69, 118, 101,
				110, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 95, 66, 101, 104, 97, 118, 105, 111, 117,
				114, 95, 80, 111, 115, 101, 69, 118, 101, 110,
				116, 46, 99, 115, 0, 0, 0, 1, 0, 0,
				0, 90, 92, 65, 115, 115, 101, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 92, 73, 110,
				112, 117, 116, 92, 66, 101, 104, 97, 118, 105,
				111, 117, 114, 85, 110, 105, 116, 121, 69, 118,
				101, 110, 116, 115, 92, 83, 116, 101, 97, 109,
				86, 82, 95, 66, 101, 104, 97, 118, 105, 111,
				117, 114, 95, 80, 111, 115, 101, 95, 67, 111,
				110, 110, 101, 99, 116, 101, 100, 67, 104, 97,
				110, 103, 101, 100, 69, 118, 101, 110, 116, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 92,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 112, 117,
				116, 92, 66, 101, 104, 97, 118, 105, 111, 117,
				114, 85, 110, 105, 116, 121, 69, 118, 101, 110,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				95, 66, 101, 104, 97, 118, 105, 111, 117, 114,
				95, 80, 111, 115, 101, 95, 68, 101, 118, 105,
				99, 101, 73, 110, 100, 101, 120, 67, 104, 97,
				110, 103, 101, 100, 69, 118, 101, 110, 116, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 89,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 112, 117,
				116, 92, 66, 101, 104, 97, 118, 105, 111, 117,
				114, 85, 110, 105, 116, 121, 69, 118, 101, 110,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				95, 66, 101, 104, 97, 118, 105, 111, 117, 114,
				95, 80, 111, 115, 101, 95, 84, 114, 97, 99,
				107, 105, 110, 103, 67, 104, 97, 110, 103, 101,
				100, 69, 118, 101, 110, 116, 46, 99, 115, 0,
				0, 0, 1, 0, 0, 0, 75, 92, 65, 115,
				115, 101, 116, 115, 92, 83, 116, 101, 97, 109,
				86, 82, 92, 73, 110, 112, 117, 116, 92, 66,
				101, 104, 97, 118, 105, 111, 117, 114, 85, 110,
				105, 116, 121, 69, 118, 101, 110, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 95, 66, 101,
				104, 97, 118, 105, 111, 117, 114, 95, 83, 105,
				110, 103, 108, 101, 69, 118, 101, 110, 116, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 77,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 112, 117,
				116, 92, 66, 101, 104, 97, 118, 105, 111, 117,
				114, 85, 110, 105, 116, 121, 69, 118, 101, 110,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				95, 66, 101, 104, 97, 118, 105, 111, 117, 114,
				95, 83, 107, 101, 108, 101, 116, 111, 110, 69,
				118, 101, 110, 116, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 94, 92, 65, 115, 115, 101,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				92, 73, 110, 112, 117, 116, 92, 66, 101, 104,
				97, 118, 105, 111, 117, 114, 85, 110, 105, 116,
				121, 69, 118, 101, 110, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 95, 66, 101, 104, 97,
				118, 105, 111, 117, 114, 95, 83, 107, 101, 108,
				101, 116, 111, 110, 95, 67, 111, 110, 110, 101,
				99, 116, 101, 100, 67, 104, 97, 110, 103, 101,
				100, 69, 118, 101, 110, 116, 46, 99, 115, 0,
				0, 0, 1, 0, 0, 0, 93, 92, 65, 115,
				115, 101, 116, 115, 92, 83, 116, 101, 97, 109,
				86, 82, 92, 73, 110, 112, 117, 116, 92, 66,
				101, 104, 97, 118, 105, 111, 117, 114, 85, 110,
				105, 116, 121, 69, 118, 101, 110, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 95, 66, 101,
				104, 97, 118, 105, 111, 117, 114, 95, 83, 107,
				101, 108, 101, 116, 111, 110, 95, 84, 114, 97,
				99, 107, 105, 110, 103, 67, 104, 97, 110, 103,
				101, 100, 69, 118, 101, 110, 116, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 76, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 73, 110, 112, 117, 116, 92,
				66, 101, 104, 97, 118, 105, 111, 117, 114, 85,
				110, 105, 116, 121, 69, 118, 101, 110, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 95, 66,
				101, 104, 97, 118, 105, 111, 117, 114, 95, 86,
				101, 99, 116, 111, 114, 50, 69, 118, 101, 110,
				116, 46, 99, 115, 0, 0, 0, 1, 0, 0,
				0, 76, 92, 65, 115, 115, 101, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 92, 73, 110,
				112, 117, 116, 92, 66, 101, 104, 97, 118, 105,
				111, 117, 114, 85, 110, 105, 116, 121, 69, 118,
				101, 110, 116, 115, 92, 83, 116, 101, 97, 109,
				86, 82, 95, 66, 101, 104, 97, 118, 105, 111,
				117, 114, 95, 86, 101, 99, 116, 111, 114, 51,
				69, 118, 101, 110, 116, 46, 99, 115, 0, 0,
				0, 7, 0, 0, 0, 39, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 112, 117, 116, 92, 83, 116,
				101, 97, 109, 86, 82, 95, 65, 99, 116, 105,
				111, 110, 46, 99, 115, 0, 0, 0, 3, 0,
				0, 0, 42, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 73,
				110, 112, 117, 116, 92, 83, 116, 101, 97, 109,
				86, 82, 95, 65, 99, 116, 105, 111, 110, 83,
				101, 116, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 50, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 73,
				110, 112, 117, 116, 92, 83, 116, 101, 97, 109,
				86, 82, 95, 65, 99, 116, 105, 111, 110, 83,
				101, 116, 95, 77, 97, 110, 97, 103, 101, 114,
				46, 99, 115, 0, 0, 0, 4, 0, 0, 0,
				47, 92, 65, 115, 115, 101, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 92, 73, 110, 112,
				117, 116, 92, 83, 116, 101, 97, 109, 86, 82,
				95, 65, 99, 116, 105, 111, 110, 95, 66, 111,
				111, 108, 101, 97, 110, 46, 99, 115, 0, 0,
				0, 5, 0, 0, 0, 42, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 112, 117, 116, 92, 83, 116,
				101, 97, 109, 86, 82, 95, 65, 99, 116, 105,
				111, 110, 95, 73, 110, 46, 99, 115, 0, 0,
				0, 4, 0, 0, 0, 43, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 112, 117, 116, 92, 83, 116,
				101, 97, 109, 86, 82, 95, 65, 99, 116, 105,
				111, 110, 95, 79, 117, 116, 46, 99, 115, 0,
				0, 0, 5, 0, 0, 0, 44, 92, 65, 115,
				115, 101, 116, 115, 92, 83, 116, 101, 97, 109,
				86, 82, 92, 73, 110, 112, 117, 116, 92, 83,
				116, 101, 97, 109, 86, 82, 95, 65, 99, 116,
				105, 111, 110, 95, 80, 111, 115, 101, 46, 99,
				115, 0, 0, 0, 4, 0, 0, 0, 46, 92,
				65, 115, 115, 101, 116, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 92, 73, 110, 112, 117, 116,
				92, 83, 116, 101, 97, 109, 86, 82, 95, 65,
				99, 116, 105, 111, 110, 95, 83, 105, 110, 103,
				108, 101, 46, 99, 115, 0, 0, 0, 7, 0,
				0, 0, 48, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 73,
				110, 112, 117, 116, 92, 83, 116, 101, 97, 109,
				86, 82, 95, 65, 99, 116, 105, 111, 110, 95,
				83, 107, 101, 108, 101, 116, 111, 110, 46, 99,
				115, 0, 0, 0, 4, 0, 0, 0, 47, 92,
				65, 115, 115, 101, 116, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 92, 73, 110, 112, 117, 116,
				92, 83, 116, 101, 97, 109, 86, 82, 95, 65,
				99, 116, 105, 111, 110, 95, 86, 101, 99, 116,
				111, 114, 50, 46, 99, 115, 0, 0, 0, 4,
				0, 0, 0, 47, 92, 65, 115, 115, 101, 116,
				115, 92, 83, 116, 101, 97, 109, 86, 82, 92,
				73, 110, 112, 117, 116, 92, 83, 116, 101, 97,
				109, 86, 82, 95, 65, 99, 116, 105, 111, 110,
				95, 86, 101, 99, 116, 111, 114, 51, 46, 99,
				115, 0, 0, 0, 4, 0, 0, 0, 49, 92,
				65, 115, 115, 101, 116, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 92, 73, 110, 112, 117, 116,
				92, 83, 116, 101, 97, 109, 86, 82, 95, 65,
				99, 116, 105, 111, 110, 95, 86, 105, 98, 114,
				97, 116, 105, 111, 110, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 56, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 112, 117, 116, 92, 83, 116,
				101, 97, 109, 86, 82, 95, 65, 99, 116, 105,
				118, 97, 116, 101, 65, 99, 116, 105, 111, 110,
				83, 101, 116, 79, 110, 76, 111, 97, 100, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 50,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 112, 117,
				116, 92, 83, 116, 101, 97, 109, 86, 82, 95,
				66, 101, 104, 97, 118, 105, 111, 117, 114, 95,
				66, 111, 111, 108, 101, 97, 110, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 47, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 73, 110, 112, 117, 116, 92,
				83, 116, 101, 97, 109, 86, 82, 95, 66, 101,
				104, 97, 118, 105, 111, 117, 114, 95, 80, 111,
				115, 101, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 49, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 73,
				110, 112, 117, 116, 92, 83, 116, 101, 97, 109,
				86, 82, 95, 66, 101, 104, 97, 118, 105, 111,
				117, 114, 95, 83, 105, 110, 103, 108, 101, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 51,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 112, 117,
				116, 92, 83, 116, 101, 97, 109, 86, 82, 95,
				66, 101, 104, 97, 118, 105, 111, 117, 114, 95,
				83, 107, 101, 108, 101, 116, 111, 110, 46, 99,
				115, 0, 0, 0, 1, 0, 0, 0, 57, 92,
				65, 115, 115, 101, 116, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 92, 73, 110, 112, 117, 116,
				92, 83, 116, 101, 97, 109, 86, 82, 95, 66,
				101, 104, 97, 118, 105, 111, 117, 114, 95, 83,
				107, 101, 108, 101, 116, 111, 110, 67, 117, 115,
				116, 111, 109, 46, 99, 115, 0, 0, 0, 1,
				0, 0, 0, 50, 92, 65, 115, 115, 101, 116,
				115, 92, 83, 116, 101, 97, 109, 86, 82, 92,
				73, 110, 112, 117, 116, 92, 83, 116, 101, 97,
				109, 86, 82, 95, 66, 101, 104, 97, 118, 105,
				111, 117, 114, 95, 86, 101, 99, 116, 111, 114,
				50, 46, 99, 115, 0, 0, 0, 1, 0, 0,
				0, 50, 92, 65, 115, 115, 101, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 92, 73, 110,
				112, 117, 116, 92, 83, 116, 101, 97, 109, 86,
				82, 95, 66, 101, 104, 97, 118, 105, 111, 117,
				114, 95, 86, 101, 99, 116, 111, 114, 51, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 38,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 112, 117,
				116, 92, 83, 116, 101, 97, 109, 86, 82, 95,
				73, 110, 112, 117, 116, 46, 99, 115, 0, 0,
				0, 13, 0, 0, 0, 49, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 112, 117, 116, 92, 83, 116,
				101, 97, 109, 86, 82, 95, 73, 110, 112, 117,
				116, 95, 65, 99, 116, 105, 111, 110, 70, 105,
				108, 101, 46, 99, 115, 0, 0, 0, 9, 0,
				0, 0, 50, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 73,
				110, 112, 117, 116, 92, 83, 116, 101, 97, 109,
				86, 82, 95, 73, 110, 112, 117, 116, 95, 66,
				105, 110, 100, 105, 110, 103, 70, 105, 108, 101,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				54, 92, 65, 115, 115, 101, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 92, 73, 110, 112,
				117, 116, 92, 83, 116, 101, 97, 109, 86, 82,
				95, 73, 110, 112, 117, 116, 95, 71, 101, 110,
				101, 114, 97, 116, 111, 114, 95, 78, 97, 109,
				101, 115, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 45, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 73,
				110, 112, 117, 116, 92, 83, 116, 101, 97, 109,
				86, 82, 95, 73, 110, 112, 117, 116, 95, 83,
				111, 117, 114, 99, 101, 46, 99, 115, 0, 0,
				0, 3, 0, 0, 0, 46, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 112, 117, 116, 92, 83, 116,
				101, 97, 109, 86, 82, 95, 83, 107, 101, 108,
				101, 116, 111, 110, 95, 80, 111, 115, 101, 46,
				99, 115, 0, 0, 0, 5, 0, 0, 0, 47,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 112, 117,
				116, 92, 83, 116, 101, 97, 109, 86, 82, 95,
				83, 107, 101, 108, 101, 116, 111, 110, 95, 80,
				111, 115, 101, 114, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 62, 92, 65, 115, 115, 101,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				92, 73, 110, 116, 101, 114, 97, 99, 116, 105,
				111, 110, 83, 121, 115, 116, 101, 109, 92, 67,
				111, 114, 101, 92, 83, 99, 114, 105, 112, 116,
				115, 92, 66, 111, 100, 121, 67, 111, 108, 108,
				105, 100, 101, 114, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 63, 92, 65, 115, 115, 101,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				92, 73, 110, 116, 101, 114, 97, 99, 116, 105,
				111, 110, 83, 121, 115, 116, 101, 109, 92, 67,
				111, 114, 101, 92, 83, 99, 114, 105, 112, 116,
				115, 92, 67, 105, 114, 99, 117, 108, 97, 114,
				68, 114, 105, 118, 101, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 66, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 116, 101, 114, 97, 99, 116,
				105, 111, 110, 83, 121, 115, 116, 101, 109, 92,
				67, 111, 114, 101, 92, 83, 99, 114, 105, 112,
				116, 115, 92, 67, 111, 109, 112, 108, 101, 120,
				84, 104, 114, 111, 119, 97, 98, 108, 101, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 74,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 116, 101,
				114, 97, 99, 116, 105, 111, 110, 83, 121, 115,
				116, 101, 109, 92, 67, 111, 114, 101, 92, 83,
				99, 114, 105, 112, 116, 115, 92, 67, 111, 110,
				116, 114, 111, 108, 108, 101, 114, 72, 111, 118,
				101, 114, 72, 105, 103, 104, 108, 105, 103, 104,
				116, 46, 99, 115, 0, 0, 0, 3, 0, 0,
				0, 62, 92, 65, 115, 115, 101, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 92, 73, 110,
				116, 101, 114, 97, 99, 116, 105, 111, 110, 83,
				121, 115, 116, 101, 109, 92, 67, 111, 114, 101,
				92, 83, 99, 114, 105, 112, 116, 115, 92, 67,
				117, 115, 116, 111, 109, 69, 118, 101, 110, 116,
				115, 46, 99, 115, 0, 0, 0, 1, 0, 0,
				0, 57, 92, 65, 115, 115, 101, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 92, 73, 110,
				116, 101, 114, 97, 99, 116, 105, 111, 110, 83,
				121, 115, 116, 101, 109, 92, 67, 111, 114, 101,
				92, 83, 99, 114, 105, 112, 116, 115, 92, 68,
				101, 98, 117, 103, 85, 73, 46, 99, 115, 0,
				0, 0, 1, 0, 0, 0, 75, 92, 65, 115,
				115, 101, 116, 115, 92, 83, 116, 101, 97, 109,
				86, 82, 92, 73, 110, 116, 101, 114, 97, 99,
				116, 105, 111, 110, 83, 121, 115, 116, 101, 109,
				92, 67, 111, 114, 101, 92, 83, 99, 114, 105,
				112, 116, 115, 92, 68, 101, 115, 116, 114, 111,
				121, 79, 110, 68, 101, 116, 97, 99, 104, 101,
				100, 70, 114, 111, 109, 72, 97, 110, 100, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 78,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 116, 101,
				114, 97, 99, 116, 105, 111, 110, 83, 121, 115,
				116, 101, 109, 92, 67, 111, 114, 101, 92, 83,
				99, 114, 105, 112, 116, 115, 92, 68, 101, 115,
				116, 114, 111, 121, 79, 110, 80, 97, 114, 116,
				105, 99, 108, 101, 83, 121, 115, 116, 101, 109,
				68, 101, 97, 116, 104, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 71, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 116, 101, 114, 97, 99, 116,
				105, 111, 110, 83, 121, 115, 116, 101, 109, 92,
				67, 111, 114, 101, 92, 83, 99, 114, 105, 112,
				116, 115, 92, 68, 101, 115, 116, 114, 111, 121,
				79, 110, 84, 114, 105, 103, 103, 101, 114, 69,
				110, 116, 101, 114, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 65, 92, 65, 115, 115, 101,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				92, 73, 110, 116, 101, 114, 97, 99, 116, 105,
				111, 110, 83, 121, 115, 116, 101, 109, 92, 67,
				111, 114, 101, 92, 83, 99, 114, 105, 112, 116,
				115, 92, 68, 105, 115, 116, 97, 110, 99, 101,
				72, 97, 112, 116, 105, 99, 115, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 67, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 73, 110, 116, 101, 114, 97,
				99, 116, 105, 111, 110, 83, 121, 115, 116, 101,
				109, 92, 67, 111, 114, 101, 92, 83, 99, 114,
				105, 112, 116, 115, 92, 68, 111, 110, 116, 68,
				101, 115, 116, 114, 111, 121, 79, 110, 76, 111,
				97, 100, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 59, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 73,
				110, 116, 101, 114, 97, 99, 116, 105, 111, 110,
				83, 121, 115, 116, 101, 109, 92, 67, 111, 114,
				101, 92, 83, 99, 114, 105, 112, 116, 115, 92,
				69, 110, 117, 109, 70, 108, 97, 103, 115, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 60,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 116, 101,
				114, 97, 99, 116, 105, 111, 110, 83, 121, 115,
				116, 101, 109, 92, 67, 111, 114, 101, 92, 83,
				99, 114, 105, 112, 116, 115, 92, 69, 113, 117,
				105, 112, 112, 97, 98, 108, 101, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 74, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 73, 110, 116, 101, 114, 97,
				99, 116, 105, 111, 110, 83, 121, 115, 116, 101,
				109, 92, 67, 111, 114, 101, 92, 83, 99, 114,
				105, 112, 116, 115, 92, 70, 97, 108, 108, 98,
				97, 99, 107, 67, 97, 109, 101, 114, 97, 67,
				111, 110, 116, 114, 111, 108, 108, 101, 114, 46,
				99, 115, 0, 0, 0, 3, 0, 0, 0, 54,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 116, 101,
				114, 97, 99, 116, 105, 111, 110, 83, 121, 115,
				116, 101, 109, 92, 67, 111, 114, 101, 92, 83,
				99, 114, 105, 112, 116, 115, 92, 72, 97, 110,
				100, 46, 99, 115, 0, 0, 0, 2, 0, 0,
				0, 62, 92, 65, 115, 115, 101, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 92, 73, 110,
				116, 101, 114, 97, 99, 116, 105, 111, 110, 83,
				121, 115, 116, 101, 109, 92, 67, 111, 114, 101,
				92, 83, 99, 114, 105, 112, 116, 115, 92, 72,
				97, 110, 100, 67, 111, 108, 108, 105, 100, 101,
				114, 46, 99, 115, 0, 0, 0, 1, 0, 0,
				0, 61, 92, 65, 115, 115, 101, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 92, 73, 110,
				116, 101, 114, 97, 99, 116, 105, 111, 110, 83,
				121, 115, 116, 101, 109, 92, 67, 111, 114, 101,
				92, 83, 99, 114, 105, 112, 116, 115, 92, 72,
				97, 110, 100, 80, 104, 121, 115, 105, 99, 115,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				60, 92, 65, 115, 115, 101, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 92, 73, 110, 116,
				101, 114, 97, 99, 116, 105, 111, 110, 83, 121,
				115, 116, 101, 109, 92, 67, 111, 114, 101, 92,
				83, 99, 114, 105, 112, 116, 115, 92, 72, 97,
				112, 116, 105, 99, 82, 97, 99, 107, 46, 99,
				115, 0, 0, 0, 1, 0, 0, 0, 69, 92,
				65, 115, 115, 101, 116, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 92, 73, 110, 116, 101, 114,
				97, 99, 116, 105, 111, 110, 83, 121, 115, 116,
				101, 109, 92, 67, 111, 114, 101, 92, 83, 99,
				114, 105, 112, 116, 115, 92, 72, 105, 100, 101,
				79, 110, 72, 97, 110, 100, 70, 111, 99, 117,
				115, 76, 111, 115, 116, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 61, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 116, 101, 114, 97, 99, 116,
				105, 111, 110, 83, 121, 115, 116, 101, 109, 92,
				67, 111, 114, 101, 92, 83, 99, 114, 105, 112,
				116, 115, 92, 72, 111, 118, 101, 114, 66, 117,
				116, 116, 111, 110, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 64, 92, 65, 115, 115, 101,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				92, 73, 110, 116, 101, 114, 97, 99, 116, 105,
				111, 110, 83, 121, 115, 116, 101, 109, 92, 67,
				111, 114, 101, 92, 83, 99, 114, 105, 112, 116,
				115, 92, 73, 103, 110, 111, 114, 101, 72, 111,
				118, 101, 114, 105, 110, 103, 46, 99, 115, 0,
				0, 0, 1, 0, 0, 0, 61, 92, 65, 115,
				115, 101, 116, 115, 92, 83, 116, 101, 97, 109,
				86, 82, 92, 73, 110, 116, 101, 114, 97, 99,
				116, 105, 111, 110, 83, 121, 115, 116, 101, 109,
				92, 67, 111, 114, 101, 92, 83, 99, 114, 105,
				112, 116, 115, 92, 73, 110, 112, 117, 116, 77,
				111, 100, 117, 108, 101, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 62, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 116, 101, 114, 97, 99, 116,
				105, 111, 110, 83, 121, 115, 116, 101, 109, 92,
				67, 111, 114, 101, 92, 83, 99, 114, 105, 112,
				116, 115, 92, 73, 110, 116, 101, 114, 97, 99,
				116, 97, 98, 108, 101, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 67, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 116, 101, 114, 97, 99, 116,
				105, 111, 110, 83, 121, 115, 116, 101, 109, 92,
				67, 111, 114, 101, 92, 83, 99, 114, 105, 112,
				116, 115, 92, 73, 110, 116, 101, 114, 97, 99,
				116, 97, 98, 108, 101, 68, 101, 98, 117, 103,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				73, 92, 65, 115, 115, 101, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 92, 73, 110, 116,
				101, 114, 97, 99, 116, 105, 111, 110, 83, 121,
				115, 116, 101, 109, 92, 67, 111, 114, 101, 92,
				83, 99, 114, 105, 112, 116, 115, 92, 73, 110,
				116, 101, 114, 97, 99, 116, 97, 98, 108, 101,
				72, 111, 118, 101, 114, 69, 118, 101, 110, 116,
				115, 46, 99, 115, 0, 0, 0, 1, 0, 0,
				0, 61, 92, 65, 115, 115, 101, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 92, 73, 110,
				116, 101, 114, 97, 99, 116, 105, 111, 110, 83,
				121, 115, 116, 101, 109, 92, 67, 111, 114, 101,
				92, 83, 99, 114, 105, 112, 116, 115, 92, 73,
				116, 101, 109, 80, 97, 99, 107, 97, 103, 101,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				70, 92, 65, 115, 115, 101, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 92, 73, 110, 116,
				101, 114, 97, 99, 116, 105, 111, 110, 83, 121,
				115, 116, 101, 109, 92, 67, 111, 114, 101, 92,
				83, 99, 114, 105, 112, 116, 115, 92, 73, 116,
				101, 109, 80, 97, 99, 107, 97, 103, 101, 82,
				101, 102, 101, 114, 101, 110, 99, 101, 46, 99,
				115, 0, 0, 0, 1, 0, 0, 0, 68, 92,
				65, 115, 115, 101, 116, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 92, 73, 110, 116, 101, 114,
				97, 99, 116, 105, 111, 110, 83, 121, 115, 116,
				101, 109, 92, 67, 111, 114, 101, 92, 83, 99,
				114, 105, 112, 116, 115, 92, 73, 116, 101, 109,
				80, 97, 99, 107, 97, 103, 101, 83, 112, 97,
				119, 110, 101, 114, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 65, 92, 65, 115, 115, 101,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				92, 73, 110, 116, 101, 114, 97, 99, 116, 105,
				111, 110, 83, 121, 115, 116, 101, 109, 92, 67,
				111, 114, 101, 92, 83, 99, 114, 105, 112, 116,
				115, 92, 76, 105, 110, 101, 97, 114, 65, 110,
				105, 109, 97, 116, 105, 111, 110, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 64, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 73, 110, 116, 101, 114, 97,
				99, 116, 105, 111, 110, 83, 121, 115, 116, 101,
				109, 92, 67, 111, 114, 101, 92, 83, 99, 114,
				105, 112, 116, 115, 92, 76, 105, 110, 101, 97,
				114, 65, 110, 105, 109, 97, 116, 111, 114, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 66,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 116, 101,
				114, 97, 99, 116, 105, 111, 110, 83, 121, 115,
				116, 101, 109, 92, 67, 111, 114, 101, 92, 83,
				99, 114, 105, 112, 116, 115, 92, 76, 105, 110,
				101, 97, 114, 65, 117, 100, 105, 111, 80, 105,
				116, 99, 104, 46, 99, 115, 0, 0, 0, 1,
				0, 0, 0, 66, 92, 65, 115, 115, 101, 116,
				115, 92, 83, 116, 101, 97, 109, 86, 82, 92,
				73, 110, 116, 101, 114, 97, 99, 116, 105, 111,
				110, 83, 121, 115, 116, 101, 109, 92, 67, 111,
				114, 101, 92, 83, 99, 114, 105, 112, 116, 115,
				92, 76, 105, 110, 101, 97, 114, 66, 108, 101,
				110, 100, 115, 104, 97, 112, 101, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 68, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 73, 110, 116, 101, 114, 97,
				99, 116, 105, 111, 110, 83, 121, 115, 116, 101,
				109, 92, 67, 111, 114, 101, 92, 83, 99, 114,
				105, 112, 116, 115, 92, 76, 105, 110, 101, 97,
				114, 68, 105, 115, 112, 108, 97, 99, 101, 109,
				101, 110, 116, 46, 99, 115, 0, 0, 0, 1,
				0, 0, 0, 61, 92, 65, 115, 115, 101, 116,
				115, 92, 83, 116, 101, 97, 109, 86, 82, 92,
				73, 110, 116, 101, 114, 97, 99, 116, 105, 111,
				110, 83, 121, 115, 116, 101, 109, 92, 67, 111,
				114, 101, 92, 83, 99, 114, 105, 112, 116, 115,
				92, 76, 105, 110, 101, 97, 114, 68, 114, 105,
				118, 101, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 63, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 73,
				110, 116, 101, 114, 97, 99, 116, 105, 111, 110,
				83, 121, 115, 116, 101, 109, 92, 67, 111, 114,
				101, 92, 83, 99, 114, 105, 112, 116, 115, 92,
				76, 105, 110, 101, 97, 114, 77, 97, 112, 112,
				105, 110, 103, 46, 99, 115, 0, 0, 0, 1,
				0, 0, 0, 64, 92, 65, 115, 115, 101, 116,
				115, 92, 83, 116, 101, 97, 109, 86, 82, 92,
				73, 110, 116, 101, 114, 97, 99, 116, 105, 111,
				110, 83, 121, 115, 116, 101, 109, 92, 67, 111,
				114, 101, 92, 83, 99, 114, 105, 112, 116, 115,
				92, 77, 111, 100, 97, 108, 84, 104, 114, 111,
				119, 97, 98, 108, 101, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 56, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 116, 101, 114, 97, 99, 116,
				105, 111, 110, 83, 121, 115, 116, 101, 109, 92,
				67, 111, 114, 101, 92, 83, 99, 114, 105, 112,
				116, 115, 92, 80, 108, 97, 121, 101, 114, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 59,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 116, 101,
				114, 97, 99, 116, 105, 111, 110, 83, 121, 115,
				116, 101, 109, 92, 67, 111, 114, 101, 92, 83,
				99, 114, 105, 112, 116, 115, 92, 80, 108, 97,
				121, 83, 111, 117, 110, 100, 46, 99, 115, 0,
				0, 0, 1, 0, 0, 0, 61, 92, 65, 115,
				115, 101, 116, 115, 92, 83, 116, 101, 97, 109,
				86, 82, 92, 73, 110, 116, 101, 114, 97, 99,
				116, 105, 111, 110, 83, 121, 115, 116, 101, 109,
				92, 67, 111, 114, 101, 92, 83, 99, 114, 105,
				112, 116, 115, 92, 82, 101, 110, 100, 101, 114,
				77, 111, 100, 101, 108, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 57, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 116, 101, 114, 97, 99, 116,
				105, 111, 110, 83, 121, 115, 116, 101, 109, 92,
				67, 111, 114, 101, 92, 83, 99, 114, 105, 112,
				116, 115, 92, 83, 101, 101, 84, 104, 114, 117,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				62, 92, 65, 115, 115, 101, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 92, 73, 110, 116,
				101, 114, 97, 99, 116, 105, 111, 110, 83, 121,
				115, 116, 101, 109, 92, 67, 111, 114, 101, 92,
				83, 99, 114, 105, 112, 116, 115, 92, 83, 108,
				101, 101, 112, 79, 110, 65, 119, 97, 107, 101,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				63, 92, 65, 115, 115, 101, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 92, 73, 110, 116,
				101, 114, 97, 99, 116, 105, 111, 110, 83, 121,
				115, 116, 101, 109, 92, 67, 111, 114, 101, 92,
				83, 99, 114, 105, 112, 116, 115, 92, 83, 111,
				117, 110, 100, 68, 101, 112, 97, 114, 101, 110,
				116, 46, 99, 115, 0, 0, 0, 1, 0, 0,
				0, 66, 92, 65, 115, 115, 101, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 92, 73, 110,
				116, 101, 114, 97, 99, 116, 105, 111, 110, 83,
				121, 115, 116, 101, 109, 92, 67, 111, 114, 101,
				92, 83, 99, 114, 105, 112, 116, 115, 92, 83,
				111, 117, 110, 100, 80, 108, 97, 121, 79, 110,
				101, 115, 104, 111, 116, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 89, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 116, 101, 114, 97, 99, 116,
				105, 111, 110, 83, 121, 115, 116, 101, 109, 92,
				67, 111, 114, 101, 92, 83, 99, 114, 105, 112,
				116, 115, 92, 83, 112, 97, 119, 110, 65, 110,
				100, 65, 116, 116, 97, 99, 104, 65, 102, 116,
				101, 114, 67, 111, 110, 116, 114, 111, 108, 108,
				101, 114, 73, 115, 84, 114, 97, 99, 107, 105,
				110, 103, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 70, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 73,
				110, 116, 101, 114, 97, 99, 116, 105, 111, 110,
				83, 121, 115, 116, 101, 109, 92, 67, 111, 114,
				101, 92, 83, 99, 114, 105, 112, 116, 115, 92,
				83, 112, 97, 119, 110, 65, 110, 100, 65, 116,
				116, 97, 99, 104, 84, 111, 72, 97, 110, 100,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				59, 92, 65, 115, 115, 101, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 92, 73, 110, 116,
				101, 114, 97, 99, 116, 105, 111, 110, 83, 121,
				115, 116, 101, 109, 92, 67, 111, 114, 101, 92,
				83, 99, 114, 105, 112, 116, 115, 92, 84, 104,
				114, 111, 119, 97, 98, 108, 101, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 59, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 73, 110, 116, 101, 114, 97,
				99, 116, 105, 111, 110, 83, 121, 115, 116, 101,
				109, 92, 67, 111, 114, 101, 92, 83, 99, 114,
				105, 112, 116, 115, 92, 85, 73, 69, 108, 101,
				109, 101, 110, 116, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 58, 92, 65, 115, 115, 101,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				92, 73, 110, 116, 101, 114, 97, 99, 116, 105,
				111, 110, 83, 121, 115, 116, 101, 109, 92, 67,
				111, 114, 101, 92, 83, 99, 114, 105, 112, 116,
				115, 92, 85, 110, 112, 97, 114, 101, 110, 116,
				46, 99, 115, 0, 0, 0, 2, 0, 0, 0,
				54, 92, 65, 115, 115, 101, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 92, 73, 110, 116,
				101, 114, 97, 99, 116, 105, 111, 110, 83, 121,
				115, 116, 101, 109, 92, 67, 111, 114, 101, 92,
				83, 99, 114, 105, 112, 116, 115, 92, 85, 116,
				105, 108, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 67, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 73,
				110, 116, 101, 114, 97, 99, 116, 105, 111, 110,
				83, 121, 115, 116, 101, 109, 92, 67, 111, 114,
				101, 92, 83, 99, 114, 105, 112, 116, 115, 92,
				86, 101, 108, 111, 99, 105, 116, 121, 69, 115,
				116, 105, 109, 97, 116, 111, 114, 46, 99, 115,
				0, 0, 0, 2, 0, 0, 0, 72, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 73, 110, 116, 101, 114, 97,
				99, 116, 105, 111, 110, 83, 121, 115, 116, 101,
				109, 92, 72, 105, 110, 116, 115, 92, 83, 99,
				114, 105, 112, 116, 115, 92, 67, 111, 110, 116,
				114, 111, 108, 108, 101, 114, 66, 117, 116, 116,
				111, 110, 72, 105, 110, 116, 115, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 66, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 73, 110, 116, 101, 114, 97,
				99, 116, 105, 111, 110, 83, 121, 115, 116, 101,
				109, 92, 76, 111, 110, 103, 98, 111, 119, 92,
				83, 99, 114, 105, 112, 116, 115, 92, 65, 114,
				99, 104, 101, 114, 121, 84, 97, 114, 103, 101,
				116, 46, 99, 115, 0, 0, 0, 1, 0, 0,
				0, 58, 92, 65, 115, 115, 101, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 92, 73, 110,
				116, 101, 114, 97, 99, 116, 105, 111, 110, 83,
				121, 115, 116, 101, 109, 92, 76, 111, 110, 103,
				98, 111, 119, 92, 83, 99, 114, 105, 112, 116,
				115, 92, 65, 114, 114, 111, 119, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 62, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 73, 110, 116, 101, 114, 97,
				99, 116, 105, 111, 110, 83, 121, 115, 116, 101,
				109, 92, 76, 111, 110, 103, 98, 111, 119, 92,
				83, 99, 114, 105, 112, 116, 115, 92, 65, 114,
				114, 111, 119, 72, 97, 110, 100, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 70, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 73, 110, 116, 101, 114, 97,
				99, 116, 105, 111, 110, 83, 121, 115, 116, 101,
				109, 92, 76, 111, 110, 103, 98, 111, 119, 92,
				83, 99, 114, 105, 112, 116, 115, 92, 65, 114,
				114, 111, 119, 104, 101, 97, 100, 82, 111, 116,
				97, 116, 105, 111, 110, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 60, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 116, 101, 114, 97, 99, 116,
				105, 111, 110, 83, 121, 115, 116, 101, 109, 92,
				76, 111, 110, 103, 98, 111, 119, 92, 83, 99,
				114, 105, 112, 116, 115, 92, 66, 97, 108, 108,
				111, 111, 110, 46, 99, 115, 0, 0, 0, 1,
				0, 0, 0, 69, 92, 65, 115, 115, 101, 116,
				115, 92, 83, 116, 101, 97, 109, 86, 82, 92,
				73, 110, 116, 101, 114, 97, 99, 116, 105, 111,
				110, 83, 121, 115, 116, 101, 109, 92, 76, 111,
				110, 103, 98, 111, 119, 92, 83, 99, 114, 105,
				112, 116, 115, 92, 66, 97, 108, 108, 111, 111,
				110, 67, 111, 108, 108, 105, 100, 101, 114, 115,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				70, 92, 65, 115, 115, 101, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 92, 73, 110, 116,
				101, 114, 97, 99, 116, 105, 111, 110, 83, 121,
				115, 116, 101, 109, 92, 76, 111, 110, 103, 98,
				111, 119, 92, 83, 99, 114, 105, 112, 116, 115,
				92, 66, 97, 108, 108, 111, 111, 110, 72, 97,
				112, 116, 105, 99, 66, 117, 109, 112, 46, 99,
				115, 0, 0, 0, 1, 0, 0, 0, 67, 92,
				65, 115, 115, 101, 116, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 92, 73, 110, 116, 101, 114,
				97, 99, 116, 105, 111, 110, 83, 121, 115, 116,
				101, 109, 92, 76, 111, 110, 103, 98, 111, 119,
				92, 83, 99, 114, 105, 112, 116, 115, 92, 66,
				97, 108, 108, 111, 111, 110, 83, 112, 97, 119,
				110, 101, 114, 46, 99, 115, 0, 0, 0, 1,
				0, 0, 0, 68, 92, 65, 115, 115, 101, 116,
				115, 92, 83, 116, 101, 97, 109, 86, 82, 92,
				73, 110, 116, 101, 114, 97, 99, 116, 105, 111,
				110, 83, 121, 115, 116, 101, 109, 92, 76, 111,
				110, 103, 98, 111, 119, 92, 83, 99, 114, 105,
				112, 116, 115, 92, 69, 120, 112, 108, 111, 115,
				105, 111, 110, 87, 111, 98, 98, 108, 101, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 63,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 116, 101,
				114, 97, 99, 116, 105, 111, 110, 83, 121, 115,
				116, 101, 109, 92, 76, 111, 110, 103, 98, 111,
				119, 92, 83, 99, 114, 105, 112, 116, 115, 92,
				70, 105, 114, 101, 83, 111, 117, 114, 99, 101,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				60, 92, 65, 115, 115, 101, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 92, 73, 110, 116,
				101, 114, 97, 99, 116, 105, 111, 110, 83, 121,
				115, 116, 101, 109, 92, 76, 111, 110, 103, 98,
				111, 119, 92, 83, 99, 114, 105, 112, 116, 115,
				92, 76, 111, 110, 103, 98, 111, 119, 46, 99,
				115, 0, 0, 0, 1, 0, 0, 0, 66, 92,
				65, 115, 115, 101, 116, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 92, 73, 110, 116, 101, 114,
				97, 99, 116, 105, 111, 110, 83, 121, 115, 116,
				101, 109, 92, 76, 111, 110, 103, 98, 111, 119,
				92, 83, 99, 114, 105, 112, 116, 115, 92, 83,
				111, 117, 110, 100, 66, 111, 119, 67, 108, 105,
				99, 107, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 74, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 73,
				110, 116, 101, 114, 97, 99, 116, 105, 111, 110,
				83, 121, 115, 116, 101, 109, 92, 83, 97, 109,
				112, 108, 101, 115, 92, 66, 117, 103, 103, 121,
				66, 117, 100, 100, 121, 92, 65, 117, 100, 105,
				111, 92, 65, 109, 98, 105, 101, 110, 116, 83,
				111, 117, 110, 100, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 66, 92, 65, 115, 115, 101,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				92, 73, 110, 116, 101, 114, 97, 99, 116, 105,
				111, 110, 83, 121, 115, 116, 101, 109, 92, 83,
				97, 109, 112, 108, 101, 115, 92, 66, 117, 103,
				103, 121, 66, 117, 100, 100, 121, 92, 66, 117,
				103, 103, 121, 66, 117, 100, 100, 121, 46, 99,
				115, 0, 0, 0, 1, 0, 0, 0, 71, 92,
				65, 115, 115, 101, 116, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 92, 73, 110, 116, 101, 114,
				97, 99, 116, 105, 111, 110, 83, 121, 115, 116,
				101, 109, 92, 83, 97, 109, 112, 108, 101, 115,
				92, 66, 117, 103, 103, 121, 66, 117, 100, 100,
				121, 92, 66, 117, 103, 103, 121, 67, 111, 110,
				116, 114, 111, 108, 108, 101, 114, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 67, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 73, 110, 116, 101, 114, 97,
				99, 116, 105, 111, 110, 83, 121, 115, 116, 101,
				109, 92, 83, 97, 109, 112, 108, 101, 115, 92,
				66, 117, 103, 103, 121, 66, 117, 100, 100, 121,
				92, 76, 111, 99, 107, 84, 111, 80, 111, 105,
				110, 116, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 64, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 73,
				110, 116, 101, 114, 97, 99, 116, 105, 111, 110,
				83, 121, 115, 116, 101, 109, 92, 83, 97, 109,
				112, 108, 101, 115, 92, 66, 117, 103, 103, 121,
				66, 117, 100, 100, 121, 92, 116, 114, 97, 99,
				107, 67, 97, 109, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 64, 92, 65, 115, 115, 101,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				92, 73, 110, 116, 101, 114, 97, 99, 116, 105,
				111, 110, 83, 121, 115, 116, 101, 109, 92, 83,
				97, 109, 112, 108, 101, 115, 92, 66, 117, 103,
				103, 121, 66, 117, 100, 100, 121, 92, 116, 114,
				97, 99, 107, 79, 98, 106, 46, 99, 115, 0,
				0, 0, 1, 0, 0, 0, 65, 92, 65, 115,
				115, 101, 116, 115, 92, 83, 116, 101, 97, 109,
				86, 82, 92, 73, 110, 116, 101, 114, 97, 99,
				116, 105, 111, 110, 83, 121, 115, 116, 101, 109,
				92, 83, 97, 109, 112, 108, 101, 115, 92, 66,
				117, 103, 103, 121, 66, 117, 100, 100, 121, 92,
				87, 104, 101, 101, 108, 68, 117, 115, 116, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 60,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 116, 101,
				114, 97, 99, 116, 105, 111, 110, 83, 121, 115,
				116, 101, 109, 92, 83, 97, 109, 112, 108, 101,
				115, 92, 71, 114, 101, 110, 97, 100, 101, 92,
				71, 114, 101, 110, 97, 100, 101, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 60, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 73, 110, 116, 101, 114, 97,
				99, 116, 105, 111, 110, 83, 121, 115, 116, 101,
				109, 92, 83, 97, 109, 112, 108, 101, 115, 92,
				74, 111, 101, 74, 101, 102, 102, 92, 74, 111,
				101, 74, 101, 102, 102, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 70, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 116, 101, 114, 97, 99, 116,
				105, 111, 110, 83, 121, 115, 116, 101, 109, 92,
				83, 97, 109, 112, 108, 101, 115, 92, 74, 111,
				101, 74, 101, 102, 102, 92, 74, 111, 101, 74,
				101, 102, 102, 67, 111, 110, 116, 114, 111, 108,
				108, 101, 114, 46, 99, 115, 0, 0, 0, 1,
				0, 0, 0, 68, 92, 65, 115, 115, 101, 116,
				115, 92, 83, 116, 101, 97, 109, 86, 82, 92,
				73, 110, 116, 101, 114, 97, 99, 116, 105, 111,
				110, 83, 121, 115, 116, 101, 109, 92, 83, 97,
				109, 112, 108, 101, 115, 92, 74, 111, 101, 74,
				101, 102, 102, 92, 74, 111, 101, 74, 101, 102,
				102, 71, 101, 115, 116, 117, 114, 101, 115, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 67,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 116, 101,
				114, 97, 99, 116, 105, 111, 110, 83, 121, 115,
				116, 101, 109, 92, 83, 97, 109, 112, 108, 101,
				115, 92, 74, 111, 101, 74, 101, 102, 102, 92,
				80, 114, 111, 99, 101, 100, 117, 114, 97, 108,
				72, 97, 116, 115, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 65, 92, 65, 115, 115, 101,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				92, 73, 110, 116, 101, 114, 97, 99, 116, 105,
				111, 110, 83, 121, 115, 116, 101, 109, 92, 83,
				97, 109, 112, 108, 101, 115, 92, 83, 99, 114,
				105, 112, 116, 115, 92, 66, 117, 116, 116, 111,
				110, 69, 102, 102, 101, 99, 116, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 66, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 73, 110, 116, 101, 114, 97,
				99, 116, 105, 111, 110, 83, 121, 115, 116, 101,
				109, 92, 83, 97, 109, 112, 108, 101, 115, 92,
				83, 99, 114, 105, 112, 116, 115, 92, 66, 117,
				116, 116, 111, 110, 69, 120, 97, 109, 112, 108,
				101, 46, 99, 115, 0, 0, 0, 1, 0, 0,
				0, 75, 92, 65, 115, 115, 101, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 92, 73, 110,
				116, 101, 114, 97, 99, 116, 105, 111, 110, 83,
				121, 115, 116, 101, 109, 92, 83, 97, 109, 112,
				108, 101, 115, 92, 83, 99, 114, 105, 112, 116,
				115, 92, 67, 111, 110, 116, 114, 111, 108, 108,
				101, 114, 72, 105, 110, 116, 115, 69, 120, 97,
				109, 112, 108, 101, 46, 99, 115, 0, 0, 0,
				4, 0, 0, 0, 73, 92, 65, 115, 115, 101,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				92, 73, 110, 116, 101, 114, 97, 99, 116, 105,
				111, 110, 83, 121, 115, 116, 101, 109, 92, 83,
				97, 109, 112, 108, 101, 115, 92, 83, 99, 114,
				105, 112, 116, 115, 92, 67, 117, 115, 116, 111,
				109, 83, 107, 101, 108, 101, 116, 111, 110, 72,
				101, 108, 112, 101, 114, 46, 99, 115, 0, 0,
				0, 2, 0, 0, 0, 63, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 116, 101, 114, 97, 99, 116,
				105, 111, 110, 83, 121, 115, 116, 101, 109, 92,
				83, 97, 109, 112, 108, 101, 115, 92, 83, 99,
				114, 105, 112, 116, 115, 92, 70, 108, 111, 112,
				112, 121, 72, 97, 110, 100, 46, 99, 115, 0,
				0, 0, 1, 0, 0, 0, 66, 92, 65, 115,
				115, 101, 116, 115, 92, 83, 116, 101, 97, 109,
				86, 82, 92, 73, 110, 116, 101, 114, 97, 99,
				116, 105, 111, 110, 83, 121, 115, 116, 101, 109,
				92, 83, 97, 109, 112, 108, 101, 115, 92, 83,
				99, 114, 105, 112, 116, 115, 92, 70, 108, 111,
				119, 101, 114, 80, 108, 97, 110, 116, 101, 100,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				72, 92, 65, 115, 115, 101, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 92, 73, 110, 116,
				101, 114, 97, 99, 116, 105, 111, 110, 83, 121,
				115, 116, 101, 109, 92, 83, 97, 109, 112, 108,
				101, 115, 92, 83, 99, 114, 105, 112, 116, 115,
				92, 73, 110, 116, 101, 114, 97, 99, 116, 97,
				98, 108, 101, 69, 120, 97, 109, 112, 108, 101,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				61, 92, 65, 115, 115, 101, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 92, 73, 110, 116,
				101, 114, 97, 99, 116, 105, 111, 110, 83, 121,
				115, 116, 101, 109, 92, 83, 97, 109, 112, 108,
				101, 115, 92, 83, 99, 114, 105, 112, 116, 115,
				92, 80, 108, 97, 110, 116, 105, 110, 103, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 73,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 116, 101,
				114, 97, 99, 116, 105, 111, 110, 83, 121, 115,
				116, 101, 109, 92, 83, 97, 109, 112, 108, 101,
				115, 92, 83, 99, 114, 105, 112, 116, 115, 92,
				82, 101, 110, 100, 101, 114, 77, 111, 100, 101,
				108, 67, 104, 97, 110, 103, 101, 114, 85, 73,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				70, 92, 65, 115, 115, 101, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 92, 73, 110, 116,
				101, 114, 97, 99, 116, 105, 111, 110, 83, 121,
				115, 116, 101, 109, 92, 83, 97, 109, 112, 108,
				101, 115, 92, 83, 99, 114, 105, 112, 116, 115,
				92, 83, 107, 101, 108, 101, 116, 111, 110, 85,
				73, 79, 112, 116, 105, 111, 110, 115, 46, 99,
				115, 0, 0, 0, 1, 0, 0, 0, 68, 92,
				65, 115, 115, 101, 116, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 92, 73, 110, 116, 101, 114,
				97, 99, 116, 105, 111, 110, 83, 121, 115, 116,
				101, 109, 92, 83, 97, 109, 112, 108, 101, 115,
				92, 83, 99, 114, 105, 112, 116, 115, 92, 84,
				97, 114, 103, 101, 116, 72, 105, 116, 69, 102,
				102, 101, 99, 116, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 70, 92, 65, 115, 115, 101,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				92, 73, 110, 116, 101, 114, 97, 99, 116, 105,
				111, 110, 83, 121, 115, 116, 101, 109, 92, 83,
				97, 109, 112, 108, 101, 115, 92, 83, 99, 114,
				105, 112, 116, 115, 92, 84, 97, 114, 103, 101,
				116, 77, 101, 97, 115, 117, 114, 101, 109, 101,
				110, 116, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 72, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 73,
				110, 116, 101, 114, 97, 99, 116, 105, 111, 110,
				83, 121, 115, 116, 101, 109, 92, 83, 97, 109,
				112, 108, 101, 115, 92, 83, 99, 114, 105, 112,
				116, 115, 92, 85, 82, 80, 77, 97, 116, 101,
				114, 105, 97, 108, 83, 119, 105, 116, 99, 104,
				101, 114, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 63, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 73,
				110, 116, 101, 114, 97, 99, 116, 105, 111, 110,
				83, 121, 115, 116, 101, 109, 92, 83, 97, 109,
				112, 108, 101, 115, 92, 83, 113, 117, 105, 115,
				104, 121, 92, 83, 113, 117, 105, 115, 104, 121,
				84, 111, 121, 46, 99, 115, 0, 0, 0, 1,
				0, 0, 0, 54, 92, 65, 115, 115, 101, 116,
				115, 92, 83, 116, 101, 97, 109, 86, 82, 92,
				73, 110, 116, 101, 114, 97, 99, 116, 105, 111,
				110, 83, 121, 115, 116, 101, 109, 92, 83, 110,
				97, 112, 84, 117, 114, 110, 92, 83, 110, 97,
				112, 84, 117, 114, 110, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 86, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 116, 101, 114, 97, 99, 116,
				105, 111, 110, 83, 121, 115, 116, 101, 109, 92,
				84, 101, 108, 101, 112, 111, 114, 116, 92, 83,
				99, 114, 105, 112, 116, 115, 92, 65, 108, 108,
				111, 119, 84, 101, 108, 101, 112, 111, 114, 116,
				87, 104, 105, 108, 101, 65, 116, 116, 97, 99,
				104, 101, 100, 84, 111, 72, 97, 110, 100, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 67,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 116, 101,
				114, 97, 99, 116, 105, 111, 110, 83, 121, 115,
				116, 101, 109, 92, 84, 101, 108, 101, 112, 111,
				114, 116, 92, 83, 99, 114, 105, 112, 116, 115,
				92, 67, 104, 97, 112, 101, 114, 111, 110, 101,
				73, 110, 102, 111, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 73, 92, 65, 115, 115, 101,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				92, 73, 110, 116, 101, 114, 97, 99, 116, 105,
				111, 110, 83, 121, 115, 116, 101, 109, 92, 84,
				101, 108, 101, 112, 111, 114, 116, 92, 83, 99,
				114, 105, 112, 116, 115, 92, 73, 103, 110, 111,
				114, 101, 84, 101, 108, 101, 112, 111, 114, 116,
				84, 114, 97, 99, 101, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 62, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 116, 101, 114, 97, 99, 116,
				105, 111, 110, 83, 121, 115, 116, 101, 109, 92,
				84, 101, 108, 101, 112, 111, 114, 116, 92, 83,
				99, 114, 105, 112, 116, 115, 92, 84, 101, 108,
				101, 112, 111, 114, 116, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 65, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 116, 101, 114, 97, 99, 116,
				105, 111, 110, 83, 121, 115, 116, 101, 109, 92,
				84, 101, 108, 101, 112, 111, 114, 116, 92, 83,
				99, 114, 105, 112, 116, 115, 92, 84, 101, 108,
				101, 112, 111, 114, 116, 65, 114, 99, 46, 99,
				115, 0, 0, 0, 1, 0, 0, 0, 66, 92,
				65, 115, 115, 101, 116, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 92, 73, 110, 116, 101, 114,
				97, 99, 116, 105, 111, 110, 83, 121, 115, 116,
				101, 109, 92, 84, 101, 108, 101, 112, 111, 114,
				116, 92, 83, 99, 114, 105, 112, 116, 115, 92,
				84, 101, 108, 101, 112, 111, 114, 116, 65, 114,
				101, 97, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 72, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 73,
				110, 116, 101, 114, 97, 99, 116, 105, 111, 110,
				83, 121, 115, 116, 101, 109, 92, 84, 101, 108,
				101, 112, 111, 114, 116, 92, 83, 99, 114, 105,
				112, 116, 115, 92, 84, 101, 108, 101, 112, 111,
				114, 116, 77, 97, 114, 107, 101, 114, 66, 97,
				115, 101, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 67, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 73,
				110, 116, 101, 114, 97, 99, 116, 105, 111, 110,
				83, 121, 115, 116, 101, 109, 92, 84, 101, 108,
				101, 112, 111, 114, 116, 92, 83, 99, 114, 105,
				112, 116, 115, 92, 84, 101, 108, 101, 112, 111,
				114, 116, 80, 111, 105, 110, 116, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 71, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 73, 110, 116, 101, 114, 97,
				99, 116, 105, 111, 110, 83, 121, 115, 116, 101,
				109, 92, 84, 101, 108, 101, 112, 111, 114, 116,
				92, 83, 99, 114, 105, 112, 116, 115, 92, 84,
				101, 108, 101, 112, 111, 114, 116, 85, 82, 80,
				72, 101, 108, 112, 101, 114, 46, 99, 115, 0,
				0, 0, 1, 0, 0, 0, 34, 92, 65, 115,
				115, 101, 116, 115, 92, 83, 116, 101, 97, 109,
				86, 82, 92, 83, 99, 114, 105, 112, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 46, 99,
				115, 0, 0, 0, 1, 0, 0, 0, 44, 92,
				65, 115, 115, 101, 116, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 92, 83, 99, 114, 105, 112,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				95, 66, 101, 104, 97, 118, 105, 111, 117, 114,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				41, 92, 65, 115, 115, 101, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 92, 83, 99, 114,
				105, 112, 116, 115, 92, 83, 116, 101, 97, 109,
				86, 82, 95, 67, 97, 109, 101, 114, 97, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 45,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 83, 99, 114, 105,
				112, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 95, 67, 97, 109, 101, 114, 97, 70, 108,
				105, 112, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 45, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 83,
				99, 114, 105, 112, 116, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 95, 67, 97, 109, 101, 114,
				97, 77, 97, 115, 107, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 39, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 83, 99, 114, 105, 112, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 95, 69, 97,
				114, 115, 46, 99, 115, 0, 0, 0, 3, 0,
				0, 0, 55, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 83,
				99, 114, 105, 112, 116, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 95, 69, 110, 117, 109, 69,
				113, 117, 97, 108, 105, 116, 121, 67, 111, 109,
				112, 97, 114, 101, 114, 46, 99, 115, 0, 0,
				0, 10, 0, 0, 0, 41, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 83, 99, 114, 105, 112, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 95, 69, 118,
				101, 110, 116, 115, 46, 99, 115, 0, 0, 0,
				2, 0, 0, 0, 49, 92, 65, 115, 115, 101,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				92, 83, 99, 114, 105, 112, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 95, 69, 120, 116,
				101, 114, 110, 97, 108, 67, 97, 109, 101, 114,
				97, 46, 99, 115, 0, 0, 0, 1, 0, 0,
				0, 63, 92, 65, 115, 115, 101, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 92, 83, 99,
				114, 105, 112, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 95, 69, 120, 116, 101, 114, 110,
				97, 108, 67, 97, 109, 101, 114, 97, 95, 76,
				101, 103, 97, 99, 121, 77, 97, 110, 97, 103,
				101, 114, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 39, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 83,
				99, 114, 105, 112, 116, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 95, 70, 97, 100, 101, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 42,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 83, 99, 114, 105,
				112, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 95, 70, 114, 117, 115, 116, 117, 109, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 37,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 83, 99, 114, 105,
				112, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 95, 73, 75, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 44, 92, 65, 115, 115, 101,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				92, 83, 99, 114, 105, 112, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 95, 76, 111, 97,
				100, 76, 101, 118, 101, 108, 46, 99, 115, 0,
				0, 0, 1, 0, 0, 0, 39, 92, 65, 115,
				115, 101, 116, 115, 92, 83, 116, 101, 97, 109,
				86, 82, 92, 83, 99, 114, 105, 112, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 95, 77,
				101, 110, 117, 46, 99, 115, 0, 0, 0, 2,
				0, 0, 0, 42, 92, 65, 115, 115, 101, 116,
				115, 92, 83, 116, 101, 97, 109, 86, 82, 92,
				83, 99, 114, 105, 112, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 95, 79, 118, 101, 114,
				108, 97, 121, 46, 99, 115, 0, 0, 0, 1,
				0, 0, 0, 43, 92, 65, 115, 115, 101, 116,
				115, 92, 83, 116, 101, 97, 109, 86, 82, 92,
				83, 99, 114, 105, 112, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 95, 80, 108, 97, 121,
				65, 114, 101, 97, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 41, 92, 65, 115, 115, 101,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				92, 83, 99, 114, 105, 112, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 95, 82, 101, 110,
				100, 101, 114, 46, 99, 115, 0, 0, 0, 3,
				0, 0, 0, 46, 92, 65, 115, 115, 101, 116,
				115, 92, 83, 116, 101, 97, 109, 86, 82, 92,
				83, 99, 114, 105, 112, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 95, 82, 101, 110, 100,
				101, 114, 77, 111, 100, 101, 108, 46, 99, 115,
				0, 0, 0, 3, 0, 

patchers/GameData/ULTRAKILL_Data/Managed/SteamVR_Actions.dll

Decompiled 3 days ago
using System.CodeDom.Compiler;
using System.ComponentModel;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyVersion("0.0.0.0")]
[CompilerGenerated]
[EditorBrowsable(EditorBrowsableState.Never)]
[GeneratedCode("Unity.MonoScriptGenerator.MonoScriptInfoGenerator", null)]
internal class UnitySourceGeneratedAssemblyMonoScriptTypes_v1
{
	private struct MonoScriptData
	{
		public byte[] FilePathsData;

		public byte[] TypesData;

		public int TotalTypes;

		public int TotalFiles;

		public bool IsEditorOnly;
	}

	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	private static MonoScriptData Get()
	{
		return new MonoScriptData
		{
			FilePathsData = new byte[253]
			{
				0, 0, 0, 1, 0, 0, 0, 73, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 95, 73, 110, 112, 117, 116, 92,
				65, 99, 116, 105, 111, 110, 83, 101, 116, 67,
				108, 97, 115, 115, 101, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 95, 73, 110, 112, 117, 116,
				95, 65, 99, 116, 105, 111, 110, 83, 101, 116,
				95, 100, 101, 102, 97, 117, 108, 116, 46, 99,
				115, 0, 0, 0, 1, 0, 0, 0, 46, 92,
				65, 115, 115, 101, 116, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 95, 73, 110, 112, 117, 116,
				92, 83, 116, 101, 97, 109, 86, 82, 95, 73,
				110, 112, 117, 116, 95, 65, 99, 116, 105, 111,
				110, 115, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 49, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 95, 73,
				110, 112, 117, 116, 92, 83, 116, 101, 97, 109,
				86, 82, 95, 73, 110, 112, 117, 116, 95, 65,
				99, 116, 105, 111, 110, 83, 101, 116, 115, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 53,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 95, 73, 110, 112, 117,
				116, 92, 83, 116, 101, 97, 109, 86, 82, 95,
				73, 110, 112, 117, 116, 95, 73, 110, 105, 116,
				105, 97, 108, 105, 122, 97, 116, 105, 111, 110,
				46, 99, 115
			},
			TypesData = new byte[132]
			{
				0, 0, 0, 0, 40, 86, 97, 108, 118, 101,
				46, 86, 82, 124, 83, 116, 101, 97, 109, 86,
				82, 95, 73, 110, 112, 117, 116, 95, 65, 99,
				116, 105, 111, 110, 83, 101, 116, 95, 100, 101,
				102, 97, 117, 108, 116, 1, 0, 0, 0, 24,
				86, 97, 108, 118, 101, 46, 86, 82, 124, 83,
				116, 101, 97, 109, 86, 82, 95, 65, 99, 116,
				105, 111, 110, 115, 1, 0, 0, 0, 24, 86,
				97, 108, 118, 101, 46, 86, 82, 124, 83, 116,
				101, 97, 109, 86, 82, 95, 65, 99, 116, 105,
				111, 110, 115, 1, 0, 0, 0, 24, 86, 97,
				108, 118, 101, 46, 86, 82, 124, 83, 116, 101,
				97, 109, 86, 82, 95, 65, 99, 116, 105, 111,
				110, 115
			},
			TotalFiles = 4,
			TotalTypes = 4,
			IsEditorOnly = false
		};
	}
}
namespace Valve.VR;

public class SteamVR_Input_ActionSet_default : SteamVR_ActionSet
{
	public virtual SteamVR_Action_Vector2 Movement => SteamVR_Actions.default_Movement;

	public virtual SteamVR_Action_Vector2 Turn => SteamVR_Actions.default_Turn;

	public virtual SteamVR_Action_Boolean Shoot => SteamVR_Actions.default_Shoot;

	public virtual SteamVR_Action_Boolean AltShoot => SteamVR_Actions.default_AltShoot;

	public virtual SteamVR_Action_Boolean Jump => SteamVR_Actions.default_Jump;

	public virtual SteamVR_Action_Boolean Slide => SteamVR_Actions.default_Slide;

	public virtual SteamVR_Action_Boolean Dash => SteamVR_Actions.default_Dash;

	public virtual SteamVR_Action_Boolean Escape => SteamVR_Actions.default_Escape;

	public virtual SteamVR_Action_Boolean OpenWeaponWheel => SteamVR_Actions.default_OpenWeaponWheel;

	public virtual SteamVR_Action_Boolean ChangeWeaponVariation => SteamVR_Actions.default_ChangeWeaponVariation;

	public virtual SteamVR_Action_Vector2 IterateWeapon => SteamVR_Actions.default_IterateWeapon;

	public virtual SteamVR_Action_Boolean SwapHand => SteamVR_Actions.default_SwapHand;

	public virtual SteamVR_Action_Boolean Slot1 => SteamVR_Actions.default_Slot1;

	public virtual SteamVR_Action_Boolean Slot2 => SteamVR_Actions.default_Slot2;

	public virtual SteamVR_Action_Boolean Slot3 => SteamVR_Actions.default_Slot3;

	public virtual SteamVR_Action_Boolean Slot4 => SteamVR_Actions.default_Slot4;

	public virtual SteamVR_Action_Boolean Slot5 => SteamVR_Actions.default_Slot5;

	public virtual SteamVR_Action_Boolean Slot6 => SteamVR_Actions.default_Slot6;

	public virtual SteamVR_Action_Boolean Slot7 => SteamVR_Actions.default_Slot7;

	public virtual SteamVR_Action_Boolean Slot8 => SteamVR_Actions.default_Slot8;

	public virtual SteamVR_Action_Boolean Slot9 => SteamVR_Actions.default_Slot9;

	public virtual SteamVR_Action_Boolean Slot0 => SteamVR_Actions.default_Slot0;

	public virtual SteamVR_Action_Boolean Whiplash => SteamVR_Actions.default_Whiplash;

	public virtual SteamVR_Action_Boolean Punch => SteamVR_Actions.default_Punch;

	public virtual SteamVR_Action_Pose LeftPose => SteamVR_Actions.default_LeftPose;

	public virtual SteamVR_Action_Pose RightPose => SteamVR_Actions.default_RightPose;

	public virtual SteamVR_Action_Vector2 WeaponWheelScroll => SteamVR_Actions.default_WeaponWheelScroll;

	public virtual SteamVR_Action_Boolean NextWeapon => SteamVR_Actions.default_NextWeapon;

	public virtual SteamVR_Action_Boolean PrevWeapon => SteamVR_Actions.default_PrevWeapon;

	public virtual SteamVR_Action_Vibration Haptic => SteamVR_Actions.default_Haptic;
}
public class SteamVR_Actions
{
	private static SteamVR_Action_Vector2 p_default_Movement;

	private static SteamVR_Action_Vector2 p_default_Turn;

	private static SteamVR_Action_Boolean p_default_Shoot;

	private static SteamVR_Action_Boolean p_default_AltShoot;

	private static SteamVR_Action_Boolean p_default_Jump;

	private static SteamVR_Action_Boolean p_default_Slide;

	private static SteamVR_Action_Boolean p_default_Dash;

	private static SteamVR_Action_Boolean p_default_Escape;

	private static SteamVR_Action_Boolean p_default_OpenWeaponWheel;

	private static SteamVR_Action_Boolean p_default_ChangeWeaponVariation;

	private static SteamVR_Action_Vector2 p_default_IterateWeapon;

	private static SteamVR_Action_Boolean p_default_SwapHand;

	private static SteamVR_Action_Boolean p_default_Slot1;

	private static SteamVR_Action_Boolean p_default_Slot2;

	private static SteamVR_Action_Boolean p_default_Slot3;

	private static SteamVR_Action_Boolean p_default_Slot4;

	private static SteamVR_Action_Boolean p_default_Slot5;

	private static SteamVR_Action_Boolean p_default_Slot6;

	private static SteamVR_Action_Boolean p_default_Slot7;

	private static SteamVR_Action_Boolean p_default_Slot8;

	private static SteamVR_Action_Boolean p_default_Slot9;

	private static SteamVR_Action_Boolean p_default_Slot0;

	private static SteamVR_Action_Boolean p_default_Whiplash;

	private static SteamVR_Action_Boolean p_default_Punch;

	private static SteamVR_Action_Pose p_default_LeftPose;

	private static SteamVR_Action_Pose p_default_RightPose;

	private static SteamVR_Action_Vector2 p_default_WeaponWheelScroll;

	private static SteamVR_Action_Boolean p_default_NextWeapon;

	private static SteamVR_Action_Boolean p_default_PrevWeapon;

	private static SteamVR_Action_Vibration p_default_Haptic;

	private static SteamVR_Input_ActionSet_default p__default;

	public static SteamVR_Action_Vector2 default_Movement => ((SteamVR_Action)p_default_Movement).GetCopy<SteamVR_Action_Vector2>();

	public static SteamVR_Action_Vector2 default_Turn => ((SteamVR_Action)p_default_Turn).GetCopy<SteamVR_Action_Vector2>();

	public static SteamVR_Action_Boolean default_Shoot => ((SteamVR_Action)p_default_Shoot).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_AltShoot => ((SteamVR_Action)p_default_AltShoot).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_Jump => ((SteamVR_Action)p_default_Jump).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_Slide => ((SteamVR_Action)p_default_Slide).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_Dash => ((SteamVR_Action)p_default_Dash).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_Escape => ((SteamVR_Action)p_default_Escape).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_OpenWeaponWheel => ((SteamVR_Action)p_default_OpenWeaponWheel).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_ChangeWeaponVariation => ((SteamVR_Action)p_default_ChangeWeaponVariation).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Vector2 default_IterateWeapon => ((SteamVR_Action)p_default_IterateWeapon).GetCopy<SteamVR_Action_Vector2>();

	public static SteamVR_Action_Boolean default_SwapHand => ((SteamVR_Action)p_default_SwapHand).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_Slot1 => ((SteamVR_Action)p_default_Slot1).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_Slot2 => ((SteamVR_Action)p_default_Slot2).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_Slot3 => ((SteamVR_Action)p_default_Slot3).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_Slot4 => ((SteamVR_Action)p_default_Slot4).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_Slot5 => ((SteamVR_Action)p_default_Slot5).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_Slot6 => ((SteamVR_Action)p_default_Slot6).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_Slot7 => ((SteamVR_Action)p_default_Slot7).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_Slot8 => ((SteamVR_Action)p_default_Slot8).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_Slot9 => ((SteamVR_Action)p_default_Slot9).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_Slot0 => ((SteamVR_Action)p_default_Slot0).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_Whiplash => ((SteamVR_Action)p_default_Whiplash).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_Punch => ((SteamVR_Action)p_default_Punch).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Pose default_LeftPose => ((SteamVR_Action)p_default_LeftPose).GetCopy<SteamVR_Action_Pose>();

	public static SteamVR_Action_Pose default_RightPose => ((SteamVR_Action)p_default_RightPose).GetCopy<SteamVR_Action_Pose>();

	public static SteamVR_Action_Vector2 default_WeaponWheelScroll => ((SteamVR_Action)p_default_WeaponWheelScroll).GetCopy<SteamVR_Action_Vector2>();

	public static SteamVR_Action_Boolean default_NextWeapon => ((SteamVR_Action)p_default_NextWeapon).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_PrevWeapon => ((SteamVR_Action)p_default_PrevWeapon).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Vibration default_Haptic => ((SteamVR_Action)p_default_Haptic).GetCopy<SteamVR_Action_Vibration>();

	public static SteamVR_Input_ActionSet_default _default => ((SteamVR_ActionSet)p__default).GetCopy<SteamVR_Input_ActionSet_default>();

	private static void InitializeActionArrays()
	{
		SteamVR_Input.actions = (SteamVR_Action[])(object)new SteamVR_Action[30]
		{
			(SteamVR_Action)default_Movement,
			(SteamVR_Action)default_Turn,
			(SteamVR_Action)default_Shoot,
			(SteamVR_Action)default_AltShoot,
			(SteamVR_Action)default_Jump,
			(SteamVR_Action)default_Slide,
			(SteamVR_Action)default_Dash,
			(SteamVR_Action)default_Escape,
			(SteamVR_Action)default_OpenWeaponWheel,
			(SteamVR_Action)default_ChangeWeaponVariation,
			(SteamVR_Action)default_IterateWeapon,
			(SteamVR_Action)default_SwapHand,
			(SteamVR_Action)default_Slot1,
			(SteamVR_Action)default_Slot2,
			(SteamVR_Action)default_Slot3,
			(SteamVR_Action)default_Slot4,
			(SteamVR_Action)default_Slot5,
			(SteamVR_Action)default_Slot6,
			(SteamVR_Action)default_Slot7,
			(SteamVR_Action)default_Slot8,
			(SteamVR_Action)default_Slot9,
			(SteamVR_Action)default_Slot0,
			(SteamVR_Action)default_Whiplash,
			(SteamVR_Action)default_Punch,
			(SteamVR_Action)default_LeftPose,
			(SteamVR_Action)default_RightPose,
			(SteamVR_Action)default_WeaponWheelScroll,
			(SteamVR_Action)default_NextWeapon,
			(SteamVR_Action)default_PrevWeapon,
			(SteamVR_Action)default_Haptic
		};
		SteamVR_Input.actionsIn = (ISteamVR_Action_In[])(object)new ISteamVR_Action_In[29]
		{
			(ISteamVR_Action_In)default_Movement,
			(ISteamVR_Action_In)default_Turn,
			(ISteamVR_Action_In)default_Shoot,
			(ISteamVR_Action_In)default_AltShoot,
			(ISteamVR_Action_In)default_Jump,
			(ISteamVR_Action_In)default_Slide,
			(ISteamVR_Action_In)default_Dash,
			(ISteamVR_Action_In)default_Escape,
			(ISteamVR_Action_In)default_OpenWeaponWheel,
			(ISteamVR_Action_In)default_ChangeWeaponVariation,
			(ISteamVR_Action_In)default_IterateWeapon,
			(ISteamVR_Action_In)default_SwapHand,
			(ISteamVR_Action_In)default_Slot1,
			(ISteamVR_Action_In)default_Slot2,
			(ISteamVR_Action_In)default_Slot3,
			(ISteamVR_Action_In)default_Slot4,
			(ISteamVR_Action_In)default_Slot5,
			(ISteamVR_Action_In)default_Slot6,
			(ISteamVR_Action_In)default_Slot7,
			(ISteamVR_Action_In)default_Slot8,
			(ISteamVR_Action_In)default_Slot9,
			(ISteamVR_Action_In)default_Slot0,
			(ISteamVR_Action_In)default_Whiplash,
			(ISteamVR_Action_In)default_Punch,
			(ISteamVR_Action_In)default_LeftPose,
			(ISteamVR_Action_In)default_RightPose,
			(ISteamVR_Action_In)default_WeaponWheelScroll,
			(ISteamVR_Action_In)default_NextWeapon,
			(ISteamVR_Action_In)default_PrevWeapon
		};
		SteamVR_Input.actionsOut = (ISteamVR_Action_Out[])(object)new ISteamVR_Action_Out[1] { (ISteamVR_Action_Out)default_Haptic };
		SteamVR_Input.actionsVibration = (SteamVR_Action_Vibration[])(object)new SteamVR_Action_Vibration[1] { default_Haptic };
		SteamVR_Input.actionsPose = (SteamVR_Action_Pose[])(object)new SteamVR_Action_Pose[2] { default_LeftPose, default_RightPose };
		SteamVR_Input.actionsBoolean = (SteamVR_Action_Boolean[])(object)new SteamVR_Action_Boolean[23]
		{
			default_Shoot, default_AltShoot, default_Jump, default_Slide, default_Dash, default_Escape, default_OpenWeaponWheel, default_ChangeWeaponVariation, default_SwapHand, default_Slot1,
			default_Slot2, default_Slot3, default_Slot4, default_Slot5, default_Slot6, default_Slot7, default_Slot8, default_Slot9, default_Slot0, default_Whiplash,
			default_Punch, default_NextWeapon, default_PrevWeapon
		};
		SteamVR_Input.actionsSingle = (SteamVR_Action_Single[])(object)new SteamVR_Action_Single[0];
		SteamVR_Input.actionsVector2 = (SteamVR_Action_Vector2[])(object)new SteamVR_Action_Vector2[4] { default_Movement, default_Turn, default_IterateWeapon, default_WeaponWheelScroll };
		SteamVR_Input.actionsVector3 = (SteamVR_Action_Vector3[])(object)new SteamVR_Action_Vector3[0];
		SteamVR_Input.actionsSkeleton = (SteamVR_Action_Skeleton[])(object)new SteamVR_Action_Skeleton[0];
		SteamVR_Input.actionsNonPoseNonSkeletonIn = (ISteamVR_Action_In[])(object)new ISteamVR_Action_In[27]
		{
			(ISteamVR_Action_In)default_Movement,
			(ISteamVR_Action_In)default_Turn,
			(ISteamVR_Action_In)default_Shoot,
			(ISteamVR_Action_In)default_AltShoot,
			(ISteamVR_Action_In)default_Jump,
			(ISteamVR_Action_In)default_Slide,
			(ISteamVR_Action_In)default_Dash,
			(ISteamVR_Action_In)default_Escape,
			(ISteamVR_Action_In)default_OpenWeaponWheel,
			(ISteamVR_Action_In)default_ChangeWeaponVariation,
			(ISteamVR_Action_In)default_IterateWeapon,
			(ISteamVR_Action_In)default_SwapHand,
			(ISteamVR_Action_In)default_Slot1,
			(ISteamVR_Action_In)default_Slot2,
			(ISteamVR_Action_In)default_Slot3,
			(ISteamVR_Action_In)default_Slot4,
			(ISteamVR_Action_In)default_Slot5,
			(ISteamVR_Action_In)default_Slot6,
			(ISteamVR_Action_In)default_Slot7,
			(ISteamVR_Action_In)default_Slot8,
			(ISteamVR_Action_In)default_Slot9,
			(ISteamVR_Action_In)default_Slot0,
			(ISteamVR_Action_In)default_Whiplash,
			(ISteamVR_Action_In)default_Punch,
			(ISteamVR_Action_In)default_WeaponWheelScroll,
			(ISteamVR_Action_In)default_NextWeapon,
			(ISteamVR_Action_In)default_PrevWeapon
		};
	}

	private static void PreInitActions()
	{
		p_default_Movement = SteamVR_Action.Create<SteamVR_Action_Vector2>("/actions/default/in/Movement");
		p_default_Turn = SteamVR_Action.Create<SteamVR_Action_Vector2>("/actions/default/in/Turn");
		p_default_Shoot = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Shoot");
		p_default_AltShoot = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/AltShoot");
		p_default_Jump = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Jump");
		p_default_Slide = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Slide");
		p_default_Dash = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Dash");
		p_default_Escape = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Escape");
		p_default_OpenWeaponWheel = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/OpenWeaponWheel");
		p_default_ChangeWeaponVariation = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/ChangeWeaponVariation");
		p_default_IterateWeapon = SteamVR_Action.Create<SteamVR_Action_Vector2>("/actions/default/in/IterateWeapon");
		p_default_SwapHand = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/SwapHand");
		p_default_Slot1 = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Slot1");
		p_default_Slot2 = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Slot2");
		p_default_Slot3 = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Slot3");
		p_default_Slot4 = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Slot4");
		p_default_Slot5 = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Slot5");
		p_default_Slot6 = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Slot6");
		p_default_Slot7 = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Slot7");
		p_default_Slot8 = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Slot8");
		p_default_Slot9 = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Slot9");
		p_default_Slot0 = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Slot0");
		p_default_Whiplash = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Whiplash");
		p_default_Punch = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Punch");
		p_default_LeftPose = SteamVR_Action.Create<SteamVR_Action_Pose>("/actions/default/in/LeftPose");
		p_default_RightPose = SteamVR_Action.Create<SteamVR_Action_Pose>("/actions/default/in/RightPose");
		p_default_WeaponWheelScroll = SteamVR_Action.Create<SteamVR_Action_Vector2>("/actions/default/in/WeaponWheelScroll");
		p_default_NextWeapon = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/NextWeapon");
		p_default_PrevWeapon = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/PrevWeapon");
		p_default_Haptic = SteamVR_Action.Create<SteamVR_Action_Vibration>("/actions/default/out/Haptic");
	}

	private static void StartPreInitActionSets()
	{
		p__default = SteamVR_ActionSet.Create<SteamVR_Input_ActionSet_default>("/actions/default");
		SteamVR_Input.actionSets = (SteamVR_ActionSet[])(object)new SteamVR_ActionSet[1] { _default };
	}

	public static void PreInitialize()
	{
		StartPreInitActionSets();
		SteamVR_Input.PreinitializeActionSetDictionaries();
		PreInitActions();
		InitializeActionArrays();
		SteamVR_Input.PreinitializeActionDictionaries();
		SteamVR_Input.PreinitializeFinishActionSets();
	}
}

patchers/GameData/ULTRAKILL_Data/Managed/Unity.XR.CoreUtils.dll

Decompiled 3 days ago
using System;
using System.CodeDom.Compiler;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Serialization;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
using Unity.Collections;
using Unity.XR.CoreUtils.Bindings.Variables;
using Unity.XR.CoreUtils.Collections;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.InputSystem.XR;
using UnityEngine.SceneManagement;
using UnityEngine.Serialization;
using UnityEngine.SpatialTracking;
using UnityEngine.UI;
using UnityEngine.XR;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyVersion("0.0.0.0")]
[CompilerGenerated]
[EditorBrowsable(EditorBrowsableState.Never)]
[GeneratedCode("Unity.MonoScriptGenerator.MonoScriptInfoGenerator", null)]
internal class UnitySourceGeneratedAssemblyMonoScriptTypes_v1
{
	private struct MonoScriptData
	{
		public byte[] FilePathsData;

		public byte[] TypesData;

		public int TotalTypes;

		public int TotalFiles;

		public bool IsEditorOnly;
	}

	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	private static MonoScriptData Get()
	{
		return new MonoScriptData
		{
			FilePathsData = new byte[7220]
			{
				0, 0, 0, 1, 0, 0, 0, 106, 92, 76,
				105, 98, 114, 97, 114, 121, 92, 80, 97, 99,
				107, 97, 103, 101, 67, 97, 99, 104, 101, 92,
				99, 111, 109, 46, 117, 110, 105, 116, 121, 46,
				120, 114, 46, 99, 111, 114, 101, 45, 117, 116,
				105, 108, 115, 64, 50, 46, 51, 46, 48, 92,
				82, 117, 110, 116, 105, 109, 101, 92, 65, 82,
				84, 114, 97, 99, 107, 97, 98, 108, 101, 115,
				80, 97, 114, 101, 110, 116, 84, 114, 97, 110,
				115, 102, 111, 114, 109, 67, 104, 97, 110, 103,
				101, 100, 69, 118, 101, 110, 116, 65, 114, 103,
				115, 46, 99, 115, 0, 0, 0, 1, 0, 0,
				0, 94, 92, 76, 105, 98, 114, 97, 114, 121,
				92, 80, 97, 99, 107, 97, 103, 101, 67, 97,
				99, 104, 101, 92, 99, 111, 109, 46, 117, 110,
				105, 116, 121, 46, 120, 114, 46, 99, 111, 114,
				101, 45, 117, 116, 105, 108, 115, 64, 50, 46,
				51, 46, 48, 92, 82, 117, 110, 116, 105, 109,
				101, 92, 65, 116, 116, 114, 105, 98, 117, 116,
				101, 115, 92, 69, 110, 117, 109, 68, 105, 115,
				112, 108, 97, 121, 65, 116, 116, 114, 105, 98,
				117, 116, 101, 46, 99, 115, 0, 0, 0, 1,
				0, 0, 0, 96, 92, 76, 105, 98, 114, 97,
				114, 121, 92, 80, 97, 99, 107, 97, 103, 101,
				67, 97, 99, 104, 101, 92, 99, 111, 109, 46,
				117, 110, 105, 116, 121, 46, 120, 114, 46, 99,
				111, 114, 101, 45, 117, 116, 105, 108, 115, 64,
				50, 46, 51, 46, 48, 92, 82, 117, 110, 116,
				105, 109, 101, 92, 65, 116, 116, 114, 105, 98,
				117, 116, 101, 115, 92, 70, 108, 97, 103, 115,
				80, 114, 111, 112, 101, 114, 116, 121, 65, 116,
				116, 114, 105, 98, 117, 116, 101, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 91, 92, 76,
				105, 98, 114, 97, 114, 121, 92, 80, 97, 99,
				107, 97, 103, 101, 67, 97, 99, 104, 101, 92,
				99, 111, 109, 46, 117, 110, 105, 116, 121, 46,
				120, 114, 46, 99, 111, 114, 101, 45, 117, 116,
				105, 108, 115, 64, 50, 46, 51, 46, 48, 92,
				82, 117, 110, 116, 105, 109, 101, 92, 65, 116,
				116, 114, 105, 98, 117, 116, 101, 115, 92, 82,
				101, 97, 100, 79, 110, 108, 121, 65, 116, 116,
				114, 105, 98, 117, 116, 101, 46, 99, 115, 0,
				0, 0, 1, 0, 0, 0, 105, 92, 76, 105,
				98, 114, 97, 114, 121, 92, 80, 97, 99, 107,
				97, 103, 101, 67, 97, 99, 104, 101, 92, 99,
				111, 109, 46, 117, 110, 105, 116, 121, 46, 120,
				114, 46, 99, 111, 114, 101, 45, 117, 116, 105,
				108, 115, 64, 50, 46, 51, 46, 48, 92, 82,
				117, 110, 116, 105, 109, 101, 92, 65, 116, 116,
				114, 105, 98, 117, 116, 101, 115, 92, 83, 99,
				114, 105, 112, 116, 97, 98, 108, 101, 83, 101,
				116, 116, 105, 110, 103, 115, 80, 97, 116, 104,
				65, 116, 116, 114, 105, 98, 117, 116, 101, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 85,
				92, 76, 105, 98, 114, 97, 114, 121, 92, 80,
				97, 99, 107, 97, 103, 101, 67, 97, 99, 104,
				101, 92, 99, 111, 109, 46, 117, 110, 105, 116,
				121, 46, 120, 114, 46, 99, 111, 114, 101, 45,
				117, 116, 105, 108, 115, 64, 50, 46, 51, 46,
				48, 92, 82, 117, 110, 116, 105, 109, 101, 92,
				66, 105, 110, 100, 105, 110, 103, 115, 92, 66,
				105, 110, 100, 105, 110, 103, 115, 71, 114, 111,
				117, 112, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 84, 92, 76, 105, 98, 114, 97, 114,
				121, 92, 80, 97, 99, 107, 97, 103, 101, 67,
				97, 99, 104, 101, 92, 99, 111, 109, 46, 117,
				110, 105, 116, 121, 46, 120, 114, 46, 99, 111,
				114, 101, 45, 117, 116, 105, 108, 115, 64, 50,
				46, 51, 46, 48, 92, 82, 117, 110, 116, 105,
				109, 101, 92, 66, 105, 110, 100, 105, 110, 103,
				115, 92, 69, 118, 101, 110, 116, 66, 105, 110,
				100, 105, 110, 103, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 85, 92, 76, 105, 98, 114,
				97, 114, 121, 92, 80, 97, 99, 107, 97, 103,
				101, 67, 97, 99, 104, 101, 92, 99, 111, 109,
				46, 117, 110, 105, 116, 121, 46, 120, 114, 46,
				99, 111, 114, 101, 45, 117, 116, 105, 108, 115,
				64, 50, 46, 51, 46, 48, 92, 82, 117, 110,
				116, 105, 109, 101, 92, 66, 105, 110, 100, 105,
				110, 103, 115, 92, 73, 69, 118, 101, 110, 116,
				66, 105, 110, 100, 105, 110, 103, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 94, 92, 76,
				105, 98, 114, 97, 114, 121, 92, 80, 97, 99,
				107, 97, 103, 101, 67, 97, 99, 104, 101, 92,
				99, 111, 109, 46, 117, 110, 105, 116, 121, 46,
				120, 114, 46, 99, 111, 114, 101, 45, 117, 116,
				105, 108, 115, 64, 50, 46, 51, 46, 48, 92,
				82, 117, 110, 116, 105, 109, 101, 92, 66, 105,
				110, 100, 105, 110, 103, 115, 92, 86, 97, 114,
				105, 97, 98, 108, 101, 115, 92, 66, 105, 110,
				100, 97, 98, 108, 101, 69, 110, 117, 109, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 98,
				92, 76, 105, 98, 114, 97, 114, 121, 92, 80,
				97, 99, 107, 97, 103, 101, 67, 97, 99, 104,
				101, 92, 99, 111, 109, 46, 117, 110, 105, 116,
				121, 46, 120, 114, 46, 99, 111, 114, 101, 45,
				117, 116, 105, 108, 115, 64, 50, 46, 51, 46,
				48, 92, 82, 117, 110, 116, 105, 109, 101, 92,
				66, 105, 110, 100, 105, 110, 103, 115, 92, 86,
				97, 114, 105, 97, 98, 108, 101, 115, 92, 66,
				105, 110, 100, 97, 98, 108, 101, 86, 97, 114,
				105, 97, 98, 108, 101, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 103, 92, 76, 105, 98,
				114, 97, 114, 121, 92, 80, 97, 99, 107, 97,
				103, 101, 67, 97, 99, 104, 101, 92, 99, 111,
				109, 46, 117, 110, 105, 116, 121, 46, 120, 114,
				46, 99, 111, 114, 101, 45, 117, 116, 105, 108,
				115, 64, 50, 46, 51, 46, 48, 92, 82, 117,
				110, 116, 105, 109, 101, 92, 66, 105, 110, 100,
				105, 110, 103, 115, 92, 86, 97, 114, 105, 97,
				98, 108, 101, 115, 92, 66, 105, 110, 100, 97,
				98, 108, 101, 86, 97, 114, 105, 97, 98, 108,
				101, 65, 108, 108, 111, 99, 46, 99, 115, 0,
				0, 0, 1, 0, 0, 0, 102, 92, 76, 105,
				98, 114, 97, 114, 121, 92, 80, 97, 99, 107,
				97, 103, 101, 67, 97, 99, 104, 101, 92, 99,
				111, 109, 46, 117, 110, 105, 116, 121, 46, 120,
				114, 46, 99, 111, 114, 101, 45, 117, 116, 105,
				108, 115, 64, 50, 46, 51, 46, 48, 92, 82,
				117, 110, 116, 105, 109, 101, 92, 66, 105, 110,
				100, 105, 110, 103, 115, 92, 86, 97, 114, 105,
				97, 98, 108, 101, 115, 92, 66, 105, 110, 100,
				97, 98, 108, 101, 86, 97, 114, 105, 97, 98,
				108, 101, 66, 97, 115, 101, 46, 99, 115, 0,
				0, 0, 2, 0, 0, 0, 111, 92, 76, 105,
				98, 114, 97, 114, 121, 92, 80, 97, 99, 107,
				97, 103, 101, 67, 97, 99, 104, 101, 92, 99,
				111, 109, 46, 117, 110, 105, 116, 121, 46, 120,
				114, 46, 99, 111, 114, 101, 45, 117, 116, 105,
				108, 115, 64, 50, 46, 51, 46, 48, 92, 82,
				117, 110, 116, 105, 109, 101, 92, 66, 105, 110,
				100, 105, 110, 103, 115, 92, 86, 97, 114, 105,
				97, 98, 108, 101, 115, 92, 66, 105, 110, 100,
				97, 98, 108, 101, 86, 97, 114, 105, 97, 98,
				108, 101, 84, 97, 115, 107, 80, 114, 101, 100,
				105, 99, 97, 116, 101, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 107, 92, 76, 105, 98,
				114, 97, 114, 121, 92, 80, 97, 99, 107, 97,
				103, 101, 67, 97, 99, 104, 101, 92, 99, 111,
				109, 46, 117, 110, 105, 116, 121, 46, 120, 114,
				46, 99, 111, 114, 101, 45, 117, 116, 105, 108,
				115, 64, 50, 46, 51, 46, 48, 92, 82, 117,
				110, 116, 105, 109, 101, 92, 66, 105, 110, 100,
				105, 110, 103, 115, 92, 86, 97, 114, 105, 97,
				98, 108, 101, 115, 92, 73, 82, 101, 97, 100,
				79, 110, 108, 121, 66, 105, 110, 100, 97, 98,
				108, 101, 86, 97, 114, 105, 97, 98, 108, 101,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				74, 92, 76, 105, 98, 114, 97, 114, 121, 92,
				80, 97, 99, 107, 97, 103, 101, 67, 97, 99,
				104, 101, 92, 99, 111, 109, 46, 117, 110, 105,
				116, 121, 46, 120, 114, 46, 99, 111, 114, 101,
				45, 117, 116, 105, 108, 115, 64, 50, 46, 51,
				46, 48, 92, 82, 117, 110, 116, 105, 109, 101,
				92, 66, 111, 117, 110, 100, 115, 85, 116, 105,
				108, 115, 46, 99, 115, 0, 0, 0, 2, 0,
				0, 0, 84, 92, 76, 105, 98, 114, 97, 114,
				121, 92, 80, 97, 99, 107, 97, 103, 101, 67,
				97, 99, 104, 101, 92, 99, 111, 109, 46, 117,
				110, 105, 116, 121, 46, 120, 114, 46, 99, 111,
				114, 101, 45, 117, 116, 105, 108, 115, 64, 50,
				46, 51, 46, 48, 92, 82, 117, 110, 116, 105,
				109, 101, 92, 67, 97, 99, 104, 101, 100, 67,
				111, 109, 112, 111, 110, 101, 110, 116, 70, 105,
				108, 116, 101, 114, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 98, 92, 76, 105, 98, 114,
				97, 114, 121, 92, 80, 97, 99, 107, 97, 103,
				101, 67, 97, 99, 104, 101, 92, 99, 111, 109,
				46, 117, 110, 105, 116, 121, 46, 120, 114, 46,
				99, 111, 114, 101, 45, 117, 116, 105, 108, 115,
				64, 50, 46, 51, 46, 48, 92, 82, 117, 110,
				116, 105, 109, 101, 92, 67, 97, 112, 97, 98,
				105, 108, 105, 116, 121, 80, 114, 111, 102, 105,
				108, 101, 92, 67, 97, 112, 97, 98, 105, 108,
				105, 116, 121, 80, 114, 111, 102, 105, 108, 101,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				112, 92, 76, 105, 98, 114, 97, 114, 121, 92,
				80, 97, 99, 107, 97, 103, 101, 67, 97, 99,
				104, 101, 92, 99, 111, 109, 46, 117, 110, 105,
				116, 121, 46, 120, 114, 46, 99, 111, 114, 101,
				45, 117, 116, 105, 108, 115, 64, 50, 46, 51,
				46, 48, 92, 82, 117, 110, 116, 105, 109, 101,
				92, 67, 97, 112, 97, 98, 105, 108, 105, 116,
				121, 80, 114, 111, 102, 105, 108, 101, 92, 68,
				105, 99, 116, 105, 111, 110, 97, 114, 121, 92,
				67, 97, 112, 97, 98, 105, 108, 105, 116, 121,
				68, 105, 99, 116, 105, 111, 110, 97, 114, 121,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				120, 92, 76, 105, 98, 114, 97, 114, 121, 92,
				80, 97, 99, 107, 97, 103, 101, 67, 97, 99,
				104, 101, 92, 99, 111, 109, 46, 117, 110, 105,
				116, 121, 46, 120, 114, 46, 99, 111, 114, 101,
				45, 117, 116, 105, 108, 115, 64, 50, 46, 51,
				46, 48, 92, 82, 117, 110, 116, 105, 109, 101,
				92, 67, 97, 112, 97, 98, 105, 108, 105, 116,
				121, 80, 114, 111, 102, 105, 108, 101, 92, 68,
				105, 99, 116, 105, 111, 110, 97, 114, 121, 92,
				67, 117, 115, 116, 111, 109, 67, 97, 112, 97,
				98, 105, 108, 105, 116, 121, 75, 101, 121, 65,
				116, 116, 114, 105, 98, 117, 116, 101, 46, 99,
				115, 0, 0, 0, 1, 0, 0, 0, 111, 92,
				76, 105, 98, 114, 97, 114, 121, 92, 80, 97,
				99, 107, 97, 103, 101, 67, 97, 99, 104, 101,
				92, 99, 111, 109, 46, 117, 110, 105, 116, 121,
				46, 120, 114, 46, 99, 111, 114, 101, 45, 117,
				116, 105, 108, 115, 64, 50, 46, 51, 46, 48,
				92, 82, 117, 110, 116, 105, 109, 101, 92, 67,
				97, 112, 97, 98, 105, 108, 105, 116, 121, 80,
				114, 111, 102, 105, 108, 101, 92, 68, 105, 99,
				116, 105, 111, 110, 97, 114, 121, 92, 73, 67,
				97, 112, 97, 98, 105, 108, 105, 116, 121, 77,
				111, 100, 105, 102, 105, 101, 114, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 114, 92, 76,
				105, 98, 114, 97, 114, 121, 92, 80, 97, 99,
				107, 97, 103, 101, 67, 97, 99, 104, 101, 92,
				99, 111, 109, 46, 117, 110, 105, 116, 121, 46,
				120, 114, 46, 99, 111, 114, 101, 45, 117, 116,
				105, 108, 115, 64, 50, 46, 51, 46, 48, 92,
				82, 117, 110, 116, 105, 109, 101, 92, 67, 97,
				112, 97, 98, 105, 108, 105, 116, 121, 80, 114,
				111, 102, 105, 108, 101, 92, 68, 105, 99, 116,
				105, 111, 110, 97, 114, 121, 92, 83, 116, 97,
				110, 100, 97, 114, 100, 67, 97, 112, 97, 98,
				105, 108, 105, 116, 121, 75, 101, 121, 115, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 77,
				92, 76, 105, 98, 114, 97, 114, 121, 92, 80,
				97, 99, 107, 97, 103, 101, 67, 97, 99, 104,
				101, 92, 99, 111, 109, 46, 117, 110, 105, 116,
				121, 46, 120, 114, 46, 99, 111, 114, 101, 45,
				117, 116, 105, 108, 115, 64, 50, 46, 51, 46,
				48, 92, 82, 117, 110, 116, 105, 109, 101, 92,
				67, 111, 108, 108, 101, 99, 116, 105, 111, 110,
				80, 111, 111, 108, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 86, 92, 76, 105, 98, 114,
				97, 114, 121, 92, 80, 97, 99, 107, 97, 103,
				101, 67, 97, 99, 104, 101, 92, 99, 111, 109,
				46, 117, 110, 105, 116, 121, 46, 120, 114, 46,
				99, 111, 114, 101, 45, 117, 116, 105, 108, 115,
				64, 50, 46, 51, 46, 48, 92, 82, 117, 110,
				116, 105, 109, 101, 92, 67, 111, 108, 108, 101,
				99, 116, 105, 111, 110, 115, 92, 72, 97, 115,
				104, 83, 101, 116, 76, 105, 115, 116, 46, 99,
				115, 0, 0, 0, 1, 0, 0, 0, 87, 92,
				76, 105, 98, 114, 97, 114, 121, 92, 80, 97,
				99, 107, 97, 103, 101, 67, 97, 99, 104, 101,
				92, 99, 111, 109, 46, 117, 110, 105, 116, 121,
				46, 120, 114, 46, 99, 111, 114, 101, 45, 117,
				116, 105, 108, 115, 64, 50, 46, 51, 46, 48,
				92, 82, 117, 110, 116, 105, 109, 101, 92, 67,
				111, 108, 108, 101, 99, 116, 105, 111, 110, 115,
				92, 82, 101, 97, 100, 79, 110, 108, 121, 76,
				105, 115, 116, 46, 99, 115, 0, 0, 0, 2,
				0, 0, 0, 97, 92, 76, 105, 98, 114, 97,
				114, 121, 92, 80, 97, 99, 107, 97, 103, 101,
				67, 97, 99, 104, 101, 92, 99, 111, 109, 46,
				117, 110, 105, 116, 121, 46, 120, 114, 46, 99,
				111, 114, 101, 45, 117, 116, 105, 108, 115, 64,
				50, 46, 51, 46, 48, 92, 82, 117, 110, 116,
				105, 109, 101, 92, 67, 111, 108, 108, 101, 99,
				116, 105, 111, 110, 115, 92, 83, 101, 114, 105,
				97, 108, 105, 122, 97, 98, 108, 101, 68, 105,
				99, 116, 105, 111, 110, 97, 114, 121, 46, 99,
				115, 0, 0, 0, 2, 0, 0, 0, 77, 92,
				76, 105, 98, 114, 97, 114, 121, 92, 80, 97,
				99, 107, 97, 103, 101, 67, 97, 99, 104, 101,
				92, 99, 111, 109, 46, 117, 110, 105, 116, 121,
				46, 120, 114, 46, 99, 111, 114, 101, 45, 117,
				116, 105, 108, 115, 64, 50, 46, 51, 46, 48,
				92, 82, 117, 110, 116, 105, 109, 101, 92, 67,
				111, 109, 112, 111, 110, 101, 110, 116, 85, 116,
				105, 108, 115, 46, 99, 115, 0, 0, 0, 1,
				0, 0, 0, 89, 92, 76, 105, 98, 114, 97,
				114, 121, 92, 80, 97, 99, 107, 97, 103, 101,
				67, 97, 99, 104, 101, 92, 99, 111, 109, 46,
				117, 110, 105, 116, 121, 46, 120, 114, 46, 99,
				111, 114, 101, 45, 117, 116, 105, 108, 115, 64,
				50, 46, 51, 46, 48, 92, 82, 117, 110, 116,
				105, 109, 101, 92, 68, 97, 116, 117, 109, 115,
				92, 65, 110, 105, 109, 97, 116, 105, 111, 110,
				67, 117, 114, 118, 101, 68, 97, 116, 117, 109,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				97, 92, 76, 105, 98, 114, 97, 114, 121, 92,
				80, 97, 99, 107, 97, 103, 101, 67, 97, 99,
				104, 101, 92, 99, 111, 109, 46, 117, 110, 105,
				116, 121, 46, 120, 114, 46, 99, 111, 114, 101,
				45, 117, 116, 105, 108, 115, 64, 50, 46, 51,
				46, 48, 92, 82, 117, 110, 116, 105, 109, 101,
				92, 68, 97, 116, 117, 109, 115, 92, 65, 110,
				105, 109, 97, 116, 105, 111, 110, 67, 117, 114,
				118, 101, 68, 97, 116, 117, 109, 80, 114, 111,
				112, 101, 114, 116, 121, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 75, 92, 76, 105, 98,
				114, 97, 114, 121, 92, 80, 97, 99, 107, 97,
				103, 101, 67, 97, 99, 104, 101, 92, 99, 111,
				109, 46, 117, 110, 105, 116, 121, 46, 120, 114,
				46, 99, 111, 114, 101, 45, 117, 116, 105, 108,
				115, 64, 50, 46, 51, 46, 48, 92, 82, 117,
				110, 116, 105, 109, 101, 92, 68, 97, 116, 117,
				109, 115, 92, 68, 97, 116, 117, 109, 46, 99,
				115, 0, 0, 0, 1, 0, 0, 0, 83, 92,
				76, 105, 98, 114, 97, 114, 121, 92, 80, 97,
				99, 107, 97, 103, 101, 67, 97, 99, 104, 101,
				92, 99, 111, 109, 46, 117, 110, 105, 116, 121,
				46, 120, 114, 46, 99, 111, 114, 101, 45, 117,
				116, 105, 108, 115, 64, 50, 46, 51, 46, 48,
				92, 82, 117, 110, 116, 105, 109, 101, 92, 68,
				97, 116, 117, 109, 115, 92, 68, 97, 116, 117,
				109, 80, 114, 111, 112, 101, 114, 116, 121, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 80,
				92, 76, 105, 98, 114, 97, 114, 121, 92, 80,
				97, 99, 107, 97, 103, 101, 67, 97, 99, 104,
				101, 92, 99, 111, 109, 46, 117, 110, 105, 116,
				121, 46, 120, 114, 46, 99, 111, 114, 101, 45,
				117, 116, 105, 108, 115, 64, 50, 46, 51, 46,
				48, 92, 82, 117, 110, 116, 105, 109, 101, 92,
				68, 97, 116, 117, 109, 115, 92, 70, 108, 111,
				97, 116, 68, 97, 116, 117, 109, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 88, 92, 76,
				105, 98, 114, 97, 114, 121, 92, 80, 97, 99,
				107, 97, 103, 101, 67, 97, 99, 104, 101, 92,
				99, 111, 109, 46, 117, 110, 105, 116, 121, 46,
				120, 114, 46, 99, 111, 114, 101, 45, 117, 116,
				105, 108, 115, 64, 50, 46, 51, 46, 48, 92,
				82, 117, 110, 116, 105, 109, 101, 92, 68, 97,
				116, 117, 109, 115, 92, 70, 108, 111, 97, 116,
				68, 97, 116, 117, 109, 80, 114, 111, 112, 101,
				114, 116, 121, 46, 99, 115, 0, 0, 0, 1,
				0, 0, 0, 78, 92, 76, 105, 98, 114, 97,
				114, 121, 92, 80, 97, 99, 107, 97, 103, 101,
				67, 97, 99, 104, 101, 92, 99, 111, 109, 46,
				117, 110, 105, 116, 121, 46, 120, 114, 46, 99,
				111, 114, 101, 45, 117, 116, 105, 108, 115, 64,
				50, 46, 51, 46, 48, 92, 82, 117, 110, 116,
				105, 109, 101, 92, 68, 97, 116, 117, 109, 115,
				92, 73, 110, 116, 68, 97, 116, 117, 109, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 86,
				92, 76, 105, 98, 114, 97, 114, 121, 92, 80,
				97, 99, 107, 97, 103, 101, 67, 97, 99, 104,
				101, 92, 99, 111, 109, 46, 117, 110, 105, 116,
				121, 46, 120, 114, 46, 99, 111, 114, 101, 45,
				117, 116, 105, 108, 115, 64, 50, 46, 51, 46,
				48, 92, 82, 117, 110, 116, 105, 109, 101, 92,
				68, 97, 116, 117, 109, 115, 92, 73, 110, 116,
				68, 97, 116, 117, 109, 80, 114, 111, 112, 101,
				114, 116, 121, 46, 99, 115, 0, 0, 0, 1,
				0, 0, 0, 81, 92, 76, 105, 98, 114, 97,
				114, 121, 92, 80, 97, 99, 107, 97, 103, 101,
				67, 97, 99, 104, 101, 92, 99, 111, 109, 46,
				117, 110, 105, 116, 121, 46, 120, 114, 46, 99,
				111, 114, 101, 45, 117, 116, 105, 108, 115, 64,
				50, 46, 51, 46, 48, 92, 82, 117, 110, 116,
				105, 109, 101, 92, 68, 97, 116, 117, 109, 115,
				92, 83, 116, 114, 105, 110, 103, 68, 97, 116,
				117, 109, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 89, 92, 76, 105, 98, 114, 97, 114,
				121, 92, 80, 97, 99, 107, 97, 103, 101, 67,
				97, 99, 104, 101, 92, 99, 111, 109, 46, 117,
				110, 105, 116, 121, 46, 120, 114, 46, 99, 111,
				114, 101, 45, 117, 116, 105, 108, 115, 64, 50,
				46, 51, 46, 48, 92, 82, 117, 110, 116, 105,
				109, 101, 92, 68, 97, 116, 117, 109, 115, 92,
				83, 116, 114, 105, 110, 103, 68, 97, 116, 117,
				109, 80, 114, 111, 112, 101, 114, 116, 121, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 73,
				92, 76, 105, 98, 114, 97, 114, 121, 92, 80,
				97, 99, 107, 97, 103, 101, 67, 97, 99, 104,
				101, 92, 99, 111, 109, 46, 117, 110, 105, 116,
				121, 46, 120, 114, 46, 99, 111, 114, 101, 45,
				117, 116, 105, 108, 115, 64, 50, 46, 51, 46,
				48, 92, 82, 117, 110, 116, 105, 109, 101, 92,
				69, 110, 117, 109, 86, 97, 108, 117, 101, 115,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				90, 92, 76, 105, 98, 114, 97, 114, 121, 92,
				80, 97, 99, 107, 97, 103, 101, 67, 97, 99,
				104, 101, 92, 99, 111, 109, 46, 117, 110, 105,
				116, 121, 46, 120, 114, 46, 99, 111, 114, 101,
				45, 117, 116, 105, 108, 115, 64, 50, 46, 51,
				46, 48, 92, 82, 117, 110, 116, 105, 109, 101,
				92, 69, 120, 116, 101, 110, 115, 105, 111, 110,
				115, 92, 66, 111, 117, 110, 100, 115, 69, 120,
				116, 101, 110, 115, 105, 111, 110, 115, 46, 99,
				115, 0, 0, 0, 1, 0, 0, 0, 90, 92,
				76, 105, 98, 114, 97, 114, 121, 92, 80, 97,
				99, 107, 97, 103, 101, 67, 97, 99, 104, 101,
				92, 99, 111, 109, 46, 117, 110, 105, 116, 121,
				46, 120, 114, 46, 99, 111, 114, 101, 45, 117,
				116, 105, 108, 115, 64, 50, 46, 51, 46, 48,
				92, 82, 117, 110, 116, 105, 109, 101, 92, 69,
				120, 116, 101, 110, 115, 105, 111, 110, 115, 92,
				67, 97, 109, 101, 114, 97, 69, 120, 116, 101,
				110, 115, 105, 111, 110, 115, 46, 99, 115, 0,
				0, 0, 1, 0, 0, 0, 94, 92, 76, 105,
				98, 114, 97, 114, 121, 92, 80, 97, 99, 107,
				97, 103, 101, 67, 97, 99, 104, 101, 92, 99,
				111, 109, 46, 117, 110, 105, 116, 121, 46, 120,
				114, 46, 99, 111, 114, 101, 45, 117, 116, 105,
				108, 115, 64, 50, 46, 51, 46, 48, 92, 82,
				117, 110, 116, 105, 109, 101, 92, 69, 120, 116,
				101, 110, 115, 105, 111, 110, 115, 92, 67, 111,
				108, 108, 101, 99, 116, 105, 111, 110, 69, 120,
				116, 101, 110, 115, 105, 111, 110, 115, 46, 99,
				115, 0, 0, 0, 1, 0, 0, 0, 94, 92,
				76, 105, 98, 114, 97, 114, 121, 92, 80, 97,
				99, 107, 97, 103, 101, 67, 97, 99, 104, 101,
				92, 99, 111, 109, 46, 117, 110, 105, 116, 121,
				46, 120, 114, 46, 99, 111, 114, 101, 45, 117,
				116, 105, 108, 115, 64, 50, 46, 51, 46, 48,
				92, 82, 117, 110, 116, 105, 109, 101, 92, 69,
				120, 116, 101, 110, 115, 105, 111, 110, 115, 92,
				68, 105, 99, 116, 105, 111, 110, 97, 114, 121,
				69, 120, 116, 101, 110, 115, 105, 111, 110, 115,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				94, 92, 76, 105, 98, 114, 97, 114, 121, 92,
				80, 97, 99, 107, 97, 103, 101, 67, 97, 99,
				104, 101, 92, 99, 111, 109, 46, 117, 110, 105,
				116, 121, 46, 120, 114, 46, 99, 111, 114, 101,
				45, 117, 116, 105, 108, 115, 64, 50, 46, 51,
				46, 48, 92, 82, 117, 110, 116, 105, 109, 101,
				92, 69, 120, 116, 101, 110, 115, 105, 111, 110,
				115, 92, 71, 97, 109, 101, 79, 98, 106, 101,
				99, 116, 69, 120, 116, 101, 110, 115, 105, 111,
				110, 115, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 88, 92, 76, 105, 98, 114, 97, 114,
				121, 92, 80, 97, 99, 107, 97, 103, 101, 67,
				97, 99, 104, 101, 92, 99, 111, 109, 46, 117,
				110, 105, 116, 121, 46, 120, 114, 46, 99, 111,
				114, 101, 45, 117, 116, 105, 108, 115, 64, 50,
				46, 51, 46, 48, 92, 82, 117, 110, 116, 105,
				109, 101, 92, 69, 120, 116, 101, 110, 115, 105,
				111, 110, 115, 92, 71, 117, 105, 100, 69, 120,
				116, 101, 110, 115, 105, 111, 110, 115, 46, 99,
				115, 0, 0, 0, 1, 0, 0, 0, 91, 92,
				76, 105, 98, 114, 97, 114, 121, 92, 80, 97,
				99, 107, 97, 103, 101, 67, 97, 99, 104, 101,
				92, 99, 111, 109, 46, 117, 110, 105, 116, 121,
				46, 120, 114, 46, 99, 111, 114, 101, 45, 117,
				116, 105, 108, 115, 64, 50, 46, 51, 46, 48,
				92, 82, 117, 110, 116, 105, 109, 101, 92, 69,
				120, 116, 101, 110, 115, 105, 111, 110, 115, 92,
				72, 97, 115, 104, 83, 101, 116, 69, 120, 116,
				101, 110, 115, 105, 111, 110, 115, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 93, 92, 76,
				105, 98, 114, 97, 114, 121, 92, 80, 97, 99,
				107, 97, 103, 101, 67, 97, 99, 104, 101, 92,
				99, 111, 109, 46, 117, 110, 105, 116, 121, 46,
				120, 114, 46, 99, 111, 114, 101, 45, 117, 116,
				105, 108, 115, 64, 50, 46, 51, 46, 48, 92,
				82, 117, 110, 116, 105, 109, 101, 92, 69, 120,
				116, 101, 110, 115, 105, 111, 110, 115, 92, 76,
				97, 121, 101, 114, 77, 97, 115, 107, 69, 120,
				116, 101, 110, 115, 105, 111, 110, 115, 46, 99,
				115, 0, 0, 0, 1, 0, 0, 0, 88, 92,
				76, 105, 98, 114, 97, 114, 121, 92, 80, 97,
				99, 107, 97, 103, 101, 67, 97, 99, 104, 101,
				92, 99, 111, 109, 46, 117, 110, 105, 116, 121,
				46, 120, 114, 46, 99, 111, 114, 101, 45, 117,
				116, 105, 108, 115, 64, 50, 46, 51, 46, 48,
				92, 82, 117, 110, 116, 105, 109, 101, 92, 69,
				120, 116, 101, 110, 115, 105, 111, 110, 115, 92,
				76, 105, 115, 116, 69, 120, 116, 101, 110, 115,
				105, 111, 110, 115, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 97, 92, 76, 105, 98, 114,
				97, 114, 121, 92, 80, 97, 99, 107, 97, 103,
				101, 67, 97, 99, 104, 101, 92, 99, 111, 109,
				46, 117, 110, 105, 116, 121, 46, 120, 114, 46,
				99, 111, 114, 101, 45, 117, 116, 105, 108, 115,
				64, 50, 46, 51, 46, 48, 92, 82, 117, 110,
				116, 105, 109, 101, 92, 69, 120, 116, 101, 110,
				115, 105, 111, 110, 115, 92, 77, 111, 110, 111,
				66, 101, 104, 97, 118, 105, 111, 117, 114, 69,
				120, 116, 101, 110, 115, 105, 111, 110, 115, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 88,
				92, 76, 105, 98, 114, 97, 114, 121, 92, 80,
				97, 99, 107, 97, 103, 101, 67, 97, 99, 104,
				101, 92, 99, 111, 109, 46, 117, 110, 105, 116,
				121, 46, 120, 114, 46, 99, 111, 114, 101, 45,
				117, 116, 105, 108, 115, 64, 50, 46, 51, 46,
				48, 92, 82, 117, 110, 116, 105, 109, 101, 92,
				69, 120, 116, 101, 110, 115, 105, 111, 110, 115,
				92, 80, 111, 115, 101, 69, 120, 116, 101, 110,
				115, 105, 111, 110, 115, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 94, 92, 76, 105, 98,
				114, 97, 114, 121, 92, 80, 97, 99, 107, 97,
				103, 101, 67, 97, 99, 104, 101, 92, 99, 111,
				109, 46, 117, 110, 105, 116, 121, 46, 120, 114,
				46, 99, 111, 114, 101, 45, 117, 116, 105, 108,
				115, 64, 50, 46, 51, 46, 48, 92, 82, 117,
				110, 116, 105, 109, 101, 92, 69, 120, 116, 101,
				110, 115, 105, 111, 110, 115, 92, 81, 117, 97,
				116, 101, 114, 110, 105, 111, 110, 69, 120, 116,
				101, 110, 115, 105, 111, 110, 115, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 93, 92, 76,
				105, 98, 114, 97, 114, 121, 92, 80, 97, 99,
				107, 97, 103, 101, 67, 97, 99, 104, 101, 92,
				99, 111, 109, 46, 117, 110, 105, 116, 121, 46,
				120, 114, 46, 99, 111, 114, 101, 45, 117, 116,
				105, 108, 115, 64, 50, 46, 51, 46, 48, 92,
				82, 117, 110, 116, 105, 109, 101, 92, 69, 120,
				116, 101, 110, 115, 105, 111, 110, 115, 92, 83,
				116, 111, 112, 119, 97, 116, 99, 104, 69, 120,
				116, 101, 110, 115, 105, 111, 110, 115, 46, 99,
				115, 0, 0, 0, 1, 0, 0, 0, 90, 92,
				76, 105, 98, 114, 97, 114, 121, 92, 80, 97,
				99, 107, 97, 103, 101, 67, 97, 99, 104, 101,
				92, 99, 111, 109, 46, 117, 110, 105, 116, 121,
				46, 120, 114, 46, 99, 111, 114, 101, 45, 117,
				116, 105, 108, 115, 64, 50, 46, 51, 46, 48,
				92, 82, 117, 110, 116, 105, 109, 101, 92, 69,
				120, 116, 101, 110, 115, 105, 111, 110, 115, 92,
				83, 116, 114, 105, 110, 103, 69, 120, 116, 101,
				110, 115, 105, 111, 110, 115, 46, 99, 115, 0,
				0, 0, 1, 0, 0, 0, 93, 92, 76, 105,
				98, 114, 97, 114, 121, 92, 80, 97, 99, 107,
				97, 103, 101, 67, 97, 99, 104, 101, 92, 99,
				111, 109, 46, 117, 110, 105, 116, 121, 46, 120,
				114, 46, 99, 111, 114, 101, 45, 117, 116, 105,
				108, 115, 64, 50, 46, 51, 46, 48, 92, 82,
				117, 110, 116, 105, 109, 101, 92, 69, 120, 116,
				101, 110, 115, 105, 111, 110, 115, 92, 84, 114,
				97, 110, 115, 102, 111, 114, 109, 69, 120, 116,
				101, 110, 115, 105, 111, 110, 115, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 88, 92, 76,
				105, 98, 114, 97, 114, 121, 92, 80, 97, 99,
				107, 97, 103, 101, 67, 97, 99, 104, 101, 92,
				99, 111, 109, 46, 117, 110, 105, 116, 121, 46,
				120, 114, 46, 99, 111, 114, 101, 45, 117, 116,
				105, 108, 115, 64, 50, 46, 51, 46, 48, 92,
				82, 117, 110, 116, 105, 109, 101, 92, 69, 120,
				116, 101, 110, 115, 105, 111, 110, 115, 92, 84,
				121, 112, 101, 69, 120, 116, 101, 110, 115, 105,
				111, 110, 115, 46, 99, 115, 0, 0, 0, 9,
				0, 0, 0, 94, 92, 76, 105, 98, 114, 97,
				114, 121, 92, 80, 97, 99, 107, 97, 103, 101,
				67, 97, 99, 104, 101, 92, 99, 111, 109, 46,
				117, 110, 105, 116, 121, 46, 120, 114, 46, 99,
				111, 114, 101, 45, 117, 116, 105, 108, 115, 64,
				50, 46, 51, 46, 48, 92, 82, 117, 110, 116,
				105, 109, 101, 92, 69, 120, 116, 101, 110, 115,
				105, 111, 110, 115, 92, 85, 110, 105, 116, 121,
				69, 118, 101, 110, 116, 69, 120, 116, 101, 110,
				115, 105, 111, 110, 115, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 91, 92, 76, 105, 98,
				114, 97, 114, 121, 92, 80, 97, 99, 107, 97,
				103, 101, 67, 97, 99, 104, 101, 92, 99, 111,
				109, 46, 117, 110, 105, 116, 121, 46, 120, 114,
				46, 99, 111, 114, 101, 45, 117, 116, 105, 108,
				115, 64, 50, 46, 51, 46, 48, 92, 82, 117,
				110, 116, 105, 109, 101, 92, 69, 120, 116, 101,
				110, 115, 105, 111, 110, 115, 92, 86, 101, 99,
				116, 111, 114, 50, 69, 120, 116, 101, 110, 115,
				105, 111, 110, 115, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 91, 92, 76, 105, 98, 114,
				97, 114, 121, 92, 80, 97, 99, 107, 97, 103,
				101, 67, 97, 99, 104, 101, 92, 99, 111, 109,
				46, 117, 110, 105, 116, 121, 46, 120, 114, 46,
				99, 111, 114, 101, 45, 117, 116, 105, 108, 115,
				64, 50, 46, 51, 46, 48, 92, 82, 117, 110,
				116, 105, 109, 101, 92, 69, 120, 116, 101, 110,
				115, 105, 111, 110, 115, 92, 86, 101, 99, 116,
				111, 114, 51, 69, 120, 116, 101, 110, 115, 105,
				111, 110, 115, 46, 99, 115, 0, 0, 0, 1,
				0, 0, 0, 78, 92, 76, 105, 98, 114, 97,
				114, 121, 92, 80, 97, 99, 107, 97, 103, 101,
				67, 97, 99, 104, 101, 92, 99, 111, 109, 46,
				117, 110, 105, 116, 121, 46, 120, 114, 46, 99,
				111, 114, 101, 45, 117, 116, 105, 108, 115, 64,
				50, 46, 51, 46, 48, 92, 82, 117, 110, 116,
				105, 109, 101, 92, 71, 97, 109, 101, 79, 98,
				106, 101, 99, 116, 85, 116, 105, 108, 115, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 76,
				92, 76, 105, 98, 114, 97, 114, 121, 92, 80,
				97, 99, 107, 97, 103, 101, 67, 97, 99, 104,
				101, 92, 99, 111, 109, 46, 117, 110, 105, 116,
				121, 46, 120, 114, 46, 99, 111, 114, 101, 45,
				117, 116, 105, 108, 115, 64, 50, 46, 51, 46,
				48, 92, 82, 117, 110, 116, 105, 109, 101, 92,
				71, 101, 111, 109, 101, 116, 114, 121, 85, 116,
				105, 108, 115, 46, 99, 115, 0, 0, 0, 1,
				0, 0, 0, 71, 92, 76, 105, 98, 114, 97,
				114, 121, 92, 80, 97, 99, 107, 97, 103, 101,
				67, 97, 99, 104, 101, 92, 99, 111, 109, 46,
				117, 110, 105, 116, 121, 46, 120, 114, 46, 99,
				111, 114, 101, 45, 117, 116, 105, 108, 115, 64,
				50, 46, 51, 46, 48, 92, 82, 117, 110, 116,
				105, 109, 101, 92, 71, 117, 105, 100, 85, 116,
				105, 108, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 75, 92, 76, 105, 98, 114, 97, 114,
				121, 92, 80, 97, 99, 107, 97, 103, 101, 67,
				97, 99, 104, 101, 92, 99, 111, 109, 46, 117,
				110, 105, 116, 121, 46, 120, 114, 46, 99, 111,
				114, 101, 45, 117, 116, 105, 108, 115, 64, 50,
				46, 51, 46, 48, 92, 82, 117, 110, 116, 105,
				109, 101, 92, 72, 97, 115, 104, 67, 111, 100,
				101, 85, 116, 105, 108, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 76, 92, 76, 105, 98,
				114, 97, 114, 121, 92, 80, 97, 99, 107, 97,
				103, 101, 67, 97, 99, 104, 101, 92, 99, 111,
				109, 46, 117, 110, 105, 116, 121, 46, 120, 114,
				46, 99, 111, 114, 101, 45, 117, 116, 105, 108,
				115, 64, 50, 46, 51, 46, 48, 92, 82, 117,
				110, 116, 105, 109, 101, 92, 77, 97, 116, 101,
				114, 105, 97, 108, 85, 116, 105, 108, 115, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 74,
				92, 76, 105, 98, 114, 97, 114, 121, 92, 80,
				97, 99, 107, 97, 103, 101, 67, 97, 99, 104,
				101, 92, 99, 111, 109, 46, 117, 110, 105, 116,
				121, 46, 120, 114, 46, 99, 111, 114, 101, 45,
				117, 116, 105, 108, 115, 64, 50, 46, 51, 46,
				48, 92, 82, 117, 110, 116, 105, 109, 101, 92,
				77, 97, 116, 104, 85, 116, 105, 108, 105, 116,
				121, 46, 99, 115, 0, 0, 0, 1, 0, 0,
				0, 79, 92, 76, 105, 98, 114, 97, 114, 121,
				92, 80, 97, 99, 107, 97, 103, 101, 67, 97,
				99, 104, 101, 92, 99, 111, 109, 46, 117, 110,
				105, 116, 121, 46, 120, 114, 46, 99, 111, 114,
				101, 45, 117, 116, 105, 108, 115, 64, 50, 46,
				51, 46, 48, 92, 82, 117, 110, 116, 105, 109,
				101, 92, 78, 97, 116, 105, 118, 101, 65, 114,
				114, 97, 121, 85, 116, 105, 108, 115, 46, 99,
				115, 0, 0, 0, 1, 0, 0, 0, 73, 92,
				76, 105, 98, 114, 97, 114, 121, 92, 80, 97,
				99, 107, 97, 103, 101, 67, 97, 99, 104, 101,
				92, 99, 111, 109, 46, 117, 110, 105, 116, 121,
				46, 120, 114, 46, 99, 111, 114, 101, 45, 117,
				116, 105, 108, 115, 64, 50, 46, 51, 46, 48,
				92, 82, 117, 110, 116, 105, 109, 101, 92, 79,
				98, 106, 101, 99, 116, 80, 111, 111, 108, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 80,
				92, 76, 105, 98, 114, 97, 114, 121, 92, 80,
				97, 99, 107, 97, 103, 101, 67, 97, 99, 104,
				101, 92, 99, 111, 109, 46, 117, 110, 105, 116,
				121, 46, 120, 114, 46, 99, 111, 114, 101, 45,
				117, 116, 105, 108, 115, 64, 50, 46, 51, 46,
				48, 92, 82, 117, 110, 116, 105, 109, 101, 92,
				79, 110, 68, 101, 115, 116, 114, 111, 121, 78,
				111, 116, 105, 102, 105, 101, 114, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 78, 92, 76,
				105, 98, 114, 97, 114, 121, 92, 80, 97, 99,
				107, 97, 103, 101, 67, 97, 99, 104, 101, 92,
				99, 111, 109, 46, 117, 110, 105, 116, 121, 46,
				120, 114, 46, 99, 111, 114, 101, 45, 117, 116,
				105, 108, 115, 64, 50, 46, 51, 46, 48, 92,
				82, 117, 110, 116, 105, 109, 101, 92, 82, 101,
				102, 108, 101, 99, 116, 105, 111, 110, 85, 116,
				105, 108, 115, 46, 99, 115, 0, 0, 0, 1,
				0, 0, 0, 81, 92, 76, 105, 98, 114, 97,
				114, 121, 92, 80, 97, 99, 107, 97, 103, 101,
				67, 97, 99, 104, 101, 92, 99, 111, 109, 46,
				117, 110, 105, 116, 121, 46, 120, 114, 46, 99,
				111, 114, 101, 45, 117, 116, 105, 108, 115, 64,
				50, 46, 51, 46, 48, 92, 82, 117, 110, 116,
				105, 109, 101, 92, 83, 99, 114, 105, 112, 116,
				97, 98, 108, 101, 83, 101, 116, 116, 105, 110,
				103, 115, 46, 99, 115, 0, 0, 0, 2, 0,
				0, 0, 85, 92, 76, 105, 98, 114, 97, 114,
				121, 92, 80, 97, 99, 107, 97, 103, 101, 67,
				97, 99, 104, 101, 92, 99, 111, 109, 46, 117,
				110, 105, 116, 121, 46, 120, 114, 46, 99, 111,
				114, 101, 45, 117, 116, 105, 108, 115, 64, 50,
				46, 51, 46, 48, 92, 82, 117, 110, 116, 105,
				109, 101, 92, 83, 99, 114, 105, 112, 116, 97,
				98, 108, 101, 83, 101, 116, 116, 105, 110, 103,
				115, 66, 97, 115, 101, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 79, 92, 76, 105, 98,
				114, 97, 114, 121, 92, 80, 97, 99, 107, 97,
				103, 101, 67, 97, 99, 104, 101, 92, 99, 111,
				109, 46, 117, 110, 105, 116, 121, 46, 120, 114,
				46, 99, 111, 114, 101, 45, 117, 116, 105, 108,
				115, 64, 50, 46, 51, 46, 48, 92, 82, 117,
				110, 116, 105, 109, 101, 92, 83, 101, 114, 105,
				97, 108, 105, 122, 97, 98, 108, 101, 71, 117,
				105, 100, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 83, 92, 76, 105, 98, 114, 97, 114,
				121, 92, 80, 97, 99, 107, 97, 103, 101, 67,
				97, 99, 104, 101, 92, 99, 111, 109, 46, 117,
				110, 105, 116, 121, 46, 120, 114, 46, 99, 111,
				114, 101, 45, 117, 116, 105, 108, 115, 64, 50,
				46, 51, 46, 48, 92, 82, 117, 110, 116, 105,
				109, 101, 92, 83, 101, 114, 105, 97, 108, 105,
				122, 97, 98, 108, 101, 71, 117, 105, 100, 85,
				116, 105, 108, 46, 99, 115, 0, 0, 0, 1,
				0, 0, 0, 75, 92, 76, 105, 98, 114, 97,
				114, 121, 92, 80, 97, 99, 107, 97, 103, 101,
				67, 97, 99, 104, 101, 92, 99, 111, 109, 46,
				117, 110, 105, 116, 121, 46, 120, 114, 46, 99,
				111, 114, 101, 45, 117, 116, 105, 108, 115, 64,
				50, 46, 51, 46, 48, 92, 82, 117, 110, 116,
				105, 109, 101, 92, 84, 101, 120, 116, 117, 114,
				101, 85, 116, 105, 108, 115, 46, 99, 115, 0,
				0, 0, 1, 0, 0, 0, 72, 92, 76, 105,
				98, 114, 97, 114, 121, 92, 80, 97, 99, 107,
				97, 103, 101, 67, 97, 99, 104, 101, 92, 99,
				111, 109, 46, 117, 110, 105, 116, 121, 46, 120,
				114, 46, 99, 111, 114, 101, 45, 117, 116, 105,
				108, 115, 64, 50, 46, 51, 46, 48, 92, 82,
				117, 110, 116, 105, 109, 101, 92, 85, 110, 100,
				111, 66, 108, 111, 99, 107, 46, 99, 115, 0,
				0, 0, 1, 0, 0, 0, 79, 92, 76, 105,
				98, 114, 97, 114, 121, 92, 80, 97, 99, 107,
				97, 103, 101, 67, 97, 99, 104, 101, 92, 99,
				111, 109, 46, 117, 110, 105, 116, 121, 46, 120,
				114, 46, 99, 111, 114, 101, 45, 117, 116, 105,
				108, 115, 64, 50, 46, 51, 46, 48, 92, 82,
				117, 110, 116, 105, 109, 101, 92, 85, 110, 105,
				116, 121, 79, 98, 106, 101, 99, 116, 85, 116,
				105, 108, 115, 46, 99, 115, 0, 0, 0, 1,
				0, 0, 0, 77, 92, 76, 105, 98, 114, 97,
				114, 121, 92, 80, 97, 99, 107, 97, 103, 101,
				67, 97, 99, 104, 101, 92, 99, 111, 109, 46,
				117, 110, 105, 116, 121, 46, 120, 114, 46, 99,
				111, 114, 101, 45, 117, 116, 105, 108, 115, 64,
				50, 46, 51, 46, 48, 92, 82, 117, 110, 116,
				105, 109, 101, 92, 88, 82, 76, 111, 103, 103,
				105, 110, 103, 85, 116, 105, 108, 115, 46, 99,
				115, 0, 0, 0, 1, 0, 0, 0, 71, 92,
				76, 105, 98, 114, 97, 114, 121, 92, 80, 97,
				99, 107, 97, 103, 101, 67, 97, 99, 104, 101,
				92, 99, 111, 109, 46, 117, 110, 105, 116, 121,
				46, 120, 114, 46, 99, 111, 114, 101, 45, 117,
				116, 105, 108, 115, 64, 50, 46, 51, 46, 48,
				92, 82, 117, 110, 116, 105, 109, 101, 92, 88,
				82, 79, 114, 105, 103, 105, 110, 46, 99, 115
			},
			TypesData = new byte[3950]
			{
				0, 0, 0, 0, 62, 85, 110, 105, 116, 121,
				46, 88, 82, 46, 67, 111, 114, 101, 85, 116,
				105, 108, 115, 124, 65, 82, 84, 114, 97, 99,
				107, 97, 98, 108, 101, 115, 80, 97, 114, 101,
				110, 116, 84, 114, 97, 110, 115, 102, 111, 114,
				109, 67, 104, 97, 110, 103, 101, 100, 69, 118,
				101, 110, 116, 65, 114, 103, 115, 0, 0, 0,
				0, 43, 85, 110, 105, 116, 121, 46, 88, 82,
				46, 67, 111, 114, 101, 85, 116, 105, 108, 115,
				46, 71, 85, 73, 124, 69, 110, 117, 109, 68,
				105, 115, 112, 108, 97, 121, 65, 116, 116, 114,
				105, 98, 117, 116, 101, 0, 0, 0, 0, 45,
				85, 110, 105, 116, 121, 46, 88, 82, 46, 67,
				111, 114, 101, 85, 116, 105, 108, 115, 46, 71,
				85, 73, 124, 70, 108, 97, 103, 115, 80, 114,
				111, 112, 101, 114, 116, 121, 65, 116, 116, 114,
				105, 98, 117, 116, 101, 0, 0, 0, 0, 36,
				85, 110, 105, 116, 121, 46, 88, 82, 46, 67,
				111, 114, 101, 85, 116, 105, 108, 115, 124, 82,
				101, 97, 100, 79, 110, 108, 121, 65, 116, 116,
				114, 105, 98, 117, 116, 101, 0, 0, 0, 0,
				50, 85, 110, 105, 116, 121, 46, 88, 82, 46,
				67, 111, 114, 101, 85, 116, 105, 108, 115, 124,
				83, 99, 114, 105, 112, 116, 97, 98, 108, 101,
				83, 101, 116, 116, 105, 110, 103, 115, 80, 97,
				116, 104, 65, 116, 116, 114, 105, 98, 117, 116,
				101, 0, 0, 0, 0, 41, 85, 110, 105, 116,
				121, 46, 88, 82, 46, 67, 111, 114, 101, 85,
				116, 105, 108, 115, 46, 66, 105, 110, 100, 105,
				110, 103, 115, 124, 66, 105, 110, 100, 105, 110,
				103, 115, 71, 114, 111, 117, 112, 0, 0, 0,
				0, 40, 85, 110, 105, 116, 121, 46, 88, 82,
				46, 67, 111, 114, 101, 85, 116, 105, 108, 115,
				46, 66, 105, 110, 100, 105, 110, 103, 115, 124,
				69, 118, 101, 110, 116, 66, 105, 110, 100, 105,
				110, 103, 0, 0, 0, 0, 41, 85, 110, 105,
				116, 121, 46, 88, 82, 46, 67, 111, 114, 101,
				85, 116, 105, 108, 115, 46, 66, 105, 110, 100,
				105, 110, 103, 115, 124, 73, 69, 118, 101, 110,
				116, 66, 105, 110, 100, 105, 110, 103, 0, 0,
				0, 0, 50, 85, 110, 105, 116, 121, 46, 88,
				82, 46, 67, 111, 114, 101, 85, 116, 105, 108,
				115, 46, 66, 105, 110, 100, 105, 110, 103, 115,
				46, 86, 97, 114, 105, 97, 98, 108, 101, 115,
				124, 66, 105, 110, 100, 97, 98, 108, 101, 69,
				110, 117, 109, 0, 0, 0, 0, 54, 85, 110,
				105, 116, 121, 46, 88, 82, 46, 67, 111, 114,
				101, 85, 116, 105, 108, 115, 46, 66, 105, 110,
				100, 105, 110, 103, 115, 46, 86, 97, 114, 105,
				97, 98, 108, 101, 115, 124, 66, 105, 110, 100,
				97, 98, 108, 101, 86, 97, 114, 105, 97, 98,
				108, 101, 0, 0, 0, 0, 59, 85, 110, 105,
				116, 121, 46, 88, 82, 46, 67, 111, 114, 101,
				85, 116, 105, 108, 115, 46, 66, 105, 110, 100,
				105, 110, 103, 115, 46, 86, 97, 114, 105, 97,
				98, 108, 101, 115, 124, 66, 105, 110, 100, 97,
				98, 108, 101, 86, 97, 114, 105, 97, 98, 108,
				101, 65, 108, 108, 111, 99, 0, 0, 0, 0,
				58, 85, 110, 105, 116, 121, 46, 88, 82, 46,
				67, 111, 114, 101, 85, 116, 105, 108, 115, 46,
				66, 105, 110, 100, 105, 110, 103, 115, 46, 86,
				97, 114, 105, 97, 98, 108, 101, 115, 124, 66,
				105, 110, 100, 97, 98, 108, 101, 86, 97, 114,
				105, 97, 98, 108, 101, 66, 97, 115, 101, 0,
				0, 0, 0, 67, 85, 110, 105, 116, 121, 46,
				88, 82, 46, 67, 111, 114, 101, 85, 116, 105,
				108, 115, 46, 66, 105, 110, 100, 105, 110, 103,
				115, 46, 86, 97, 114, 105, 97, 98, 108, 101,
				115, 124, 66, 105, 110, 100, 97, 98, 108, 101,
				86, 97, 114, 105, 97, 98, 108, 101, 84, 97,
				115, 107, 80, 114, 101, 100, 105, 99, 97, 116,
				101, 0, 0, 0, 0, 63, 85, 110, 105, 116,
				121, 46, 88, 82, 46, 67, 111, 114, 101, 85,
				116, 105, 108, 115, 46, 66, 105, 110, 100, 105,
				110, 103, 115, 46, 86, 97, 114, 105, 97, 98,
				108, 101, 115, 124, 66, 105, 110, 100, 97, 98,
				108, 101, 86, 97, 114, 105, 97, 98, 108, 101,
				84, 97, 115, 107, 83, 116, 97, 116, 101, 0,
				0, 0, 0, 63, 85, 110, 105, 116, 121, 46,
				88, 82, 46, 67, 111, 114, 101, 85, 116, 105,
				108, 115, 46, 66, 105, 110, 100, 105, 110, 103,
				115, 46, 86, 97, 114, 105, 97, 98, 108, 101,
				115, 124, 73, 82, 101, 97, 100, 79, 110, 108,
				121, 66, 105, 110, 100, 97, 98, 108, 101, 86,
				97, 114, 105, 97, 98, 108, 101, 0, 0, 0,
				0, 30, 85, 110, 105, 116, 121, 46, 88, 82,
				46, 67, 111, 114, 101, 85, 116, 105, 108, 115,
				124, 66, 111, 117, 110, 100, 115, 85, 116, 105,
				108, 115, 0, 0, 0, 0, 33, 85, 110, 105,
				116, 121, 46, 88, 82, 46, 67, 111, 114, 101,
				85, 116, 105, 108, 115, 124, 73, 67, 111, 109,
				112, 111, 110, 101, 110, 116, 72, 111, 115, 116,
				0, 0, 0, 0, 40, 85, 110, 105, 116, 121,
				46, 88, 82, 46, 67, 111, 114, 101, 85, 116,
				105, 108, 115, 124, 67, 97, 99, 104, 101, 100,
				67, 111, 109, 112, 111, 110, 101, 110, 116, 70,
				105, 108, 116, 101, 114, 0, 0, 0, 0, 49,
				85, 110, 105, 116, 121, 46, 88, 82, 46, 67,
				111, 114, 101, 85, 116, 105, 108, 115, 46, 67,
				97, 112, 97, 98, 105, 108, 105, 116, 105, 101,
				115, 124, 67, 97, 112, 97, 98, 105, 108, 105,
				116, 121, 80, 114, 111, 102, 105, 108, 101, 0,
				0, 0, 0, 52, 85, 110, 105, 116, 121, 46,
				88, 82, 46, 67, 111, 114, 101, 85, 116, 105,
				108, 115, 46, 67, 97, 112, 97, 98, 105, 108,
				105, 116, 105, 101, 115, 124, 67, 97, 112, 97,
				98, 105, 108, 105, 116, 121, 68, 105, 99, 116,
				105, 111, 110, 97, 114, 121, 0, 0, 0, 0,
				60, 85, 110, 105, 116, 121, 46, 88, 82, 46,
				67, 111, 114, 101, 85, 116, 105, 108, 115, 46,
				67, 97, 112, 97, 98, 105, 108, 105, 116, 105,
				101, 115, 124, 67, 117, 115, 116, 111, 109, 67,
				97, 112, 97, 98, 105, 108, 105, 116, 121, 75,
				101, 121, 65, 116, 116, 114, 105, 98, 117, 116,
				101, 0, 0, 0, 0, 51, 85, 110, 105, 116,
				121, 46, 88, 82, 46, 67, 111, 114, 101, 85,
				116, 105, 108, 115, 46, 67, 97, 112, 97, 98,
				105, 108, 105, 116, 105, 101, 115, 124, 73, 67,
				97, 112, 97, 98, 105, 108, 105, 116, 121, 77,
				111, 100, 105, 102, 105, 101, 114, 0, 0, 0,
				0, 54, 85, 110, 105, 116, 121, 46, 88, 82,
				46, 67, 111, 114, 101, 85, 116, 105, 108, 115,
				46, 67, 97, 112, 97, 98, 105, 108, 105, 116,
				105, 101, 115, 124, 83, 116, 97, 110, 100, 97,
				114, 100, 67, 97, 112, 97, 98, 105, 108, 105,
				116, 121, 75, 101, 121, 115, 0, 0, 0, 0,
				33, 85, 110, 105, 116, 121, 46, 88, 82, 46,
				67, 111, 114, 101, 85, 116, 105, 108, 115, 124,
				67, 111, 108, 108, 101, 99, 116, 105, 111, 110,
				80, 111, 111, 108, 0, 0, 0, 0, 42, 85,
				110, 105, 116, 121, 46, 88, 82, 46, 67, 111,
				114, 101, 85, 116, 105, 108, 115, 46, 67, 111,
				108, 108, 101, 99, 116, 105, 111, 110, 115, 124,
				72, 97, 115, 104, 83, 101, 116, 76, 105, 115,
				116, 0, 0, 0, 0, 43, 85, 110, 105, 116,
				121, 46, 88, 82, 46, 67, 111, 114, 101, 85,
				116, 105, 108, 115, 46, 67, 111, 108, 108, 101,
				99, 116, 105, 111, 110, 115, 124, 82, 101, 97,
				100, 79, 110, 108, 121, 76, 105, 115, 116, 0,
				0, 0, 0, 53, 85, 110, 105, 116, 121, 46,
				88, 82, 46, 67, 111, 114, 101, 85, 116, 105,
				108, 115, 46, 67, 111, 108, 108, 101, 99, 116,
				105, 111, 110, 115, 124, 83, 101, 114, 105, 97,
				108, 105, 122, 97, 98, 108, 101, 68, 105, 99,
				116, 105, 111, 110, 97, 114, 121, 0, 0, 0,
				0, 58, 85, 110, 105, 116, 121, 46, 88, 82,
				46, 67, 111, 114, 101, 85, 116, 105, 108, 115,
				46, 67, 111, 108, 108, 101, 99, 116, 105, 111,
				110, 115, 46, 83, 101, 114, 105, 97, 108, 105,
				122, 97, 98, 108, 101, 68, 105, 99, 116, 105,
				111, 110, 97, 114, 121, 124, 73, 116, 101, 109,
				1, 0, 0, 0, 33, 85, 110, 105, 116, 121,
				46, 88, 82, 46, 67, 111, 114, 101, 85, 116,
				105, 108, 115, 124, 67, 111, 109, 112, 111, 110,
				101, 110, 116, 85, 116, 105, 108, 115, 1, 0,
				0, 0, 33, 85, 110, 105, 116, 121, 46, 88,
				82, 46, 67, 111, 114, 101, 85, 116, 105, 108,
				115, 124, 67, 111, 109, 112, 111, 110, 101, 110,
				116, 85, 116, 105, 108, 115, 0, 0, 0, 0,
				45, 85, 110, 105, 116, 121, 46, 88, 82, 46,
				67, 111, 114, 101, 85, 116, 105, 108, 115, 46,
				68, 97, 116, 117, 109, 115, 124, 65, 110, 105,
				109, 97, 116, 105, 111, 110, 67, 117, 114, 118,
				101, 68, 97, 116, 117, 109, 0, 0, 0, 0,
				53, 85, 110, 105, 116, 121, 46, 88, 82, 46,
				67, 111, 114, 101, 85, 116, 105, 108, 115, 46,
				68, 97, 116, 117, 109, 115, 124, 65, 110, 105,
				109, 97, 116, 105, 111, 110, 67, 117, 114, 118,
				101, 68, 97, 116, 117, 109, 80, 114, 111, 112,
				101, 114, 116, 121, 0, 0, 0, 0, 31, 85,
				110, 105, 116, 121, 46, 88, 82, 46, 67, 111,
				114, 101, 85, 116, 105, 108, 115, 46, 68, 97,
				116, 117, 109, 115, 124, 68, 97, 116, 117, 109,
				0, 0, 0, 0, 39, 85, 110, 105, 116, 121,
				46, 88, 82, 46, 67, 111, 114, 101, 85, 116,
				105, 108, 115, 46, 68, 97, 116, 117, 109, 115,
				124, 68, 97, 116, 117, 109, 80, 114, 111, 112,
				101, 114, 116, 121, 0, 0, 0, 0, 36, 85,
				110, 105, 116, 121, 46, 88, 82, 46, 67, 111,
				114, 101, 85, 116, 105, 108, 115, 46, 68, 97,
				116, 117, 109, 115, 124, 70, 108, 111, 97, 116,
				68, 97, 116, 117, 109, 0, 0, 0, 0, 44,
				85, 110, 105, 116, 121, 46, 88, 82, 46, 67,
				111, 114, 101, 85, 116, 105, 108, 115, 46, 68,
				97, 116, 117, 109, 115, 124, 70, 108, 111, 97,
				116, 68, 97, 116, 117, 109, 80, 114, 111, 112,
				101, 114, 116, 121, 0, 0, 0, 0, 34, 85,
				110, 105, 116, 121, 46, 88, 82, 46, 67, 111,
				114, 101, 85, 116, 105, 108, 115, 46, 68, 97,
				116, 117, 109, 115, 124, 73, 110, 116, 68, 97,
				116, 117, 109, 0, 0, 0, 0, 42, 85, 110,
				105, 116, 121, 46, 88, 82, 46, 67, 111, 114,
				101, 85, 116, 105, 108, 115, 46, 68, 97, 116,
				117, 109, 115, 124, 73, 110, 116, 68, 97, 116,
				117, 109, 80, 114, 111, 112, 101, 114, 116, 121,
				0, 0, 0, 0, 37, 85, 110, 105, 116, 121,
				46, 88, 82, 46, 67, 111, 114, 101, 85, 116,
				105, 108, 115, 46, 68, 97, 116, 117, 109, 115,
				124, 83, 116, 114, 105, 110, 103, 68, 97, 116,
				117, 109, 0, 0, 0, 0, 45, 85, 110, 105,
				116, 121, 46, 88, 82, 46, 67, 111, 114, 101,
				85, 116, 105, 108, 115, 46, 68, 97, 116, 117,
				109, 115, 124, 83, 116, 114, 105, 110, 103, 68,
				97, 116, 117, 109, 80, 114, 111, 112, 101, 114,
				116, 121, 0, 0, 0, 0, 29, 85, 110, 105,
				116, 121, 46, 88, 82, 46, 67, 111, 114, 101,
				85, 116, 105, 108, 115, 124, 69, 110, 117, 109,
				86, 97, 108, 117, 101, 115, 0, 0, 0, 0,
				35, 85, 110, 105, 116, 121, 46, 88, 82, 46,
				67, 111, 114, 101, 85, 116, 105, 108, 115, 124,
				66, 111, 117, 110, 100, 115, 69, 120, 116, 101,
				110, 115, 105, 111, 110, 115, 0, 0, 0, 0,
				35, 85, 110, 105, 116, 121, 46, 88, 82, 46,
				67, 111, 114, 101, 85, 116, 105, 108, 115, 124,
				67, 97, 109, 101, 114, 97, 69, 120, 116, 101,
				110, 115, 105, 111, 110, 115, 0, 0, 0, 0,
				39, 85, 110, 105, 116, 121, 46, 88, 82, 46,
				67, 111, 114, 101, 85, 116, 105, 108, 115, 124,
				67, 111, 108, 108, 101, 99, 116, 105, 111, 110,
				69, 120, 116, 101, 110, 115, 105, 111, 110, 115,
				0, 0, 0, 0, 39, 85, 110, 105, 116, 121,
				46, 88, 82, 46, 67, 111, 114, 101, 85, 116,
				105, 108, 115, 124, 68, 105, 99, 116, 105, 111,
				110, 97, 114, 121, 69, 120, 116, 101, 110, 115,
				105, 111, 110, 115, 0, 0, 0, 0, 39, 85,
				110, 105, 116, 121, 46, 88, 82, 46, 67, 111,
				114, 101, 85, 116, 105, 108, 115, 124, 71, 97,
				109, 101, 79, 98, 106, 101, 99, 116, 69, 120,
				116, 101, 110, 115, 105, 111, 110, 115, 0, 0,
				0, 0, 33, 85, 110, 105, 116, 121, 46, 88,
				82, 46, 67, 111, 114, 101, 85, 116, 105, 108,
				115, 124, 71, 117, 105, 100, 69, 120, 116, 101,
				110, 115, 105, 111, 110, 115, 0, 0, 0, 0,
				36, 85, 110, 105, 116, 121, 46, 88, 82, 46,
				67, 111, 114, 101, 85, 116, 105, 108, 115, 124,
				72, 97, 115, 104, 83, 101, 116, 69, 120, 116,
				101, 110, 115, 105, 111, 110, 115, 0, 0, 0,
				0, 38, 85, 110, 105, 116, 121, 46, 88, 82,
				46, 67, 111, 114, 101, 85, 116, 105, 108, 115,
				124, 76, 97, 121, 101, 114, 77, 97, 115, 107,
				69, 120, 116, 101, 110, 115, 105, 111, 110, 115,
				0, 0, 0, 0, 33, 85, 110, 105, 116, 121,
				46, 88, 82, 46, 67, 111, 114, 101, 85, 116,
				105, 108, 115, 124, 76, 105, 115, 116, 69, 120,
				116, 101, 110, 115, 105, 111, 110, 115, 0, 0,
				0, 0, 42, 85, 110, 105, 116, 121, 46, 88,
				82, 46, 67, 111, 114, 101, 85, 116, 105, 108,
				115, 124, 77, 111, 110, 111, 66, 101, 104, 97,
				118, 105, 111, 117, 114, 69, 120, 116, 101, 110,
				115, 105, 111, 110, 115, 0, 0, 0, 0, 33,
				85, 110, 105, 116, 121, 46, 88, 82, 46, 67,
				111, 114, 101, 85, 116, 105, 108, 115, 124, 80,
				111, 115, 101, 69, 120, 116, 101, 110, 115, 105,
				111, 110, 115, 0, 0, 0, 0, 39, 85, 110,
				105, 116, 121, 46, 88, 82, 46, 67, 111, 114,
				101, 85, 116, 105, 108, 115, 124, 81, 117, 97,
				116, 101, 114, 110, 105, 111, 110, 69, 120, 116,
				101, 110, 115, 105, 111, 110, 115, 0, 0, 0,
				0, 38, 85, 110, 105, 116, 121, 46, 88, 82,
				46, 67, 111, 114, 101, 85, 116, 105, 108, 115,
				124, 83, 116, 111, 112, 119, 97, 116, 99, 104,
				69, 120, 116, 101, 110, 115, 105, 111, 110, 115,
				0, 0, 0, 0, 35, 85, 110, 105, 116, 121,
				46, 88, 82, 46, 67, 111, 114, 101, 85, 116,
				105, 108, 115, 124, 83, 116, 114, 105, 110, 103,
				69, 120, 116, 101, 110, 115, 105, 111, 110, 115,
				0, 0, 0, 0, 38, 85, 110, 105, 116, 121,
				46, 88, 82, 46, 67, 111, 114, 101, 85, 116,
				105, 108, 115, 124, 84, 114, 97, 110, 115, 102,
				111, 114, 109, 69, 120, 116, 101, 110, 115, 105,
				111, 110, 115, 0, 0, 0, 0, 33, 85, 110,
				105, 116, 121, 46, 88, 82, 46, 67, 111, 114,
				101, 85, 116, 105, 108, 115, 124, 84, 121, 112,
				101, 69, 120, 116, 101, 110, 115, 105, 111, 110,
				115, 0, 0, 0, 0, 33, 85, 110, 105, 116,
				121, 46, 88, 82, 46, 67, 111, 114, 101, 85,
				116, 105, 108, 115, 124, 66, 111, 111, 108, 85,
				110, 105, 116, 121, 69, 118, 101, 110, 116, 0,
				0, 0, 0, 34, 85, 110, 105, 116, 121, 46,
				88, 82, 46, 67, 111, 114, 101, 85, 116, 105,
				108, 115, 124, 70, 108, 111, 97, 116, 85, 110,
				105, 116, 121, 69, 118, 101, 110, 116, 0, 0,
				0, 0, 36, 85, 110, 105, 116, 121, 46, 88,
				82, 46, 67, 111, 114, 101, 85, 116, 105, 108,
				115, 124, 86, 101, 99, 116, 111, 114, 50, 85,
				110, 105, 116, 121, 69, 118, 101, 110, 116, 0,
				0, 0, 0, 36, 85, 110, 105, 116, 121, 46,
				88, 82, 46, 67, 111, 114, 101, 85, 116, 105,
				108, 115, 124, 86, 101, 99, 116, 111, 114, 51,
				85, 110, 105, 116, 121, 69, 118, 101, 110, 116,
				0, 0, 0, 0, 36, 85, 110, 105, 116, 121,
				46, 88, 82, 46, 67, 111, 114, 101, 85, 116,
				105, 108, 115, 124, 86, 101, 99, 116, 111, 114,
				52, 85, 110, 105, 116, 121, 69, 118, 101, 110,
				116, 0, 0, 0, 0, 39, 85, 110, 105, 116,
				121, 46, 88, 82, 46, 67, 111, 114, 101, 85,
				116, 105, 108, 115, 124, 81, 117, 97, 116, 101,
				114, 110, 105, 111, 110, 85, 110, 105, 116, 121,
				69, 118, 101, 110, 116, 0, 0, 0, 0, 32,
				85, 110, 105, 116, 121, 46, 88, 82, 46, 67,
				111, 114, 101, 85, 116, 105, 108, 115, 124, 73,
				110, 116, 85, 110, 105, 116, 121, 69, 118, 101,
				110, 116, 0, 0, 0, 0, 34, 85, 110, 105,
				116, 121, 46, 88, 82, 46, 67, 111, 114, 101,
				85, 116, 105, 108, 115, 124, 67, 111, 108, 111,
				114, 85, 110, 105, 116, 121, 69, 118, 101, 110,
				116, 0, 0, 0, 0, 35, 85, 110, 105, 116,
				121, 46, 88, 82, 46, 67, 111, 114, 101, 85,
				116, 105, 108, 115, 124, 83, 116, 114, 105, 110,
				103, 85, 110, 105, 116, 121, 69, 118, 101, 110,
				116, 0, 0, 0, 0, 36, 85, 110, 105, 116,
				121, 46, 88, 82, 46, 67, 111, 114, 101, 85,
				116, 105, 108, 115, 124, 86, 101, 99, 116, 111,
				114, 50, 69, 120, 116, 101, 110, 115, 105, 111,
				110, 115, 0, 0, 0, 0, 36, 85, 110, 105,
				116, 121, 46, 88, 82, 46, 67, 111, 114, 101,
				85, 116, 105, 108, 115, 124, 86, 101, 99, 116,
				111, 114, 51, 69, 120, 116, 101, 110, 115, 105,
				111, 110, 115, 0, 0, 0, 0, 34, 85, 110,
				105, 116, 121, 46, 88, 82, 46, 67, 111, 114,
				101, 85, 116, 105, 108, 115, 124, 71, 97, 109,
				101, 79, 98, 106, 101, 99, 116, 85, 116, 105,
				108, 115, 0, 0, 0, 0, 32, 85, 110, 105,
				116, 121, 46, 88, 82, 46, 67, 111, 114, 101,
				85, 116, 105, 108, 115, 124, 71, 101, 111, 109,
				101, 116, 114, 121, 85, 116, 105, 108, 115, 0,
				0, 0, 0, 27, 85, 110, 105, 116, 121, 46,
				88, 82, 46, 67, 111, 114, 101, 85, 116, 105,
				108, 115, 124, 71, 117, 105, 100, 85, 116, 105,
				108, 0, 0, 0, 0, 31, 85, 110, 105, 116,
				121, 46, 88, 82, 46, 67, 111, 114, 101, 85,
				116, 105, 108, 115, 124, 72, 97, 115, 104, 67,
				111, 100, 101, 85, 116, 105, 108, 0, 0, 0,
				0, 32, 85, 110, 105, 116, 121, 46, 88, 82,
				46, 67, 111, 114, 101, 85, 116, 105, 108, 115,
				124, 77, 97, 116, 101, 114, 105, 97, 108, 85,
				116, 105, 108, 115, 0, 0, 0, 0, 30, 85,
				110, 105, 116, 121, 46, 88, 82, 46, 67, 111,
				114, 101, 85, 116, 105, 108, 115, 124, 77, 97,
				116, 104, 85, 116, 105, 108, 105, 116, 121, 0,
				0, 0, 0, 35, 85, 110, 105, 116, 121, 46,
				88, 82, 46, 67, 111, 114, 101, 85, 116, 105,
				108, 115, 124, 78, 97, 116, 105, 118, 101, 65,
				114, 114, 97, 121, 85, 116, 105, 108, 115, 0,
				0, 0, 0, 29, 85, 110, 105, 116, 121, 46,
				88, 82, 46, 67, 111, 114, 101, 85, 116, 105,
				108, 115, 124, 79, 98, 106, 101, 99, 116, 80,
				111, 111, 108, 0, 0, 0, 0, 36, 85, 110,
				105, 116, 121, 46, 88, 82, 46, 67, 111, 114,
				101, 85, 116, 105, 108, 115, 124, 79, 110, 68,
				101, 115, 116, 114, 111, 121, 78, 111, 116, 105,
				102, 105, 101, 114, 0, 0, 0, 0, 34, 85,
				110, 105, 116, 121, 46, 88, 82, 46, 67, 111,
				114, 101, 85, 116, 105, 108, 115, 124, 82, 101,
				102, 108, 101, 99, 116, 105, 111, 110, 85, 116,
				105, 108, 115, 0, 0, 0, 0, 37, 85, 110,
				105, 116, 121, 46, 88, 82, 46, 67, 111, 114,
				101, 85, 116, 105, 108, 115, 124, 83, 99, 114,
				105, 112, 116, 97, 98, 108, 101, 83, 101, 116,
				116, 105, 110, 103, 115, 1, 0, 0, 0, 41,
				85, 110, 105, 116, 121, 46, 88, 82, 46, 67,
				111, 114, 101, 85, 116, 105, 108, 115, 124, 83,
				99, 114, 105, 112, 116, 97, 98, 108, 101, 83,
				101, 116, 116, 105, 110, 103, 115, 66, 97, 115,
				101, 1, 0, 0, 0, 41, 85, 110, 105, 116,
				121, 46, 88, 82, 46, 67, 111, 114, 101, 85,
				116, 105, 108, 115, 124, 83, 99, 114, 105, 112,
				116, 97, 98, 108, 101, 83, 101, 116, 116, 105,
				110, 103, 115, 66, 97, 115, 101, 0, 0, 0,
				0, 35, 85, 110, 105, 116, 121, 46, 88, 82,
				46, 67, 111, 114, 101, 85, 116, 105, 108, 115,
				124, 83, 101, 114, 105, 97, 108, 105, 122, 97,
				98, 108, 101, 71, 117, 105, 100, 0, 0, 0,
				0, 39, 85, 110, 105, 116, 121, 46, 88, 82,
				46, 67, 111, 114, 101, 85, 116, 105, 108, 115,
				124, 83, 101, 114, 105, 97, 108, 105, 122, 97,
				98, 108, 101, 71, 117, 105, 100, 85, 116, 105,
				108, 0, 0, 0, 0, 31, 85, 110, 105, 116,
				121, 46, 88, 82, 46, 67, 111, 114, 101, 85,
				116, 105, 108, 115, 124, 84, 101, 120, 116, 117,
				114, 101, 85, 116, 105, 108, 115, 0, 0, 0,
				0, 28, 85, 110, 105, 116, 121, 46, 88, 82,
				46, 67, 111, 114, 101, 85, 116, 105, 108, 115,
				124, 85, 110, 100, 111, 66, 108, 111, 99, 107,
				0, 0, 0, 0, 35, 85, 110, 105, 116, 121,
				46, 88, 82, 46, 67, 111, 114, 101, 85, 116,
				105, 108, 115, 124, 85, 110, 105, 116, 121, 79,
				98, 106, 101, 99, 116, 85, 116, 105, 108, 115,
				0, 0, 0, 0, 33, 85, 110, 105, 116, 121,
				46, 88, 82, 46, 67, 111, 114, 101, 85, 116,
				105, 108, 115, 124, 88, 82, 76, 111, 103, 103,
				105, 110, 103, 85, 116, 105, 108, 115, 0, 0,
				0, 0, 27, 85, 110, 105, 116, 121, 46, 88,
				82, 46, 67, 111, 114, 101, 85, 116, 105, 108,
				115, 124, 88, 82, 79, 114, 105, 103, 105, 110
			},
			TotalFiles = 75,
			TotalTypes = 88,
			IsEditorOnly = false
		};
	}
}
namespace Unity.XR.CoreUtils
{
	public readonly struct ARTrackablesParentTransformChangedEventArgs : IEquatable<ARTrackablesParentTransformChangedEventArgs>
	{
		public XROrigin Origin { get; }

		public Transform TrackablesParent { get; }

		public ARTrackablesParentTransformChangedEventArgs(XROrigin origin, Transform trackablesParent)
		{
			if ((Object)(object)origin == (Object)null)
			{
				throw new ArgumentNullException("origin");
			}
			if ((Object)(object)trackablesParent == (Object)null)
			{
				throw new ArgumentNullException("trackablesParent");
			}
			Origin = origin;
			TrackablesParent = trackablesParent;
		}

		public bool Equals(ARTrackablesParentTransformChangedEventArgs other)
		{
			if ((Object)(object)Origin == (Object)(object)other.Origin)
			{
				return (Object)(object)TrackablesParent == (Object)(object)other.TrackablesParent;
			}
			return false;
		}

		public override bool Equals(object obj)
		{
			if (obj is ARTrackablesParentTransformChangedEventArgs other)
			{
				return Equals(other);
			}
			return false;
		}

		public override int GetHashCode()
		{
			return HashCodeUtil.Combine(HashCodeUtil.ReferenceHash(Origin), HashCodeUtil.ReferenceHash(TrackablesParent));
		}

		public static bool operator ==(ARTrackablesParentTransformChangedEventArgs lhs, ARTrackablesParentTransformChangedEventArgs rhs)
		{
			return lhs.Equals(rhs);
		}

		public static bool operator !=(ARTrackablesParentTransformChangedEventArgs lhs, ARTrackablesParentTransformChangedEventArgs rhs)
		{
			return !lhs.Equals(rhs);
		}
	}
	public class ReadOnlyAttribute : PropertyAttribute
	{
	}
	[AttributeUsage(AttributeTargets.Class)]
	public class ScriptableSettingsPathAttribute : Attribute
	{
		private readonly string m_Path;

		public string Path => m_Path;

		public ScriptableSettingsPathAttribute(string path = "")
		{
			m_Path = path;
		}
	}
	public static class BoundsUtils
	{
		private static readonly List<Renderer> k_Renderers = new List<Renderer>();

		private static readonly List<Transform> k_Transforms = new List<Transform>();

		public static Bounds GetBounds(List<GameObject> gameObjects)
		{
			//IL_001d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0022: Unknown result type (might be due to invalid IL or missing references)
			//IL_0039: Unknown result type (might be due to invalid IL or missing references)
			//IL_0043: Unknown result type (might be due to invalid IL or missing references)
			//IL_002c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0065: Unknown result type (might be due to invalid IL or missing references)
			Bounds? val = null;
			foreach (GameObject gameObject in gameObjects)
			{
				Bounds bounds = GetBounds(gameObject.transform);
				if (!val.HasValue)
				{
					val = bounds;
					continue;
				}
				((Bounds)(ref bounds)).Encapsulate(val.Value);
				val = bounds;
			}
			return val.GetValueOrDefault();
		}

		public static Bounds GetBounds(Transform[] transforms)
		{
			//IL_0011: Unknown result type (might be due to invalid IL or missing references)
			//IL_0016: Unknown result type (might be due to invalid IL or missing references)
			//IL_004c: Unknown result type (might be due to invalid IL or missing references)
			//IL_002e: Unknown result type (might be due to invalid IL or missing references)
			//IL_003a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0022: Unknown result type (might be due to invalid IL or missing references)
			Bounds? val = null;
			for (int i = 0; i < transforms.Length; i++)
			{
				Bounds bounds = GetBounds(transforms[i]);
				if (!val.HasValue)
				{
					val = bounds;
					continue;
				}
				((Bounds)(ref bounds)).Encapsulate(val.Value);
				val = bounds;
			}
			return val.GetValueOrDefault();
		}

		public static Bounds GetBounds(Transform transform)
		{
			//IL_0010: Unknown result type (might be due to invalid IL or missing references)
			//IL_0015: Unknown result type (might be due to invalid IL or missing references)
			//IL_0018: Unknown result type (might be due to invalid IL or missing references)
			//IL_001d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0093: Unknown result type (might be due to invalid IL or missing references)
			//IL_004e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0070: Unknown result type (might be due to invalid IL or missing references)
			((Component)transform).GetComponentsInChildren<Renderer>(k_Renderers);
			Bounds bounds = GetBounds(k_Renderers);
			if (((Bounds)(ref bounds)).size == Vector3.zero)
			{
				((Component)transform).GetComponentsInChildren<Transform>(k_Transforms);
				if (k_Transforms.Count > 0)
				{
					((Bounds)(ref bounds)).center = k_Transforms[0].position;
				}
				foreach (Transform k_Transform in k_Transforms)
				{
					((Bounds)(ref bounds)).Encapsulate(k_Transform.position);
				}
			}
			return bounds;
		}

		public static Bounds GetBounds(List<Renderer> renderers)
		{
			//IL_007e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0084: Unknown result type (might be due to invalid IL or missing references)
			//IL_0019: Unknown result type (might be due to invalid IL or missing references)
			//IL_001e: Unknown result type (might be due to invalid IL or missing references)
			//IL_003a: Unknown result type (might be due to invalid IL or missing references)
			//IL_003f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0043: Unknown result type (might be due to invalid IL or missing references)
			//IL_0048: Unknown result type (might be due to invalid IL or missing references)
			//IL_0057: Unknown result type (might be due to invalid IL or missing references)
			//IL_007a: Unknown result type (might be due to invalid IL or missing references)
			Bounds result2;
			if (renderers.Count > 0)
			{
				Renderer val = renderers[0];
				Bounds result = default(Bounds);
				((Bounds)(ref result))..ctor(((Component)val).transform.position, Vector3.zero);
				{
					foreach (Renderer renderer in renderers)
					{
						result2 = renderer.bounds;
						if (((Bounds)(ref result2)).size != Vector3.zero)
						{
							((Bounds)(ref result)).Encapsulate(renderer.bounds);
						}
					}
					return result;
				}
			}
			result2 = default(Bounds);
			return result2;
		}

		public static Bounds GetBounds<T>(List<T> colliders) where T : Collider
		{
			//IL_0090: Unknown result type (might be due to invalid IL or missing references)
			//IL_0096: Unknown result type (might be due to invalid IL or missing references)
			//IL_0021: Unknown result type (might be due to invalid IL or missing references)
			//IL_0026: Unknown result type (might be due to invalid IL or missing references)
			//IL_0047: Unknown result type (might be due to invalid IL or missing references)
			//IL_004c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0050: Unknown result type (might be due to invalid IL or missing references)
			//IL_0055: Unknown result type (might be due to invalid IL or missing references)
			//IL_0069: Unknown result type (might be due to invalid IL or missing references)
			//IL_008c: Unknown result type (might be due to invalid IL or missing references)
			Bounds result2;
			if (colliders.Count > 0)
			{
				T val = colliders[0];
				Bounds result = default(Bounds);
				((Bounds)(ref result))..ctor(((Component)(object)val).transform.position, Vector3.zero);
				{
					foreach (T collider in colliders)
					{
						result2 = ((Collider)collider).bounds;
						if (((Bounds)(ref result2)).size != Vector3.zero)
						{
							((Bounds)(ref result)).Encapsulate(((Collider)collider).bounds);
						}
					}
					return result;
				}
			}
			result2 = default(Bounds);
			return result2;
		}

		public static Bounds GetBounds(List<Vector3> points)
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0015: Unknown result type (might be due to invalid IL or missing references)
			//IL_001a: Unknown result type (might be due to invalid IL or missing references)
			//IL_001b: Unknown result type (might be due to invalid IL or missing references)
			//IL_001c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0011: Unknown result type (might be due to invalid IL or missing references)
			//IL_0026: Unknown result type (might be due to invalid IL or missing references)
			//IL_002b: Unknown result type (might be due to invalid IL or missing references)
			//IL_002d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0034: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ed: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ee: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f4: Unknown result type (might be due to invalid IL or missing references)
			//IL_004a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0051: Unknown result type (might be due to invalid IL or missing references)
			//IL_003e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0067: Unknown result type (might be due to invalid IL or missing references)
			//IL_006e: Unknown result type (might be due to invalid IL or missing references)
			//IL_005b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0084: Unknown result type (might be due to invalid IL or missing references)
			//IL_008b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0078: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a1: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0095: Unknown result type (might be due to invalid IL or missing references)
			//IL_00be: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c5: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b2: Unknown result type (might be due to invalid IL or missing references)
			//IL_00cf: Unknown result type (might be due to invalid IL or missing references)
			Bounds result = default(Bounds);
			if (points.Count < 1)
			{
				return result;
			}
			Vector3 val = points[0];
			Vector3 val2 = val;
			for (int i = 1; i < points.Count; i++)
			{
				Vector3 val3 = points[i];
				if (val3.x < val.x)
				{
					val.x = val3.x;
				}
				if (val3.y < val.y)
				{
					val.y = val3.y;
				}
				if (val3.z < val.z)
				{
					val.z = val3.z;
				}
				if (val3.x > val2.x)
				{
					val2.x = val3.x;
				}
				if (val3.y > val2.y)
				{
					val2.y = val3.y;
				}
				if (val3.z > val2.z)
				{
					val2.z = val3.z;
				}
			}
			((Bounds)(ref result)).SetMinMax(val, val2);
			return result;
		}
	}
	public interface IComponentHost<THostType> where THostType : class
	{
		THostType[] HostedComponents { get; }
	}
	[Flags]
	public enum CachedSearchType
	{
		Children = 1,
		Self = 2,
		Parents = 4
	}
	public class CachedComponentFilter<TFilterType, TRootType> : IDisposable where TFilterType : class where TRootType : Component
	{
		private readonly List<TFilterType> m_MasterComponentStorage;

		private static readonly List<TFilterType> k_TempComponentList = new List<TFilterType>();

		private static readonly List<IComponentHost<TFilterType>> k_TempHostComponentList = new List<IComponentHost<TFilterType>>();

		private bool m_DisposedValue;

		public CachedComponentFilter(TRootType componentRoot, CachedSearchType cachedSearchType = CachedSearchType.Children | CachedSearchType.Self, bool includeDisabled = true)
		{
			//IL_00cf: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d4: Unknown result type (might be due to invalid IL or missing references)
			m_MasterComponentStorage = CollectionPool<List<TFilterType>, TFilterType>.GetCollection();
			k_TempComponentList.Clear();
			k_TempHostComponentList.Clear();
			if ((cachedSearchType & CachedSearchType.Self) == CachedSearchType.Self)
			{
				((Component)componentRoot).GetComponents<TFilterType>(k_TempComponentList);
				((Component)componentRoot).GetComponents<IComponentHost<TFilterType>>(k_TempHostComponentList);
				FilteredCopyToMaster(includeDisabled);
			}
			if ((cachedSearchType & CachedSearchType.Parents) == CachedSearchType.Parents)
			{
				Transform parent = ((Component)componentRoot).transform.parent;
				while ((Object)(object)parent != (Object)null && !((Object)(object)((Component)parent).GetComponent<TRootType>() != (Object)null))
				{
					((Component)parent).GetComponents<TFilterType>(k_TempComponentList);
					((Component)parent).GetComponents<IComponentHost<TFilterType>>(k_TempHostComponentList);
					FilteredCopyToMaster(includeDisabled);
					parent = ((Component)parent).transform.parent;
				}
			}
			if ((cachedSearchType & CachedSearchType.Children) != CachedSearchType.Children)
			{
				return;
			}
			foreach (Transform item in ((Component)componentRoot).transform)
			{
				((Component)item).GetComponentsInChildren<TFilterType>(k_TempComponentList);
				((Component)item).GetComponentsInChildren<IComponentHost<TFilterType>>(k_TempHostComponentList);
				FilteredCopyToMaster(includeDisabled, componentRoot);
			}
		}

		public CachedComponentFilter(TFilterType[] componentList, bool includeDisabled = true)
		{
			if (componentList != null)
			{
				m_MasterComponentStorage = CollectionPool<List<TFilterType>, TFilterType>.GetCollection();
				k_TempComponentList.Clear();
				k_TempComponentList.AddRange(componentList);
				FilteredCopyToMaster(includeDisabled);
			}
		}

		public void StoreMatchingComponents<TChildType>(List<TChildType> outputList) where TChildType : class, TFilterType
		{
			foreach (TFilterType item2 in m_MasterComponentStorage)
			{
				if (item2 is TChildType item)
				{
					outputList.Add(item);
				}
			}
		}

		public TChildType[] GetMatchingComponents<TChildType>() where TChildType : class, TFilterType
		{
			int num = 0;
			foreach (TFilterType item in m_MasterComponentStorage)
			{
				if (item is TChildType)
				{
					num++;
				}
			}
			TChildType[] array = new TChildType[num];
			num = 0;
			foreach (TFilterType item2 in m_MasterComponentStorage)
			{
				if (item2 is TChildType val)
				{
					array[num] = val;
					num++;
				}
			}
			return array;
		}

		private void FilteredCopyToMaster(bool includeDisabled)
		{
			if (includeDisabled)
			{
				m_MasterComponentStorage.AddRange(k_TempComponentList);
				{
					foreach (IComponentHost<TFilterType> k_TempHostComponent in k_TempHostComponentList)
					{
						m_MasterComponentStorage.AddRange(k_TempHostComponent.HostedComponents);
					}
					return;
				}
			}
			foreach (TFilterType k_TempComponent in k_TempComponentList)
			{
				Behaviour val = (Behaviour)(object)((k_TempComponent is Behaviour) ? k_TempComponent : null);
				if (!((Object)(object)val != (Object)null) || val.enabled)
				{
					m_MasterComponentStorage.Add(k_TempComponent);
				}
			}
			foreach (IComponentHost<TFilterType> k_TempHostComponent2 in k_TempHostComponentList)
			{
				Behaviour val2 = (Behaviour)((k_TempHostComponent2 is Behaviour) ? k_TempHostComponent2 : null);
				if (!((Object)(object)val2 != (Object)null) || val2.enabled)
				{
					m_MasterComponentStorage.AddRange(k_TempHostComponent2.HostedComponents);
				}
			}
		}

		private void FilteredCopyToMaster(bool includeDisabled, TRootType requiredRoot)
		{
			if (includeDisabled)
			{
				foreach (TFilterType k_TempComponent in k_TempComponentList)
				{
					Component val = (Component)(object)((k_TempComponent is Component) ? k_TempComponent : null);
					if (!((Object)(object)val.transform == (Object)(object)requiredRoot) && !((Object)(object)val.GetComponentInParent<TRootType>() != (Object)(object)requiredRoot))
					{
						m_MasterComponentStorage.Add(k_TempComponent);
					}
				}
				{
					foreach (IComponentHost<TFilterType> k_TempHostComponent in k_TempHostComponentList)
					{
						Component val2 = (Component)((k_TempHostComponent is Component) ? k_TempHostComponent : null);
						if (!((Object)(object)val2.transform == (Object)(object)requiredRoot) && !((Object)(object)val2.GetComponentInParent<TRootType>() != (Object)(object)requiredRoot))
						{
							m_MasterComponentStorage.AddRange(k_TempHostComponent.HostedComponents);
						}
					}
					return;
				}
			}
			foreach (TFilterType k_TempComponent2 in k_TempComponentList)
			{
				Behaviour val3 = (Behaviour)(object)((k_TempComponent2 is Behaviour) ? k_TempComponent2 : null);
				if (val3.enabled && !((Object)(object)((Component)val3).transform == (Object)(object)requiredRoot) && !((Object)(object)((Component)val3).GetComponentInParent<TRootType>() != (Object)(object)requiredRoot))
				{
					m_MasterComponentStorage.Add(k_TempComponent2);
				}
			}
			foreach (IComponentHost<TFilterType> k_TempHostComponent2 in k_TempHostComponentList)
			{
				Behaviour val4 = (Behaviour)((k_TempHostComponent2 is Behaviour) ? k_TempHostComponent2 : null);
				if (val4.enabled && !((Object)(object)((Component)val4).transform == (Object)(object)requiredRoot) && !((Object)(object)((Component)val4).GetComponentInParent<TRootType>() != (Object)(object)requiredRoot))
				{
					m_MasterComponentStorage.AddRange(k_TempHostComponent2.HostedComponents);
				}
			}
		}

		protected virtual void Dispose(bool disposing)
		{
			if (!m_DisposedValue)
			{
				if (disposing && m_MasterComponentStorage != null)
				{
					CollectionPool<List<TFilterType>, TFilterType>.RecycleCollection(m_MasterComponentStorage);
				}
				m_DisposedValue = true;
			}
		}

		public void Dispose()
		{
			Dispose(disposing: true);
		}
	}
	public static class CollectionPool<TCollection, TValue> where TCollection : ICollection<TValue>, new()
	{
		private static readonly Queue<TCollection> k_CollectionQueue = new Queue<TCollection>();

		public static TCollection GetCollection()
		{
			if (k_CollectionQueue.Count <= 0)
			{
				return new TCollection();
			}
			return k_CollectionQueue.Dequeue();
		}

		public static void RecycleCollection(TCollection collection)
		{
			collection.Clear();
			k_CollectionQueue.Enqueue(collection);
		}
	}
	public static class ComponentUtils<T>
	{
		private static readonly List<T> k_RetrievalList = new List<T>();

		public static T GetComponent(GameObject gameObject)
		{
			T result = default(T);
			gameObject.GetComponents<T>(k_RetrievalList);
			if (k_RetrievalList.Count > 0)
			{
				return k_RetrievalList[0];
			}
			return result;
		}

		public static T GetComponentInChildren(GameObject gameObject)
		{
			T result = default(T);
			gameObject.GetComponentsInChildren<T>(k_RetrievalList);
			if (k_RetrievalList.Count > 0)
			{
				return k_RetrievalList[0];
			}
			return result;
		}
	}
	public static class ComponentUtils
	{
		public static T GetOrAddIf<T>(GameObject gameObject, bool add) where T : Component
		{
			T val = gameObject.GetComponent<T>();
			if (add && (Object)(object)val == (Object)null)
			{
				val = gameObject.AddComponent<T>();
			}
			return val;
		}
	}
	public static class EnumValues<T>
	{
		public static readonly T[] Values = (T[])Enum.GetValues(typeof(T));
	}
	public static class BoundsExtensions
	{
		public static bool ContainsCompletely(this Bounds outerBounds, Bounds innerBounds)
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_000a: Unknown result type (might be due to invalid IL or missing references)
			//IL_000f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0012: Unknown result type (might be due to invalid IL or missing references)
			//IL_0017: Unknown result type (might be due to invalid IL or missing references)
			//IL_001a: Unknown result type (might be due to invalid IL or missing references)
			//IL_001f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0020: Unknown result type (might be due to invalid IL or missing references)
			//IL_0026: Unknown result type (might be due to invalid IL or missing references)
			//IL_002e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0034: Unknown result type (might be due to invalid IL or missing references)
			//IL_003c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0042: Unknown result type (might be due to invalid IL or missing references)
			//IL_004a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0050: Unknown result type (might be due to invalid IL or missing references)
			//IL_0058: Unknown result type (might be due to invalid IL or missing references)
			//IL_005e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0066: Unknown result type (might be due to invalid IL or missing references)
			//IL_006c: Unknown result type (might be due to invalid IL or missing references)
			Vector3 max = ((Bounds)(ref outerBounds)).max;
			Vector3 min = ((Bounds)(ref outerBounds)).min;
			Vector3 max2 = ((Bounds)(ref innerBounds)).max;
			Vector3 min2 = ((Bounds)(ref innerBounds)).min;
			if (max.x >= max2.x && max.y >= max2.y && max.z >= max2.z && min.x <= min2.x && min.y <= min2.y)
			{
				return min.z <= min2.z;
			}
			return false;
		}
	}
	public static class CameraExtensions
	{
		private const float k_OneOverSqrt2 = 0.70710677f;

		public static float GetVerticalFieldOfView(this Camera camera, float aspectNeutralFieldOfView)
		{
			return Mathf.Atan(Mathf.Tan(aspectNeutralFieldOfView * 0.5f * (MathF.PI / 180f)) * 0.70710677f / Mathf.Sqrt(camera.aspect)) * 2f * 57.29578f;
		}

		public static float GetHorizontalFieldOfView(this Camera camera)
		{
			float num = camera.fieldOfView * 0.5f;
			return 57.29578f * Mathf.Atan(Mathf.Tan(num * (MathF.PI / 180f)) * camera.aspect);
		}

		public static float GetVerticalOrthographicSize(this Camera camera, float size)
		{
			return size * 0.70710677f / Mathf.Sqrt(camera.aspect);
		}
	}
	public static class CollectionExtensions
	{
		private static readonly StringBuilder k_String = new StringBuilder();

		public static string Stringify<T>(this ICollection<T> collection)
		{
			k_String.Length = 0;
			int num = collection.Count - 1;
			int num2 = 0;
			foreach (T item in collection)
			{
				k_String.AppendFormat((num2++ == num) ? "{0}" : "{0}, ", item);
			}
			return k_String.ToString();
		}
	}
	public static class DictionaryExtensions
	{
		public static KeyValuePair<TKey, TValue> First<TKey, TValue>(this Dictionary<TKey, TValue> dictionary)
		{
			KeyValuePair<TKey, TValue> result = default(KeyValuePair<TKey, TValue>);
			Dictionary<TKey, TValue>.Enumerator enumerator = dictionary.GetEnumerator();
			if (enumerator.MoveNext())
			{
				result = enumerator.Current;
			}
			enumerator.Dispose();
			return result;
		}
	}
	public static class GameObjectExtensions
	{
		public static void SetHideFlagsRecursively(this GameObject gameObject, HideFlags hideFlags)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_001b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0025: Unknown result type (might be due to invalid IL or missing references)
			((Object)gameObject).hideFlags = hideFlags;
			foreach (Transform item in gameObject.transform)
			{
				((Component)item).gameObject.SetHideFlagsRecursively(hideFlags);
			}
		}

		public static void AddToHideFlagsRecursively(this GameObject gameObject, HideFlags hideFlags)
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_0008: Unknown result type (might be due to invalid IL or missing references)
			//IL_0022: Unknown result type (might be due to invalid IL or missing references)
			//IL_002c: Unknown result type (might be due to invalid IL or missing references)
			((Object)gameObject).hideFlags = (HideFlags)(((Object)gameObject).hideFlags | hideFlags);
			foreach (Transform item in gameObject.transform)
			{
				((Component)item).gameObject.AddToHideFlagsRecursively(hideFlags);
			}
		}

		public static void SetLayerRecursively(this GameObject gameObject, int layer)
		{
			//IL_001b: Unknown result type (might be due to invalid IL or missing references)
			gameObject.layer = layer;
			foreach (Transform item in gameObject.transform)
			{
				((Component)item).gameObject.SetLayerRecursively(layer);
			}
		}

		public static void SetLayerAndAddToHideFlagsRecursively(this GameObject gameObject, int layer, HideFlags hideFlags)
		{
			//IL_0009: Unknown result type (might be due to invalid IL or missing references)
			//IL_000e: Unknown result type (might be due to invalid IL or missing references)
			//IL_000f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0029: Unknown result type (might be due to invalid IL or missing references)
			//IL_0034: Unknown result type (might be due to invalid IL or missing references)
			gameObject.layer = layer;
			((Object)gameObject).hideFlags = (HideFlags)(((Object)gameObject).hideFlags | hideFlags);
			foreach (Transform item in gameObject.transform)
			{
				((Component)item).gameObject.SetLayerAndAddToHideFlagsRecursively(layer, hideFlags);
			}
		}

		public static void SetLayerAndHideFlagsRecursively(this GameObject gameObject, int layer, HideFlags hideFlags)
		{
			//IL_0008: Unknown result type (might be due to invalid IL or missing references)
			//IL_0022: Unknown result type (might be due to invalid IL or missing references)
			//IL_002d: Unknown result type (might be due to invalid IL or missing references)
			gameObject.layer = layer;
			((Object)gameObject).hideFlags = hideFlags;
			foreach (Transform item in gameObject.transform)
			{
				((Component)item).gameObject.SetLayerAndHideFlagsRecursively(layer, hideFlags);
			}
		}

		public static void SetRunInEditModeRecursively(this GameObject gameObject, bool enabled)
		{
		}
	}
	public static class GuidExtensions
	{
		public static void Decompose(this Guid guid, out ulong low, out ulong high)
		{
			byte[] value = guid.ToByteArray();
			low = BitConverter.ToUInt64(value, 0);
			high = BitConverter.ToUInt64(value, 8);
		}
	}
	public static class HashSetExtensions
	{
		public static void ExceptWithNonAlloc<T>(this HashSet<T> self, HashSet<T> other)
		{
			foreach (T item in other)
			{
				self.Remove(item);
			}
		}

		public static T First<T>(this HashSet<T> set)
		{
			HashSet<T>.Enumerator enumerator = set.GetEnumerator();
			T result = (enumerator.MoveNext() ? enumerator.Current : default(T));
			enumerator.Dispose();
			return result;
		}
	}
	public static class LayerMaskExtensions
	{
		public static int GetFirstLayerIndex(this LayerMask layerMask)
		{
			if (((LayerMask)(ref layerMask)).value == 0)
			{
				return -1;
			}
			int num = 0;
			int num2 = ((LayerMask)(ref layerMask)).value;
			while ((num2 & 1) == 0)
			{
				num2 >>= 1;
				num++;
			}
			return num;
		}

		public static bool Contains(this LayerMask mask, int layer)
		{
			//IL_0000: Unknown result type (might be due to invalid IL or missing references)
			return ((uint)LayerMask.op_Implicit(mask) & (1 << layer)) > 0;
		}
	}
	public static class ListExtensions
	{
		public static List<T> Fill<T>(this List<T> list, int count) where T : new()
		{
			for (int i = 0; i < count; i++)
			{
				list.Add(new T());
			}
			return list;
		}

		public static void EnsureCapacity<T>(this List<T> list, int capacity)
		{
			if (list.Capacity < capacity)
			{
				list.Capacity = capacity;
			}
		}

		public static void SwapAtIndices<T>(this List<T> list, int first, int second)
		{
			T val = list[second];
			T val2 = list[first];
			T val3 = (list[first] = val);
			val3 = (list[second] = val2);
		}
	}
	public static class MonoBehaviourExtensions
	{
	}
	public static class PoseExtensions
	{
		public static Pose ApplyOffsetTo(this Pose pose, Pose otherPose)
		{
			//IL_0000: Unknown result type (might be due to invalid IL or missing references)
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0006: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_0008: Unknown result type (might be due to invalid IL or missing references)
			//IL_0009: Unknown result type (might be due to invalid IL or missing references)
			//IL_000e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0013: Unknown result type (might be due to invalid IL or missing references)
			//IL_0014: Unknown result type (might be due to invalid IL or missing references)
			//IL_0019: Unknown result type (might be due to invalid IL or missing references)
			//IL_001e: Unknown result type (might be due to invalid IL or missing references)
			//IL_001f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0020: Unknown result type (might be due to invalid IL or missing references)
			//IL_0025: Unknown result type (might be due to invalid IL or missing references)
			//IL_002a: Unknown result type (might be due to invalid IL or missing references)
			Quaternion rotation = pose.rotation;
			return new Pose(rotation * otherPose.position + pose.position, rotation * otherPose.rotation);
		}

		public static Vector3 ApplyOffsetTo(this Pose pose, Vector3 position)
		{
			//IL_0000: Unknown result type (might be due to invalid IL or missing references)
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0006: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_000c: Unknown result type (might be due to invalid IL or missing references)
			//IL_000d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0012: Unknown result type (might be due to invalid IL or missing references)
			return pose.rotation * position + pose.position;
		}

		public static Vector3 ApplyInverseOffsetTo(this Pose pose, Vector3 position)
		{
			//IL_0000: Unknown result type (might be due to invalid IL or missing references)
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0006: Unknown result type (might be due to invalid IL or missing references)
			//IL_000b: Unknown result type (might be due to invalid IL or missing references)
			//IL_000c: Unknown result type (might be due to invalid IL or missing references)
			//IL_000d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0012: Unknown result type (might be due to invalid IL or missing references)
			//IL_0017: Unknown result type (might be due to invalid IL or missing references)
			return Quaternion.Inverse(pose.rotation) * (position - pose.position);
		}
	}
	public static class QuaternionExtensions
	{
		public static Quaternion ConstrainYaw(this Quaternion rotation)
		{
			//IL_0018: Unknown result type (might be due to invalid IL or missing references)
			rotation.x = 0f;
			rotation.z = 0f;
			return rotation;
		}

		public static Quaternion ConstrainYawNormalized(this Quaternion rotation)
		{
			//IL_001f: Unknown result type (might be due to invalid IL or missing references)
			rotation.x = 0f;
			rotation.z = 0f;
			((Quaternion)(ref rotation)).Normalize();
			return rotation;
		}

		public static Quaternion ConstrainYawPitchNormalized(this Quaternion rotation)
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_0014: Unknown result type (might be due to invalid IL or missing references)
			//IL_0015: Unknown result type (might be due to invalid IL or missing references)
			Vector3 eulerAngles = ((Quaternion)(ref rotation)).eulerAngles;
			eulerAngles.z = 0f;
			return Quaternion.Euler(eulerAngles);
		}
	}
	public static class StopwatchExtensions
	{
		public static void Restart(this Stopwatch stopwatch)
		{
			stopwatch.Stop();
			stopwatch.Reset();
			stopwatch.Start();
		}
	}
	public static class StringExtensions
	{
		private static readonly StringBuilder k_StringBuilder = new StringBuilder();

		public static string FirstToUpper(this string str)
		{
			if (string.IsNullOrEmpty(str))
			{
				return string.Empty;
			}
			if (str.Length == 1)
			{
				return char.ToUpper(str[0]).ToString();
			}
			return $"{char.ToUpper(str[0])}{str.Substring(1)}";
		}

		public static string InsertSpacesBetweenWords(this string str)
		{
			if (string.IsNullOrEmpty(str))
			{
				return string.Empty;
			}
			k_StringBuilder.Length = 0;
			k_StringBuilder.Append(str[0]);
			int length = str.Length;
			for (int i = 0; i < length - 1; i++)
			{
				char c = str[i];
				char c2 = str[i + 1];
				bool flag = char.IsLower(c);
				bool flag2 = char.IsLower(c2);
				bool flag3 = flag && !flag2;
				if (i + 2 < length)
				{
					bool flag4 = char.IsLower(str[i + 2]);
					flag3 = flag3 || (!flag && !flag2 && flag4);
				}
				if (flag3)
				{
					k_StringBuilder.Append(' ');
				}
				k_StringBuilder.Append(c2);
			}
			return k_StringBuilder.ToString();
		}
	}
	public static class TransformExtensions
	{
		public static Pose GetLocalPose(this Transform transform)
		{
			//IL_000a: Unknown result type (might be due to invalid IL or missing references)
			//IL_000b: Unknown result type (might be due to invalid IL or missing references)
			//IL_000c: Unknown result type (might be due to invalid IL or missing references)
			Vector3 val = default(Vector3);
			Quaternion val2 = default(Quaternion);
			transform.GetLocalPositionAndRotation(ref val, ref val2);
			return new Pose(val, val2);
		}

		public static Pose GetWorldPose(this Transform transform)
		{
			//IL_000a: Unknown result type (might be due to invalid IL or missing references)
			//IL_000b: Unknown result type (might be due to invalid IL or missing references)
			//IL_000c: Unknown result type (might be due to invalid IL or missing references)
			Vector3 val = default(Vector3);
			Quaternion val2 = default(Quaternion);
			transform.GetPositionAndRotation(ref val, ref val2);
			return new Pose(val, val2);
		}

		public static void SetLocalPose(this Transform transform, Pose pose)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_0008: Unknown result type (might be due to invalid IL or missing references)
			transform.SetLocalPositionAndRotation(pose.position, pose.rotation);
		}

		public static void SetWorldPose(this Transform transform, Pose pose)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_0008: Unknown result type (might be due to invalid IL or missing references)
			transform.SetPositionAndRotation(pose.position, pose.rotation);
		}

		public static Pose TransformPose(this Transform transform, Pose pose)
		{
			//IL_0003: Unknown result type (might be due to invalid IL or missing references)
			return ((Pose)(ref pose)).GetTransformedBy(transform);
		}

		public static Pose InverseTransformPose(this Transform transform, Pose pose)
		{
			//IL_0016: Unknown result type (might be due to invalid IL or missing references)
			//IL_001f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0020: Unknown result type (might be due to invalid IL or missing references)
			//IL_0025: Unknown result type (might be due to invalid IL or missing references)
			//IL_002a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0032: Unknown result type (might be due to invalid IL or missing references)
			//IL_0037: Unknown result type (might be due to invalid IL or missing references)
			//IL_003c: Unknown result type (might be due to invalid IL or missing references)
			//IL_003d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0042: Unknown result type (might be due to invalid IL or missing references)
			//IL_0047: Unknown result type (might be due to invalid IL or missing references)
			//IL_004c: Unknown result type (might be due to invalid IL or missing references)
			if ((Object)(object)transform == (Object)null)
			{
				throw new ArgumentNullException("transform");
			}
			return new Pose
			{
				position = transform.InverseTransformPoint(pose.position),
				rotation = Quaternion.Inverse(transform.rotation) * pose.rotation
			};
		}

		public static Ray InverseTransformRay(this Transform transform, Ray ray)
		{
			//IL_0017: Unknown result type (might be due to invalid IL or missing references)
			//IL_001c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0024: Unknown result type (might be due to invalid IL or missing references)
			//IL_0029: Unknown result type (might be due to invalid IL or missing references)
			//IL_002e: Unknown result type (might be due to invalid IL or missing references)
			if ((Object)(object)transform == (Object)null)
			{
				throw new ArgumentNullException("transform");
			}
			return new Ray(transform.InverseTransformPoint(((Ray)(ref ray)).origin), transform.InverseTransformDirection(((Ray)(ref ray)).direction));
		}
	}
	public static class TypeExtensions
	{
		private static readonly List<FieldInfo> k_Fields = new List<FieldInfo>();

		private static readonly List<string> k_TypeNames = new List<string>();

		public static void GetAssignableTypes(this Type type, List<Type> list, Func<Type, bool> predicate = null)
		{
			ReflectionUtils.ForEachType(delegate(Type t)
			{
				if (type.IsAssignableFrom(t) && !t.IsInterface && !t.IsAbstract && (predicate == null || predicate(t)))
				{
					list.Add(t);
				}
			});
		}

		public static void GetImplementationsOfInterface(this Type type, List<Type> list)
		{
			if (type.IsInterface)
			{
				type.GetAssignableTypes(list);
			}
		}

		public static void GetExtensionsOfClass(this Type type, List<Type> list)
		{
			if (type.IsClass)
			{
				type.GetAssignableTypes(list);
			}
		}

		public static void GetGenericInterfaces(this Type type, Type genericInterface, List<Type> interfaces)
		{
			Type[] interfaces2 = type.GetInterfaces();
			foreach (Type type2 in interfaces2)
			{
				if (type2.IsGenericType && type2.GetGenericTypeDefinition() == genericInterface)
				{
					interfaces.Add(type2);
				}
			}
		}

		public static PropertyInfo GetPropertyRecursively(this Type type, string name, BindingFlags bindingAttr)
		{
			PropertyInfo propertyInfo = type.GetProperty(name, bindingAttr);
			if (propertyInfo != null)
			{
				return propertyInfo;
			}
			if (type.BaseType != null)
			{
				propertyInfo = type.BaseType.GetPropertyRecursively(name, bindingAttr);
			}
			return propertyInfo;
		}

		public static FieldInfo GetFieldRecursively(this Type type, string name, BindingFlags bindingAttr)
		{
			FieldInfo fieldInfo = type.GetField(name, bindingAttr);
			if (fieldInfo != null)
			{
				return fieldInfo;
			}
			if (type.BaseType != null)
			{
				fieldInfo = type.BaseType.GetFieldRecursively(name, bindingAttr);
			}
			return fieldInfo;
		}

		public static void GetFieldsRecursively(this Type type, List<FieldInfo> fields, BindingFlags bindingAttr = BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic)
		{
			while (true)
			{
				FieldInfo[] fields2 = type.GetFields(bindingAttr);
				foreach (FieldInfo item in fields2)
				{
					fields.Add(item);
				}
				Type baseType = type.BaseType;
				if (baseType != null)
				{
					type = baseType;
					continue;
				}
				break;
			}
		}

		public static void GetPropertiesRecursively(this Type type, List<PropertyInfo> fields, BindingFlags bindingAttr = BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic)
		{
			while (true)
			{
				PropertyInfo[] properties = type.GetProperties(bindingAttr);
				foreach (PropertyInfo item in properties)
				{
					fields.Add(item);
				}
				Type baseType = type.BaseType;
				if (baseType != null)
				{
					type = baseType;
					continue;
				}
				break;
			}
		}

		public static void GetInterfaceFieldsFromClasses(this IEnumerable<Type> classes, List<FieldInfo> fields, List<Type> interfaceTypes, BindingFlags bindingAttr)
		{
			foreach (Type interfaceType in interfaceTypes)
			{
				if (!interfaceType.IsInterface)
				{
					throw new ArgumentException($"Type {interfaceType} in interfaceTypes is not an interface!");
				}
			}
			foreach (Type @class in classes)
			{
				if (!@class.IsClass)
				{
					throw new ArgumentException($"Type {@class} in classes is not a class!");
				}
				k_Fields.Clear();
				@class.GetFieldsRecursively(k_Fields, bindingAttr);
				foreach (FieldInfo k_Field in k_Fields)
				{
					Type[] interfaces = k_Field.FieldType.GetInterfaces();
					foreach (Type item in interfaces)
					{
						if (interfaceTypes.Contains(item))
						{
							fields.Add(k_Field);
							break;
						}
					}
				}
			}
		}

		public static TAttribute GetAttribute<TAttribute>(this Type type, bool inherit = false) where TAttribute : Attribute
		{
			return (TAttribute)type.GetCustomAttributes(typeof(TAttribute), inherit)[0];
		}

		public static void IsDefinedGetInheritedTypes<TAttribute>(this Type type, List<Type> types) where TAttribute : Attribute
		{
			while (type != null)
			{
				if (type.IsDefined(typeof(TAttribute), inherit: true))
				{
					types.Add(type);
				}
				type = type.BaseType;
			}
		}

		public static FieldInfo GetFieldInTypeOrBaseType(this Type type, string fieldName)
		{
			FieldInfo field;
			while (true)
			{
				if (type == null)
				{
					return null;
				}
				field = type.GetField(fieldName, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.FlattenHierarchy);
				if (field != null)
				{
					break;
				}
				type = type.BaseType;
			}
			return field;
		}

		public static string GetNameWithGenericArguments(this Type type)
		{
			string name = type.Name;
			name = name.Replace('+', '.');
			if (!type.IsGenericType)
			{
				return name;
			}
			name = name.Split('`')[0];
			Type[] genericArguments = type.GetGenericArguments();
			int num = genericArguments.Length;
			string[] array = new string[num];
			for (int i = 0; i < num; i++)
			{
				array[i] = genericArguments[i].GetNameWithGenericArguments();
			}
			return name + "<" + string.Join(", ", array) + ">";
		}

		public static string GetNameWithFullGenericArguments(this Type type)
		{
			string name = type.Name;
			name = name.Replace('+', '.');
			if (!type.IsGenericType)
			{
				return name;
			}
			name = name.Split('`')[0];
			Type[] genericArguments = type.GetGenericArguments();
			int num = genericArguments.Length;
			string[] array = new string[num];
			for (int i = 0; i < num; i++)
			{
				array[i] = genericArguments[i].GetFullNameWithGenericArgumentsInternal();
			}
			return name + "<" + string.Join(", ", array) + ">";
		}

		public static string GetFullNameWithGenericArguments(this Type type)
		{
			Type type2 = type.DeclaringType;
			if (type2 != null && !type.IsGenericParameter)
			{
				k_TypeNames.Clear();
				string nameWithFullGenericArguments = type.GetNameWithFullGenericArguments();
				k_TypeNames.Add(nameWithFullGenericArguments);
				while (true)
				{
					Type declaringType = type2.DeclaringType;
					if (declaringType == null)
					{
						break;
					}
					nameWithFullGenericArguments = type2.GetNameWithFullGenericArguments();
					k_TypeNames.Insert(0, nameWithFullGenericArguments);
					type2 = declaringType;
				}
				nameWithFullGenericArguments = type2.GetFullNameWithGenericArguments();
				k_TypeNames.Insert(0, nameWithFullGenericArguments);
				return string.Join(".", k_TypeNames.ToArray());
			}
			return type.GetFullNameWithGenericArgumentsInternal();
		}

		private static string GetFullNameWithGenericArgumentsInternal(this Type type)
		{
			string fullName = type.FullName;
			if (!type.IsGenericType)
			{
				return fullName;
			}
			fullName = fullName.Split('`')[0];
			Type[] genericArguments = type.GetGenericArguments();
			int num = genericArguments.Length;
			string[] array = new string[num];
			for (int i = 0; i < num; i++)
			{
				array[i] = genericArguments[i].GetFullNameWithGenericArguments();
			}
			return fullName + "<" + string.Join(", ", array) + ">";
		}

		public static bool IsAssignableFromOrSubclassOf(this Type checkType, Type baseType)
		{
			if (!checkType.IsAssignableFrom(baseType))
			{
				return checkType.IsSubclassOf(baseType);
			}
			return true;
		}

		public static MethodInfo GetMethodRecursively(this Type type, string name, BindingFlags bindingAttr)
		{
			MethodInfo methodInfo = type.GetMethod(name, bindingAttr);
			if (methodInfo != null)
			{
				return methodInfo;
			}
			if (type.BaseType != null)
			{
				methodInfo = type.BaseType.GetMethodRecursively(name, bindingAttr);
			}
			return methodInfo;
		}
	}
	[Serializable]
	public class BoolUnityEvent : UnityEvent<bool>
	{
	}
	[Serializable]
	public class FloatUnityEvent : UnityEvent<float>
	{
	}
	[Serializable]
	public class Vector2UnityEvent : UnityEvent<Vector2>
	{
	}
	[Serializable]
	public class Vector3UnityEvent : UnityEvent<Vector3>
	{
	}
	[Serializable]
	public class Vector4UnityEvent : UnityEvent<Vector4>
	{
	}
	[Serializable

patchers/GameData/ULTRAKILL_Data/Managed/Unity.XR.Management.dll

Decompiled 3 days ago
using System;
using System.CodeDom.Compiler;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using UnityEngine.Rendering;
using UnityEngine.Serialization;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: InternalsVisibleTo("Unity.XR.Management.Editor")]
[assembly: InternalsVisibleTo("Unity.XR.Management.Tests")]
[assembly: InternalsVisibleTo("Unity.XR.Management.EditorTests")]
[assembly: AssemblyVersion("0.0.0.0")]
[CompilerGenerated]
[EditorBrowsable(EditorBrowsableState.Never)]
[GeneratedCode("Unity.MonoScriptGenerator.MonoScriptInfoGenerator", null)]
internal class UnitySourceGeneratedAssemblyMonoScriptTypes_v1
{
	private struct MonoScriptData
	{
		public byte[] FilePathsData;

		public byte[] TypesData;

		public int TotalTypes;

		public int TotalFiles;

		public bool IsEditorOnly;
	}

	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	private static MonoScriptData Get()
	{
		return new MonoScriptData
		{
			FilePathsData = new byte[522]
			{
				0, 0, 0, 1, 0, 0, 0, 82, 92, 76,
				105, 98, 114, 97, 114, 121, 92, 80, 97, 99,
				107, 97, 103, 101, 67, 97, 99, 104, 101, 92,
				99, 111, 109, 46, 117, 110, 105, 116, 121, 46,
				120, 114, 46, 109, 97, 110, 97, 103, 101, 109,
				101, 110, 116, 64, 52, 46, 52, 46, 48, 92,
				82, 117, 110, 116, 105, 109, 101, 92, 88, 82,
				67, 111, 110, 102, 105, 103, 117, 114, 97, 116,
				105, 111, 110, 68, 97, 116, 97, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 80, 92, 76,
				105, 98, 114, 97, 114, 121, 92, 80, 97, 99,
				107, 97, 103, 101, 67, 97, 99, 104, 101, 92,
				99, 111, 109, 46, 117, 110, 105, 116, 121, 46,
				120, 114, 46, 109, 97, 110, 97, 103, 101, 109,
				101, 110, 116, 64, 52, 46, 52, 46, 48, 92,
				82, 117, 110, 116, 105, 109, 101, 92, 88, 82,
				71, 101, 110, 101, 114, 97, 108, 83, 101, 116,
				116, 105, 110, 103, 115, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 71, 92, 76, 105, 98,
				114, 97, 114, 121, 92, 80, 97, 99, 107, 97,
				103, 101, 67, 97, 99, 104, 101, 92, 99, 111,
				109, 46, 117, 110, 105, 116, 121, 46, 120, 114,
				46, 109, 97, 110, 97, 103, 101, 109, 101, 110,
				116, 64, 52, 46, 52, 46, 48, 92, 82, 117,
				110, 116, 105, 109, 101, 92, 88, 82, 76, 111,
				97, 100, 101, 114, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 77, 92, 76, 105, 98, 114,
				97, 114, 121, 92, 80, 97, 99, 107, 97, 103,
				101, 67, 97, 99, 104, 101, 92, 99, 111, 109,
				46, 117, 110, 105, 116, 121, 46, 120, 114, 46,
				109, 97, 110, 97, 103, 101, 109, 101, 110, 116,
				64, 52, 46, 52, 46, 48, 92, 82, 117, 110,
				116, 105, 109, 101, 92, 88, 82, 76, 111, 97,
				100, 101, 114, 72, 101, 108, 112, 101, 114, 46,
				99, 115, 0, 0, 0, 2, 0, 0, 0, 84,
				92, 76, 105, 98, 114, 97, 114, 121, 92, 80,
				97, 99, 107, 97, 103, 101, 67, 97, 99, 104,
				101, 92, 99, 111, 109, 46, 117, 110, 105, 116,
				121, 46, 120, 114, 46, 109, 97, 110, 97, 103,
				101, 109, 101, 110, 116, 64, 52, 46, 52, 46,
				48, 92, 82, 117, 110, 116, 105, 109, 101, 92,
				88, 82, 77, 97, 110, 97, 103, 101, 109, 101,
				110, 116, 65, 110, 97, 108, 121, 116, 105, 99,
				115, 46, 99, 115, 0, 0, 0, 1, 0, 0,
				0, 80, 92, 76, 105, 98, 114, 97, 114, 121,
				92, 80, 97, 99, 107, 97, 103, 101, 67, 97,
				99, 104, 101, 92, 99, 111, 109, 46, 117, 110,
				105, 116, 121, 46, 120, 114, 46, 109, 97, 110,
				97, 103, 101, 109, 101, 110, 116, 64, 52, 46,
				52, 46, 48, 92, 82, 117, 110, 116, 105, 109,
				101, 92, 88, 82, 77, 97, 110, 97, 103, 101,
				114, 83, 101, 116, 116, 105, 110, 103, 115, 46,
				99, 115
			},
			TypesData = new byte[354]
			{
				0, 0, 0, 0, 54, 85, 110, 105, 116, 121,
				69, 110, 103, 105, 110, 101, 46, 88, 82, 46,
				77, 97, 110, 97, 103, 101, 109, 101, 110, 116,
				124, 88, 82, 67, 111, 110, 102, 105, 103, 117,
				114, 97, 116, 105, 111, 110, 68, 97, 116, 97,
				65, 116, 116, 114, 105, 98, 117, 116, 101, 0,
				0, 0, 0, 43, 85, 110, 105, 116, 121, 69,
				110, 103, 105, 110, 101, 46, 88, 82, 46, 77,
				97, 110, 97, 103, 101, 109, 101, 110, 116, 124,
				88, 82, 71, 101, 110, 101, 114, 97, 108, 83,
				101, 116, 116, 105, 110, 103, 115, 0, 0, 0,
				0, 34, 85, 110, 105, 116, 121, 69, 110, 103,
				105, 110, 101, 46, 88, 82, 46, 77, 97, 110,
				97, 103, 101, 109, 101, 110, 116, 124, 88, 82,
				76, 111, 97, 100, 101, 114, 0, 0, 0, 0,
				40, 85, 110, 105, 116, 121, 69, 110, 103, 105,
				110, 101, 46, 88, 82, 46, 77, 97, 110, 97,
				103, 101, 109, 101, 110, 116, 124, 88, 82, 76,
				111, 97, 100, 101, 114, 72, 101, 108, 112, 101,
				114, 0, 0, 0, 0, 47, 85, 110, 105, 116,
				121, 69, 110, 103, 105, 110, 101, 46, 88, 82,
				46, 77, 97, 110, 97, 103, 101, 109, 101, 110,
				116, 124, 88, 82, 77, 97, 110, 97, 103, 101,
				109, 101, 110, 116, 65, 110, 97, 108, 121, 116,
				105, 99, 115, 0, 0, 0, 0, 58, 85, 110,
				105, 116, 121, 69, 110, 103, 105, 110, 101, 46,
				88, 82, 46, 77, 97, 110, 97, 103, 101, 109,
				101, 110, 116, 46, 88, 82, 77, 97, 110, 97,
				103, 101, 109, 101, 110, 116, 65, 110, 97, 108,
				121, 116, 105, 99, 115, 124, 66, 117, 105, 108,
				100, 69, 118, 101, 110, 116, 0, 0, 0, 0,
				43, 85, 110, 105, 116, 121, 69, 110, 103, 105,
				110, 101, 46, 88, 82, 46, 77, 97, 110, 97,
				103, 101, 109, 101, 110, 116, 124, 88, 82, 77,
				97, 110, 97, 103, 101, 114, 83, 101, 116, 116,
				105, 110, 103, 115
			},
			TotalFiles = 6,
			TotalTypes = 7,
			IsEditorOnly = false
		};
	}
}
namespace UnityEngine.XR.Management;

[AttributeUsage(AttributeTargets.Class)]
public sealed class XRConfigurationDataAttribute : Attribute
{
	public string displayName { get; set; }

	public string buildSettingsKey { get; set; }

	private XRConfigurationDataAttribute()
	{
	}

	public XRConfigurationDataAttribute(string displayName, string buildSettingsKey)
	{
		this.displayName = displayName;
		this.buildSettingsKey = buildSettingsKey;
	}
}
public class XRGeneralSettings : ScriptableObject
{
	public static string k_SettingsKey = "com.unity.xr.management.loader_settings";

	internal static XRGeneralSettings s_RuntimeSettingsInstance = null;

	[SerializeField]
	internal XRManagerSettings m_LoaderManagerInstance;

	[SerializeField]
	[Tooltip("Toggling this on/off will enable/disable the automatic startup of XR at run time.")]
	internal bool m_InitManagerOnStart = true;

	private XRManagerSettings m_XRManager;

	private bool m_ProviderIntialized;

	private bool m_ProviderStarted;

	public XRManagerSettings Manager
	{
		get
		{
			return m_LoaderManagerInstance;
		}
		set
		{
			m_LoaderManagerInstance = value;
		}
	}

	public static XRGeneralSettings Instance => s_RuntimeSettingsInstance;

	public XRManagerSettings AssignedSettings => m_LoaderManagerInstance;

	public bool InitManagerOnStart => m_InitManagerOnStart;

	private void Awake()
	{
		Debug.Log((object)"XRGeneral Settings awakening...");
		s_RuntimeSettingsInstance = this;
		Application.quitting += Quit;
		Object.DontDestroyOnLoad((Object)(object)s_RuntimeSettingsInstance);
	}

	private static void Quit()
	{
		XRGeneralSettings instance = Instance;
		if (!((Object)(object)instance == (Object)null))
		{
			instance.DeInitXRSDK();
		}
	}

	private void Start()
	{
		StartXRSDK();
	}

	private void OnDestroy()
	{
		DeInitXRSDK();
	}

	[RuntimeInitializeOnLoadMethod(/*Could not decode attribute arguments.*/)]
	internal static void AttemptInitializeXRSDKOnLoad()
	{
		XRGeneralSettings instance = Instance;
		if (!((Object)(object)instance == (Object)null) && instance.InitManagerOnStart)
		{
			instance.InitXRSDK();
		}
	}

	[RuntimeInitializeOnLoadMethod(/*Could not decode attribute arguments.*/)]
	internal static void AttemptStartXRSDKOnBeforeSplashScreen()
	{
		XRGeneralSettings instance = Instance;
		if (!((Object)(object)instance == (Object)null) && instance.InitManagerOnStart)
		{
			instance.StartXRSDK();
		}
	}

	private void InitXRSDK()
	{
		if (!((Object)(object)Instance == (Object)null) && !((Object)(object)Instance.m_LoaderManagerInstance == (Object)null) && Instance.m_InitManagerOnStart)
		{
			m_XRManager = Instance.m_LoaderManagerInstance;
			if ((Object)(object)m_XRManager == (Object)null)
			{
				Debug.LogError((object)"Assigned GameObject for XR Management loading is invalid. No XR Providers will be automatically loaded.");
				return;
			}
			m_XRManager.automaticLoading = false;
			m_XRManager.automaticRunning = false;
			m_XRManager.InitializeLoaderSync();
			m_ProviderIntialized = true;
		}
	}

	private void StartXRSDK()
	{
		if ((Object)(object)m_XRManager != (Object)null && (Object)(object)m_XRManager.activeLoader != (Object)null)
		{
			m_XRManager.StartSubsystems();
			m_ProviderStarted = true;
		}
	}

	private void StopXRSDK()
	{
		if ((Object)(object)m_XRManager != (Object)null && (Object)(object)m_XRManager.activeLoader != (Object)null)
		{
			m_XRManager.StopSubsystems();
			m_ProviderStarted = false;
		}
	}

	private void DeInitXRSDK()
	{
		if ((Object)(object)m_XRManager != (Object)null && (Object)(object)m_XRManager.activeLoader != (Object)null)
		{
			m_XRManager.DeinitializeLoader();
			m_XRManager = null;
			m_ProviderIntialized = false;
		}
	}
}
public abstract class XRLoader : ScriptableObject
{
	public virtual bool Initialize()
	{
		return true;
	}

	public virtual bool Start()
	{
		return true;
	}

	public virtual bool Stop()
	{
		return true;
	}

	public virtual bool Deinitialize()
	{
		return true;
	}

	public abstract T GetLoadedSubsystem<T>() where T : class, ISubsystem;

	public virtual List<GraphicsDeviceType> GetSupportedGraphicsDeviceTypes(bool buildingPlayer)
	{
		return new List<GraphicsDeviceType>();
	}
}
public abstract class XRLoaderHelper : XRLoader
{
	protected Dictionary<Type, ISubsystem> m_SubsystemInstanceMap = new Dictionary<Type, ISubsystem>();

	public override T GetLoadedSubsystem<T>()
	{
		Type typeFromHandle = typeof(T);
		m_SubsystemInstanceMap.TryGetValue(typeFromHandle, out var value);
		return value as T;
	}

	protected void StartSubsystem<T>() where T : class, ISubsystem
	{
		T loadedSubsystem = GetLoadedSubsystem<T>();
		if (loadedSubsystem != null)
		{
			((ISubsystem)loadedSubsystem).Start();
		}
	}

	protected void StopSubsystem<T>() where T : class, ISubsystem
	{
		T loadedSubsystem = GetLoadedSubsystem<T>();
		if (loadedSubsystem != null)
		{
			((ISubsystem)loadedSubsystem).Stop();
		}
	}

	protected void DestroySubsystem<T>() where T : class, ISubsystem
	{
		T loadedSubsystem = GetLoadedSubsystem<T>();
		if (loadedSubsystem != null)
		{
			Type typeFromHandle = typeof(T);
			if (m_SubsystemInstanceMap.ContainsKey(typeFromHandle))
			{
				m_SubsystemInstanceMap.Remove(typeFromHandle);
			}
			((ISubsystem)loadedSubsystem).Destroy();
		}
	}

	protected void CreateSubsystem<TDescriptor, TSubsystem>(List<TDescriptor> descriptors, string id) where TDescriptor : ISubsystemDescriptor where TSubsystem : ISubsystem
	{
		if (descriptors == null)
		{
			throw new ArgumentNullException("descriptors");
		}
		SubsystemManager.GetSubsystemDescriptors<TDescriptor>(descriptors);
		if (descriptors.Count <= 0)
		{
			return;
		}
		foreach (TDescriptor descriptor in descriptors)
		{
			ISubsystem val = null;
			if (string.Compare(((ISubsystemDescriptor)descriptor).id, id, ignoreCase: true) == 0)
			{
				val = ((ISubsystemDescriptor)descriptor/*cast due to .constrained prefix*/).Create();
			}
			if (val != null)
			{
				m_SubsystemInstanceMap[typeof(TSubsystem)] = val;
				break;
			}
		}
	}

	[Obsolete("This method is obsolete. Please use the geenric CreateSubsystem method.", false)]
	protected void CreateIntegratedSubsystem<TDescriptor, TSubsystem>(List<TDescriptor> descriptors, string id) where TDescriptor : IntegratedSubsystemDescriptor where TSubsystem : IntegratedSubsystem
	{
		CreateSubsystem<TDescriptor, TSubsystem>(descriptors, id);
	}

	[Obsolete("This method is obsolete. Please use the generic CreateSubsystem method.", false)]
	protected void CreateStandaloneSubsystem<TDescriptor, TSubsystem>(List<TDescriptor> descriptors, string id) where TDescriptor : SubsystemDescriptor where TSubsystem : Subsystem
	{
		CreateSubsystem<TDescriptor, TSubsystem>(descriptors, id);
	}

	public override bool Deinitialize()
	{
		m_SubsystemInstanceMap.Clear();
		return base.Deinitialize();
	}
}
internal static class XRManagementAnalytics
{
	[Serializable]
	private struct BuildEvent
	{
		public string buildGuid;

		public string buildTarget;

		public string buildTargetGroup;

		public string[] assigned_loaders;
	}

	private const int kMaxEventsPerHour = 1000;

	private const int kMaxNumberOfElements = 1000;

	private const string kVendorKey = "unity.xrmanagement";

	private const string kEventBuild = "xrmanagment_build";

	private static bool s_Initialized;

	private static bool Initialize()
	{
		return s_Initialized;
	}
}
public sealed class XRManagerSettings : ScriptableObject
{
	[HideInInspector]
	private bool m_InitializationComplete;

	[HideInInspector]
	[SerializeField]
	private bool m_RequiresSettingsUpdate;

	[SerializeField]
	[Tooltip("Determines if the XR Manager instance is responsible for creating and destroying the appropriate loader instance.")]
	[FormerlySerializedAs("AutomaticLoading")]
	private bool m_AutomaticLoading;

	[SerializeField]
	[Tooltip("Determines if the XR Manager instance is responsible for starting and stopping subsystems for the active loader instance.")]
	[FormerlySerializedAs("AutomaticRunning")]
	private bool m_AutomaticRunning;

	[SerializeField]
	[Tooltip("List of XR Loader instances arranged in desired load order.")]
	[FormerlySerializedAs("Loaders")]
	private List<XRLoader> m_Loaders = new List<XRLoader>();

	[SerializeField]
	[HideInInspector]
	private HashSet<XRLoader> m_RegisteredLoaders = new HashSet<XRLoader>();

	public bool automaticLoading
	{
		get
		{
			return m_AutomaticLoading;
		}
		set
		{
			m_AutomaticLoading = value;
		}
	}

	public bool automaticRunning
	{
		get
		{
			return m_AutomaticRunning;
		}
		set
		{
			m_AutomaticRunning = value;
		}
	}

	[Obsolete("'XRManagerSettings.loaders' property is obsolete. Use 'XRManagerSettings.activeLoaders' instead to get a list of the current loaders.")]
	public List<XRLoader> loaders => m_Loaders;

	public IReadOnlyList<XRLoader> activeLoaders => m_Loaders;

	public bool isInitializationComplete => m_InitializationComplete;

	[HideInInspector]
	public XRLoader activeLoader { get; private set; }

	internal List<XRLoader> currentLoaders
	{
		get
		{
			return m_Loaders;
		}
		set
		{
			m_Loaders = value;
		}
	}

	internal HashSet<XRLoader> registeredLoaders => m_RegisteredLoaders;

	public T ActiveLoaderAs<T>() where T : XRLoader
	{
		return activeLoader as T;
	}

	public void InitializeLoaderSync()
	{
		if ((Object)(object)activeLoader != (Object)null)
		{
			Debug.LogWarning((object)"XR Management has already initialized an active loader in this scene. Please make sure to stop all subsystems and deinitialize the active loader before initializing a new one.");
			return;
		}
		foreach (XRLoader currentLoader in currentLoaders)
		{
			if ((Object)(object)currentLoader != (Object)null && CheckGraphicsAPICompatibility(currentLoader) && currentLoader.Initialize())
			{
				activeLoader = currentLoader;
				m_InitializationComplete = true;
				return;
			}
		}
		activeLoader = null;
	}

	public IEnumerator InitializeLoader()
	{
		if ((Object)(object)activeLoader != (Object)null)
		{
			Debug.LogWarning((object)"XR Management has already initialized an active loader in this scene. Please make sure to stop all subsystems and deinitialize the active loader before initializing a new one.");
			yield break;
		}
		foreach (XRLoader currentLoader in currentLoaders)
		{
			if ((Object)(object)currentLoader != (Object)null && CheckGraphicsAPICompatibility(currentLoader) && currentLoader.Initialize())
			{
				activeLoader = currentLoader;
				m_InitializationComplete = true;
				yield break;
			}
			yield return null;
		}
		activeLoader = null;
	}

	public bool TryAddLoader(XRLoader loader, int index = -1)
	{
		if ((Object)(object)loader == (Object)null || currentLoaders.Contains(loader))
		{
			return false;
		}
		if (!m_RegisteredLoaders.Contains(loader))
		{
			return false;
		}
		if (index < 0 || index >= currentLoaders.Count)
		{
			currentLoaders.Add(loader);
		}
		else
		{
			currentLoaders.Insert(index, loader);
		}
		return true;
	}

	public bool TryRemoveLoader(XRLoader loader)
	{
		bool result = true;
		if (currentLoaders.Contains(loader))
		{
			result = currentLoaders.Remove(loader);
		}
		return result;
	}

	public bool TrySetLoaders(List<XRLoader> reorderedLoaders)
	{
		List<XRLoader> list = new List<XRLoader>(activeLoaders);
		currentLoaders.Clear();
		foreach (XRLoader reorderedLoader in reorderedLoaders)
		{
			if (!TryAddLoader(reorderedLoader))
			{
				currentLoaders = list;
				return false;
			}
		}
		return true;
	}

	private void Awake()
	{
		foreach (XRLoader currentLoader in currentLoaders)
		{
			if (!m_RegisteredLoaders.Contains(currentLoader))
			{
				m_RegisteredLoaders.Add(currentLoader);
			}
		}
	}

	private unsafe bool CheckGraphicsAPICompatibility(XRLoader loader)
	{
		//IL_0000: Unknown result type (might be due to invalid IL or missing references)
		//IL_0005: Unknown result type (might be due to invalid IL or missing references)
		//IL_0018: Unknown result type (might be due to invalid IL or missing references)
		GraphicsDeviceType graphicsDeviceType = SystemInfo.graphicsDeviceType;
		List<GraphicsDeviceType> supportedGraphicsDeviceTypes = loader.GetSupportedGraphicsDeviceTypes(buildingPlayer: false);
		if (supportedGraphicsDeviceTypes.Count > 0 && !supportedGraphicsDeviceTypes.Contains(graphicsDeviceType))
		{
			Debug.LogWarning((object)$"The {((Object)loader).name} does not support the initialized graphics device, {((object)(*(GraphicsDeviceType*)(&graphicsDeviceType))/*cast due to .constrained prefix*/).ToString()}. Please change the preffered Graphics API in PlayerSettings. Attempting to start the next XR loader.");
			return false;
		}
		return true;
	}

	public void StartSubsystems()
	{
		if (!m_InitializationComplete)
		{
			Debug.LogWarning((object)"Call to StartSubsystems without an initialized manager.Please make sure wait for initialization to complete before calling this API.");
		}
		else if ((Object)(object)activeLoader != (Object)null)
		{
			activeLoader.Start();
		}
	}

	public void StopSubsystems()
	{
		if (!m_InitializationComplete)
		{
			Debug.LogWarning((object)"Call to StopSubsystems without an initialized manager.Please make sure wait for initialization to complete before calling this API.");
		}
		else if ((Object)(object)activeLoader != (Object)null)
		{
			activeLoader.Stop();
		}
	}

	public void DeinitializeLoader()
	{
		if (!m_InitializationComplete)
		{
			Debug.LogWarning((object)"Call to DeinitializeLoader without an initialized manager.Please make sure wait for initialization to complete before calling this API.");
			return;
		}
		StopSubsystems();
		if ((Object)(object)activeLoader != (Object)null)
		{
			activeLoader.Deinitialize();
			activeLoader = null;
		}
		m_InitializationComplete = false;
	}

	private void Start()
	{
		if (automaticLoading && automaticRunning)
		{
			StartSubsystems();
		}
	}

	private void OnDisable()
	{
		if (automaticLoading && automaticRunning)
		{
			StopSubsystems();
		}
	}

	private void OnDestroy()
	{
		if (automaticLoading)
		{
			DeinitializeLoader();
		}
	}
}

patchers/GameData/ULTRAKILL_Data/Managed/Unity.XR.OpenVR.dll

Decompiled 3 days ago
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
using AOT;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.InputSystem;
using UnityEngine.InputSystem.Layouts;
using UnityEngine.InputSystem.XR;
using UnityEngine.XR;
using UnityEngine.XR.Management;
using Valve.VR;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyVersion("0.0.0.0")]
[CompilerGenerated]
[EditorBrowsable(EditorBrowsableState.Never)]
[GeneratedCode("Unity.MonoScriptGenerator.MonoScriptInfoGenerator", null)]
internal class UnitySourceGeneratedAssemblyMonoScriptTypes_v1
{
	private struct MonoScriptData
	{
		public byte[] FilePathsData;

		public byte[] TypesData;

		public int TotalTypes;

		public int TotalFiles;

		public bool IsEditorOnly;
	}

	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	private static MonoScriptData Get()
	{
		return new MonoScriptData
		{
			FilePathsData = new byte[486]
			{
				0, 0, 0, 2, 0, 0, 0, 89, 92, 76,
				105, 98, 114, 97, 114, 121, 92, 80, 97, 99,
				107, 97, 103, 101, 67, 97, 99, 104, 101, 92,
				99, 111, 109, 46, 118, 97, 108, 118, 101, 115,
				111, 102, 116, 119, 97, 114, 101, 46, 117, 110,
				105, 116, 121, 46, 111, 112, 101, 110, 118, 114,
				64, 57, 55, 48, 97, 99, 52, 55, 55, 56,
				54, 99, 52, 92, 82, 117, 110, 116, 105, 109,
				101, 92, 79, 112, 101, 110, 86, 82, 69, 118,
				101, 110, 116, 115, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 90, 92, 76, 105, 98, 114,
				97, 114, 121, 92, 80, 97, 99, 107, 97, 103,
				101, 67, 97, 99, 104, 101, 92, 99, 111, 109,
				46, 118, 97, 108, 118, 101, 115, 111, 102, 116,
				119, 97, 114, 101, 46, 117, 110, 105, 116, 121,
				46, 111, 112, 101, 110, 118, 114, 64, 57, 55,
				48, 97, 99, 52, 55, 55, 56, 54, 99, 52,
				92, 82, 117, 110, 116, 105, 109, 101, 92, 79,
				112, 101, 110, 86, 82, 72, 101, 108, 112, 101,
				114, 115, 46, 99, 115, 0, 0, 0, 3, 0,
				0, 0, 89, 92, 76, 105, 98, 114, 97, 114,
				121, 92, 80, 97, 99, 107, 97, 103, 101, 67,
				97, 99, 104, 101, 92, 99, 111, 109, 46, 118,
				97, 108, 118, 101, 115, 111, 102, 116, 119, 97,
				114, 101, 46, 117, 110, 105, 116, 121, 46, 111,
				112, 101, 110, 118, 114, 64, 57, 55, 48, 97,
				99, 52, 55, 55, 56, 54, 99, 52, 92, 82,
				117, 110, 116, 105, 109, 101, 92, 79, 112, 101,
				110, 86, 82, 76, 111, 97, 100, 101, 114, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 91,
				92, 76, 105, 98, 114, 97, 114, 121, 92, 80,
				97, 99, 107, 97, 103, 101, 67, 97, 99, 104,
				101, 92, 99, 111, 109, 46, 118, 97, 108, 118,
				101, 115, 111, 102, 116, 119, 97, 114, 101, 46,
				117, 110, 105, 116, 121, 46, 111, 112, 101, 110,
				118, 114, 64, 57, 55, 48, 97, 99, 52, 55,
				55, 56, 54, 99, 52, 92, 82, 117, 110, 116,
				105, 109, 101, 92, 79, 112, 101, 110, 86, 82,
				83, 101, 116, 116, 105, 110, 103, 115, 46, 99,
				115, 0, 0, 0, 157, 0, 0, 0, 87, 92,
				76, 105, 98, 114, 97, 114, 121, 92, 80, 97,
				99, 107, 97, 103, 101, 67, 97, 99, 104, 101,
				92, 99, 111, 109, 46, 118, 97, 108, 118, 101,
				115, 111, 102, 116, 119, 97, 114, 101, 46, 117,
				110, 105, 116, 121, 46, 111, 112, 101, 110, 118,
				114, 64, 57, 55, 48, 97, 99, 52, 55, 55,
				56, 54, 99, 52, 92, 82, 117, 110, 116, 105,
				109, 101, 92, 111, 112, 101, 110, 118, 114, 95,
				97, 112, 105, 46, 99, 115
			},
			TypesData = new byte[5324]
			{
				0, 0, 0, 0, 27, 85, 110, 105, 116, 121,
				46, 88, 82, 46, 79, 112, 101, 110, 86, 82,
				124, 79, 112, 101, 110, 86, 82, 69, 118, 101,
				110, 116, 0, 0, 0, 0, 28, 85, 110, 105,
				116, 121, 46, 88, 82, 46, 79, 112, 101, 110,
				86, 82, 124, 79, 112, 101, 110, 86, 82, 69,
				118, 101, 110, 116, 115, 0, 0, 0, 0, 29,
				85, 110, 105, 116, 121, 46, 88, 82, 46, 79,
				112, 101, 110, 86, 82, 124, 79, 112, 101, 110,
				86, 82, 72, 101, 108, 112, 101, 114, 115, 0,
				0, 0, 0, 33, 85, 110, 105, 116, 121, 46,
				88, 82, 46, 79, 112, 101, 110, 86, 82, 124,
				73, 110, 112, 117, 116, 76, 97, 121, 111, 117,
				116, 76, 111, 97, 100, 101, 114, 0, 0, 0,
				0, 28, 85, 110, 105, 116, 121, 46, 88, 82,
				46, 79, 112, 101, 110, 86, 82, 124, 79, 112,
				101, 110, 86, 82, 76, 111, 97, 100, 101, 114,
				0, 0, 0, 0, 48, 85, 110, 105, 116, 121,
				46, 88, 82, 46, 79, 112, 101, 110, 86, 82,
				46, 79, 112, 101, 110, 86, 82, 76, 111, 97,
				100, 101, 114, 124, 85, 115, 101, 114, 68, 101,
				102, 105, 110, 101, 100, 83, 101, 116, 116, 105,
				110, 103, 115, 0, 0, 0, 0, 30, 85, 110,
				105, 116, 121, 46, 88, 82, 46, 79, 112, 101,
				110, 86, 82, 124, 79, 112, 101, 110, 86, 82,
				83, 101, 116, 116, 105, 110, 103, 115, 0, 0,
				0, 0, 18, 86, 97, 108, 118, 101, 46, 86,
				82, 124, 73, 86, 82, 83, 121, 115, 116, 101,
				109, 0, 0, 0, 0, 27, 86, 97, 108, 118,
				101, 46, 86, 82, 124, 73, 86, 82, 69, 120,
				116, 101, 110, 100, 101, 100, 68, 105, 115, 112,
				108, 97, 121, 0, 0, 0, 0, 25, 86, 97,
				108, 118, 101, 46, 86, 82, 124, 73, 86, 82,
				84, 114, 97, 99, 107, 101, 100, 67, 97, 109,
				101, 114, 97, 0, 0, 0, 0, 24, 86, 97,
				108, 118, 101, 46, 86, 82, 124, 73, 86, 82,
				65, 112, 112, 108, 105, 99, 97, 116, 105, 111,
				110, 115, 0, 0, 0, 0, 21, 86, 97, 108,
				118, 101, 46, 86, 82, 124, 73, 86, 82, 67,
				104, 97, 112, 101, 114, 111, 110, 101, 0, 0,
				0, 0, 26, 86, 97, 108, 118, 101, 46, 86,
				82, 124, 73, 86, 82, 67, 104, 97, 112, 101,
				114, 111, 110, 101, 83, 101, 116, 117, 112, 0,
				0, 0, 0, 22, 86, 97, 108, 118, 101, 46,
				86, 82, 124, 73, 86, 82, 67, 111, 109, 112,
				111, 115, 105, 116, 111, 114, 0, 0, 0, 0,
				19, 86, 97, 108, 118, 101, 46, 86, 82, 124,
				73, 86, 82, 79, 118, 101, 114, 108, 97, 121,
				0, 0, 0, 0, 23, 86, 97, 108, 118, 101,
				46, 86, 82, 124, 73, 86, 82, 79, 118, 101,
				114, 108, 97, 121, 86, 105, 101, 119, 0, 0,
				0, 0, 23, 86, 97, 108, 118, 101, 46, 86,
				82, 124, 73, 86, 82, 72, 101, 97, 100, 115,
				101, 116, 86, 105, 101, 119, 0, 0, 0, 0,
				24, 86, 97, 108, 118, 101, 46, 86, 82, 124,
				73, 86, 82, 82, 101, 110, 100, 101, 114, 77,
				111, 100, 101, 108, 115, 0, 0, 0, 0, 25,
				86, 97, 108, 118, 101, 46, 86, 82, 124, 73,
				86, 82, 78, 111, 116, 105, 102, 105, 99, 97,
				116, 105, 111, 110, 115, 0, 0, 0, 0, 20,
				86, 97, 108, 118, 101, 46, 86, 82, 124, 73,
				86, 82, 83, 101, 116, 116, 105, 110, 103, 115,
				0, 0, 0, 0, 23, 86, 97, 108, 118, 101,
				46, 86, 82, 124, 73, 86, 82, 83, 99, 114,
				101, 101, 110, 115, 104, 111, 116, 115, 0, 0,
				0, 0, 21, 86, 97, 108, 118, 101, 46, 86,
				82, 124, 73, 86, 82, 82, 101, 115, 111, 117,
				114, 99, 101, 115, 0, 0, 0, 0, 25, 86,
				97, 108, 118, 101, 46, 86, 82, 124, 73, 86,
				82, 68, 114, 105, 118, 101, 114, 77, 97, 110,
				97, 103, 101, 114, 0, 0, 0, 0, 17, 86,
				97, 108, 118, 101, 46, 86, 82, 124, 73, 86,
				82, 73, 110, 112, 117, 116, 0, 0, 0, 0,
				20, 86, 97, 108, 118, 101, 46, 86, 82, 124,
				73, 86, 82, 73, 79, 66, 117, 102, 102, 101,
				114, 0, 0, 0, 0, 26, 86, 97, 108, 118,
				101, 46, 86, 82, 124, 73, 86, 82, 83, 112,
				97, 116, 105, 97, 108, 65, 110, 99, 104, 111,
				114, 115, 0, 0, 0, 0, 17, 86, 97, 108,
				118, 101, 46, 86, 82, 124, 73, 86, 82, 68,
				101, 98, 117, 103, 0, 0, 0, 0, 22, 86,
				97, 108, 118, 101, 46, 86, 82, 124, 73, 86,
				82, 80, 114, 111, 112, 101, 114, 116, 105, 101,
				115, 0, 0, 0, 0, 17, 86, 97, 108, 118,
				101, 46, 86, 82, 124, 73, 86, 82, 80, 97,
				116, 104, 115, 0, 0, 0, 0, 22, 86, 97,
				108, 118, 101, 46, 86, 82, 124, 73, 86, 82,
				66, 108, 111, 99, 107, 81, 117, 101, 117, 101,
				0, 0, 0, 0, 14, 86, 97, 108, 118, 101,
				46, 86, 82, 124, 85, 116, 105, 108, 115, 0,
				0, 0, 0, 18, 86, 97, 108, 118, 101, 46,
				86, 82, 124, 67, 86, 82, 83, 121, 115, 116,
				101, 109, 0, 0, 0, 0, 37, 86, 97, 108,
				118, 101, 46, 86, 82, 46, 67, 86, 82, 83,
				121, 115, 116, 101, 109, 124, 80, 111, 108, 108,
				78, 101, 120, 116, 69, 118, 101, 110, 116, 85,
				110, 105, 111, 110, 0, 0, 0, 0, 42, 86,
				97, 108, 118, 101, 46, 86, 82, 46, 67, 86,
				82, 83, 121, 115, 116, 101, 109, 124, 71, 101,
				116, 67, 111, 110, 116, 114, 111, 108, 108, 101,
				114, 83, 116, 97, 116, 101, 85, 110, 105, 111,
				110, 0, 0, 0, 0, 50, 86, 97, 108, 118,
				101, 46, 86, 82, 46, 67, 86, 82, 83, 121,
				115, 116, 101, 109, 124, 71, 101, 116, 67, 111,
				110, 116, 114, 111, 108, 108, 101, 114, 83, 116,
				97, 116, 101, 87, 105, 116, 104, 80, 111, 115,
				101, 85, 110, 105, 111, 110, 0, 0, 0, 0,
				27, 86, 97, 108, 118, 101, 46, 86, 82, 124,
				67, 86, 82, 69, 120, 116, 101, 110, 100, 101,
				100, 68, 105, 115, 112, 108, 97, 121, 0, 0,
				0, 0, 25, 86, 97, 108, 118, 101, 46, 86,
				82, 124, 67, 86, 82, 84, 114, 97, 99, 107,
				101, 100, 67, 97, 109, 101, 114, 97, 0, 0,
				0, 0, 24, 86, 97, 108, 118, 101, 46, 86,
				82, 124, 67, 86, 82, 65, 112, 112, 108, 105,
				99, 97, 116, 105, 111, 110, 115, 0, 0, 0,
				0, 21, 86, 97, 108, 118, 101, 46, 86, 82,
				124, 67, 86, 82, 67, 104, 97, 112, 101, 114,
				111, 110, 101, 0, 0, 0, 0, 26, 86, 97,
				108, 118, 101, 46, 86, 82, 124, 67, 86, 82,
				67, 104, 97, 112, 101, 114, 111, 110, 101, 83,
				101, 116, 117, 112, 0, 0, 0, 0, 22, 86,
				97, 108, 118, 101, 46, 86, 82, 124, 67, 86,
				82, 67, 111, 109, 112, 111, 115, 105, 116, 111,
				114, 0, 0, 0, 0, 19, 86, 97, 108, 118,
				101, 46, 86, 82, 124, 67, 86, 82, 79, 118,
				101, 114, 108, 97, 121, 0, 0, 0, 0, 45,
				86, 97, 108, 118, 101, 46, 86, 82, 46, 67,
				86, 82, 79, 118, 101, 114, 108, 97, 121, 124,
				80, 111, 108, 108, 78, 101, 120, 116, 79, 118,
				101, 114, 108, 97, 121, 69, 118, 101, 110, 116,
				85, 110, 105, 111, 110, 0, 0, 0, 0, 23,
				86, 97, 108, 118, 101, 46, 86, 82, 124, 67,
				86, 82, 79, 118, 101, 114, 108, 97, 121, 86,
				105, 101, 119, 0, 0, 0, 0, 23, 86, 97,
				108, 118, 101, 46, 86, 82, 124, 67, 86, 82,
				72, 101, 97, 100, 115, 101, 116, 86, 105, 101,
				119, 0, 0, 0, 0, 24, 86, 97, 108, 118,
				101, 46, 86, 82, 124, 67, 86, 82, 82, 101,
				110, 100, 101, 114, 77, 111, 100, 101, 108, 115,
				0, 0, 0, 0, 47, 86, 97, 108, 118, 101,
				46, 86, 82, 46, 67, 86, 82, 82, 101, 110,
				100, 101, 114, 77, 111, 100, 101, 108, 115, 124,
				71, 101, 116, 67, 111, 109, 112, 111, 110, 101,
				110, 116, 83, 116, 97, 116, 101, 85, 110, 105,
				111, 110, 0, 0, 0, 0, 25, 86, 97, 108,
				118, 101, 46, 86, 82, 124, 67, 86, 82, 78,
				111, 116, 105, 102, 105, 99, 97, 116, 105, 111,
				110, 115, 0, 0, 0, 0, 20, 86, 97, 108,
				118, 101, 46, 86, 82, 124, 67, 86, 82, 83,
				101, 116, 116, 105, 110, 103, 115, 0, 0, 0,
				0, 23, 86, 97, 108, 118, 101, 46, 86, 82,
				124, 67, 86, 82, 83, 99, 114, 101, 101, 110,
				115, 104, 111, 116, 115, 0, 0, 0, 0, 21,
				86, 97, 108, 118, 101, 46, 86, 82, 124, 67,
				86, 82, 82, 101, 115, 111, 117, 114, 99, 101,
				115, 0, 0, 0, 0, 25, 86, 97, 108, 118,
				101, 46, 86, 82, 124, 67, 86, 82, 68, 114,
				105, 118, 101, 114, 77, 97, 110, 97, 103, 101,
				114, 0, 0, 0, 0, 17, 86, 97, 108, 118,
				101, 46, 86, 82, 124, 67, 86, 82, 73, 110,
				112, 117, 116, 0, 0, 0, 0, 20, 86, 97,
				108, 118, 101, 46, 86, 82, 124, 67, 86, 82,
				73, 79, 66, 117, 102, 102, 101, 114, 0, 0,
				0, 0, 26, 86, 97, 108, 118, 101, 46, 86,
				82, 124, 67, 86, 82, 83, 112, 97, 116, 105,
				97, 108, 65, 110, 99, 104, 111, 114, 115, 0,
				0, 0, 0, 17, 86, 97, 108, 118, 101, 46,
				86, 82, 124, 67, 86, 82, 68, 101, 98, 117,
				103, 0, 0, 0, 0, 22, 86, 97, 108, 118,
				101, 46, 86, 82, 124, 67, 86, 82, 80, 114,
				111, 112, 101, 114, 116, 105, 101, 115, 0, 0,
				0, 0, 17, 86, 97, 108, 118, 101, 46, 86,
				82, 124, 67, 86, 82, 80, 97, 116, 104, 115,
				0, 0, 0, 0, 22, 86, 97, 108, 118, 101,
				46, 86, 82, 124, 67, 86, 82, 66, 108, 111,
				99, 107, 81, 117, 101, 117, 101, 0, 0, 0,
				0, 22, 86, 97, 108, 118, 101, 46, 86, 82,
				124, 79, 112, 101, 110, 86, 82, 73, 110, 116,
				101, 114, 111, 112, 0, 0, 0, 0, 23, 86,
				97, 108, 118, 101, 46, 86, 82, 124, 86, 82,
				69, 118, 101, 110, 116, 95, 68, 97, 116, 97,
				95, 116, 0, 0, 0, 0, 50, 86, 97, 108,
				118, 101, 46, 86, 82, 124, 86, 82, 79, 118,
				101, 114, 108, 97, 121, 73, 110, 116, 101, 114,
				115, 101, 99, 116, 105, 111, 110, 77, 97, 115,
				107, 80, 114, 105, 109, 105, 116, 105, 118, 101,
				95, 68, 97, 116, 97, 95, 116, 0, 0, 0,
				0, 22, 86, 97, 108, 118, 101, 46, 86, 82,
				124, 72, 109, 100, 77, 97, 116, 114, 105, 120,
				51, 52, 95, 116, 0, 0, 0, 0, 22, 86,
				97, 108, 118, 101, 46, 86, 82, 124, 72, 109,
				100, 77, 97, 116, 114, 105, 120, 51, 51, 95,
				116, 0, 0, 0, 0, 22, 86, 97, 108, 118,
				101, 46, 86, 82, 124, 72, 109, 100, 77, 97,
				116, 114, 105, 120, 52, 52, 95, 116, 0, 0,
				0, 0, 21, 86, 97, 108, 118, 101, 46, 86,
				82, 124, 72, 109, 100, 86, 101, 99, 116, 111,
				114, 51, 95, 116, 0, 0, 0, 0, 21, 86,
				97, 108, 118, 101, 46, 86, 82, 124, 72, 109,
				100, 86, 101, 99, 116, 111, 114, 52, 95, 116,
				0, 0, 0, 0, 22, 86, 97, 108, 118, 101,
				46, 86, 82, 124, 72, 109, 100, 86, 101, 99,
				116, 111, 114, 51, 100, 95, 116, 0, 0, 0,
				0, 21, 86, 97, 108, 118, 101, 46, 86, 82,
				124, 72, 109, 100, 86, 101, 99, 116, 111, 114,
				50, 95, 116, 0, 0, 0, 0, 24, 86, 97,
				108, 118, 101, 46, 86, 82, 124, 72, 109, 100,
				81, 117, 97, 116, 101, 114, 110, 105, 111, 110,
				95, 116, 0, 0, 0, 0, 25, 86, 97, 108,
				118, 101, 46, 86, 82, 124, 72, 109, 100, 81,
				117, 97, 116, 101, 114, 110, 105, 111, 110, 102,
				95, 116, 0, 0, 0, 0, 19, 86, 97, 108,
				118, 101, 46, 86, 82, 124, 72, 109, 100, 67,
				111, 108, 111, 114, 95, 116, 0, 0, 0, 0,
				18, 86, 97, 108, 118, 101, 46, 86, 82, 124,
				72, 109, 100, 81, 117, 97, 100, 95, 116, 0,
				0, 0, 0, 19, 86, 97, 108, 118, 101, 46,
				86, 82, 124, 72, 109, 100, 82, 101, 99, 116,
				50, 95, 116, 0, 0, 0, 0, 26, 86, 97,
				108, 118, 101, 46, 86, 82, 124, 86, 82, 66,
				111, 110, 101, 84, 114, 97, 110, 115, 102, 111,
				114, 109, 95, 116, 0, 0, 0, 0, 32, 86,
				97, 108, 118, 101, 46, 86, 82, 124, 68, 105,
				115, 116, 111, 114, 116, 105, 111, 110, 67, 111,
				111, 114, 100, 105, 110, 97, 116, 101, 115, 95,
				116, 0, 0, 0, 0, 18, 86, 97, 108, 118,
				101, 46, 86, 82, 124, 84, 101, 120, 116, 117,
				114, 101, 95, 116, 0, 0, 0, 0, 26, 86,
				97, 108, 118, 101, 46, 86, 82, 124, 86, 82,
				84, 101, 120, 116, 117, 114, 101, 66, 111, 117,
				110, 100, 115, 95, 116, 0, 0, 0, 0, 28,
				86, 97, 108, 118, 101, 46, 86, 82, 124, 86,
				82, 84, 101, 120, 116, 117, 114, 101, 87, 105,
				116, 104, 80, 111, 115, 101, 95, 116, 0, 0,
				0, 0, 29, 86, 97, 108, 118, 101, 46, 86,
				82, 124, 86, 82, 84, 101, 120, 116, 117, 114,
				101, 68, 101, 112, 116, 104, 73, 110, 102, 111,
				95, 116, 0, 0, 0, 0, 29, 86, 97, 108,
				118, 101, 46, 86, 82, 124, 86, 82, 84, 101,
				120, 116, 117, 114, 101, 87, 105, 116, 104, 68,
				101, 112, 116, 104, 95, 116, 0, 0, 0, 0,
				36, 86, 97, 108, 118, 101, 46, 86, 82, 124,
				86, 82, 84, 101, 120, 116, 117, 114, 101, 87,
				105, 116, 104, 80, 111, 115, 101, 65, 110, 100,
				68, 101, 112, 116, 104, 95, 116, 0, 0, 0,
				0, 28, 86, 97, 108, 118, 101, 46, 86, 82,
				124, 84, 114, 97, 99, 107, 101, 100, 68, 101,
				118, 105, 99, 101, 80, 111, 115, 101, 95, 116,
				0, 0, 0, 0, 30, 86, 97, 108, 118, 101,
				46, 86, 82, 124, 86, 82, 86, 117, 108, 107,
				97, 110, 84, 101, 120, 116, 117, 114, 101, 68,
				97, 116, 97, 95, 116, 0, 0, 0, 0, 35,
				86, 97, 108, 118, 101, 46, 86, 82, 124, 86,
				82, 86, 117, 108, 107, 97, 110, 84, 101, 120,
				116, 117, 114, 101, 65, 114, 114, 97, 121, 68,
				97, 116, 97, 95, 116, 0, 0, 0, 0, 27,
				86, 97, 108, 118, 101, 46, 86, 82, 124, 68,
				51, 68, 49, 50, 84, 101, 120, 116, 117, 114,
				101, 68, 97, 116, 97, 95, 116, 0, 0, 0,
				0, 29, 86, 97, 108, 118, 101, 46, 86, 82,
				124, 86, 82, 69, 118, 101, 110, 116, 95, 67,
				111, 110, 116, 114, 111, 108, 108, 101, 114, 95,
				116, 0, 0, 0, 0, 24, 86, 97, 108, 118,
				101, 46, 86, 82, 124, 86, 82, 69, 118, 101,
				110, 116, 95, 77, 111, 117, 115, 101, 95, 116,
				0, 0, 0, 0, 25, 86, 97, 108, 118, 101,
				46, 86, 82, 124, 86, 82, 69, 118, 101, 110,
				116, 95, 83, 99, 114, 111, 108, 108, 95, 116,
				0, 0, 0, 0, 31, 86, 97, 108, 118, 101,
				46, 86, 82, 124, 86, 82, 69, 118, 101, 110,
				116, 95, 84, 111, 117, 99, 104, 80, 97, 100,
				77, 111, 118, 101, 95, 116, 0, 0, 0, 0,
				31, 86, 97, 108, 118, 101, 46, 86, 82, 124,
				86, 82, 69, 118, 101, 110, 116, 95, 78, 111,
				116, 105, 102, 105, 99, 97, 116, 105, 111, 110,
				95, 116, 0, 0, 0, 0, 26, 86, 97, 108,
				118, 101, 46, 86, 82, 124, 86, 82, 69, 118,
				101, 110, 116, 95, 80, 114, 111, 99, 101, 115,
				115, 95, 116, 0, 0, 0, 0, 26, 86, 97,
				108, 118, 101, 46, 86, 82, 124, 86, 82, 69,
				118, 101, 110, 116, 95, 79, 118, 101, 114, 108,
				97, 121, 95, 116, 0, 0, 0, 0, 25, 86,
				97, 108, 118, 101, 46, 86, 82, 124, 86, 82,
				69, 118, 101, 110, 116, 95, 83, 116, 97, 116,
				117, 115, 95, 116, 0, 0, 0, 0, 27, 86,
				97, 108, 118, 101, 46, 86, 82, 124, 86, 82,
				69, 118, 101, 110, 116, 95, 75, 101, 121, 98,
				111, 97, 114, 100, 95, 116, 0, 0, 0, 0,
				22, 86, 97, 108, 118, 101, 46, 86, 82, 124,
				86, 82, 69, 118, 101, 110, 116, 95, 73, 112,
				100, 95, 116, 0, 0, 0, 0, 28, 86, 97,
				108, 118, 101, 46, 86, 82, 124, 86, 82, 69,
				118, 101, 110, 116, 95, 67, 104, 97, 112, 101,
				114, 111, 110, 101, 95, 116, 0, 0, 0, 0,
				27, 86, 97, 108, 118, 101, 46, 86, 82, 124,
				86, 82, 69, 118, 101, 110, 116, 95, 82, 101,
				115, 101, 114, 118, 101, 100, 95, 116, 0, 0,
				0, 0, 34, 86, 97, 108, 118, 101, 46, 86,
				82, 124, 86, 82, 69, 118, 101, 110, 116, 95,
				80, 101, 114, 102, 111, 114, 109, 97, 110, 99,
				101, 84, 101, 115, 116, 95, 116, 0, 0, 0,
				0, 38, 86, 97, 108, 118, 101, 46, 86, 82,
				124, 86, 82, 69, 118, 101, 110, 116, 95, 83,
				101, 97, 116, 101, 100, 90, 101, 114, 111, 80,
				111, 115, 101, 82, 101, 115, 101, 116, 95, 116,
				0, 0, 0, 0, 29, 86, 97, 108, 118, 101,
				46, 86, 82, 124, 86, 82, 69, 118, 101, 110,
				116, 95, 83, 99, 114, 101, 101, 110, 115, 104,
				111, 116, 95, 116, 0, 0, 0, 0, 37, 86,
				97, 108, 118, 101, 46, 86, 82, 124, 86, 82,
				69, 118, 101, 110, 116, 95, 83, 99, 114, 101,
				101, 110, 115, 104, 111, 116, 80, 114, 111, 103,
				114, 101, 115, 115, 95, 116, 0, 0, 0, 0,
				36, 86, 97, 108, 118, 101, 46, 86, 82, 124,
				86, 82, 69, 118, 101, 110, 116, 95, 65, 112,
				112, 108, 105, 99, 97, 116, 105, 111, 110, 76,
				97, 117, 110, 99, 104, 95, 116, 0, 0, 0,
				0, 39, 86, 97, 108, 118, 101, 46, 86, 82,
				124, 86, 82, 69, 118, 101, 110, 116, 95, 69,
				100, 105, 116, 105, 110, 103, 67, 97, 109, 101,
				114, 97, 83, 117, 114, 102, 97, 99, 101, 95,
				116, 0, 0, 0, 0, 33, 86, 97, 108, 118,
				101, 46, 86, 82, 124, 86, 82, 69, 118, 101,
				110, 116, 95, 77, 101, 115, 115, 97, 103, 101,
				79, 118, 101, 114, 108, 97, 121, 95, 116, 0,
				0, 0, 0, 27, 86, 97, 108, 118, 101, 46,
				86, 82, 124, 86, 82, 69, 118, 101, 110, 116,
				95, 80, 114, 111, 112, 101, 114, 116, 121, 95,
				116, 0, 0, 0, 0, 34, 86, 97, 108, 118,
				101, 46, 86, 82, 124, 86, 82, 69, 118, 101,
				110, 116, 95, 72, 97, 112, 116, 105, 99, 86,
				105, 98, 114, 97, 116, 105, 111, 110, 95, 116,
				0, 0, 0, 0, 29, 86, 97, 108, 118, 101,
				46, 86, 82, 124, 86, 82, 69, 118, 101, 110,
				116, 95, 87, 101, 98, 67, 111, 110, 115, 111,
				108, 101, 95, 116, 0, 0, 0, 0, 35, 86,
				97, 108, 118, 101, 46, 86, 82, 124, 86, 82,
				69, 118, 101, 110, 116, 95, 73, 110, 112, 117,
				116, 66, 105, 110, 100, 105, 110, 103, 76, 111,
				97, 100, 95, 116, 0, 0, 0, 0, 42, 86,
				97, 108, 118, 101, 46, 86, 82, 124, 86, 82,
				69, 118, 101, 110, 116, 95, 73, 110, 112, 117,
				116, 65, 99, 116, 105, 111, 110, 77, 97, 110,
				105, 102, 101, 115, 116, 76, 111, 97, 100, 95,
				116, 0, 0, 0, 0, 32, 86, 97, 108, 118,
				101, 46, 86, 82, 124, 86, 82, 69, 118, 101,
				110, 116, 95, 83, 112, 97, 116, 105, 97, 108,
				65, 110, 99, 104, 111, 114, 95, 116, 0, 0,
				0, 0, 33, 86, 97, 108, 118, 101, 46, 86,
				82, 124, 86, 82, 69, 118, 101, 110, 116, 95,
				80, 114, 111, 103, 114, 101, 115, 115, 85, 112,
				100, 97, 116, 101, 95, 116, 0, 0, 0, 0,
				25, 86, 97, 108, 118, 101, 46, 86, 82, 124,
				86, 82, 69, 118, 101, 110, 116, 95, 83, 104,
				111, 119, 85, 73, 95, 116, 0, 0, 0, 0,
				31, 86, 97, 108, 118, 101, 46, 86, 82, 124,
				86, 82, 69, 118, 101, 110, 116, 95, 83, 104,
				111, 119, 68, 101, 118, 84, 111, 111, 108, 115,
				95, 116, 0, 0, 0, 0, 28, 86, 97, 108,
				118, 101, 46, 86, 82, 124, 86, 82, 69, 118,
				101, 110, 116, 95, 72, 68, 67, 80, 69, 114,
				114, 111, 114, 95, 116, 0, 0, 0, 0, 18,
				86, 97, 108, 118, 101, 46, 86, 82, 124, 86,
				82, 69, 118, 101, 110, 116, 95, 116, 0, 0,
				0, 0, 25, 86, 97, 108, 118, 101, 46, 86,
				82, 124, 86, 82, 69, 118, 101, 110, 116, 95,
				116, 95, 80, 97, 99, 107, 101, 100, 0, 0,
				0, 0, 37, 86, 97, 108, 118, 101, 46, 86,
				82, 124, 82, 101, 110, 100, 101, 114, 77, 111,
				100, 101, 108, 95, 67, 111, 109, 112, 111, 110,
				101, 110, 116, 83, 116, 97, 116, 101, 95, 116,
				0, 0, 0, 0, 25, 86, 97, 108, 118, 101,
				46, 86, 82, 124, 72, 105, 100, 100, 101, 110,
				65, 114, 101, 97, 77, 101, 115, 104, 95, 116,
				0, 0, 0, 0, 27, 86, 97, 108, 118, 101,
				46, 86, 82, 124, 86, 82, 67, 111, 110, 116,
				114, 111, 108, 108, 101, 114, 65, 120, 105, 115,
				95, 116, 0, 0, 0, 0, 28, 86, 97, 108,
				118, 101, 46, 86, 82, 124, 86, 82, 67, 111,
				110, 116, 114, 111, 108, 108, 101, 114, 83, 116,
				97, 116, 101, 95, 116, 0, 0, 0, 0, 35,
				86, 97, 108, 118, 101, 46, 86, 82, 124, 86,
				82, 67, 111, 110, 116, 114, 111, 108, 108, 101,
				114, 83, 116, 97, 116, 101, 95, 116, 95, 80,
				97, 99, 107, 101, 100, 0, 0, 0, 0, 39,
				86, 97, 108, 118, 101, 46, 86, 82, 124, 67,
				97, 109, 101, 114, 97, 86, 105, 100, 101, 111,
				83, 116, 114, 101, 97, 109, 70, 114, 97, 109,
				101, 72, 101, 97, 100, 101, 114, 95, 116, 0,
				0, 0, 0, 31, 86, 97, 108, 118, 101, 46,
				86, 82, 124, 67, 111, 109, 112, 111, 115, 105,
				116, 111, 114, 95, 70, 114, 97, 109, 101, 84,
				105, 109, 105, 110, 103, 0, 0, 0, 0, 36,
				86, 97, 108, 118, 101, 46, 86, 82, 124, 67,
				111, 109, 112, 111, 115, 105, 116, 111, 114, 95,
				66, 101, 110, 99, 104, 109, 97, 114, 107, 82,
				101, 115, 117, 108, 116, 115, 0, 0, 0, 0,
				37, 86, 97, 108, 118, 101, 46, 86, 82, 124,
				68, 114, 105, 118, 101, 114, 68, 105, 114, 101,
				99, 116, 77, 111, 100, 101, 95, 70, 114, 97,
				109, 101, 84, 105, 109, 105, 110, 103, 0, 0,
				0, 0, 20, 86, 97, 108, 118, 101, 46, 86,
				82, 124, 73, 109, 117, 83, 97, 109, 112, 108,
				101, 95, 116, 0, 0, 0, 0, 26, 86, 97,
				108, 118, 101, 46, 86, 82, 124, 65, 112, 112,
				79, 118, 101, 114, 114, 105, 100, 101, 75, 101,
				121, 115, 95, 116, 0, 0, 0, 0, 35, 86,
				97, 108, 118, 101, 46, 86, 82, 124, 67, 111,
				109, 112, 111, 115, 105, 116, 111, 114, 95, 67,
				117, 109, 117, 108, 97, 116, 105, 118, 101, 83,
				116, 97, 116, 115, 0, 0, 0, 0, 39, 86,
				97, 108, 118, 101, 46, 86, 82, 124, 67, 111,
				109, 112, 111, 115, 105, 116, 111, 114, 95, 83,
				116, 97, 103, 101, 82, 101, 110, 100, 101, 114,
				83, 101, 116, 116, 105, 110, 103, 115, 0, 0,
				0, 0, 38, 86, 97, 108, 118, 101, 46, 86,
				82, 124, 86, 82, 79, 118, 101, 114, 108, 97,
				121, 73, 110, 116, 101, 114, 115, 101, 99, 116,
				105, 111, 110, 80, 97, 114, 97, 109, 115, 95,
				116, 0, 0, 0, 0, 39, 86, 97, 108, 118,
				101, 46, 86, 82, 124, 86, 82, 79, 118, 101,
				114, 108, 97, 121, 73, 110, 116, 101, 114, 115,
				101, 99, 116, 105, 111, 110, 82, 101, 115, 117,
				108, 116, 115, 95, 116, 0, 0, 0, 0, 36,
				86, 97, 108, 118, 101, 46, 86, 82, 124, 73,
				110, 116, 101, 114, 115, 101, 99, 116, 105, 111,
				110, 77, 97, 115, 107, 82, 101, 99, 116, 97,
				110, 103, 108, 101, 95, 116, 0, 0, 0, 0,
				33, 86, 97, 108, 118, 101, 46, 86, 82, 124,
				73, 110, 116, 101, 114, 115, 101, 99, 116, 105,
				111, 110, 77, 97, 115, 107, 67, 105, 114, 99,
				108, 101, 95, 116, 0, 0, 0, 0, 45, 86,
				97, 108, 118, 101, 46, 86, 82, 124, 86, 82,
				79, 118, 101, 114, 108, 97, 121, 73, 110, 116,
				101, 114, 115, 101, 99, 116, 105, 111, 110, 77,
				97, 115, 107, 80, 114, 105, 109, 105, 116, 105,
				118, 101, 95, 116, 0, 0, 0, 0, 30, 86,
				97, 108, 118, 101, 46, 86, 82, 124, 86, 82,
				79, 118, 101, 114, 108, 97, 121, 80, 114, 111,
				106, 101, 99, 116, 105, 111, 110, 95, 116, 0,
				0, 0, 0, 24, 86, 97, 108, 118, 101, 46,
				86, 82, 124, 86, 82, 79, 118, 101, 114, 108,
				97, 121, 86, 105, 101, 119, 95, 116, 0, 0,
				0, 0, 25, 86, 97, 108, 118, 101, 46, 86,
				82, 124, 86, 82, 86, 117, 108, 107, 97, 110,
				68, 101, 118, 105, 99, 101, 95, 116, 0, 0,
				0, 0, 25, 86, 97, 108, 118, 101, 46, 86,
				82, 124, 86, 82, 78, 97, 116, 105, 118, 101,
				68, 101, 118, 105, 99, 101, 95, 116, 0, 0,
				0, 0, 29, 86, 97, 108, 118, 101, 46, 86,
				82, 124, 82, 101, 110, 100, 101, 114, 77, 111,
				100, 101, 108, 95, 86, 101, 114, 116, 101, 120,
				95, 116, 0, 0, 0, 0, 33, 86, 97, 108,
				118, 101, 46, 86, 82, 124, 82, 101, 110, 100,
				101, 114, 77, 111, 100, 101, 108, 95, 84, 101,
				120, 116, 117, 114, 101, 77, 97, 112, 95, 116,
				0, 0, 0, 0, 40, 86, 97, 108, 118, 101,
				46, 86, 82, 124, 82, 101, 110, 100, 101, 114,
				77, 111, 100, 101, 108, 95, 84, 101, 120, 116,
				117, 114, 101, 77, 97, 112, 95, 116, 95, 80,
				97, 99, 107, 101, 100, 0, 0, 0, 0, 22,
				86, 97, 108, 118, 101, 46, 86, 82, 124, 82,
				101, 110, 100, 101, 114, 77, 111, 100, 101, 108,
				95, 116, 0, 0, 0, 0, 29, 86, 97, 108,
				118, 101, 46, 86, 82, 124, 82, 101, 110, 100,
				101, 114, 77, 111, 100, 101, 108, 95, 116, 95,
				80, 97, 99, 107, 101, 100, 0, 0, 0, 0,
				43, 86, 97, 108, 118, 101, 46, 86, 82, 124,
				82, 101, 110, 100, 101, 114, 77, 111, 100, 101,
				108, 95, 67, 111, 110, 116, 114, 111, 108, 108,
				101, 114, 77, 111, 100, 101, 95, 83, 116, 97,
				116, 101, 95, 116, 0, 0, 0, 0, 29, 86,
				97, 108, 118, 101, 46, 86, 82, 124, 78, 111,
				116, 105, 102, 105, 99, 97, 116, 105, 111, 110,
				66, 105, 116, 109, 97, 112, 95, 116, 0, 0,
				0, 0, 25, 86, 97, 108, 118, 101, 46, 86,
				82, 124, 67, 86, 82, 83, 101, 116, 116, 105,
				110, 103, 72, 101, 108, 112, 101, 114, 0, 0,
				0, 0, 32, 86, 97, 108, 118, 101, 46, 86,
				82, 124, 73, 110, 112, 117, 116, 65, 110, 97,
				108, 111, 103, 65, 99, 116, 105, 111, 110, 68,
				97, 116, 97, 95, 116, 0, 0, 0, 0, 33,
				86, 97, 108, 118, 101, 46, 86, 82, 124, 73,
				110, 112, 117, 116, 68, 105, 103, 105, 116, 97,
				108, 65, 99, 116, 105, 111, 110, 68, 97, 116,
				97, 95, 116, 0, 0, 0, 0, 30, 86, 97,
				108, 118, 101, 46, 86, 82, 124, 73, 110, 112,
				117, 116, 80, 111, 115, 101, 65, 99, 116, 105,
				111, 110, 68, 97, 116, 97, 95, 116, 0, 0,
				0, 0, 34, 86, 97, 108, 118, 101, 46, 86,
				82, 124, 73, 110, 112, 117, 116, 83, 107, 101,
				108, 101, 116, 97, 108, 65, 99, 116, 105, 111,
				110, 68, 97, 116, 97, 95, 116, 0, 0, 0,
				0, 26, 86, 97, 108, 118, 101, 46, 86, 82,
				124, 73, 110, 112, 117, 116, 79, 114, 105, 103,
				105, 110, 73, 110, 102, 111, 95, 116, 0, 0,
				0, 0, 27, 86, 97, 108, 118, 101, 46, 86,
				82, 124, 73, 110, 112, 117, 116, 66, 105, 110,
				100, 105, 110, 103, 73, 110, 102, 111, 95, 116,
				0, 0, 0, 0, 28, 86, 97, 108, 118, 101,
				46, 86, 82, 124, 86, 82, 65, 99, 116, 105,
				118, 101, 65, 99, 116, 105, 111, 110, 83, 101,
				116, 95, 116, 0, 0, 0, 0, 32, 86, 97,
				108, 118, 101, 46, 86, 82, 124, 86, 82, 83,
				107, 101, 108, 101, 116, 97, 108, 83, 117, 109,
				109, 97, 114, 121, 68, 97, 116, 97, 95, 116,
				0, 0, 0, 0, 28, 86, 97, 108, 118, 101,
				46, 86, 82, 124, 83, 112, 97, 116, 105, 97,
				108, 65, 110, 99, 104, 111, 114, 80, 111, 115,
				101, 95, 116, 0, 0, 0, 0, 23, 86, 97,
				108, 118, 101, 46, 86, 82, 124, 67, 79, 112,
				101, 110, 86, 82, 67, 111, 110, 116, 101, 120,
				116, 0, 0, 0, 0, 24, 86, 97, 108, 118,
				101, 46, 86, 82, 124, 80, 114, 111, 112, 101,
				114, 116, 121, 87, 114, 105, 116, 101, 95, 116,
				0, 0, 0, 0, 23, 86, 97, 108, 118, 101,
				46, 86, 82, 124, 80, 114, 111, 112, 101, 114,
				116, 121, 82, 101, 97, 100, 95, 116, 0, 0,
				0, 0, 27, 86, 97, 108, 118, 101, 46, 86,
				82, 124, 67, 86, 82, 80, 114, 111, 112, 101,
				114, 116, 121, 72, 101, 108, 112, 101, 114, 115,
				0, 0, 0, 0, 20, 86, 97, 108, 118, 101,
				46, 86, 82, 124, 80, 97, 116, 104, 87, 114,
				105, 116, 101, 95, 116, 0, 0, 0, 0, 19,
				86, 97, 108, 118, 101, 46, 86, 82, 124, 80,
				97, 116, 104, 82, 101, 97, 100, 95, 116, 0,
				0, 0, 0, 15, 86, 97, 108, 118, 101, 46,
				86, 82, 124, 79, 112, 101, 110, 86, 82, 0,
				0, 0, 0, 30, 86, 97, 108, 118, 101, 46,
				86, 82, 46, 79, 112, 101, 110, 86, 82, 124,
				67, 79, 112, 101, 110, 86, 82, 67, 111, 110,
				116, 101, 120, 116
			},
			TotalFiles = 5,
			TotalTypes = 164,
			IsEditorOnly = false
		};
	}
}
namespace Valve.VR
{
	public struct IVRSystem
	{
		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _GetRecommendedRenderTargetSize(ref uint pnWidth, ref uint pnHeight);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate HmdMatrix44_t _GetProjectionMatrix(EVREye eEye, float fNearZ, float fFarZ);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _GetProjectionRaw(EVREye eEye, ref float pfLeft, ref float pfRight, ref float pfTop, ref float pfBottom);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _ComputeDistortion(EVREye eEye, float fU, float fV, ref DistortionCoordinates_t pDistortionCoordinates);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate HmdMatrix34_t _GetEyeToHeadTransform(EVREye eEye);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _GetTimeSinceLastVsync(ref float pfSecondsSinceLastVsync, ref ulong pulFrameCounter);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate int _GetD3D9AdapterIndex();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _GetDXGIOutputInfo(ref int pnAdapterIndex);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _GetOutputDevice(ref ulong pnDevice, ETextureType textureType, IntPtr pInstance);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _IsDisplayOnDesktop();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _SetDisplayVisibility(bool bIsVisibleOnDesktop);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _GetDeviceToAbsoluteTrackingPose(ETrackingUniverseOrigin eOrigin, float fPredictedSecondsToPhotonsFromNow, [In][Out] TrackedDevicePose_t[] pTrackedDevicePoseArray, uint unTrackedDevicePoseArrayCount);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate HmdMatrix34_t _GetSeatedZeroPoseToStandingAbsoluteTrackingPose();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate HmdMatrix34_t _GetRawZeroPoseToStandingAbsoluteTrackingPose();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate uint _GetSortedTrackedDeviceIndicesOfClass(ETrackedDeviceClass eTrackedDeviceClass, [In][Out] uint[] punTrackedDeviceIndexArray, uint unTrackedDeviceIndexArrayCount, uint unRelativeToTrackedDeviceIndex);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EDeviceActivityLevel _GetTrackedDeviceActivityLevel(uint unDeviceId);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _ApplyTransform(ref TrackedDevicePose_t pOutputPose, ref TrackedDevicePose_t pTrackedDevicePose, ref HmdMatrix34_t pTransform);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate uint _GetTrackedDeviceIndexForControllerRole(ETrackedControllerRole unDeviceType);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate ETrackedControllerRole _GetControllerRoleForTrackedDeviceIndex(uint unDeviceIndex);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate ETrackedDeviceClass _GetTrackedDeviceClass(uint unDeviceIndex);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _IsTrackedDeviceConnected(uint unDeviceIndex);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _GetBoolTrackedDeviceProperty(uint unDeviceIndex, ETrackedDeviceProperty prop, ref ETrackedPropertyError pError);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate float _GetFloatTrackedDeviceProperty(uint unDeviceIndex, ETrackedDeviceProperty prop, ref ETrackedPropertyError pError);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate int _GetInt32TrackedDeviceProperty(uint unDeviceIndex, ETrackedDeviceProperty prop, ref ETrackedPropertyError pError);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate ulong _GetUint64TrackedDeviceProperty(uint unDeviceIndex, ETrackedDeviceProperty prop, ref ETrackedPropertyError pError);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate HmdMatrix34_t _GetMatrix34TrackedDeviceProperty(uint unDeviceIndex, ETrackedDeviceProperty prop, ref ETrackedPropertyError pError);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate uint _GetArrayTrackedDeviceProperty(uint unDeviceIndex, ETrackedDeviceProperty prop, uint propType, IntPtr pBuffer, uint unBufferSize, ref ETrackedPropertyError pError);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate uint _GetStringTrackedDeviceProperty(uint unDeviceIndex, ETrackedDeviceProperty prop, StringBuilder pchValue, uint unBufferSize, ref ETrackedPropertyError pError);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate IntPtr _GetPropErrorNameFromEnum(ETrackedPropertyError error);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _PollNextEvent(ref VREvent_t pEvent, uint uncbVREvent);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _PollNextEventWithPose(ETrackingUniverseOrigin eOrigin, ref VREvent_t pEvent, uint uncbVREvent, ref TrackedDevicePose_t pTrackedDevicePose);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate IntPtr _GetEventTypeNameFromEnum(EVREventType eType);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate HiddenAreaMesh_t _GetHiddenAreaMesh(EVREye eEye, EHiddenAreaMeshType type);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _GetControllerState(uint unControllerDeviceIndex, ref VRControllerState_t pControllerState, uint unControllerStateSize);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _GetControllerStateWithPose(ETrackingUniverseOrigin eOrigin, uint unControllerDeviceIndex, ref VRControllerState_t pControllerState, uint unControllerStateSize, ref TrackedDevicePose_t pTrackedDevicePose);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _TriggerHapticPulse(uint unControllerDeviceIndex, uint unAxisId, ushort usDurationMicroSec);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate IntPtr _GetButtonIdNameFromEnum(EVRButtonId eButtonId);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate IntPtr _GetControllerAxisTypeNameFromEnum(EVRControllerAxisType eAxisType);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _IsInputAvailable();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _IsSteamVRDrawingControllers();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _ShouldApplicationPause();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _ShouldApplicationReduceRenderingWork();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRFirmwareError _PerformFirmwareUpdate(uint unDeviceIndex);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _AcknowledgeQuit_Exiting();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate uint _GetAppContainerFilePaths(StringBuilder pchBuffer, uint unBufferSize);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate IntPtr _GetRuntimeVersion();

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetRecommendedRenderTargetSize GetRecommendedRenderTargetSize;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetProjectionMatrix GetProjectionMatrix;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetProjectionRaw GetProjectionRaw;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _ComputeDistortion ComputeDistortion;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetEyeToHeadTransform GetEyeToHeadTransform;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetTimeSinceLastVsync GetTimeSinceLastVsync;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetD3D9AdapterIndex GetD3D9AdapterIndex;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetDXGIOutputInfo GetDXGIOutputInfo;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetOutputDevice GetOutputDevice;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _IsDisplayOnDesktop IsDisplayOnDesktop;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetDisplayVisibility SetDisplayVisibility;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetDeviceToAbsoluteTrackingPose GetDeviceToAbsoluteTrackingPose;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetSeatedZeroPoseToStandingAbsoluteTrackingPose GetSeatedZeroPoseToStandingAbsoluteTrackingPose;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetRawZeroPoseToStandingAbsoluteTrackingPose GetRawZeroPoseToStandingAbsoluteTrackingPose;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetSortedTrackedDeviceIndicesOfClass GetSortedTrackedDeviceIndicesOfClass;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetTrackedDeviceActivityLevel GetTrackedDeviceActivityLevel;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _ApplyTransform ApplyTransform;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetTrackedDeviceIndexForControllerRole GetTrackedDeviceIndexForControllerRole;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetControllerRoleForTrackedDeviceIndex GetControllerRoleForTrackedDeviceIndex;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetTrackedDeviceClass GetTrackedDeviceClass;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _IsTrackedDeviceConnected IsTrackedDeviceConnected;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetBoolTrackedDeviceProperty GetBoolTrackedDeviceProperty;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetFloatTrackedDeviceProperty GetFloatTrackedDeviceProperty;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetInt32TrackedDeviceProperty GetInt32TrackedDeviceProperty;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetUint64TrackedDeviceProperty GetUint64TrackedDeviceProperty;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetMatrix34TrackedDeviceProperty GetMatrix34TrackedDeviceProperty;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetArrayTrackedDeviceProperty GetArrayTrackedDeviceProperty;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetStringTrackedDeviceProperty GetStringTrackedDeviceProperty;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetPropErrorNameFromEnum GetPropErrorNameFromEnum;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _PollNextEvent PollNextEvent;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _PollNextEventWithPose PollNextEventWithPose;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetEventTypeNameFromEnum GetEventTypeNameFromEnum;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetHiddenAreaMesh GetHiddenAreaMesh;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetControllerState GetControllerState;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetControllerStateWithPose GetControllerStateWithPose;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _TriggerHapticPulse TriggerHapticPulse;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetButtonIdNameFromEnum GetButtonIdNameFromEnum;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetControllerAxisTypeNameFromEnum GetControllerAxisTypeNameFromEnum;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _IsInputAvailable IsInputAvailable;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _IsSteamVRDrawingControllers IsSteamVRDrawingControllers;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _ShouldApplicationPause ShouldApplicationPause;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _ShouldApplicationReduceRenderingWork ShouldApplicationReduceRenderingWork;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _PerformFirmwareUpdate PerformFirmwareUpdate;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _AcknowledgeQuit_Exiting AcknowledgeQuit_Exiting;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetAppContainerFilePaths GetAppContainerFilePaths;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetRuntimeVersion GetRuntimeVersion;
	}
	public struct IVRExtendedDisplay
	{
		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _GetWindowBounds(ref int pnX, ref int pnY, ref uint pnWidth, ref uint pnHeight);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _GetEyeOutputViewport(EVREye eEye, ref uint pnX, ref uint pnY, ref uint pnWidth, ref uint pnHeight);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _GetDXGIOutputInfo(ref int pnAdapterIndex, ref int pnAdapterOutputIndex);

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetWindowBounds GetWindowBounds;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetEyeOutputViewport GetEyeOutputViewport;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetDXGIOutputInfo GetDXGIOutputInfo;
	}
	public struct IVRTrackedCamera
	{
		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate IntPtr _GetCameraErrorNameFromEnum(EVRTrackedCameraError eCameraError);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRTrackedCameraError _HasCamera(uint nDeviceIndex, ref bool pHasCamera);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRTrackedCameraError _GetCameraFrameSize(uint nDeviceIndex, EVRTrackedCameraFrameType eFrameType, ref uint pnWidth, ref uint pnHeight, ref uint pnFrameBufferSize);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRTrackedCameraError _GetCameraIntrinsics(uint nDeviceIndex, uint nCameraIndex, EVRTrackedCameraFrameType eFrameType, ref HmdVector2_t pFocalLength, ref HmdVector2_t pCenter);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRTrackedCameraError _GetCameraProjection(uint nDeviceIndex, uint nCameraIndex, EVRTrackedCameraFrameType eFrameType, float flZNear, float flZFar, ref HmdMatrix44_t pProjection);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRTrackedCameraError _AcquireVideoStreamingService(uint nDeviceIndex, ref ulong pHandle);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRTrackedCameraError _ReleaseVideoStreamingService(ulong hTrackedCamera);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRTrackedCameraError _GetVideoStreamFrameBuffer(ulong hTrackedCamera, EVRTrackedCameraFrameType eFrameType, IntPtr pFrameBuffer, uint nFrameBufferSize, ref CameraVideoStreamFrameHeader_t pFrameHeader, uint nFrameHeaderSize);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRTrackedCameraError _GetVideoStreamTextureSize(uint nDeviceIndex, EVRTrackedCameraFrameType eFrameType, ref VRTextureBounds_t pTextureBounds, ref uint pnWidth, ref uint pnHeight);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRTrackedCameraError _GetVideoStreamTextureD3D11(ulong hTrackedCamera, EVRTrackedCameraFrameType eFrameType, IntPtr pD3D11DeviceOrResource, ref IntPtr ppD3D11ShaderResourceView, ref CameraVideoStreamFrameHeader_t pFrameHeader, uint nFrameHeaderSize);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRTrackedCameraError _GetVideoStreamTextureGL(ulong hTrackedCamera, EVRTrackedCameraFrameType eFrameType, ref uint pglTextureId, ref CameraVideoStreamFrameHeader_t pFrameHeader, uint nFrameHeaderSize);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRTrackedCameraError _ReleaseVideoStreamTextureGL(ulong hTrackedCamera, uint glTextureId);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _SetCameraTrackingSpace(ETrackingUniverseOrigin eUniverse);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate ETrackingUniverseOrigin _GetCameraTrackingSpace();

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetCameraErrorNameFromEnum GetCameraErrorNameFromEnum;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _HasCamera HasCamera;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetCameraFrameSize GetCameraFrameSize;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetCameraIntrinsics GetCameraIntrinsics;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetCameraProjection GetCameraProjection;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _AcquireVideoStreamingService AcquireVideoStreamingService;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _ReleaseVideoStreamingService ReleaseVideoStreamingService;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetVideoStreamFrameBuffer GetVideoStreamFrameBuffer;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetVideoStreamTextureSize GetVideoStreamTextureSize;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetVideoStreamTextureD3D11 GetVideoStreamTextureD3D11;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetVideoStreamTextureGL GetVideoStreamTextureGL;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _ReleaseVideoStreamTextureGL ReleaseVideoStreamTextureGL;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetCameraTrackingSpace SetCameraTrackingSpace;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetCameraTrackingSpace GetCameraTrackingSpace;
	}
	public struct IVRApplications
	{
		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRApplicationError _AddApplicationManifest(IntPtr pchApplicationManifestFullPath, bool bTemporary);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRApplicationError _RemoveApplicationManifest(IntPtr pchApplicationManifestFullPath);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _IsApplicationInstalled(IntPtr pchAppKey);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate uint _GetApplicationCount();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRApplicationError _GetApplicationKeyByIndex(uint unApplicationIndex, StringBuilder pchAppKeyBuffer, uint unAppKeyBufferLen);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRApplicationError _GetApplicationKeyByProcessId(uint unProcessId, StringBuilder pchAppKeyBuffer, uint unAppKeyBufferLen);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRApplicationError _LaunchApplication(IntPtr pchAppKey);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRApplicationError _LaunchTemplateApplication(IntPtr pchTemplateAppKey, IntPtr pchNewAppKey, [In][Out] AppOverrideKeys_t[] pKeys, uint unKeys);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRApplicationError _LaunchApplicationFromMimeType(IntPtr pchMimeType, IntPtr pchArgs);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRApplicationError _LaunchDashboardOverlay(IntPtr pchAppKey);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _CancelApplicationLaunch(IntPtr pchAppKey);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRApplicationError _IdentifyApplication(uint unProcessId, IntPtr pchAppKey);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate uint _GetApplicationProcessId(IntPtr pchAppKey);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate IntPtr _GetApplicationsErrorNameFromEnum(EVRApplicationError error);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate uint _GetApplicationPropertyString(IntPtr pchAppKey, EVRApplicationProperty eProperty, StringBuilder pchPropertyValueBuffer, uint unPropertyValueBufferLen, ref EVRApplicationError peError);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _GetApplicationPropertyBool(IntPtr pchAppKey, EVRApplicationProperty eProperty, ref EVRApplicationError peError);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate ulong _GetApplicationPropertyUint64(IntPtr pchAppKey, EVRApplicationProperty eProperty, ref EVRApplicationError peError);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRApplicationError _SetApplicationAutoLaunch(IntPtr pchAppKey, bool bAutoLaunch);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _GetApplicationAutoLaunch(IntPtr pchAppKey);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRApplicationError _SetDefaultApplicationForMimeType(IntPtr pchAppKey, IntPtr pchMimeType);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _GetDefaultApplicationForMimeType(IntPtr pchMimeType, StringBuilder pchAppKeyBuffer, uint unAppKeyBufferLen);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _GetApplicationSupportedMimeTypes(IntPtr pchAppKey, StringBuilder pchMimeTypesBuffer, uint unMimeTypesBuffer);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate uint _GetApplicationsThatSupportMimeType(IntPtr pchMimeType, StringBuilder pchAppKeysThatSupportBuffer, uint unAppKeysThatSupportBuffer);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate uint _GetApplicationLaunchArguments(uint unHandle, StringBuilder pchArgs, uint unArgs);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRApplicationError _GetStartingApplication(StringBuilder pchAppKeyBuffer, uint unAppKeyBufferLen);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRSceneApplicationState _GetSceneApplicationState();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRApplicationError _PerformApplicationPrelaunchCheck(IntPtr pchAppKey);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate IntPtr _GetSceneApplicationStateNameFromEnum(EVRSceneApplicationState state);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRApplicationError _LaunchInternalProcess(IntPtr pchBinaryPath, IntPtr pchArguments, IntPtr pchWorkingDirectory);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate uint _GetCurrentSceneProcessId();

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _AddApplicationManifest AddApplicationManifest;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _RemoveApplicationManifest RemoveApplicationManifest;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _IsApplicationInstalled IsApplicationInstalled;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetApplicationCount GetApplicationCount;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetApplicationKeyByIndex GetApplicationKeyByIndex;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetApplicationKeyByProcessId GetApplicationKeyByProcessId;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _LaunchApplication LaunchApplication;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _LaunchTemplateApplication LaunchTemplateApplication;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _LaunchApplicationFromMimeType LaunchApplicationFromMimeType;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _LaunchDashboardOverlay LaunchDashboardOverlay;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _CancelApplicationLaunch CancelApplicationLaunch;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _IdentifyApplication IdentifyApplication;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetApplicationProcessId GetApplicationProcessId;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetApplicationsErrorNameFromEnum GetApplicationsErrorNameFromEnum;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetApplicationPropertyString GetApplicationPropertyString;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetApplicationPropertyBool GetApplicationPropertyBool;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetApplicationPropertyUint64 GetApplicationPropertyUint64;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetApplicationAutoLaunch SetApplicationAutoLaunch;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetApplicationAutoLaunch GetApplicationAutoLaunch;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetDefaultApplicationForMimeType SetDefaultApplicationForMimeType;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetDefaultApplicationForMimeType GetDefaultApplicationForMimeType;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetApplicationSupportedMimeTypes GetApplicationSupportedMimeTypes;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetApplicationsThatSupportMimeType GetApplicationsThatSupportMimeType;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetApplicationLaunchArguments GetApplicationLaunchArguments;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetStartingApplication GetStartingApplication;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetSceneApplicationState GetSceneApplicationState;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _PerformApplicationPrelaunchCheck PerformApplicationPrelaunchCheck;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetSceneApplicationStateNameFromEnum GetSceneApplicationStateNameFromEnum;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _LaunchInternalProcess LaunchInternalProcess;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetCurrentSceneProcessId GetCurrentSceneProcessId;
	}
	public struct IVRChaperone
	{
		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate ChaperoneCalibrationState _GetCalibrationState();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _GetPlayAreaSize(ref float pSizeX, ref float pSizeZ);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _GetPlayAreaRect(ref HmdQuad_t rect);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _ReloadInfo();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _SetSceneColor(HmdColor_t color);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _GetBoundsColor(ref HmdColor_t pOutputColorArray, int nNumOutputColors, float flCollisionBoundsFadeDistance, ref HmdColor_t pOutputCameraColor);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _AreBoundsVisible();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _ForceBoundsVisible(bool bForce);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _ResetZeroPose(ETrackingUniverseOrigin eTrackingUniverseOrigin);

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetCalibrationState GetCalibrationState;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetPlayAreaSize GetPlayAreaSize;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetPlayAreaRect GetPlayAreaRect;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _ReloadInfo ReloadInfo;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetSceneColor SetSceneColor;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetBoundsColor GetBoundsColor;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _AreBoundsVisible AreBoundsVisible;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _ForceBoundsVisible ForceBoundsVisible;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _ResetZeroPose ResetZeroPose;
	}
	public struct IVRChaperoneSetup
	{
		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _CommitWorkingCopy(EChaperoneConfigFile configFile);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _RevertWorkingCopy();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _GetWorkingPlayAreaSize(ref float pSizeX, ref float pSizeZ);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _GetWorkingPlayAreaRect(ref HmdQuad_t rect);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _GetWorkingCollisionBoundsInfo([In][Out] HmdQuad_t[] pQuadsBuffer, ref uint punQuadsCount);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _GetLiveCollisionBoundsInfo([In][Out] HmdQuad_t[] pQuadsBuffer, ref uint punQuadsCount);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _GetWorkingSeatedZeroPoseToRawTrackingPose(ref HmdMatrix34_t pmatSeatedZeroPoseToRawTrackingPose);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _GetWorkingStandingZeroPoseToRawTrackingPose(ref HmdMatrix34_t pmatStandingZeroPoseToRawTrackingPose);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _SetWorkingPlayAreaSize(float sizeX, float sizeZ);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _SetWorkingCollisionBoundsInfo([In][Out] HmdQuad_t[] pQuadsBuffer, uint unQuadsCount);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _SetWorkingPerimeter([In][Out] HmdVector2_t[] pPointBuffer, uint unPointCount);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _SetWorkingSeatedZeroPoseToRawTrackingPose(ref HmdMatrix34_t pMatSeatedZeroPoseToRawTrackingPose);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _SetWorkingStandingZeroPoseToRawTrackingPose(ref HmdMatrix34_t pMatStandingZeroPoseToRawTrackingPose);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _ReloadFromDisk(EChaperoneConfigFile configFile);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _GetLiveSeatedZeroPoseToRawTrackingPose(ref HmdMatrix34_t pmatSeatedZeroPoseToRawTrackingPose);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _ExportLiveToBuffer(StringBuilder pBuffer, ref uint pnBufferLength);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _ImportFromBufferToWorking(IntPtr pBuffer, uint nImportFlags);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _ShowWorkingSetPreview();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _HideWorkingSetPreview();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _RoomSetupStarting();

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _CommitWorkingCopy CommitWorkingCopy;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _RevertWorkingCopy RevertWorkingCopy;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetWorkingPlayAreaSize GetWorkingPlayAreaSize;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetWorkingPlayAreaRect GetWorkingPlayAreaRect;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetWorkingCollisionBoundsInfo GetWorkingCollisionBoundsInfo;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetLiveCollisionBoundsInfo GetLiveCollisionBoundsInfo;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetWorkingSeatedZeroPoseToRawTrackingPose GetWorkingSeatedZeroPoseToRawTrackingPose;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetWorkingStandingZeroPoseToRawTrackingPose GetWorkingStandingZeroPoseToRawTrackingPose;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetWorkingPlayAreaSize SetWorkingPlayAreaSize;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetWorkingCollisionBoundsInfo SetWorkingCollisionBoundsInfo;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetWorkingPerimeter SetWorkingPerimeter;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetWorkingSeatedZeroPoseToRawTrackingPose SetWorkingSeatedZeroPoseToRawTrackingPose;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetWorkingStandingZeroPoseToRawTrackingPose SetWorkingStandingZeroPoseToRawTrackingPose;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _ReloadFromDisk ReloadFromDisk;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetLiveSeatedZeroPoseToRawTrackingPose GetLiveSeatedZeroPoseToRawTrackingPose;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _ExportLiveToBuffer ExportLiveToBuffer;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _ImportFromBufferToWorking ImportFromBufferToWorking;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _ShowWorkingSetPreview ShowWorkingSetPreview;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _HideWorkingSetPreview HideWorkingSetPreview;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _RoomSetupStarting RoomSetupStarting;
	}
	public struct IVRCompositor
	{
		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _SetTrackingSpace(ETrackingUniverseOrigin eOrigin);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate ETrackingUniverseOrigin _GetTrackingSpace();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRCompositorError _WaitGetPoses([In][Out] TrackedDevicePose_t[] pRenderPoseArray, uint unRenderPoseArrayCount, [In][Out] TrackedDevicePose_t[] pGamePoseArray, uint unGamePoseArrayCount);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRCompositorError _GetLastPoses([In][Out] TrackedDevicePose_t[] pRenderPoseArray, uint unRenderPoseArrayCount, [In][Out] TrackedDevicePose_t[] pGamePoseArray, uint unGamePoseArrayCount);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRCompositorError _GetLastPoseForTrackedDeviceIndex(uint unDeviceIndex, ref TrackedDevicePose_t pOutputPose, ref TrackedDevicePose_t pOutputGamePose);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRCompositorError _Submit(EVREye eEye, ref Texture_t pTexture, ref VRTextureBounds_t pBounds, EVRSubmitFlags nSubmitFlags);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _ClearLastSubmittedFrame();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _PostPresentHandoff();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _GetFrameTiming(ref Compositor_FrameTiming pTiming, uint unFramesAgo);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate uint _GetFrameTimings([In][Out] Compositor_FrameTiming[] pTiming, uint nFrames);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate float _GetFrameTimeRemaining();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _GetCumulativeStats(ref Compositor_CumulativeStats pStats, uint nStatsSizeInBytes);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _FadeToColor(float fSeconds, float fRed, float fGreen, float fBlue, float fAlpha, bool bBackground);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate HmdColor_t _GetCurrentFadeColor(bool bBackground);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _FadeGrid(float fSeconds, bool bFadeGridIn);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate float _GetCurrentGridAlpha();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRCompositorError _SetSkyboxOverride([In][Out] Texture_t[] pTextures, uint unTextureCount);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _ClearSkyboxOverride();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _CompositorBringToFront();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _CompositorGoToBack();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _CompositorQuit();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _IsFullscreen();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate uint _GetCurrentSceneFocusProcess();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate uint _GetLastFrameRenderer();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _CanRenderScene();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _ShowMirrorWindow();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _HideMirrorWindow();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _IsMirrorWindowVisible();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _CompositorDumpImages();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _ShouldAppRenderWithLowResources();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _ForceInterleavedReprojectionOn(bool bOverride);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _ForceReconnectProcess();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _SuspendRendering(bool bSuspend);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRCompositorError _GetMirrorTextureD3D11(EVREye eEye, IntPtr pD3D11DeviceOrResource, ref IntPtr ppD3D11ShaderResourceView);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _ReleaseMirrorTextureD3D11(IntPtr pD3D11ShaderResourceView);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRCompositorError _GetMirrorTextureGL(EVREye eEye, ref uint pglTextureId, IntPtr pglSharedTextureHandle);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _ReleaseSharedGLTexture(uint glTextureId, IntPtr glSharedTextureHandle);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _LockGLSharedTextureForAccess(IntPtr glSharedTextureHandle);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _UnlockGLSharedTextureForAccess(IntPtr glSharedTextureHandle);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate uint _GetVulkanInstanceExtensionsRequired(StringBuilder pchValue, uint unBufferSize);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate uint _GetVulkanDeviceExtensionsRequired(IntPtr pPhysicalDevice, StringBuilder pchValue, uint unBufferSize);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _SetExplicitTimingMode(EVRCompositorTimingMode eTimingMode);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRCompositorError _SubmitExplicitTimingData();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _IsMotionSmoothingEnabled();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _IsMotionSmoothingSupported();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _IsCurrentSceneFocusAppLoading();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRCompositorError _SetStageOverride_Async(IntPtr pchRenderModelPath, ref HmdMatrix34_t pTransform, ref Compositor_StageRenderSettings pRenderSettings, uint nSizeOfRenderSettings);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _ClearStageOverride();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _GetCompositorBenchmarkResults(ref Compositor_BenchmarkResults pBenchmarkResults, uint nSizeOfBenchmarkResults);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRCompositorError _GetLastPosePredictionIDs(ref uint pRenderPosePredictionID, ref uint pGamePosePredictionID);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRCompositorError _GetPosesForFrame(uint unPosePredictionID, [In][Out] TrackedDevicePose_t[] pPoseArray, uint unPoseArrayCount);

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetTrackingSpace SetTrackingSpace;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetTrackingSpace GetTrackingSpace;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _WaitGetPoses WaitGetPoses;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetLastPoses GetLastPoses;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetLastPoseForTrackedDeviceIndex GetLastPoseForTrackedDeviceIndex;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _Submit Submit;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _ClearLastSubmittedFrame ClearLastSubmittedFrame;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _PostPresentHandoff PostPresentHandoff;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetFrameTiming GetFrameTiming;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetFrameTimings GetFrameTimings;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetFrameTimeRemaining GetFrameTimeRemaining;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetCumulativeStats GetCumulativeStats;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _FadeToColor FadeToColor;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetCurrentFadeColor GetCurrentFadeColor;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _FadeGrid FadeGrid;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetCurrentGridAlpha GetCurrentGridAlpha;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetSkyboxOverride SetSkyboxOverride;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _ClearSkyboxOverride ClearSkyboxOverride;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _CompositorBringToFront CompositorBringToFront;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _CompositorGoToBack CompositorGoToBack;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _CompositorQuit CompositorQuit;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _IsFullscreen IsFullscreen;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetCurrentSceneFocusProcess GetCurrentSceneFocusProcess;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetLastFrameRenderer GetLastFrameRenderer;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _CanRenderScene CanRenderScene;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _ShowMirrorWindow ShowMirrorWindow;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _HideMirrorWindow HideMirrorWindow;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _IsMirrorWindowVisible IsMirrorWindowVisible;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _CompositorDumpImages CompositorDumpImages;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _ShouldAppRenderWithLowResources ShouldAppRenderWithLowResources;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _ForceInterleavedReprojectionOn ForceInterleavedReprojectionOn;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _ForceReconnectProcess ForceReconnectProcess;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SuspendRendering SuspendRendering;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetMirrorTextureD3D11 GetMirrorTextureD3D11;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _ReleaseMirrorTextureD3D11 ReleaseMirrorTextureD3D11;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetMirrorTextureGL GetMirrorTextureGL;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _ReleaseSharedGLTexture ReleaseSharedGLTexture;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _LockGLSharedTextureForAccess LockGLSharedTextureForAccess;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _UnlockGLSharedTextureForAccess UnlockGLSharedTextureForAccess;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetVulkanInstanceExtensionsRequired GetVulkanInstanceExtensionsRequired;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetVulkanDeviceExtensionsRequired GetVulkanDeviceExtensionsRequired;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetExplicitTimingMode SetExplicitTimingMode;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SubmitExplicitTimingData SubmitExplicitTimingData;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _IsMotionSmoothingEnabled IsMotionSmoothingEnabled;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _IsMotionSmoothingSupported IsMotionSmoothingSupported;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _IsCurrentSceneFocusAppLoading IsCurrentSceneFocusAppLoading;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetStageOverride_Async SetStageOverride_Async;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _ClearStageOverride ClearStageOverride;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetCompositorBenchmarkResults GetCompositorBenchmarkResults;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetLastPosePredictionIDs GetLastPosePredictionIDs;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetPosesForFrame GetPosesForFrame;
	}
	public struct IVROverlay
	{
		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _FindOverlay(IntPtr pchOverlayKey, ref ulong pOverlayHandle);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _CreateOverlay(IntPtr pchOverlayKey, IntPtr pchOverlayName, ref ulong pOverlayHandle);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _DestroyOverlay(ulong ulOverlayHandle);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate uint _GetOverlayKey(ulong ulOverlayHandle, StringBuilder pchValue, uint unBufferSize, ref EVROverlayError pError);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate uint _GetOverlayName(ulong ulOverlayHandle, StringBuilder pchValue, uint unBufferSize, ref EVROverlayError pError);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _SetOverlayName(ulong ulOverlayHandle, IntPtr pchName);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _GetOverlayImageData(ulong ulOverlayHandle, IntPtr pvBuffer, uint unBufferSize, ref uint punWidth, ref uint punHeight);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate IntPtr _GetOverlayErrorNameFromEnum(EVROverlayError error);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _SetOverlayRenderingPid(ulong ulOverlayHandle, uint unPID);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate uint _GetOverlayRenderingPid(ulong ulOverlayHandle);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _SetOverlayFlag(ulong ulOverlayHandle, VROverlayFlags eOverlayFlag, bool bEnabled);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _GetOverlayFlag(ulong ulOverlayHandle, VROverlayFlags eOverlayFlag, ref bool pbEnabled);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _GetOverlayFlags(ulong ulOverlayHandle, ref uint pFlags);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _SetOverlayColor(ulong ulOverlayHandle, float fRed, float fGreen, float fBlue);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _GetOverlayColor(ulong ulOverlayHandle, ref float pfRed, ref float pfGreen, ref float pfBlue);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _SetOverlayAlpha(ulong ulOverlayHandle, float fAlpha);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _GetOverlayAlpha(ulong ulOverlayHandle, ref float pfAlpha);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _SetOverlayTexelAspect(ulong ulOverlayHandle, float fTexelAspect);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _GetOverlayTexelAspect(ulong ulOverlayHandle, ref float pfTexelAspect);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _SetOverlaySortOrder(ulong ulOverlayHandle, uint unSortOrder);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _GetOverlaySortOrder(ulong ulOverlayHandle, ref uint punSortOrder);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _SetOverlayWidthInMeters(ulong ulOverlayHandle, float fWidthInMeters);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _GetOverlayWidthInMeters(ulong ulOverlayHandle, ref float pfWidthInMeters);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _SetOverlayCurvature(ulong ulOverlayHandle, float fCurvature);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _GetOverlayCurvature(ulong ulOverlayHandle, ref float pfCurvature);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _SetOverlayPreCurvePitch(ulong ulOverlayHandle, float fRadians);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _GetOverlayPreCurvePitch(ulong ulOverlayHandle, ref float pfRadians);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _SetOverlayTextureColorSpace(ulong ulOverlayHandle, EColorSpace eTextureColorSpace);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _GetOverlayTextureColorSpace(ulong ulOverlayHandle, ref EColorSpace peTextureColorSpace);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _SetOverlayTextureBounds(ulong ulOverlayHandle, ref VRTextureBounds_t pOverlayTextureBounds);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _GetOverlayTextureBounds(ulong ulOverlayHandle, ref VRTextureBounds_t pOverlayTextureBounds);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _GetOverlayTransformType(ulong ulOverlayHandle, ref VROverlayTransformType peTransformType);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _SetOverlayTransformAbsolute(ulong ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, ref HmdMatrix34_t pmatTrackingOriginToOverlayTransform);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _GetOverlayTransformAbsolute(ulong ulOverlayHandle, ref ETrackingUniverseOrigin peTrackingOrigin, ref HmdMatrix34_t pmatTrackingOriginToOverlayTransform);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _SetOverlayTransformTrackedDeviceRelative(ulong ulOverlayHandle, uint unTrackedDevice, ref HmdMatrix34_t pmatTrackedDeviceToOverlayTransform);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _GetOverlayTransformTrackedDeviceRelative(ulong ulOverlayHandle, ref uint punTrackedDevice, ref HmdMatrix34_t pmatTrackedDeviceToOverlayTransform);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _SetOverlayTransformTrackedDeviceComponent(ulong ulOverlayHandle, uint unDeviceIndex, IntPtr pchComponentName);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _GetOverlayTransformTrackedDeviceComponent(ulong ulOverlayHandle, ref uint punDeviceIndex, StringBuilder pchComponentName, uint unComponentNameSize);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _SetOverlayTransformCursor(ulong ulCursorOverlayHandle, ref HmdVector2_t pvHotspot);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _GetOverlayTransformCursor(ulong ulOverlayHandle, ref HmdVector2_t pvHotspot);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _SetOverlayTransformProjection(ulong ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, ref HmdMatrix34_t pmatTrackingOriginToOverlayTransform, ref VROverlayProjection_t pProjection, EVREye eEye);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _ShowOverlay(ulong ulOverlayHandle);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _HideOverlay(ulong ulOverlayHandle);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _IsOverlayVisible(ulong ulOverlayHandle);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _GetTransformForOverlayCoordinates(ulong ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, HmdVector2_t coordinatesInOverlay, ref HmdMatrix34_t pmatTransform);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _WaitFrameSync(uint nTimeoutMs);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _PollNextOverlayEvent(ulong ulOverlayHandle, ref VREvent_t pEvent, uint uncbVREvent);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _GetOverlayInputMethod(ulong ulOverlayHandle, ref VROverlayInputMethod peInputMethod);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _SetOverlayInputMethod(ulong ulOverlayHandle, VROverlayInputMethod eInputMethod);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _GetOverlayMouseScale(ulong ulOverlayHandle, ref HmdVector2_t pvecMouseScale);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _SetOverlayMouseScale(ulong ulOverlayHandle, ref HmdVector2_t pvecMouseScale);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _ComputeOverlayIntersection(ulong ulOverlayHandle, ref VROverlayIntersectionParams_t pParams, ref VROverlayIntersectionResults_t pResults);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _IsHoverTargetOverlay(ulong ulOverlayHandle);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _SetOverlayIntersectionMask(ulong ulOverlayHandle, ref VROverlayIntersectionMaskPrimitive_t pMaskPrimitives, uint unNumMaskPrimitives, uint unPrimitiveSize);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _TriggerLaserMouseHapticVibration(ulong ulOverlayHandle, float fDurationSeconds, float fFrequency, float fAmplitude);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _SetOverlayCursor(ulong ulOverlayHandle, ulong ulCursorHandle);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _SetOverlayCursorPositionOverride(ulong ulOverlayHandle, ref HmdVector2_t pvCursor);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _ClearOverlayCursorPositionOverride(ulong ulOverlayHandle);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _SetOverlayTexture(ulong ulOverlayHandle, ref Texture_t pTexture);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _ClearOverlayTexture(ulong ulOverlayHandle);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _SetOverlayRaw(ulong ulOverlayHandle, IntPtr pvBuffer, uint unWidth, uint unHeight, uint unBytesPerPixel);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _SetOverlayFromFile(ulong ulOverlayHandle, IntPtr pchFilePath);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _GetOverlayTexture(ulong ulOverlayHandle, ref IntPtr pNativeTextureHandle, IntPtr pNativeTextureRef, ref uint pWidth, ref uint pHeight, ref uint pNativeFormat, ref ETextureType pAPIType, ref EColorSpace pColorSpace, ref VRTextureBounds_t pTextureBounds);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _ReleaseNativeOverlayHandle(ulong ulOverlayHandle, IntPtr pNativeTextureHandle);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _GetOverlayTextureSize(ulong ulOverlayHandle, ref uint pWidth, ref uint pHeight);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _CreateDashboardOverlay(IntPtr pchOverlayKey, IntPtr pchOverlayFriendlyName, ref ulong pMainHandle, ref ulong pThumbnailHandle);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _IsDashboardVisible();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _IsActiveDashboardOverlay(ulong ulOverlayHandle);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _SetDashboardOverlaySceneProcess(ulong ulOverlayHandle, uint unProcessId);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _GetDashboardOverlaySceneProcess(ulong ulOverlayHandle, ref uint punProcessId);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _ShowDashboard(IntPtr pchOverlayToShow);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate uint _GetPrimaryDashboardDevice();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _ShowKeyboard(int eInputMode, int eLineInputMode, uint unFlags, IntPtr pchDescription, uint unCharMax, IntPtr pchExistingText, ulong uUserValue);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _ShowKeyboardForOverlay(ulong ulOverlayHandle, int eInputMode, int eLineInputMode, uint unFlags, IntPtr pchDescription, uint unCharMax, IntPtr pchExistingText, ulong uUserValue);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate uint _GetKeyboardText(StringBuilder pchText, uint cchText);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _HideKeyboard();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _SetKeyboardTransformAbsolute(ETrackingUniverseOrigin eTrackingOrigin, ref HmdMatrix34_t pmatTrackingOriginToKeyboardTransform);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _SetKeyboardPositionForOverlay(ulong ulOverlayHandle, HmdRect2_t avoidRect);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate VRMessageOverlayResponse _ShowMessageOverlay(IntPtr pchText, IntPtr pchCaption, IntPtr pchButton0Text, IntPtr pchButton1Text, IntPtr pchButton2Text, IntPtr pchButton3Text);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _CloseMessageOverlay();

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _FindOverlay FindOverlay;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _CreateOverlay CreateOverlay;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _DestroyOverlay DestroyOverlay;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetOverlayKey GetOverlayKey;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetOverlayName GetOverlayName;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetOverlayName SetOverlayName;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetOverlayImageData GetOverlayImageData;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetOverlayErrorNameFromEnum GetOverlayErrorNameFromEnum;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetOverlayRenderingPid SetOverlayRenderingPid;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetOverlayRenderingPid GetOverlayRenderingPid;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetOverlayFlag SetOverlayFlag;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetOverlayFlag GetOverlayFlag;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetOverlayFlags GetOverlayFlags;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetOverlayColor SetOverlayColor;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetOverlayColor GetOverlayColor;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetOverlayAlpha SetOverlayAlpha;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetOverlayAlpha GetOverlayAlpha;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetOverlayTexelAspect SetOverlayTexelAspect;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetOverlayTexelAspect GetOverlayTexelAspect;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetOverlaySortOrder SetOverlaySortOrder;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetOverlaySortOrder GetOverlaySortOrder;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetOverlayWidthInMeters SetOverlayWidthInMeters;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetOverlayWidthInMeters GetOverlayWidthInMeters;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetOverlayCurvature SetOverlayCurvature;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetOverlayCurvature GetOverlayCurvature;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetOverlayPreCurvePitch SetOverlayPreCurvePitch;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetOverlayPreCurvePitch GetOverlayPreCurvePitch;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetOverlayTextureColorSpace SetOverlayTextureColorSpace;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetOverlayTextureColorSpace GetOverlayTextureColorSpace;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetOverlayTextureBounds SetOverlayTextureBounds;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetOverlayTextureBounds GetOverlayTextureBounds;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetOverlayTransformType GetOverlayTransformType;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetOverlayTransformAbsolute SetOverlayTransformAbsolute;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetOverlayTransformAbsolute GetOverlayTransformAbsolute;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetOverlayTransformTrackedDeviceRelative SetOverlayTransformTrackedDeviceRelative;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetOverlayTransformTrackedDeviceRelative GetOverlayTransformTrackedDeviceRelative;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetOverlayTransformTrackedDeviceComponent SetOverlayTransformTrackedDeviceComponent;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetOverlayTransformTrackedDeviceComponent GetOverlayTransformTrackedDeviceComponent;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetOverlayTransformCursor SetOverlayTransformCursor;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetOverlayTransformCursor GetOverlayTransformCursor;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetOverlayTransformProjection SetOverlayTransformProjection;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _ShowOverlay ShowOverlay;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _HideOverlay HideOverlay;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _IsOverlayVisible IsOverlayVisible;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetTransformForOverlayCoordinates GetTransformForOverlayCoordinates;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _WaitFrameSync WaitFrameSync;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _PollNextOverlayEvent PollNextOverlayEvent;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetOverlayInputMethod GetOverlayInputMethod;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetOverlayInputMethod SetOverlayInputMethod;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetOverlayMouseScale GetOverlayMouseScale;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetOverlayMouseScale SetOverlayMouseScale;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _ComputeOverlayIntersection ComputeOverlayIntersection;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _IsHoverTargetOverlay IsHoverTargetOverlay;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetOverlayIntersectionMask SetOverlayIntersectionMask;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _TriggerLaserMouseHapticVibration TriggerLaserMouseHapticVibration;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetOverlayCursor SetOverlayCursor;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetOverlayCursorPositionOverride SetOverlayCursorPositionOverride;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _ClearOverlayCursorPositionOverride ClearOverlayCursorPositionOverride;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetOverlayTexture SetOverlayTexture;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _ClearOverlayTexture ClearOverlayTexture;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetOverlayRaw SetOverlayRaw;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetOverlayFromFile SetOverlayFromFile;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetOverlayTexture GetOverlayTexture;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _ReleaseNativeOverlayHandle ReleaseNativeOverlayHandle;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetOverlayTextureSize GetOverlayTextureSize;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _CreateDashboardOverlay CreateDashboardOverlay;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _IsDashboardVisible IsDashboardVisible;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _IsActiveDashboardOverlay IsActiveDashboardOverlay;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetDashboardOverlaySceneProcess SetDashboardOverlaySceneProcess;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetDashboardOverlaySceneProcess GetDashboardOverlaySceneProcess;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _ShowDashboard ShowDashboard;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetPrimaryDashboardDevice GetPrimaryDashboardDevice;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _ShowKeyboard ShowKeyboard;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _ShowKeyboardForOverlay ShowKeyboardForOverlay;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetKeyboardText GetKeyboardText;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _HideKeyboard HideKeyboard;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetKeyboardTransformAbsolute SetKeyboardTransformAbsolute;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetKeyboardPositionForOverlay SetKeyboardPositionForOverlay;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _ShowMessageOverlay ShowMessageOverlay;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _CloseMessageOverlay CloseMessageOverlay;
	}
	public struct IVROverlayView
	{
		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _AcquireOverlayView(ulong ulOverlayHandle, ref VRNativeDevice_t pNativeDevice, ref VROverlayView_t pOverlayView, uint unOverlayViewSize);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVROverlayError _ReleaseOverlayView(ref VROverlayView_t pOverlayView);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _PostOverlayEvent(ulong ulOverlayHandle, ref VREvent_t pvrEvent);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _IsViewingPermitted(ulong ulOverlayHandle);

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _AcquireOverlayView AcquireOverlayView;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _ReleaseOverlayView ReleaseOverlayView;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _PostOverlayEvent PostOverlayEvent;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _IsViewingPermitted IsViewingPermitted;
	}
	public struct IVRHeadsetView
	{
		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _SetHeadsetViewSize(uint nWidth, uint nHeight);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _GetHeadsetViewSize(ref uint pnWidth, ref uint pnHeight);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _SetHeadsetViewMode(uint eHeadsetViewMode);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate uint _GetHeadsetViewMode();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _SetHeadsetViewCropped(bool bCropped);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate bool _GetHeadsetViewCropped();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate float _GetHeadsetViewAspectRatio();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _SetHeadsetViewBlendRange(float flStartPct, float flEndPct);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _GetHeadsetViewBlendRange(ref float pStartPct, ref float pEndPct);

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetHeadsetViewSize SetHeadsetViewSize;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetHeadsetViewSize GetHeadsetViewSize;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetHeadsetViewMode SetHeadsetViewMode;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetHeadsetViewMode GetHeadsetViewMode;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetHeadsetViewCropped SetHeadsetViewCropped;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetHeadsetViewCropped GetHeadsetViewCropped;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetHeadsetViewAspectRatio GetHeadsetViewAspectRatio;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _SetHeadsetViewBlendRange SetHeadsetViewBlendRange;

		[MarshalAs(UnmanagedType.FunctionPtr)]
		internal _GetHeadsetViewBlendRange GetHeadsetViewBlendRange;
	}
	public struct IVRRenderModels
	{
		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRRenderModelError _LoadRenderModel_Async(IntPtr pchRenderModelName, ref IntPtr ppRenderModel);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _FreeRenderModel(IntPtr pRenderModel);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRRenderModelError _LoadTexture_Async(int textureId, ref IntPtr ppTexture);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _FreeTexture(IntPtr pTexture);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRRenderModelError _LoadTextureD3D11_Async(int textureId, IntPtr pD3D11Device, ref IntPtr ppD3D11Texture2D);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate EVRRenderModelError _LoadIntoTextureD3D11_Async(int textureId, IntPtr pDstTexture);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate void _FreeTextureD3D11(IntPtr pD3D11Texture2D);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate uint _GetRenderModelName(uint unRenderModelIndex, StringBuilder pchRenderModelName, uint unRenderModelNameLen);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate uint _GetRenderModelCount();

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate uint _GetComponentCount(IntPtr pchRenderModelName);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate uint _GetComponentName(IntPtr pchRenderModelName, uint unComponentIndex, StringBuilder pchComponentName, uint unComponentNameLen);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate ulong _GetComponentButtonMask(IntPtr pchRenderModelName, IntPtr pchComponentName);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal delegate uint _GetComponentRenderModelName(IntPtr pchRenderModelName, IntPtr pchComponentName, StringBuilder pchComponentRenderModelName, uint unComponentRenderModelNameLen);

		[UnmanagedFunctionPointer(CallingConvention.StdCall)]
		internal d

patchers/GameData/ULTRAKILL_Data/Managed/UnityEngine.SpatialTracking.dll

Decompiled 3 days ago
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using UnityEngine.Events;
using UnityEngine.Experimental.XR.Interaction;
using UnityEngine.SpatialTracking;
using UnityEngine.XR;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: InternalsVisibleTo("UnityEditor.XR.SpatialTracking")]
[assembly: InternalsVisibleTo("UnityEditor.SpatialTracking")]
[assembly: AssemblyVersion("0.0.0.0")]
[CompilerGenerated]
[EditorBrowsable(EditorBrowsableState.Never)]
[GeneratedCode("Unity.MonoScriptGenerator.MonoScriptInfoGenerator", null)]
internal class UnitySourceGeneratedAssemblyMonoScriptTypes_v1
{
	private struct MonoScriptData
	{
		public byte[] FilePathsData;

		public byte[] TypesData;

		public int TotalTypes;

		public int TotalFiles;

		public bool IsEditorOnly;
	}

	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	private static MonoScriptData Get()
	{
		MonoScriptData result = default(MonoScriptData);
		result.FilePathsData = new byte[229]
		{
			0, 0, 0, 1, 0, 0, 0, 106, 92, 76,
			105, 98, 114, 97, 114, 121, 92, 80, 97, 99,
			107, 97, 103, 101, 67, 97, 99, 104, 101, 92,
			99, 111, 109, 46, 117, 110, 105, 116, 121, 46,
			120, 114, 46, 108, 101, 103, 97, 99, 121, 105,
			110, 112, 117, 116, 104, 101, 108, 112, 101, 114,
			115, 64, 50, 46, 49, 46, 49, 48, 92, 82,
			117, 110, 116, 105, 109, 101, 92, 84, 114, 97,
			99, 107, 101, 100, 80, 111, 115, 101, 68, 114,
			105, 118, 101, 114, 92, 66, 97, 115, 101, 80,
			111, 115, 101, 80, 114, 111, 118, 105, 100, 101,
			114, 46, 99, 115, 0, 0, 0, 4, 0, 0,
			0, 107, 92, 76, 105, 98, 114, 97, 114, 121,
			92, 80, 97, 99, 107, 97, 103, 101, 67, 97,
			99, 104, 101, 92, 99, 111, 109, 46, 117, 110,
			105, 116, 121, 46, 120, 114, 46, 108, 101, 103,
			97, 99, 121, 105, 110, 112, 117, 116, 104, 101,
			108, 112, 101, 114, 115, 64, 50, 46, 49, 46,
			49, 48, 92, 82, 117, 110, 116, 105, 109, 101,
			92, 84, 114, 97, 99, 107, 101, 100, 80, 111,
			115, 101, 68, 114, 105, 118, 101, 114, 92, 84,
			114, 97, 99, 107, 101, 100, 80, 111, 115, 101,
			68, 114, 105, 118, 101, 114, 46, 99, 115
		};
		result.TypesData = new byte[297]
		{
			0, 0, 0, 0, 56, 85, 110, 105, 116, 121,
			69, 110, 103, 105, 110, 101, 46, 69, 120, 112,
			101, 114, 105, 109, 101, 110, 116, 97, 108, 46,
			88, 82, 46, 73, 110, 116, 101, 114, 97, 99,
			116, 105, 111, 110, 124, 66, 97, 115, 101, 80,
			111, 115, 101, 80, 114, 111, 118, 105, 100, 101,
			114, 0, 0, 0, 0, 60, 85, 110, 105, 116,
			121, 69, 110, 103, 105, 110, 101, 46, 83, 112,
			97, 116, 105, 97, 108, 84, 114, 97, 99, 107,
			105, 110, 103, 124, 84, 114, 97, 99, 107, 101,
			100, 80, 111, 115, 101, 68, 114, 105, 118, 101,
			114, 68, 97, 116, 97, 68, 101, 115, 99, 114,
			105, 112, 116, 105, 111, 110, 0, 0, 0, 0,
			69, 85, 110, 105, 116, 121, 69, 110, 103, 105,
			110, 101, 46, 83, 112, 97, 116, 105, 97, 108,
			84, 114, 97, 99, 107, 105, 110, 103, 46, 84,
			114, 97, 99, 107, 101, 100, 80, 111, 115, 101,
			68, 114, 105, 118, 101, 114, 68, 97, 116, 97,
			68, 101, 115, 99, 114, 105, 112, 116, 105, 111,
			110, 124, 80, 111, 115, 101, 68, 97, 116, 97,
			0, 0, 0, 0, 42, 85, 110, 105, 116, 121,
			69, 110, 103, 105, 110, 101, 46, 83, 112, 97,
			116, 105, 97, 108, 84, 114, 97, 99, 107, 105,
			110, 103, 124, 80, 111, 115, 101, 68, 97, 116,
			97, 83, 111, 117, 114, 99, 101, 0, 0, 0,
			0, 45, 85, 110, 105, 116, 121, 69, 110, 103,
			105, 110, 101, 46, 83, 112, 97, 116, 105, 97,
			108, 84, 114, 97, 99, 107, 105, 110, 103, 124,
			84, 114, 97, 99, 107, 101, 100, 80, 111, 115,
			101, 68, 114, 105, 118, 101, 114
		};
		result.TotalFiles = 2;
		result.TotalTypes = 5;
		result.IsEditorOnly = false;
		return result;
	}
}
namespace UnityEngine.SpatialTracking
{
	internal class TrackedPoseDriverDataDescription
	{
		internal struct PoseData
		{
			public List<string> PoseNames;

			public List<TrackedPoseDriver.TrackedPose> Poses;
		}

		internal static List<PoseData> DeviceData = new List<PoseData>
		{
			new PoseData
			{
				PoseNames = new List<string> { "Left Eye", "Right Eye", "Center Eye - HMD Reference", "Head", "Color Camera" },
				Poses = new List<TrackedPoseDriver.TrackedPose>
				{
					TrackedPoseDriver.TrackedPose.LeftEye,
					TrackedPoseDriver.TrackedPose.RightEye,
					TrackedPoseDriver.TrackedPose.Center,
					TrackedPoseDriver.TrackedPose.Head,
					TrackedPoseDriver.TrackedPose.ColorCamera
				}
			},
			new PoseData
			{
				PoseNames = new List<string> { "Left Controller", "Right Controller" },
				Poses = new List<TrackedPoseDriver.TrackedPose>
				{
					TrackedPoseDriver.TrackedPose.LeftPose,
					TrackedPoseDriver.TrackedPose.RightPose
				}
			},
			new PoseData
			{
				PoseNames = new List<string> { "Device Pose" },
				Poses = new List<TrackedPoseDriver.TrackedPose> { TrackedPoseDriver.TrackedPose.RemotePose }
			}
		};
	}
	[Flags]
	public enum PoseDataFlags
	{
		NoData = 0,
		Position = 1,
		Rotation = 2
	}
	public static class PoseDataSource
	{
		internal static List<XRNodeState> nodeStates = new List<XRNodeState>();

		internal static PoseDataFlags GetNodePoseData(XRNode node, out Pose resultPose)
		{
			//IL_001b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0020: Unknown result type (might be due to invalid IL or missing references)
			//IL_0023: Unknown result type (might be due to invalid IL or missing references)
			//IL_0028: Unknown result type (might be due to invalid IL or missing references)
			//IL_006f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0074: Unknown result type (might be due to invalid IL or missing references)
			PoseDataFlags poseDataFlags = PoseDataFlags.NoData;
			InputTracking.GetNodeStates(nodeStates);
			foreach (XRNodeState nodeState in nodeStates)
			{
				XRNodeState current = nodeState;
				if (((XRNodeState)(ref current)).nodeType == node)
				{
					if (((XRNodeState)(ref current)).TryGetPosition(ref resultPose.position))
					{
						poseDataFlags |= PoseDataFlags.Position;
					}
					if (((XRNodeState)(ref current)).TryGetRotation(ref resultPose.rotation))
					{
						poseDataFlags |= PoseDataFlags.Rotation;
					}
					return poseDataFlags;
				}
			}
			resultPose = Pose.identity;
			return poseDataFlags;
		}

		public static bool TryGetDataFromSource(TrackedPoseDriver.TrackedPose poseSource, out Pose resultPose)
		{
			return GetDataFromSource(poseSource, out resultPose) == (PoseDataFlags.Position | PoseDataFlags.Rotation);
		}

		public static PoseDataFlags GetDataFromSource(TrackedPoseDriver.TrackedPose poseSource, out Pose resultPose)
		{
			//IL_00a2: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a7: Unknown result type (might be due to invalid IL or missing references)
			switch (poseSource)
			{
			case TrackedPoseDriver.TrackedPose.RemotePose:
			{
				PoseDataFlags nodePoseData = GetNodePoseData((XRNode)5, out resultPose);
				if (nodePoseData == PoseDataFlags.NoData)
				{
					return GetNodePoseData((XRNode)4, out resultPose);
				}
				return nodePoseData;
			}
			case TrackedPoseDriver.TrackedPose.LeftEye:
				return GetNodePoseData((XRNode)0, out resultPose);
			case TrackedPoseDriver.TrackedPose.RightEye:
				return GetNodePoseData((XRNode)1, out resultPose);
			case TrackedPoseDriver.TrackedPose.Head:
				return GetNodePoseData((XRNode)3, out resultPose);
			case TrackedPoseDriver.TrackedPose.Center:
				return GetNodePoseData((XRNode)2, out resultPose);
			case TrackedPoseDriver.TrackedPose.LeftPose:
				return GetNodePoseData((XRNode)4, out resultPose);
			case TrackedPoseDriver.TrackedPose.RightPose:
				return GetNodePoseData((XRNode)5, out resultPose);
			case TrackedPoseDriver.TrackedPose.ColorCamera:
				return GetNodePoseData((XRNode)2, out resultPose);
			default:
				Debug.LogWarningFormat("Unable to retrieve pose data for poseSource: {0}", new object[1] { poseSource.ToString() });
				resultPose = Pose.identity;
				return PoseDataFlags.NoData;
			}
		}
	}
	[Serializable]
	[DefaultExecutionOrder(-30000)]
	[AddComponentMenu("XR/Tracked Pose Driver")]
	[HelpURL("https://docs.unity3d.com/Packages/[email protected]/manual/index.html")]
	public class TrackedPoseDriver : MonoBehaviour
	{
		public enum DeviceType
		{
			GenericXRDevice,
			GenericXRController,
			GenericXRRemote
		}

		public enum TrackedPose
		{
			LeftEye,
			RightEye,
			Center,
			Head,
			LeftPose,
			RightPose,
			ColorCamera,
			DepthCameraDeprecated,
			FisheyeCameraDeprected,
			DeviceDeprecated,
			RemotePose
		}

		public enum TrackingType
		{
			RotationAndPosition,
			RotationOnly,
			PositionOnly
		}

		public enum UpdateType
		{
			UpdateAndBeforeRender,
			Update,
			BeforeRender
		}

		[SerializeField]
		private DeviceType m_Device;

		[SerializeField]
		private TrackedPose m_PoseSource = TrackedPose.Center;

		[SerializeField]
		private BasePoseProvider m_PoseProviderComponent;

		[SerializeField]
		private TrackingType m_TrackingType;

		[SerializeField]
		private UpdateType m_UpdateType;

		[SerializeField]
		private bool m_UseRelativeTransform;

		protected Pose m_OriginPose;

		public DeviceType deviceType
		{
			get
			{
				return m_Device;
			}
			internal set
			{
				m_Device = value;
			}
		}

		public TrackedPose poseSource
		{
			get
			{
				return m_PoseSource;
			}
			internal set
			{
				m_PoseSource = value;
			}
		}

		public BasePoseProvider poseProviderComponent
		{
			get
			{
				return m_PoseProviderComponent;
			}
			set
			{
				m_PoseProviderComponent = value;
			}
		}

		public TrackingType trackingType
		{
			get
			{
				return m_TrackingType;
			}
			set
			{
				m_TrackingType = value;
			}
		}

		public UpdateType updateType
		{
			get
			{
				return m_UpdateType;
			}
			set
			{
				m_UpdateType = value;
			}
		}

		public bool UseRelativeTransform
		{
			get
			{
				return m_UseRelativeTransform;
			}
			set
			{
				m_UseRelativeTransform = value;
			}
		}

		public Pose originPose
		{
			get
			{
				//IL_0001: Unknown result type (might be due to invalid IL or missing references)
				return m_OriginPose;
			}
			set
			{
				//IL_0001: Unknown result type (might be due to invalid IL or missing references)
				//IL_0002: Unknown result type (might be due to invalid IL or missing references)
				m_OriginPose = value;
			}
		}

		public bool SetPoseSource(DeviceType deviceType, TrackedPose pose)
		{
			if ((int)deviceType < TrackedPoseDriverDataDescription.DeviceData.Count)
			{
				TrackedPoseDriverDataDescription.PoseData poseData = TrackedPoseDriverDataDescription.DeviceData[(int)deviceType];
				for (int i = 0; i < poseData.Poses.Count; i++)
				{
					if (poseData.Poses[i] == pose)
					{
						this.deviceType = deviceType;
						poseSource = pose;
						return true;
					}
				}
			}
			return false;
		}

		private PoseDataFlags GetPoseData(DeviceType device, TrackedPose poseSource, out Pose resultPose)
		{
			if (!((Object)(object)m_PoseProviderComponent != (Object)null))
			{
				return PoseDataSource.GetDataFromSource(poseSource, out resultPose);
			}
			return m_PoseProviderComponent.GetPoseFromProvider(out resultPose);
		}

		private void CacheLocalPosition()
		{
			//IL_000c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0011: Unknown result type (might be due to invalid IL or missing references)
			//IL_0022: Unknown result type (might be due to invalid IL or missing references)
			//IL_0027: Unknown result type (might be due to invalid IL or missing references)
			m_OriginPose.position = ((Component)this).transform.localPosition;
			m_OriginPose.rotation = ((Component)this).transform.localRotation;
		}

		private void ResetToCachedLocalPosition()
		{
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_0012: Unknown result type (might be due to invalid IL or missing references)
			SetLocalTransform(m_OriginPose.position, m_OriginPose.rotation, PoseDataFlags.Position | PoseDataFlags.Rotation);
		}

		protected virtual void Awake()
		{
			CacheLocalPosition();
		}

		protected virtual void OnDestroy()
		{
		}

		protected virtual void OnEnable()
		{
			//IL_0008: Unknown result type (might be due to invalid IL or missing references)
			//IL_0012: Expected O, but got Unknown
			Application.onBeforeRender += new UnityAction(OnBeforeRender);
		}

		protected virtual void OnDisable()
		{
			//IL_000e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0018: Expected O, but got Unknown
			ResetToCachedLocalPosition();
			Application.onBeforeRender -= new UnityAction(OnBeforeRender);
		}

		protected virtual void FixedUpdate()
		{
			if (m_UpdateType == UpdateType.Update || m_UpdateType == UpdateType.UpdateAndBeforeRender)
			{
				PerformUpdate();
			}
		}

		protected virtual void Update()
		{
			if (m_UpdateType == UpdateType.Update || m_UpdateType == UpdateType.UpdateAndBeforeRender)
			{
				PerformUpdate();
			}
		}

		[BeforeRenderOrder(-30000)]
		protected virtual void OnBeforeRender()
		{
			if (m_UpdateType == UpdateType.BeforeRender || m_UpdateType == UpdateType.UpdateAndBeforeRender)
			{
				PerformUpdate();
			}
		}

		protected virtual void SetLocalTransform(Vector3 newPosition, Quaternion newRotation, PoseDataFlags poseFlags)
		{
			//IL_001d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0040: Unknown result type (might be due to invalid IL or missing references)
			if ((m_TrackingType == TrackingType.RotationAndPosition || m_TrackingType == TrackingType.RotationOnly) && (poseFlags & PoseDataFlags.Rotation) > PoseDataFlags.NoData)
			{
				((Component)this).transform.localRotation = newRotation;
			}
			if ((m_TrackingType == TrackingType.RotationAndPosition || m_TrackingType == TrackingType.PositionOnly) && (poseFlags & PoseDataFlags.Position) > PoseDataFlags.NoData)
			{
				((Component)this).transform.localPosition = newPosition;
			}
		}

		protected Pose TransformPoseByOriginIfNeeded(Pose pose)
		{
			//IL_0016: Unknown result type (might be due to invalid IL or missing references)
			//IL_000b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0010: Unknown result type (might be due to invalid IL or missing references)
			if (m_UseRelativeTransform)
			{
				return ((Pose)(ref pose)).GetTransformedBy(m_OriginPose);
			}
			return pose;
		}

		private bool HasStereoCamera()
		{
			Camera component = ((Component)this).GetComponent<Camera>();
			if ((Object)(object)component != (Object)null)
			{
				return component.stereoEnabled;
			}
			return false;
		}

		protected virtual void PerformUpdate()
		{
			//IL_0022: Unknown result type (might be due to invalid IL or missing references)
			//IL_0023: Unknown result type (might be due to invalid IL or missing references)
			//IL_0028: Unknown result type (might be due to invalid IL or missing references)
			//IL_002a: Unknown result type (might be due to invalid IL or missing references)
			//IL_002b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0030: Unknown result type (might be due to invalid IL or missing references)
			//IL_0031: Unknown result type (might be due to invalid IL or missing references)
			if (((Behaviour)this).enabled)
			{
				Pose resultPose;
				PoseDataFlags poseData = GetPoseData(m_Device, m_PoseSource, out resultPose);
				if (poseData != 0)
				{
					Pose val = TransformPoseByOriginIfNeeded(resultPose);
					SetLocalTransform(val.position, val.rotation, poseData);
				}
			}
		}
	}
}
namespace UnityEngine.Experimental.XR.Interaction
{
	[Serializable]
	public abstract class BasePoseProvider : MonoBehaviour
	{
		public virtual PoseDataFlags GetPoseFromProvider(out Pose output)
		{
			if (TryGetPoseFromProvider(out output))
			{
				return PoseDataFlags.Position | PoseDataFlags.Rotation;
			}
			return PoseDataFlags.NoData;
		}

		[Obsolete("This function is provided for backwards compatibility with the BasePoseProvider found in com.unity.xr.legacyinputhelpers v1.3.X. Please do not implement this function, instead use the new API via GetPoseFromProvider", false)]
		public virtual bool TryGetPoseFromProvider(out Pose output)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0006: Unknown result type (might be due to invalid IL or missing references)
			output = Pose.identity;
			return false;
		}
	}
}

patchers/GameData/ULTRAKILL_Data/Managed/UnityEngine.XR.LegacyInputHelpers.dll

Decompiled 3 days ago
using System;
using System.CodeDom.Compiler;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using UnityEngine;
using UnityEngine.Experimental.XR.Interaction;
using UnityEngine.SpatialTracking;
using UnityEngine.XR;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: InternalsVisibleTo("UnityEditor.XR.LegacyInputHelpers")]
[assembly: AssemblyVersion("0.0.0.0")]
[CompilerGenerated]
[EditorBrowsable(EditorBrowsableState.Never)]
[GeneratedCode("Unity.MonoScriptGenerator.MonoScriptInfoGenerator", null)]
internal class UnitySourceGeneratedAssemblyMonoScriptTypes_v1
{
	private struct MonoScriptData
	{
		public byte[] FilePathsData;

		public byte[] TypesData;

		public int TotalTypes;

		public int TotalFiles;

		public bool IsEditorOnly;
	}

	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	private static MonoScriptData Get()
	{
		return new MonoScriptData
		{
			FilePathsData = new byte[401]
			{
				0, 0, 0, 1, 0, 0, 0, 90, 92, 76,
				105, 98, 114, 97, 114, 121, 92, 80, 97, 99,
				107, 97, 103, 101, 67, 97, 99, 104, 101, 92,
				99, 111, 109, 46, 117, 110, 105, 116, 121, 46,
				120, 114, 46, 108, 101, 103, 97, 99, 121, 105,
				110, 112, 117, 116, 104, 101, 108, 112, 101, 114,
				115, 64, 50, 46, 49, 46, 49, 48, 92, 82,
				117, 110, 116, 105, 109, 101, 92, 65, 114, 109,
				77, 111, 100, 101, 108, 115, 92, 65, 114, 109,
				77, 111, 100, 101, 108, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 95, 92, 76, 105, 98,
				114, 97, 114, 121, 92, 80, 97, 99, 107, 97,
				103, 101, 67, 97, 99, 104, 101, 92, 99, 111,
				109, 46, 117, 110, 105, 116, 121, 46, 120, 114,
				46, 108, 101, 103, 97, 99, 121, 105, 110, 112,
				117, 116, 104, 101, 108, 112, 101, 114, 115, 64,
				50, 46, 49, 46, 49, 48, 92, 82, 117, 110,
				116, 105, 109, 101, 92, 65, 114, 109, 77, 111,
				100, 101, 108, 115, 92, 83, 119, 105, 110, 103,
				65, 114, 109, 77, 111, 100, 101, 108, 46, 99,
				115, 0, 0, 0, 3, 0, 0, 0, 100, 92,
				76, 105, 98, 114, 97, 114, 121, 92, 80, 97,
				99, 107, 97, 103, 101, 67, 97, 99, 104, 101,
				92, 99, 111, 109, 46, 117, 110, 105, 116, 121,
				46, 120, 114, 46, 108, 101, 103, 97, 99, 121,
				105, 110, 112, 117, 116, 104, 101, 108, 112, 101,
				114, 115, 64, 50, 46, 49, 46, 49, 48, 92,
				82, 117, 110, 116, 105, 109, 101, 92, 65, 114,
				109, 77, 111, 100, 101, 108, 115, 92, 84, 114,
				97, 110, 115, 105, 116, 105, 111, 110, 65, 114,
				109, 77, 111, 100, 101, 108, 46, 99, 115, 0,
				0, 0, 1, 0, 0, 0, 84, 92, 76, 105,
				98, 114, 97, 114, 121, 92, 80, 97, 99, 107,
				97, 103, 101, 67, 97, 99, 104, 101, 92, 99,
				111, 109, 46, 117, 110, 105, 116, 121, 46, 120,
				114, 46, 108, 101, 103, 97, 99, 121, 105, 110,
				112, 117, 116, 104, 101, 108, 112, 101, 114, 115,
				64, 50, 46, 49, 46, 49, 48, 92, 82, 117,
				110, 116, 105, 109, 101, 92, 67, 97, 109, 101,
				114, 97, 79, 102, 102, 115, 101, 116, 46, 99,
				115
			},
			TypesData = new byte[339]
			{
				0, 0, 0, 0, 42, 85, 110, 105, 116, 121,
				69, 110, 103, 105, 110, 101, 46, 88, 82, 46,
				76, 101, 103, 97, 99, 121, 73, 110, 112, 117,
				116, 72, 101, 108, 112, 101, 114, 115, 124, 65,
				114, 109, 77, 111, 100, 101, 108, 0, 0, 0,
				0, 47, 85, 110, 105, 116, 121, 69, 110, 103,
				105, 110, 101, 46, 88, 82, 46, 76, 101, 103,
				97, 99, 121, 73, 110, 112, 117, 116, 72, 101,
				108, 112, 101, 114, 115, 124, 83, 119, 105, 110,
				103, 65, 114, 109, 77, 111, 100, 101, 108, 0,
				0, 0, 0, 52, 85, 110, 105, 116, 121, 69,
				110, 103, 105, 110, 101, 46, 88, 82, 46, 76,
				101, 103, 97, 99, 121, 73, 110, 112, 117, 116,
				72, 101, 108, 112, 101, 114, 115, 124, 65, 114,
				109, 77, 111, 100, 101, 108, 84, 114, 97, 110,
				115, 105, 116, 105, 111, 110, 0, 0, 0, 0,
				52, 85, 110, 105, 116, 121, 69, 110, 103, 105,
				110, 101, 46, 88, 82, 46, 76, 101, 103, 97,
				99, 121, 73, 110, 112, 117, 116, 72, 101, 108,
				112, 101, 114, 115, 124, 84, 114, 97, 110, 115,
				105, 116, 105, 111, 110, 65, 114, 109, 77, 111,
				100, 101, 108, 0, 0, 0, 0, 70, 85, 110,
				105, 116, 121, 69, 110, 103, 105, 110, 101, 46,
				88, 82, 46, 76, 101, 103, 97, 99, 121, 73,
				110, 112, 117, 116, 72, 101, 108, 112, 101, 114,
				115, 46, 84, 114, 97, 110, 115, 105, 116, 105,
				111, 110, 65, 114, 109, 77, 111, 100, 101, 108,
				124, 65, 114, 109, 77, 111, 100, 101, 108, 66,
				108, 101, 110, 100, 68, 97, 116, 97, 0, 0,
				0, 0, 46, 85, 110, 105, 116, 121, 69, 100,
				105, 116, 111, 114, 46, 88, 82, 46, 76, 101,
				103, 97, 99, 121, 73, 110, 112, 117, 116, 72,
				101, 108, 112, 101, 114, 115, 124, 67, 97, 109,
				101, 114, 97, 79, 102, 102, 115, 101, 116
			},
			TotalFiles = 4,
			TotalTypes = 6,
			IsEditorOnly = false
		};
	}
}
namespace UnityEditor.XR.LegacyInputHelpers
{
	public enum UserRequestedTrackingMode
	{
		Default,
		Device,
		Floor
	}
	[AddComponentMenu("XR/Camera Offset")]
	public class CameraOffset : MonoBehaviour
	{
		private const float k_DefaultCameraYOffset = 1.36144f;

		[SerializeField]
		[Tooltip("GameObject to move to desired height off the floor (defaults to this object if none provided).")]
		private GameObject m_CameraFloorOffsetObject;

		[SerializeField]
		[Tooltip("What the user wants the tracking origin mode to be")]
		private UserRequestedTrackingMode m_RequestedTrackingMode;

		[SerializeField]
		[Tooltip("Sets the type of tracking origin to use for this Rig. Tracking origins identify where 0,0,0 is in the world of tracking.")]
		private TrackingOriginModeFlags m_TrackingOriginMode;

		[SerializeField]
		[Tooltip("Set if the XR experience is Room Scale or Stationary.")]
		private TrackingSpaceType m_TrackingSpace;

		[SerializeField]
		[Tooltip("Camera Height to be used when in Device tracking space.")]
		private float m_CameraYOffset = 1.36144f;

		private bool m_CameraInitialized;

		private bool m_CameraInitializing;

		private static List<XRInputSubsystem> s_InputSubsystems = new List<XRInputSubsystem>();

		public GameObject cameraFloorOffsetObject
		{
			get
			{
				return m_CameraFloorOffsetObject;
			}
			set
			{
				//IL_0009: Unknown result type (might be due to invalid IL or missing references)
				m_CameraFloorOffsetObject = value;
				UpdateTrackingOrigin(m_TrackingOriginMode);
			}
		}

		public UserRequestedTrackingMode requestedTrackingMode
		{
			get
			{
				return m_RequestedTrackingMode;
			}
			set
			{
				m_RequestedTrackingMode = value;
				TryInitializeCamera();
			}
		}

		public TrackingOriginModeFlags TrackingOriginMode
		{
			get
			{
				//IL_0001: Unknown result type (might be due to invalid IL or missing references)
				return m_TrackingOriginMode;
			}
			set
			{
				//IL_0001: Unknown result type (might be due to invalid IL or missing references)
				//IL_0002: Unknown result type (might be due to invalid IL or missing references)
				m_TrackingOriginMode = value;
				TryInitializeCamera();
			}
		}

		[Obsolete("CameraOffset.trackingSpace is obsolete.  Please use CameraOffset.trackingOriginMode.")]
		public TrackingSpaceType trackingSpace
		{
			get
			{
				//IL_0001: Unknown result type (might be due to invalid IL or missing references)
				return m_TrackingSpace;
			}
			set
			{
				//IL_0001: Unknown result type (might be due to invalid IL or missing references)
				//IL_0002: Unknown result type (might be due to invalid IL or missing references)
				m_TrackingSpace = value;
				TryInitializeCamera();
			}
		}

		public float cameraYOffset
		{
			get
			{
				return m_CameraYOffset;
			}
			set
			{
				//IL_0009: Unknown result type (might be due to invalid IL or missing references)
				m_CameraYOffset = value;
				UpdateTrackingOrigin(m_TrackingOriginMode);
			}
		}

		private void UpgradeTrackingSpaceToTrackingOriginMode()
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0009: Unknown result type (might be due to invalid IL or missing references)
			//IL_000f: Invalid comparison between Unknown and I4
			//IL_0012: Unknown result type (might be due to invalid IL or missing references)
			//IL_0017: Unknown result type (might be due to invalid IL or missing references)
			//IL_0018: Unknown result type (might be due to invalid IL or missing references)
			//IL_002a: Unknown result type (might be due to invalid IL or missing references)
			//IL_001b: Unknown result type (might be due to invalid IL or missing references)
			//IL_001d: Invalid comparison between Unknown and I4
			//IL_0031: Unknown result type (might be due to invalid IL or missing references)
			//IL_0021: Unknown result type (might be due to invalid IL or missing references)
			if ((int)m_TrackingOriginMode != 0 || (int)m_TrackingSpace > 1)
			{
				return;
			}
			TrackingSpaceType val = m_TrackingSpace;
			if ((int)val != 0)
			{
				if ((int)val == 1)
				{
					m_TrackingOriginMode = (TrackingOriginModeFlags)2;
				}
			}
			else
			{
				m_TrackingOriginMode = (TrackingOriginModeFlags)1;
			}
			m_TrackingSpace = (TrackingSpaceType)3;
		}

		private void Awake()
		{
			if (!Object.op_Implicit((Object)(object)m_CameraFloorOffsetObject))
			{
				Debug.LogWarning((object)"No camera container specified for XR Rig, using attached GameObject");
				m_CameraFloorOffsetObject = ((Component)this).gameObject;
			}
		}

		private void Start()
		{
			TryInitializeCamera();
		}

		private void OnValidate()
		{
			UpgradeTrackingSpaceToTrackingOriginMode();
			TryInitializeCamera();
		}

		private void TryInitializeCamera()
		{
			m_CameraInitialized = SetupCamera();
			if (!m_CameraInitialized & !m_CameraInitializing)
			{
				((MonoBehaviour)this).StartCoroutine(RepeatInitializeCamera());
			}
		}

		private IEnumerator RepeatInitializeCamera()
		{
			m_CameraInitializing = true;
			yield return null;
			while (!m_CameraInitialized)
			{
				m_CameraInitialized = SetupCamera();
				yield return null;
			}
			m_CameraInitializing = false;
		}

		private bool SetupCamera()
		{
			SubsystemManager.GetInstances<XRInputSubsystem>(s_InputSubsystems);
			bool flag = true;
			if (s_InputSubsystems.Count != 0)
			{
				for (int i = 0; i < s_InputSubsystems.Count; i++)
				{
					bool flag2 = SetupCamera(s_InputSubsystems[i]);
					if (flag2)
					{
						s_InputSubsystems[i].trackingOriginUpdated -= OnTrackingOriginUpdated;
						s_InputSubsystems[i].trackingOriginUpdated += OnTrackingOriginUpdated;
					}
					flag = flag && flag2;
				}
			}
			else if (m_RequestedTrackingMode == UserRequestedTrackingMode.Floor)
			{
				SetupCameraLegacy((TrackingSpaceType)1);
			}
			else
			{
				SetupCameraLegacy((TrackingSpaceType)0);
			}
			return flag;
		}

		private bool SetupCamera(XRInputSubsystem subsystem)
		{
			//IL_0008: Unknown result type (might be due to invalid IL or missing references)
			//IL_000d: Unknown result type (might be due to invalid IL or missing references)
			//IL_000f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0014: Unknown result type (might be due to invalid IL or missing references)
			//IL_0016: Unknown result type (might be due to invalid IL or missing references)
			//IL_001f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0020: Unknown result type (might be due to invalid IL or missing references)
			//IL_002d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0047: Unknown result type (might be due to invalid IL or missing references)
			//IL_0049: Invalid comparison between Unknown and I4
			//IL_003a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0066: Unknown result type (might be due to invalid IL or missing references)
			//IL_0068: Invalid comparison between Unknown and I4
			//IL_004b: Unknown result type (might be due to invalid IL or missing references)
			//IL_004d: Unknown result type (might be due to invalid IL or missing references)
			//IL_006a: Unknown result type (might be due to invalid IL or missing references)
			//IL_006c: Unknown result type (might be due to invalid IL or missing references)
			//IL_005d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0093: Unknown result type (might be due to invalid IL or missing references)
			//IL_007c: Unknown result type (might be due to invalid IL or missing references)
			if (subsystem == null)
			{
				return false;
			}
			bool flag = false;
			TrackingOriginModeFlags trackingOriginMode = subsystem.GetTrackingOriginMode();
			TrackingOriginModeFlags supportedTrackingOriginModes = subsystem.GetSupportedTrackingOriginModes();
			TrackingOriginModeFlags val = (TrackingOriginModeFlags)0;
			if (m_RequestedTrackingMode == UserRequestedTrackingMode.Default)
			{
				val = trackingOriginMode;
			}
			else if (m_RequestedTrackingMode == UserRequestedTrackingMode.Device)
			{
				val = (TrackingOriginModeFlags)1;
			}
			else if (m_RequestedTrackingMode == UserRequestedTrackingMode.Floor)
			{
				val = (TrackingOriginModeFlags)2;
			}
			else
			{
				Debug.LogWarning((object)"Unknown Requested Tracking Mode");
			}
			if ((int)val == 2)
			{
				if ((supportedTrackingOriginModes & 2) == 0)
				{
					Debug.LogWarning((object)"CameraOffset.SetupCamera: Attempting to set the tracking space to Floor, but that is not supported by the SDK.");
				}
				else
				{
					flag = subsystem.TrySetTrackingOriginMode(val);
				}
			}
			else if ((int)val == 1)
			{
				if ((supportedTrackingOriginModes & 1) == 0)
				{
					Debug.LogWarning((object)"CameraOffset.SetupCamera: Attempting to set the tracking space to Device, but that is not supported by the SDK.");
				}
				else
				{
					flag = subsystem.TrySetTrackingOriginMode(val) && subsystem.TryRecenter();
				}
			}
			if (flag)
			{
				UpdateTrackingOrigin(subsystem.GetTrackingOriginMode());
			}
			return flag;
		}

		private void UpdateTrackingOrigin(TrackingOriginModeFlags trackingOriginModeFlags)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_002b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0036: Unknown result type (might be due to invalid IL or missing references)
			//IL_003c: Invalid comparison between Unknown and I4
			//IL_0056: Unknown result type (might be due to invalid IL or missing references)
			//IL_0060: Unknown result type (might be due to invalid IL or missing references)
			m_TrackingOriginMode = trackingOriginModeFlags;
			if ((Object)(object)m_CameraFloorOffsetObject != (Object)null)
			{
				m_CameraFloorOffsetObject.transform.localPosition = new Vector3(m_CameraFloorOffsetObject.transform.localPosition.x, ((int)m_TrackingOriginMode == 1) ? cameraYOffset : 0f, m_CameraFloorOffsetObject.transform.localPosition.z);
			}
		}

		private void OnTrackingOriginUpdated(XRInputSubsystem subsystem)
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			UpdateTrackingOrigin(subsystem.GetTrackingOriginMode());
		}

		private void OnDestroy()
		{
			SubsystemManager.GetInstances<XRInputSubsystem>(s_InputSubsystems);
			foreach (XRInputSubsystem s_InputSubsystem in s_InputSubsystems)
			{
				s_InputSubsystem.trackingOriginUpdated -= OnTrackingOriginUpdated;
			}
		}

		private void SetupCameraLegacy(TrackingSpaceType trackingSpace)
		{
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_000e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0018: Unknown result type (might be due to invalid IL or missing references)
			//IL_001a: Invalid comparison between Unknown and I4
			//IL_0023: Unknown result type (might be due to invalid IL or missing references)
			//IL_0024: Unknown result type (might be due to invalid IL or missing references)
			//IL_004c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0062: Unknown result type (might be due to invalid IL or missing references)
			//IL_006c: Unknown result type (might be due to invalid IL or missing references)
			float num = m_CameraYOffset;
			XRDevice.SetTrackingSpaceType(trackingSpace);
			if ((int)trackingSpace == 0)
			{
				InputTracking.Recenter();
			}
			else if ((int)trackingSpace == 1)
			{
				num = 0f;
			}
			m_TrackingSpace = trackingSpace;
			if (Object.op_Implicit((Object)(object)m_CameraFloorOffsetObject))
			{
				m_CameraFloorOffsetObject.transform.localPosition = new Vector3(m_CameraFloorOffsetObject.transform.localPosition.x, num, m_CameraFloorOffsetObject.transform.localPosition.z);
			}
		}
	}
}
namespace UnityEngine.XR.LegacyInputHelpers
{
	public class ArmModel : BasePoseProvider
	{
		private Pose m_FinalPose;

		[SerializeField]
		private XRNode m_PoseSource = (XRNode)4;

		[SerializeField]
		private XRNode m_HeadPoseSource = (XRNode)2;

		[SerializeField]
		private Vector3 m_ElbowRestPosition = DEFAULT_ELBOW_REST_POSITION;

		[SerializeField]
		private Vector3 m_WristRestPosition = DEFAULT_WRIST_REST_POSITION;

		[SerializeField]
		private Vector3 m_ControllerRestPosition = DEFAULT_CONTROLLER_REST_POSITION;

		[SerializeField]
		private Vector3 m_ArmExtensionOffset = DEFAULT_ARM_EXTENSION_OFFSET;

		[Range(0f, 1f)]
		[SerializeField]
		private float m_ElbowBendRatio = 0.6f;

		[SerializeField]
		private bool m_IsLockedToNeck = true;

		protected Vector3 m_NeckPosition;

		protected Vector3 m_ElbowPosition;

		protected Quaternion m_ElbowRotation;

		protected Vector3 m_WristPosition;

		protected Quaternion m_WristRotation;

		protected Vector3 m_ControllerPosition;

		protected Quaternion m_ControllerRotation;

		protected Vector3 m_HandedMultiplier;

		protected Vector3 m_TorsoDirection;

		protected Quaternion m_TorsoRotation;

		protected static readonly Vector3 DEFAULT_ELBOW_REST_POSITION = new Vector3(0.195f, -0.5f, 0.005f);

		protected static readonly Vector3 DEFAULT_WRIST_REST_POSITION = new Vector3(0f, 0f, 0.25f);

		protected static readonly Vector3 DEFAULT_CONTROLLER_REST_POSITION = new Vector3(0f, 0f, 0.05f);

		protected static readonly Vector3 DEFAULT_ARM_EXTENSION_OFFSET = new Vector3(-0.13f, 0.14f, 0.08f);

		protected const float DEFAULT_ELBOW_BEND_RATIO = 0.6f;

		protected const float EXTENSION_WEIGHT = 0.4f;

		protected static readonly Vector3 SHOULDER_POSITION = new Vector3(0.17f, -0.2f, -0.03f);

		protected static readonly Vector3 NECK_OFFSET = new Vector3(0f, 0.075f, 0.08f);

		protected const float MIN_EXTENSION_ANGLE = 7f;

		protected const float MAX_EXTENSION_ANGLE = 60f;

		private List<XRNodeState> xrNodeStateListOrientation = new List<XRNodeState>();

		private List<XRNodeState> xrNodeStateListPosition = new List<XRNodeState>();

		private List<XRNodeState> xrNodeStateListAngularAcceleration = new List<XRNodeState>();

		private List<XRNodeState> xrNodeStateListAngularVelocity = new List<XRNodeState>();

		public Pose finalPose
		{
			get
			{
				//IL_0001: Unknown result type (might be due to invalid IL or missing references)
				return m_FinalPose;
			}
			set
			{
				//IL_0001: Unknown result type (might be due to invalid IL or missing references)
				//IL_0002: Unknown result type (might be due to invalid IL or missing references)
				m_FinalPose = value;
			}
		}

		public XRNode poseSource
		{
			get
			{
				//IL_0001: Unknown result type (might be due to invalid IL or missing references)
				return m_PoseSource;
			}
			set
			{
				//IL_0001: Unknown result type (might be due to invalid IL or missing references)
				//IL_0002: Unknown result type (might be due to invalid IL or missing references)
				m_PoseSource = value;
			}
		}

		public XRNode headGameObject
		{
			get
			{
				//IL_0001: Unknown result type (might be due to invalid IL or missing references)
				return m_HeadPoseSource;
			}
			set
			{
				//IL_0001: Unknown result type (might be due to invalid IL or missing references)
				//IL_0002: Unknown result type (might be due to invalid IL or missing references)
				m_HeadPoseSource = value;
			}
		}

		public Vector3 elbowRestPosition
		{
			get
			{
				//IL_0001: Unknown result type (might be due to invalid IL or missing references)
				return m_ElbowRestPosition;
			}
			set
			{
				//IL_0001: Unknown result type (might be due to invalid IL or missing references)
				//IL_0002: Unknown result type (might be due to invalid IL or missing references)
				m_ElbowRestPosition = value;
			}
		}

		public Vector3 wristRestPosition
		{
			get
			{
				//IL_0001: Unknown result type (might be due to invalid IL or missing references)
				return m_WristRestPosition;
			}
			set
			{
				//IL_0001: Unknown result type (might be due to invalid IL or missing references)
				//IL_0002: Unknown result type (might be due to invalid IL or missing references)
				m_WristRestPosition = value;
			}
		}

		public Vector3 controllerRestPosition
		{
			get
			{
				//IL_0001: Unknown result type (might be due to invalid IL or missing references)
				return m_ControllerRestPosition;
			}
			set
			{
				//IL_0001: Unknown result type (might be due to invalid IL or missing references)
				//IL_0002: Unknown result type (might be due to invalid IL or missing references)
				m_ControllerRestPosition = value;
			}
		}

		public Vector3 armExtensionOffset
		{
			get
			{
				//IL_0001: Unknown result type (might be due to invalid IL or missing references)
				return m_ArmExtensionOffset;
			}
			set
			{
				//IL_0001: Unknown result type (might be due to invalid IL or missing references)
				//IL_0002: Unknown result type (might be due to invalid IL or missing references)
				m_ArmExtensionOffset = value;
			}
		}

		public float elbowBendRatio
		{
			get
			{
				return m_ElbowBendRatio;
			}
			set
			{
				m_ElbowBendRatio = value;
			}
		}

		public bool isLockedToNeck
		{
			get
			{
				return m_IsLockedToNeck;
			}
			set
			{
				m_IsLockedToNeck = value;
			}
		}

		public Vector3 neckPosition => m_NeckPosition;

		public Vector3 shoulderPosition => m_NeckPosition + m_TorsoRotation * Vector3.Scale(SHOULDER_POSITION, m_HandedMultiplier);

		public Quaternion shoulderRotation => m_TorsoRotation;

		public Vector3 elbowPosition => m_ElbowPosition;

		public Quaternion elbowRotation => m_ElbowRotation;

		public Vector3 wristPosition => m_WristPosition;

		public Quaternion wristRotation => m_WristRotation;

		public Vector3 controllerPosition => m_ControllerPosition;

		public Quaternion controllerRotation => m_ControllerRotation;

		public override PoseDataFlags GetPoseFromProvider(out Pose output)
		{
			//IL_0017: Unknown result type (might be due to invalid IL or missing references)
			//IL_001c: Unknown result type (might be due to invalid IL or missing references)
			//IL_000a: Unknown result type (might be due to invalid IL or missing references)
			//IL_000f: Unknown result type (might be due to invalid IL or missing references)
			if (OnControllerInputUpdated())
			{
				output = finalPose;
				return (PoseDataFlags)3;
			}
			output = Pose.identity;
			return (PoseDataFlags)0;
		}

		protected virtual void OnEnable()
		{
			UpdateTorsoDirection(forceImmediate: true);
			OnControllerInputUpdated();
		}

		protected virtual void OnDisable()
		{
		}

		public virtual bool OnControllerInputUpdated()
		{
			UpdateHandedness();
			if (UpdateTorsoDirection(forceImmediate: false) && UpdateNeckPosition() && ApplyArmModel())
			{
				return true;
			}
			return false;
		}

		protected virtual void UpdateHandedness()
		{
			//IL_001b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0021: Invalid comparison between Unknown and I4
			//IL_0024: Unknown result type (might be due to invalid IL or missing references)
			//IL_002a: Invalid comparison between Unknown and I4
			//IL_003e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0044: Invalid comparison between Unknown and I4
			((Vector3)(ref m_HandedMultiplier)).Set(0f, 1f, 1f);
			if ((int)m_PoseSource == 5 || (int)m_PoseSource == 7)
			{
				m_HandedMultiplier.x = 1f;
			}
			else if ((int)m_PoseSource == 4)
			{
				m_HandedMultiplier.x = -1f;
			}
		}

		protected virtual bool UpdateTorsoDirection(bool forceImmediate)
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_000a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0039: Unknown result type (might be due to invalid IL or missing references)
			//IL_002f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0030: Unknown result type (might be due to invalid IL or missing references)
			//IL_007e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0084: Unknown result type (might be due to invalid IL or missing references)
			//IL_0089: Unknown result type (might be due to invalid IL or missing references)
			//IL_008e: Unknown result type (might be due to invalid IL or missing references)
			//IL_006c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0071: Unknown result type (might be due to invalid IL or missing references)
			//IL_0073: Unknown result type (might be due to invalid IL or missing references)
			//IL_0078: Unknown result type (might be due to invalid IL or missing references)
			Vector3 forward = default(Vector3);
			if (TryGetForwardVector(m_HeadPoseSource, out forward))
			{
				forward.y = 0f;
				((Vector3)(ref forward)).Normalize();
				Vector3 angularAccel;
				if (forceImmediate)
				{
					m_TorsoDirection = forward;
				}
				else if (TryGetAngularAcceleration(poseSource, out angularAccel))
				{
					float num = Mathf.Clamp((((Vector3)(ref angularAccel)).magnitude - 0.2f) / 45f, 0f, 0.1f);
					m_TorsoDirection = Vector3.Slerp(m_TorsoDirection, forward, num);
				}
				m_TorsoRotation = Quaternion.FromToRotation(Vector3.forward, m_TorsoDirection);
				return true;
			}
			return false;
		}

		protected virtual bool UpdateNeckPosition()
		{
			//IL_0030: Unknown result type (might be due to invalid IL or missing references)
			//IL_0035: Unknown result type (might be due to invalid IL or missing references)
			//IL_000a: Unknown result type (might be due to invalid IL or missing references)
			//IL_001e: Unknown result type (might be due to invalid IL or missing references)
			if (m_IsLockedToNeck && TryGetPosition(m_HeadPoseSource, out m_NeckPosition))
			{
				return ApplyInverseNeckModel(m_NeckPosition, out m_NeckPosition);
			}
			m_NeckPosition = Vector3.zero;
			return true;
		}

		protected virtual bool ApplyArmModel()
		{
			//IL_0024: Unknown result type (might be due to invalid IL or missing references)
			//IL_0026: Unknown result type (might be due to invalid IL or missing references)
			//IL_002b: Unknown result type (might be due to invalid IL or missing references)
			//IL_002e: Unknown result type (might be due to invalid IL or missing references)
			//IL_002f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0030: Unknown result type (might be due to invalid IL or missing references)
			//IL_0044: Unknown result type (might be due to invalid IL or missing references)
			//IL_0049: Unknown result type (might be due to invalid IL or missing references)
			//IL_0055: Unknown result type (might be due to invalid IL or missing references)
			//IL_005a: Unknown result type (might be due to invalid IL or missing references)
			SetUntransformedJointPositions();
			if (GetControllerRotation(out var rotation, out var xyRotation, out var xAngle))
			{
				float extensionRatio = CalculateExtensionRatio(xAngle);
				ApplyExtensionOffset(extensionRatio);
				Quaternion lerpRotation = CalculateLerpRotation(xyRotation, extensionRatio);
				CalculateFinalJointRotations(rotation, xyRotation, lerpRotation);
				ApplyRotationToJoints();
				m_FinalPose.position = m_ControllerPosition;
				m_FinalPose.rotation = m_ControllerRotation;
				return true;
			}
			return false;
		}

		protected virtual void SetUntransformedJointPositions()
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0008: Unknown result type (might be due to invalid IL or missing references)
			//IL_000d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0012: Unknown result type (might be due to invalid IL or missing references)
			//IL_0019: Unknown result type (might be due to invalid IL or missing references)
			//IL_001f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0024: Unknown result type (might be due to invalid IL or missing references)
			//IL_0029: Unknown result type (might be due to invalid IL or missing references)
			//IL_0030: Unknown result type (might be due to invalid IL or missing references)
			//IL_0036: Unknown result type (might be due to invalid IL or missing references)
			//IL_003b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0040: Unknown result type (might be due to invalid IL or missing references)
			m_ElbowPosition = Vector3.Scale(m_ElbowRestPosition, m_HandedMultiplier);
			m_WristPosition = Vector3.Scale(m_WristRestPosition, m_HandedMultiplier);
			m_ControllerPosition = Vector3.Scale(m_ControllerRestPosition, m_HandedMultiplier);
		}

		protected virtual float CalculateExtensionRatio(float xAngle)
		{
			return Mathf.Clamp((xAngle - 7f) / 53f, 0f, 1f);
		}

		protected virtual void ApplyExtensionOffset(float extensionRatio)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_000c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0011: Unknown result type (might be due to invalid IL or missing references)
			//IL_0014: Unknown result type (might be due to invalid IL or missing references)
			//IL_0019: Unknown result type (might be due to invalid IL or missing references)
			//IL_001b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0020: Unknown result type (might be due to invalid IL or missing references)
			//IL_0025: Unknown result type (might be due to invalid IL or missing references)
			Vector3 val = Vector3.Scale(m_ArmExtensionOffset, m_HandedMultiplier);
			m_ElbowPosition += val * extensionRatio;
		}

		protected virtual Quaternion CalculateLerpRotation(Quaternion xyRotation, float extensionRatio)
		{
			//IL_0000: Unknown result type (might be due to invalid IL or missing references)
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0044: Unknown result type (might be due to invalid IL or missing references)
			//IL_0049: Unknown result type (might be due to invalid IL or missing references)
			//IL_004b: Unknown result type (might be due to invalid IL or missing references)
			float num = Quaternion.Angle(xyRotation, Quaternion.identity);
			float num2 = 1f - Mathf.Pow(num / 180f, 6f);
			float num3 = 1f - m_ElbowBendRatio + m_ElbowBendRatio * extensionRatio * 0.4f;
			num3 *= num2;
			return Quaternion.Lerp(Quaternion.identity, xyRotation, num3);
		}

		protected virtual void CalculateFinalJointRotations(Quaternion controllerOrientation, Quaternion xyRotation, Quaternion lerpRotation)
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_0008: Unknown result type (might be due to invalid IL or missing references)
			//IL_000d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0012: Unknown result type (might be due to invalid IL or missing references)
			//IL_0013: Unknown result type (might be due to invalid IL or missing references)
			//IL_0018: Unknown result type (might be due to invalid IL or missing references)
			//IL_001f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0024: Unknown result type (might be due to invalid IL or missing references)
			//IL_0025: Unknown result type (might be due to invalid IL or missing references)
			//IL_002a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0031: Unknown result type (might be due to invalid IL or missing references)
			//IL_0036: Unknown result type (might be due to invalid IL or missing references)
			//IL_0037: Unknown result type (might be due to invalid IL or missing references)
			//IL_003c: Unknown result type (might be due to invalid IL or missing references)
			m_ElbowRotation = m_TorsoRotation * Quaternion.Inverse(lerpRotation) * xyRotation;
			m_WristRotation = m_ElbowRotation * lerpRotation;
			m_ControllerRotation = m_TorsoRotation * controllerOrientation;
		}

		protected virtual void ApplyRotationToJoints()
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0008: Unknown result type (might be due to invalid IL or missing references)
			//IL_000e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0013: Unknown result type (might be due to invalid IL or missing references)
			//IL_0018: Unknown result type (might be due to invalid IL or missing references)
			//IL_001d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0024: Unknown result type (might be due to invalid IL or missing references)
			//IL_002a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0030: Unknown result type (might be due to invalid IL or missing references)
			//IL_0035: Unknown result type (might be due to invalid IL or missing references)
			//IL_003a: Unknown result type (might be due to invalid IL or missing references)
			//IL_003f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0046: Unknown result type (might be due to invalid IL or missing references)
			//IL_004c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0052: Unknown result type (might be due to invalid IL or missing references)
			//IL_0057: Unknown result type (might be due to invalid IL or missing references)
			//IL_005c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0061: Unknown result type (might be due to invalid IL or missing references)
			m_ElbowPosition = m_NeckPosition + m_TorsoRotation * m_ElbowPosition;
			m_WristPosition = m_ElbowPosition + m_ElbowRotation * m_WristPosition;
			m_ControllerPosition = m_WristPosition + m_WristRotation * m_ControllerPosition;
		}

		protected virtual bool ApplyInverseNeckModel(Vector3 headPosition, out Vector3 calculatedPosition)
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_000a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0050: Unknown result type (might be due to invalid IL or missing references)
			//IL_0055: Unknown result type (might be due to invalid IL or missing references)
			//IL_0018: Unknown result type (might be due to invalid IL or missing references)
			//IL_0019: Unknown result type (might be due to invalid IL or missing references)
			//IL_001e: Unknown result type (might be due to invalid IL or missing references)
			//IL_002d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0032: Unknown result type (might be due to invalid IL or missing references)
			//IL_0037: Unknown result type (might be due to invalid IL or missing references)
			//IL_003c: Unknown result type (might be due to invalid IL or missing references)
			//IL_003d: Unknown result type (might be due to invalid IL or missing references)
			//IL_003e: Unknown result type (might be due to invalid IL or missing references)
			//IL_003f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0044: Unknown result type (might be due to invalid IL or missing references)
			//IL_0047: Unknown result type (might be due to invalid IL or missing references)
			//IL_0048: Unknown result type (might be due to invalid IL or missing references)
			Quaternion rotation = default(Quaternion);
			if (TryGetRotation(m_HeadPoseSource, out rotation))
			{
				Vector3 val = rotation * NECK_OFFSET - NECK_OFFSET.y * Vector3.up;
				headPosition -= val;
				calculatedPosition = headPosition;
				return true;
			}
			calculatedPosition = Vector3.zero;
			return false;
		}

		protected bool TryGetForwardVector(XRNode node, out Vector3 forward)
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0009: Unknown result type (might be due to invalid IL or missing references)
			//IL_0038: Unknown result type (might be due to invalid IL or missing references)
			//IL_003d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0019: Unknown result type (might be due to invalid IL or missing references)
			//IL_002b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0030: Unknown result type (might be due to invalid IL or missing references)
			Pose val = default(Pose);
			if (TryGetRotation(node, out val.rotation) && TryGetPosition(node, out val.position))
			{
				forward = ((Pose)(ref val)).forward;
				return true;
			}
			forward = Vector3.zero;
			return false;
		}

		protected bool TryGetRotation(XRNode node, out Quaternion rotation)
		{
			//IL_0022: Unknown result type (might be due to invalid IL or missing references)
			//IL_0027: Unknown result type (might be due to invalid IL or missing references)
			//IL_002a: Unknown result type (might be due to invalid IL or missing references)
			//IL_002f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0047: Unknown result type (might be due to invalid IL or missing references)
			//IL_004c: Unknown result type (might be due to invalid IL or missing references)
			InputTracking.GetNodeStates(xrNodeStateListOrientation);
			int count = xrNodeStateListOrientation.Count;
			for (int i = 0; i < count; i++)
			{
				XRNodeState val = xrNodeStateListOrientation[i];
				if (((XRNodeState)(ref val)).nodeType == node && ((XRNodeState)(ref val)).TryGetRotation(ref rotation))
				{
					return true;
				}
			}
			rotation = Quaternion.identity;
			return false;
		}

		protected bool TryGetPosition(XRNode node, out Vector3 position)
		{
			//IL_0022: Unknown result type (might be due to invalid IL or missing references)
			//IL_0027: Unknown result type (might be due to invalid IL or missing references)
			//IL_002a: Unknown result type (might be due to invalid IL or missing references)
			//IL_002f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0047: Unknown result type (might be due to invalid IL or missing references)
			//IL_004c: Unknown result type (might be due to invalid IL or missing references)
			InputTracking.GetNodeStates(xrNodeStateListPosition);
			int count = xrNodeStateListPosition.Count;
			for (int i = 0; i < count; i++)
			{
				XRNodeState val = xrNodeStateListPosition[i];
				if (((XRNodeState)(ref val)).nodeType == node && ((XRNodeState)(ref val)).TryGetPosition(ref position))
				{
					return true;
				}
			}
			position = Vector3.zero;
			return false;
		}

		protected bool TryGetAngularAcceleration(XRNode node, out Vector3 angularAccel)
		{
			//IL_0022: Unknown result type (might be due to invalid IL or missing references)
			//IL_0027: Unknown result type (might be due to invalid IL or missing references)
			//IL_002a: Unknown result type (might be due to invalid IL or missing references)
			//IL_002f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0047: Unknown result type (might be due to invalid IL or missing references)
			//IL_004c: Unknown result type (might be due to invalid IL or missing references)
			InputTracking.GetNodeStates(xrNodeStateListAngularAcceleration);
			int count = xrNodeStateListAngularAcceleration.Count;
			for (int i = 0; i < count; i++)
			{
				XRNodeState val = xrNodeStateListAngularAcceleration[i];
				if (((XRNodeState)(ref val)).nodeType == node && ((XRNodeState)(ref val)).TryGetAngularAcceleration(ref angularAccel))
				{
					return true;
				}
			}
			angularAccel = Vector3.zero;
			return false;
		}

		protected bool TryGetAngularVelocity(XRNode node, out Vector3 angVel)
		{
			//IL_0022: Unknown result type (might be due to invalid IL or missing references)
			//IL_0027: Unknown result type (might be due to invalid IL or missing references)
			//IL_002a: Unknown result type (might be due to invalid IL or missing references)
			//IL_002f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0047: Unknown result type (might be due to invalid IL or missing references)
			//IL_004c: Unknown result type (might be due to invalid IL or missing references)
			InputTracking.GetNodeStates(xrNodeStateListAngularVelocity);
			int count = xrNodeStateListAngularVelocity.Count;
			for (int i = 0; i < count; i++)
			{
				XRNodeState val = xrNodeStateListAngularVelocity[i];
				if (((XRNodeState)(ref val)).nodeType == node && ((XRNodeState)(ref val)).TryGetAngularVelocity(ref angVel))
				{
					return true;
				}
			}
			angVel = Vector3.zero;
			return false;
		}

		protected bool GetControllerRotation(out Quaternion rotation, out Quaternion xyRotation, out float xAngle)
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0063: Unknown result type (might be due to invalid IL or missing references)
			//IL_0068: Unknown result type (might be due to invalid IL or missing references)
			//IL_006e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0073: Unknown result type (might be due to invalid IL or missing references)
			//IL_0011: Unknown result type (might be due to invalid IL or missing references)
			//IL_0016: Unknown result type (might be due to invalid IL or missing references)
			//IL_001c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0021: Unknown result type (might be due to invalid IL or missing references)
			//IL_0026: Unknown result type (might be due to invalid IL or missing references)
			//IL_002c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0031: Unknown result type (might be due to invalid IL or missing references)
			//IL_0036: Unknown result type (might be due to invalid IL or missing references)
			//IL_003b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0042: Unknown result type (might be due to invalid IL or missing references)
			//IL_0043: Unknown result type (might be due to invalid IL or missing references)
			//IL_0050: Unknown result type (might be due to invalid IL or missing references)
			//IL_0055: Unknown result type (might be due to invalid IL or missing references)
			//IL_0056: Unknown result type (might be due to invalid IL or missing references)
			//IL_005b: Unknown result type (might be due to invalid IL or missing references)
			if (TryGetRotation(poseSource, out rotation))
			{
				rotation = Quaternion.Inverse(m_TorsoRotation) * rotation;
				Vector3 val = rotation * Vector3.forward;
				xAngle = 90f - Vector3.Angle(val, Vector3.up);
				xyRotation = Quaternion.FromToRotation(Vector3.forward, val);
				return true;
			}
			rotation = Quaternion.identity;
			xyRotation = Quaternion.identity;
			xAngle = 0f;
			return false;
		}
	}
	public class SwingArmModel : ArmModel
	{
		[Tooltip("Portion of controller rotation applied to the shoulder joint.")]
		[SerializeField]
		[Range(0f, 1f)]
		private float m_ShoulderRotationRatio = 0.5f;

		[Tooltip("Portion of controller rotation applied to the elbow joint.")]
		[Range(0f, 1f)]
		[SerializeField]
		private float m_ElbowRotationRatio = 0.3f;

		[Tooltip("Portion of controller rotation applied to the wrist joint.")]
		[Range(0f, 1f)]
		[SerializeField]
		private float m_WristRotationRatio = 0.2f;

		[SerializeField]
		private Vector2 m_JointShiftAngle = new Vector2(160f, 180f);

		[Tooltip("Exponent applied to the joint shift ratio to control the curve of the shift.")]
		[Range(1f, 20f)]
		[SerializeField]
		private float m_JointShiftExponent = 6f;

		[Tooltip("Portion of controller rotation applied to the shoulder joint when the controller is backwards.")]
		[Range(0f, 1f)]
		[SerializeField]
		private float m_ShiftedShoulderRotationRatio = 0.1f;

		[Tooltip("Portion of controller rotation applied to the elbow joint when the controller is backwards.")]
		[Range(0f, 1f)]
		[SerializeField]
		private float m_ShiftedElbowRotationRatio = 0.4f;

		[Tooltip("Portion of controller rotation applied to the wrist joint when the controller is backwards.")]
		[Range(0f, 1f)]
		[SerializeField]
		private float m_ShiftedWristRotationRatio = 0.5f;

		public float shoulderRotationRatio
		{
			get
			{
				return m_ShoulderRotationRatio;
			}
			set
			{
				m_ShoulderRotationRatio = value;
			}
		}

		public float elbowRotationRatio
		{
			get
			{
				return m_ElbowRotationRatio;
			}
			set
			{
				m_ElbowRotationRatio = value;
			}
		}

		public float wristRotationRatio
		{
			get
			{
				return m_WristRotationRatio;
			}
			set
			{
				m_WristRotationRatio = value;
			}
		}

		public float minJointShiftAngle
		{
			get
			{
				return m_JointShiftAngle.x;
			}
			set
			{
				m_JointShiftAngle.x = value;
			}
		}

		public float maxJointShiftAngle
		{
			get
			{
				return m_JointShiftAngle.y;
			}
			set
			{
				m_JointShiftAngle.y = value;
			}
		}

		public float jointShiftExponent
		{
			get
			{
				return m_JointShiftExponent;
			}
			set
			{
				m_JointShiftExponent = value;
			}
		}

		public float shiftedShoulderRotationRatio
		{
			get
			{
				return m_ShiftedShoulderRotationRatio;
			}
			set
			{
				m_ShiftedShoulderRotationRatio = value;
			}
		}

		public float shiftedElbowRotationRatio
		{
			get
			{
				return m_ShiftedElbowRotationRatio;
			}
			set
			{
				m_ShiftedElbowRotationRatio = value;
			}
		}

		public float shiftedWristRotationRatio
		{
			get
			{
				return m_ShiftedWristRotationRatio;
			}
			set
			{
				m_ShiftedWristRotationRatio = value;
			}
		}

		protected override void CalculateFinalJointRotations(Quaternion controllerOrientation, Quaternion xyRotation, Quaternion lerpRotation)
		{
			//IL_0000: Unknown result type (might be due to invalid IL or missing references)
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_006d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0072: Unknown result type (might be due to invalid IL or missing references)
			//IL_0074: Unknown result type (might be due to invalid IL or missing references)
			//IL_0079: Unknown result type (might be due to invalid IL or missing references)
			//IL_007b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0080: Unknown result type (might be due to invalid IL or missing references)
			//IL_0082: Unknown result type (might be due to invalid IL or missing references)
			//IL_0087: Unknown result type (might be due to invalid IL or missing references)
			//IL_0089: Unknown result type (might be due to invalid IL or missing references)
			//IL_008e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0091: Unknown result type (might be due to invalid IL or missing references)
			//IL_0096: Unknown result type (might be due to invalid IL or missing references)
			//IL_0099: Unknown result type (might be due to invalid IL or missing references)
			//IL_009e: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a0: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a5: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a8: Unknown result type (might be due to invalid IL or missing references)
			//IL_00aa: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ac: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b1: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b8: Unknown result type (might be due to invalid IL or missing references)
			//IL_00bd: Unknown result type (might be due to invalid IL or missing references)
			//IL_00bf: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00cb: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d0: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d1: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d6: Unknown result type (might be due to invalid IL or missing references)
			//IL_00dc: Unknown result type (might be due to invalid IL or missing references)
			//IL_00de: Unknown result type (might be due to invalid IL or missing references)
			float num = Quaternion.Angle(xyRotation, Quaternion.identity);
			float num2 = maxJointShiftAngle - minJointShiftAngle;
			float num3 = Mathf.Pow(Mathf.Clamp01((num - minJointShiftAngle) / num2), m_JointShiftExponent);
			float num4 = Mathf.Lerp(m_ShoulderRotationRatio, m_ShiftedShoulderRotationRatio, num3);
			float num5 = Mathf.Lerp(m_ElbowRotationRatio, m_ShiftedElbowRotationRatio, num3);
			float num6 = Mathf.Lerp(m_WristRotationRatio, m_ShiftedWristRotationRatio, num3);
			Quaternion val = Quaternion.Lerp(Quaternion.identity, xyRotation, num4);
			Quaternion val2 = Quaternion.Lerp(Quaternion.identity, xyRotation, num5);
			Quaternion val3 = Quaternion.Lerp(Quaternion.identity, xyRotation, num6);
			Quaternion val4 = m_TorsoRotation * val;
			m_ElbowRotation = val4 * val2;
			m_WristRotation = base.elbowRotation * val3;
			m_ControllerRotation = m_TorsoRotation * controllerOrientation;
			m_TorsoRotation = val4;
		}
	}
	[Serializable]
	public class ArmModelTransition
	{
		[SerializeField]
		private string m_KeyName;

		[SerializeField]
		private ArmModel m_ArmModel;

		public string transitionKeyName
		{
			get
			{
				return m_KeyName;
			}
			set
			{
				m_KeyName = value;
			}
		}

		public ArmModel armModel
		{
			get
			{
				return m_ArmModel;
			}
			set
			{
				m_ArmModel = value;
			}
		}
	}
	public class TransitionArmModel : ArmModel
	{
		internal struct ArmModelBlendData
		{
			public ArmModel armModel;

			public float currentBlendAmount;
		}

		[SerializeField]
		private ArmModel m_CurrentArmModelComponent;

		[SerializeField]
		public List<ArmModelTransition> m_ArmModelTransitions = new List<ArmModelTransition>();

		private const int MAX_ACTIVE_TRANSITIONS = 10;

		private const float DROP_TRANSITION_THRESHOLD = 0.035f;

		private const float LERP_CLAMP_THRESHOLD = 0.95f;

		private const float MIN_ANGULAR_VELOCITY = 0.2f;

		private const float ANGULAR_VELOCITY_DIVISOR = 45f;

		internal List<ArmModelBlendData> armModelBlendData = new List<ArmModelBlendData>(10);

		private ArmModelBlendData currentBlendingArmModel;

		public ArmModel currentArmModelComponent
		{
			get
			{
				return m_CurrentArmModelComponent;
			}
			set
			{
				m_CurrentArmModelComponent = value;
			}
		}

		public bool Queue(string key)
		{
			foreach (ArmModelTransition armModelTransition in m_ArmModelTransitions)
			{
				if (armModelTransition.transitionKeyName == key)
				{
					Queue(armModelTransition.armModel);
					return true;
				}
			}
			return false;
		}

		public void Queue(ArmModel newArmModel)
		{
			if (!((Object)(object)newArmModel == (Object)null))
			{
				if ((Object)(object)m_CurrentArmModelComponent == (Object)null)
				{
					m_CurrentArmModelComponent = newArmModel;
				}
				RemoveJustStartingTransitions();
				if (armModelBlendData.Count == 10)
				{
					RemoveOldestTransition();
				}
				ArmModelBlendData item = new ArmModelBlendData
				{
					armModel = newArmModel,
					currentBlendAmount = 0f
				};
				armModelBlendData.Add(item);
			}
		}

		private void RemoveJustStartingTransitions()
		{
			for (int i = 0; i < armModelBlendData.Count; i++)
			{
				if (armModelBlendData[i].currentBlendAmount < 0.035f)
				{
					armModelBlendData.RemoveAt(i);
				}
			}
		}

		private void RemoveOldestTransition()
		{
			armModelBlendData.RemoveAt(0);
		}

		public override PoseDataFlags GetPoseFromProvider(out Pose output)
		{
			//IL_0017: Unknown result type (might be due to invalid IL or missing references)
			//IL_001c: Unknown result type (might be due to invalid IL or missing references)
			//IL_000a: Unknown result type (might be due to invalid IL or missing references)
			//IL_000f: Unknown result type (might be due to invalid IL or missing references)
			if (UpdateBlends())
			{
				output = base.finalPose;
				return (PoseDataFlags)3;
			}
			output = Pose.identity;
			return (PoseDataFlags)0;
		}

		private bool UpdateBlends()
		{
			//IL_0027: Unknown result type (might be due to invalid IL or missing references)
			//IL_002c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0038: Unknown result type (might be due to invalid IL or missing references)
			//IL_003d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0049: Unknown result type (might be due to invalid IL or missing references)
			//IL_004e: Unknown result type (might be due to invalid IL or missing references)
			//IL_005a: Unknown result type (might be due to invalid IL or missing references)
			//IL_005f: Unknown result type (might be due to invalid IL or missing references)
			//IL_006b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0070: Unknown result type (might be due to invalid IL or missing references)
			//IL_007c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0081: Unknown result type (might be due to invalid IL or missing references)
			//IL_008d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0092: Unknown result type (might be due to invalid IL or missing references)
			//IL_0099: Unknown result type (might be due to invalid IL or missing references)
			//IL_0295: Unknown result type (might be due to invalid IL or missing references)
			//IL_029b: Unknown result type (might be due to invalid IL or missing references)
			//IL_02a0: Unknown result type (might be due to invalid IL or missing references)
			//IL_0136: Unknown result type (might be due to invalid IL or missing references)
			//IL_0141: Unknown result type (might be due to invalid IL or missing references)
			//IL_014c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0151: Unknown result type (might be due to invalid IL or missing references)
			//IL_0158: Unknown result type (might be due to invalid IL or missing references)
			//IL_0163: Unknown result type (might be due to invalid IL or missing references)
			//IL_016e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0173: Unknown result type (might be due to invalid IL or missing references)
			//IL_017a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0185: Unknown result type (might be due to invalid IL or missing references)
			//IL_0190: Unknown result type (might be due to invalid IL or missing references)
			//IL_0195: Unknown result type (might be due to invalid IL or missing references)
			//IL_019c: Unknown result type (might be due to invalid IL or missing references)
			//IL_01a7: Unknown result type (might be due to invalid IL or missing references)
			//IL_01b2: Unknown result type (might be due to invalid IL or missing references)
			//IL_01b7: Unknown result type (might be due to invalid IL or missing references)
			//IL_01be: Unknown result type (might be due to invalid IL or missing references)
			//IL_01c9: Unknown result type (might be due to invalid IL or missing references)
			//IL_01d4: Unknown result type (might be due to invalid IL or missing references)
			//IL_01d9: Unknown result type (might be due to invalid IL or missing references)
			//IL_01e0: Unknown result type (might be due to invalid IL or missing references)
			//IL_01eb: Unknown result type (might be due to invalid IL or missing references)
			//IL_01f6: Unknown result type (might be due to invalid IL or missing references)
			//IL_01fb: Unknown result type (might be due to invalid IL or missing references)
			//IL_0202: Unknown result type (might be due to invalid IL or missing references)
			//IL_020d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0218: Unknown result type (might be due to invalid IL or missing references)
			//IL_021d: Unknown result type (might be due to invalid IL or missing references)
			if ((Object)(object)currentArmModelComponent == (Object)null)
			{
				return false;
			}
			if (m_CurrentArmModelComponent.OnControllerInputUpdated())
			{
				m_NeckPosition = m_CurrentArmModelComponent.neckPosition;
				m_ElbowPosition = m_CurrentArmModelComponent.elbowPosition;
				m_WristPosition = m_CurrentArmModelComponent.wristPosition;
				m_ControllerPosition = m_CurrentArmModelComponent.controllerPosition;
				m_ElbowRotation = m_CurrentArmModelComponent.elbowRotation;
				m_WristRotation = m_CurrentArmModelComponent.wristRotation;
				m_ControllerRotation = m_CurrentArmModelComponent.controllerRotation;
				if (TryGetAngularVelocity(base.poseSource, out var angVel) && armModelBlendData.Count > 0)
				{
					float num = Mathf.Clamp((((Vector3)(ref angVel)).magnitude - 0.2f) / 45f, 0f, 0.1f);
					for (int i = 0; i < armModelBlendData.Count; i++)
					{
						ArmModelBlendData value = armModelBlendData[i];
						value.currentBlendAmount = Mathf.Lerp(value.currentBlendAmount, 1f, num);
						if (value.currentBlendAmount > 0.95f)
						{
							value.currentBlendAmount = 1f;
						}
						else
						{
							value.armModel.OnControllerInputUpdated();
							m_NeckPosition = Vector3.Slerp(base.neckPosition, value.armModel.neckPosition, value.currentBlendAmount);
							m_ElbowPosition = Vector3.Slerp(base.elbowPosition, value.armModel.elbowPosition, value.currentBlendAmount);
							m_WristPosition = Vector3.Slerp(base.wristPosition, value.armModel.wristPosition, value.currentBlendAmount);
							m_ControllerPosition = Vector3.Slerp(base.controllerPosition, value.armModel.controllerPosition, value.currentBlendAmount);
							m_ElbowRotation = Quaternion.Slerp(base.elbowRotation, value.armModel.elbowRotation, value.currentBlendAmount);
							m_WristRotation = Quaternion.Slerp(base.wristRotation, value.armModel.wristRotation, value.currentBlendAmount);
							m_ControllerRotation = Quaternion.Slerp(base.controllerRotation, value.armModel.controllerRotation, value.currentBlendAmount);
						}
						armModelBlendData[i] = value;
						if (value.currentBlendAmount >= 1f)
						{
							m_CurrentArmModelComponent = value.armModel;
							armModelBlendData.RemoveRange(0, i + 1);
						}
					}
				}
				else if (armModelBlendData.Count > 0)
				{
					Debug.LogErrorFormat((Object)(object)((Component)this).gameObject, "Unable to get angular acceleration for node", Array.Empty<object>());
					return false;
				}
				base.finalPose = new Pose(base.controllerPosition, base.controllerRotation);
				return true;
			}
			return false;
		}
	}
}

patchers/GameData/ULTRAKILL_Data/Managed/Valve.Newtonsoft.Json.dll

Decompiled 3 days ago
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters;
using System.Security;
using System.Security.Permissions;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using Valve.Newtonsoft.Json.Bson;
using Valve.Newtonsoft.Json.Converters;
using Valve.Newtonsoft.Json.Linq;
using Valve.Newtonsoft.Json.Linq.JsonPath;
using Valve.Newtonsoft.Json.Serialization;
using Valve.Newtonsoft.Json.Utilities;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("Json.NET Unity3D")]
[assembly: AllowPartiallyTrustedCallers]
[assembly: InternalsVisibleTo("Valve.Newtonsoft.Json.Schema")]
[assembly: InternalsVisibleTo("Valve.Newtonsoft.Json.Tests")]
[assembly: InternalsVisibleTo("Assembly-CSharp")]
[assembly: InternalsVisibleTo("Assembly-CSharp-Editor")]
[assembly: InternalsVisibleTo("Valve.Newtonsoft.Json.Dynamic, PublicKey=0024000004800000940000000602000000240000525341310004000001000100cbd8d53b9d7de30f1f1278f636ec462cf9c254991291e66ebb157a885638a517887633b898ccbcf0d5c5ff7be85a6abe9e765d0ac7cd33c68dac67e7e64530e8222101109f154ab14a941c490ac155cd1d4fcba0fabb49016b4ef28593b015cab5937da31172f03f67d09edda404b88a60023f062ae71d0b2e4438b74cc11dc9")]
[assembly: AssemblyDescription("Json.NET is a popular high-performance JSON framework for .NET")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Newtonsoft")]
[assembly: AssemblyProduct("Json.NET")]
[assembly: AssemblyCopyright("Copyright © James Newton-King 2008")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("9ca358aa-317b-4925-8ada-4a29e943a363")]
[assembly: AssemblyFileVersion("9.0.1.19813")]
[assembly: CLSCompliant(true)]
[assembly: AssemblyVersion("9.0.0.0")]
namespace Valve.Newtonsoft.Json
{
	public enum ConstructorHandling
	{
		Default,
		AllowNonPublicDefaultConstructor
	}
	public enum DateFormatHandling
	{
		IsoDateFormat,
		MicrosoftDateFormat
	}
	public enum DateParseHandling
	{
		None,
		DateTime,
		DateTimeOffset
	}
	public enum DateTimeZoneHandling
	{
		Local,
		Utc,
		Unspecified,
		RoundtripKind
	}
	[Flags]
	public enum DefaultValueHandling
	{
		Include = 0,
		Ignore = 1,
		Populate = 2,
		IgnoreAndPopulate = 3
	}
	public enum FloatFormatHandling
	{
		String,
		Symbol,
		DefaultValue
	}
	public enum FloatParseHandling
	{
		Double,
		Decimal
	}
	public enum Formatting
	{
		None,
		Indented
	}
	public interface IArrayPool<T>
	{
		T[] Rent(int minimumLength);

		void Return(T[] array);
	}
	public interface IJsonLineInfo
	{
		int LineNumber { get; }

		int LinePosition { get; }

		bool HasLineInfo();
	}
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = false)]
	public sealed class JsonArrayAttribute : JsonContainerAttribute
	{
		private bool _allowNullItems;

		public bool AllowNullItems
		{
			get
			{
				return _allowNullItems;
			}
			set
			{
				_allowNullItems = value;
			}
		}

		public JsonArrayAttribute()
		{
		}

		public JsonArrayAttribute(bool allowNullItems)
		{
			_allowNullItems = allowNullItems;
		}

		public JsonArrayAttribute(string id)
			: base(id)
		{
		}
	}
	[AttributeUsage(AttributeTargets.Constructor, AllowMultiple = false)]
	public sealed class JsonConstructorAttribute : Attribute
	{
	}
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = false)]
	public abstract class JsonContainerAttribute : Attribute
	{
		internal bool? _isReference;

		internal bool? _itemIsReference;

		internal ReferenceLoopHandling? _itemReferenceLoopHandling;

		internal TypeNameHandling? _itemTypeNameHandling;

		private Type _namingStrategyType;

		private object[] _namingStrategyParameters;

		public string Id { get; set; }

		public string Title { get; set; }

		public string Description { get; set; }

		public Type ItemConverterType { get; set; }

		public object[] ItemConverterParameters { get; set; }

		public Type NamingStrategyType
		{
			get
			{
				return _namingStrategyType;
			}
			set
			{
				_namingStrategyType = value;
				NamingStrategyInstance = null;
			}
		}

		public object[] NamingStrategyParameters
		{
			get
			{
				return _namingStrategyParameters;
			}
			set
			{
				_namingStrategyParameters = value;
				NamingStrategyInstance = null;
			}
		}

		internal NamingStrategy NamingStrategyInstance { get; set; }

		public bool IsReference
		{
			get
			{
				return _isReference ?? false;
			}
			set
			{
				_isReference = value;
			}
		}

		public bool ItemIsReference
		{
			get
			{
				return _itemIsReference ?? false;
			}
			set
			{
				_itemIsReference = value;
			}
		}

		public ReferenceLoopHandling ItemReferenceLoopHandling
		{
			get
			{
				return _itemReferenceLoopHandling ?? ReferenceLoopHandling.Error;
			}
			set
			{
				_itemReferenceLoopHandling = value;
			}
		}

		public TypeNameHandling ItemTypeNameHandling
		{
			get
			{
				return _itemTypeNameHandling ?? TypeNameHandling.None;
			}
			set
			{
				_itemTypeNameHandling = value;
			}
		}

		protected JsonContainerAttribute()
		{
		}

		protected JsonContainerAttribute(string id)
		{
			Id = id;
		}
	}
	public static class JsonConvert
	{
		public static readonly string True = "true";

		public static readonly string False = "false";

		public static readonly string Null = "null";

		public static readonly string Undefined = "undefined";

		public static readonly string PositiveInfinity = "Infinity";

		public static readonly string NegativeInfinity = "-Infinity";

		public static readonly string NaN = "NaN";

		public static Func<JsonSerializerSettings> DefaultSettings { get; set; }

		public static string ToString(DateTime value)
		{
			return ToString(value, DateFormatHandling.IsoDateFormat, DateTimeZoneHandling.RoundtripKind);
		}

		public static string ToString(DateTime value, DateFormatHandling format, DateTimeZoneHandling timeZoneHandling)
		{
			DateTime value2 = DateTimeUtils.EnsureDateTime(value, timeZoneHandling);
			using StringWriter stringWriter = StringUtils.CreateStringWriter(64);
			stringWriter.Write('"');
			DateTimeUtils.WriteDateTimeString(stringWriter, value2, format, null, CultureInfo.InvariantCulture);
			stringWriter.Write('"');
			return stringWriter.ToString();
		}

		public static string ToString(DateTimeOffset value)
		{
			return ToString(value, DateFormatHandling.IsoDateFormat);
		}

		public static string ToString(DateTimeOffset value, DateFormatHandling format)
		{
			using StringWriter stringWriter = StringUtils.CreateStringWriter(64);
			stringWriter.Write('"');
			DateTimeUtils.WriteDateTimeOffsetString(stringWriter, value, format, null, CultureInfo.InvariantCulture);
			stringWriter.Write('"');
			return stringWriter.ToString();
		}

		public static string ToString(bool value)
		{
			if (!value)
			{
				return False;
			}
			return True;
		}

		public static string ToString(char value)
		{
			return ToString(char.ToString(value));
		}

		public static string ToString(Enum value)
		{
			return value.ToString("D");
		}

		public static string ToString(int value)
		{
			return value.ToString(null, CultureInfo.InvariantCulture);
		}

		public static string ToString(short value)
		{
			return value.ToString(null, CultureInfo.InvariantCulture);
		}

		[CLSCompliant(false)]
		public static string ToString(ushort value)
		{
			return value.ToString(null, CultureInfo.InvariantCulture);
		}

		[CLSCompliant(false)]
		public static string ToString(uint value)
		{
			return value.ToString(null, CultureInfo.InvariantCulture);
		}

		public static string ToString(long value)
		{
			return value.ToString(null, CultureInfo.InvariantCulture);
		}

		[CLSCompliant(false)]
		public static string ToString(ulong value)
		{
			return value.ToString(null, CultureInfo.InvariantCulture);
		}

		public static string ToString(float value)
		{
			return EnsureDecimalPlace(value, value.ToString("R", CultureInfo.InvariantCulture));
		}

		internal static string ToString(float value, FloatFormatHandling floatFormatHandling, char quoteChar, bool nullable)
		{
			return EnsureFloatFormat(value, EnsureDecimalPlace(value, value.ToString("R", CultureInfo.InvariantCulture)), floatFormatHandling, quoteChar, nullable);
		}

		private static string EnsureFloatFormat(double value, string text, FloatFormatHandling floatFormatHandling, char quoteChar, bool nullable)
		{
			if (floatFormatHandling == FloatFormatHandling.Symbol || (!double.IsInfinity(value) && !double.IsNaN(value)))
			{
				return text;
			}
			if (floatFormatHandling == FloatFormatHandling.DefaultValue)
			{
				if (nullable)
				{
					return Null;
				}
				return "0.0";
			}
			return quoteChar + text + quoteChar;
		}

		public static string ToString(double value)
		{
			return EnsureDecimalPlace(value, value.ToString("R", CultureInfo.InvariantCulture));
		}

		internal static string ToString(double value, FloatFormatHandling floatFormatHandling, char quoteChar, bool nullable)
		{
			return EnsureFloatFormat(value, EnsureDecimalPlace(value, value.ToString("R", CultureInfo.InvariantCulture)), floatFormatHandling, quoteChar, nullable);
		}

		private static string EnsureDecimalPlace(double value, string text)
		{
			if (double.IsNaN(value) || double.IsInfinity(value) || text.IndexOf('.') != -1 || text.IndexOf('E') != -1 || text.IndexOf('e') != -1)
			{
				return text;
			}
			return text + ".0";
		}

		private static string EnsureDecimalPlace(string text)
		{
			if (text.IndexOf('.') != -1)
			{
				return text;
			}
			return text + ".0";
		}

		public static string ToString(byte value)
		{
			return value.ToString(null, CultureInfo.InvariantCulture);
		}

		[CLSCompliant(false)]
		public static string ToString(sbyte value)
		{
			return value.ToString(null, CultureInfo.InvariantCulture);
		}

		public static string ToString(decimal value)
		{
			return EnsureDecimalPlace(value.ToString(null, CultureInfo.InvariantCulture));
		}

		public static string ToString(Guid value)
		{
			return ToString(value, '"');
		}

		internal static string ToString(Guid value, char quoteChar)
		{
			string text = value.ToString("D", CultureInfo.InvariantCulture);
			string text2 = quoteChar.ToString(CultureInfo.InvariantCulture);
			return text2 + text + text2;
		}

		public static string ToString(TimeSpan value)
		{
			return ToString(value, '"');
		}

		internal static string ToString(TimeSpan value, char quoteChar)
		{
			return ToString(value.ToString(), quoteChar);
		}

		public static string ToString(Uri value)
		{
			if (value == null)
			{
				return Null;
			}
			return ToString(value, '"');
		}

		internal static string ToString(Uri value, char quoteChar)
		{
			return ToString(value.OriginalString, quoteChar);
		}

		public static string ToString(string value)
		{
			return ToString(value, '"');
		}

		public static string ToString(string value, char delimiter)
		{
			return ToString(value, delimiter, StringEscapeHandling.Default);
		}

		public static string ToString(string value, char delimiter, StringEscapeHandling stringEscapeHandling)
		{
			if (delimiter != '"' && delimiter != '\'')
			{
				throw new ArgumentException("Delimiter must be a single or double quote.", "delimiter");
			}
			return JavaScriptUtils.ToEscapedJavaScriptString(value, delimiter, appendDelimiters: true, stringEscapeHandling);
		}

		public static string ToString(object value)
		{
			if (value == null)
			{
				return Null;
			}
			return ConvertUtils.GetTypeCode(value.GetType()) switch
			{
				PrimitiveTypeCode.String => ToString((string)value), 
				PrimitiveTypeCode.Char => ToString((char)value), 
				PrimitiveTypeCode.Boolean => ToString((bool)value), 
				PrimitiveTypeCode.SByte => ToString((sbyte)value), 
				PrimitiveTypeCode.Int16 => ToString((short)value), 
				PrimitiveTypeCode.UInt16 => ToString((ushort)value), 
				PrimitiveTypeCode.Int32 => ToString((int)value), 
				PrimitiveTypeCode.Byte => ToString((byte)value), 
				PrimitiveTypeCode.UInt32 => ToString((uint)value), 
				PrimitiveTypeCode.Int64 => ToString((long)value), 
				PrimitiveTypeCode.UInt64 => ToString((ulong)value), 
				PrimitiveTypeCode.Single => ToString((float)value), 
				PrimitiveTypeCode.Double => ToString((double)value), 
				PrimitiveTypeCode.DateTime => ToString((DateTime)value), 
				PrimitiveTypeCode.Decimal => ToString((decimal)value), 
				PrimitiveTypeCode.DBNull => Null, 
				PrimitiveTypeCode.DateTimeOffset => ToString((DateTimeOffset)value), 
				PrimitiveTypeCode.Guid => ToString((Guid)value), 
				PrimitiveTypeCode.Uri => ToString((Uri)value), 
				PrimitiveTypeCode.TimeSpan => ToString((TimeSpan)value), 
				_ => throw new ArgumentException("Unsupported type: {0}. Use the JsonSerializer class to get the object's JSON representation.".FormatWith(CultureInfo.InvariantCulture, value.GetType())), 
			};
		}

		public static string SerializeObject(object value)
		{
			return SerializeObject(value, (Type)null, (JsonSerializerSettings)null);
		}

		public static string SerializeObject(object value, Formatting formatting)
		{
			return SerializeObject(value, formatting, (JsonSerializerSettings)null);
		}

		public static string SerializeObject(object value, params JsonConverter[] converters)
		{
			JsonSerializerSettings settings = ((converters != null && converters.Length != 0) ? new JsonSerializerSettings
			{
				Converters = converters
			} : null);
			return SerializeObject(value, null, settings);
		}

		public static string SerializeObject(object value, Formatting formatting, params JsonConverter[] converters)
		{
			JsonSerializerSettings settings = ((converters != null && converters.Length != 0) ? new JsonSerializerSettings
			{
				Converters = converters
			} : null);
			return SerializeObject(value, null, formatting, settings);
		}

		public static string SerializeObject(object value, JsonSerializerSettings settings)
		{
			return SerializeObject(value, null, settings);
		}

		public static string SerializeObject(object value, Type type, JsonSerializerSettings settings)
		{
			JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(settings);
			return SerializeObjectInternal(value, type, jsonSerializer);
		}

		public static string SerializeObject(object value, Formatting formatting, JsonSerializerSettings settings)
		{
			return SerializeObject(value, null, formatting, settings);
		}

		public static string SerializeObject(object value, Type type, Formatting formatting, JsonSerializerSettings settings)
		{
			JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(settings);
			jsonSerializer.Formatting = formatting;
			return SerializeObjectInternal(value, type, jsonSerializer);
		}

		private static string SerializeObjectInternal(object value, Type type, JsonSerializer jsonSerializer)
		{
			StringWriter stringWriter = new StringWriter(new StringBuilder(256), CultureInfo.InvariantCulture);
			using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
			{
				jsonTextWriter.Formatting = jsonSerializer.Formatting;
				jsonSerializer.Serialize(jsonTextWriter, value, type);
			}
			return stringWriter.ToString();
		}

		public static object DeserializeObject(string value)
		{
			return DeserializeObject(value, (Type)null, (JsonSerializerSettings)null);
		}

		public static object DeserializeObject(string value, JsonSerializerSettings settings)
		{
			return DeserializeObject(value, null, settings);
		}

		public static object DeserializeObject(string value, Type type)
		{
			return DeserializeObject(value, type, (JsonSerializerSettings)null);
		}

		public static T DeserializeObject<T>(string value)
		{
			return JsonConvert.DeserializeObject<T>(value, (JsonSerializerSettings)null);
		}

		public static T DeserializeAnonymousType<T>(string value, T anonymousTypeObject)
		{
			return DeserializeObject<T>(value);
		}

		public static T DeserializeAnonymousType<T>(string value, T anonymousTypeObject, JsonSerializerSettings settings)
		{
			return DeserializeObject<T>(value, settings);
		}

		public static T DeserializeObject<T>(string value, params JsonConverter[] converters)
		{
			return (T)DeserializeObject(value, typeof(T), converters);
		}

		public static T DeserializeObject<T>(string value, JsonSerializerSettings settings)
		{
			return (T)DeserializeObject(value, typeof(T), settings);
		}

		public static object DeserializeObject(string value, Type type, params JsonConverter[] converters)
		{
			JsonSerializerSettings settings = ((converters != null && converters.Length != 0) ? new JsonSerializerSettings
			{
				Converters = converters
			} : null);
			return DeserializeObject(value, type, settings);
		}

		public static object DeserializeObject(string value, Type type, JsonSerializerSettings settings)
		{
			ValidationUtils.ArgumentNotNull(value, "value");
			JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(settings);
			if (!jsonSerializer.IsCheckAdditionalContentSet())
			{
				jsonSerializer.CheckAdditionalContent = true;
			}
			using JsonTextReader reader = new JsonTextReader(new StringReader(value));
			return jsonSerializer.Deserialize(reader, type);
		}

		public static void PopulateObject(string value, object target)
		{
			PopulateObject(value, target, null);
		}

		public static void PopulateObject(string value, object target, JsonSerializerSettings settings)
		{
			JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(settings);
			using JsonReader jsonReader = new JsonTextReader(new StringReader(value));
			jsonSerializer.Populate(jsonReader, target);
			if (jsonReader.Read() && jsonReader.TokenType != JsonToken.Comment)
			{
				throw new JsonSerializationException("Additional text found in JSON string after finishing deserializing object.");
			}
		}
	}
	public abstract class JsonConverter
	{
		public virtual bool CanRead => true;

		public virtual bool CanWrite => true;

		public abstract void WriteJson(JsonWriter writer, object value, JsonSerializer serializer);

		public abstract object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer);

		public abstract bool CanConvert(Type objectType);
	}
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Interface | AttributeTargets.Parameter, AllowMultiple = false)]
	public sealed class JsonConverterAttribute : Attribute
	{
		private readonly Type _converterType;

		public Type ConverterType => _converterType;

		public object[] ConverterParameters { get; private set; }

		public JsonConverterAttribute(Type converterType)
		{
			if ((object)converterType == null)
			{
				throw new ArgumentNullException("converterType");
			}
			_converterType = converterType;
		}

		public JsonConverterAttribute(Type converterType, params object[] converterParameters)
			: this(converterType)
		{
			ConverterParameters = converterParameters;
		}
	}
	public class JsonConverterCollection : Collection<JsonConverter>
	{
	}
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = false)]
	public sealed class JsonDictionaryAttribute : JsonContainerAttribute
	{
		public JsonDictionaryAttribute()
		{
		}

		public JsonDictionaryAttribute(string id)
			: base(id)
		{
		}
	}
	[Serializable]
	public class JsonException : Exception
	{
		public JsonException()
		{
		}

		public JsonException(string message)
			: base(message)
		{
		}

		public JsonException(string message, Exception innerException)
			: base(message, innerException)
		{
		}

		public JsonException(SerializationInfo info, StreamingContext context)
			: base(info, context)
		{
		}

		internal static JsonException Create(IJsonLineInfo lineInfo, string path, string message)
		{
			message = JsonPosition.FormatMessage(lineInfo, path, message);
			return new JsonException(message);
		}
	}
	[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
	public class JsonExtensionDataAttribute : Attribute
	{
		public bool WriteData { get; set; }

		public bool ReadData { get; set; }

		public JsonExtensionDataAttribute()
		{
			WriteData = true;
			ReadData = true;
		}
	}
	[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
	public sealed class JsonIgnoreAttribute : Attribute
	{
	}
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface, AllowMultiple = false)]
	public sealed class JsonObjectAttribute : JsonContainerAttribute
	{
		private MemberSerialization _memberSerialization;

		internal Required? _itemRequired;

		public MemberSerialization MemberSerialization
		{
			get
			{
				return _memberSerialization;
			}
			set
			{
				_memberSerialization = value;
			}
		}

		public Required ItemRequired
		{
			get
			{
				return _itemRequired ?? Required.Default;
			}
			set
			{
				_itemRequired = value;
			}
		}

		public JsonObjectAttribute()
		{
		}

		public JsonObjectAttribute(MemberSerialization memberSerialization)
		{
			MemberSerialization = memberSerialization;
		}

		public JsonObjectAttribute(string id)
			: base(id)
		{
		}
	}
	internal enum JsonContainerType
	{
		None,
		Object,
		Array,
		Constructor
	}
	internal struct JsonPosition
	{
		private static readonly char[] SpecialCharacters = new char[6] { '.', ' ', '[', ']', '(', ')' };

		internal JsonContainerType Type;

		internal int Position;

		internal string PropertyName;

		internal bool HasIndex;

		public JsonPosition(JsonContainerType type)
		{
			Type = type;
			HasIndex = TypeHasIndex(type);
			Position = -1;
			PropertyName = null;
		}

		internal int CalculateLength()
		{
			switch (Type)
			{
			case JsonContainerType.Object:
				return PropertyName.Length + 5;
			case JsonContainerType.Array:
			case JsonContainerType.Constructor:
				return MathUtils.IntLength((ulong)Position) + 2;
			default:
				throw new ArgumentOutOfRangeException("Type");
			}
		}

		internal void WriteTo(StringBuilder sb)
		{
			switch (Type)
			{
			case JsonContainerType.Object:
			{
				string propertyName = PropertyName;
				if (propertyName.IndexOfAny(SpecialCharacters) != -1)
				{
					sb.Append("['");
					sb.Append(propertyName);
					sb.Append("']");
					break;
				}
				if (sb.Length > 0)
				{
					sb.Append('.');
				}
				sb.Append(propertyName);
				break;
			}
			case JsonContainerType.Array:
			case JsonContainerType.Constructor:
				sb.Append('[');
				sb.Append(Position);
				sb.Append(']');
				break;
			}
		}

		internal static bool TypeHasIndex(JsonContainerType type)
		{
			if (type != JsonContainerType.Array)
			{
				return type == JsonContainerType.Constructor;
			}
			return true;
		}

		internal static string BuildPath(List<JsonPosition> positions, JsonPosition? currentPosition)
		{
			int num = 0;
			if (positions != null)
			{
				for (int i = 0; i < positions.Count; i++)
				{
					num += positions[i].CalculateLength();
				}
			}
			if (currentPosition.HasValue)
			{
				num += currentPosition.GetValueOrDefault().CalculateLength();
			}
			StringBuilder stringBuilder = new StringBuilder(num);
			if (positions != null)
			{
				foreach (JsonPosition position in positions)
				{
					position.WriteTo(stringBuilder);
				}
			}
			currentPosition?.WriteTo(stringBuilder);
			return stringBuilder.ToString();
		}

		internal static string FormatMessage(IJsonLineInfo lineInfo, string path, string message)
		{
			if (!message.EndsWith(Environment.NewLine, StringComparison.Ordinal))
			{
				message = message.Trim();
				if (!StringUtils.EndsWith(message, '.'))
				{
					message += ".";
				}
				message += " ";
			}
			message += "Path '{0}'".FormatWith(CultureInfo.InvariantCulture, path);
			if (lineInfo != null && lineInfo.HasLineInfo())
			{
				message += ", line {0}, position {1}".FormatWith(CultureInfo.InvariantCulture, lineInfo.LineNumber, lineInfo.LinePosition);
			}
			message += ".";
			return message;
		}
	}
	[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, AllowMultiple = false)]
	public sealed class JsonPropertyAttribute : Attribute
	{
		internal NullValueHandling? _nullValueHandling;

		internal DefaultValueHandling? _defaultValueHandling;

		internal ReferenceLoopHandling? _referenceLoopHandling;

		internal ObjectCreationHandling? _objectCreationHandling;

		internal TypeNameHandling? _typeNameHandling;

		internal bool? _isReference;

		internal int? _order;

		internal Required? _required;

		internal bool? _itemIsReference;

		internal ReferenceLoopHandling? _itemReferenceLoopHandling;

		internal TypeNameHandling? _itemTypeNameHandling;

		public Type ItemConverterType { get; set; }

		public object[] ItemConverterParameters { get; set; }

		public Type NamingStrategyType { get; set; }

		public object[] NamingStrategyParameters { get; set; }

		public NullValueHandling NullValueHandling
		{
			get
			{
				return _nullValueHandling ?? NullValueHandling.Include;
			}
			set
			{
				_nullValueHandling = value;
			}
		}

		public DefaultValueHandling DefaultValueHandling
		{
			get
			{
				return _defaultValueHandling ?? DefaultValueHandling.Include;
			}
			set
			{
				_defaultValueHandling = value;
			}
		}

		public ReferenceLoopHandling ReferenceLoopHandling
		{
			get
			{
				return _referenceLoopHandling ?? ReferenceLoopHandling.Error;
			}
			set
			{
				_referenceLoopHandling = value;
			}
		}

		public ObjectCreationHandling ObjectCreationHandling
		{
			get
			{
				return _objectCreationHandling ?? ObjectCreationHandling.Auto;
			}
			set
			{
				_objectCreationHandling = value;
			}
		}

		public TypeNameHandling TypeNameHandling
		{
			get
			{
				return _typeNameHandling ?? TypeNameHandling.None;
			}
			set
			{
				_typeNameHandling = value;
			}
		}

		public bool IsReference
		{
			get
			{
				return _isReference ?? false;
			}
			set
			{
				_isReference = value;
			}
		}

		public int Order
		{
			get
			{
				return _order ?? 0;
			}
			set
			{
				_order = value;
			}
		}

		public Required Required
		{
			get
			{
				return _required ?? Required.Default;
			}
			set
			{
				_required = value;
			}
		}

		public string PropertyName { get; set; }

		public ReferenceLoopHandling ItemReferenceLoopHandling
		{
			get
			{
				return _itemReferenceLoopHandling ?? ReferenceLoopHandling.Error;
			}
			set
			{
				_itemReferenceLoopHandling = value;
			}
		}

		public TypeNameHandling ItemTypeNameHandling
		{
			get
			{
				return _itemTypeNameHandling ?? TypeNameHandling.None;
			}
			set
			{
				_itemTypeNameHandling = value;
			}
		}

		public bool ItemIsReference
		{
			get
			{
				return _itemIsReference ?? false;
			}
			set
			{
				_itemIsReference = value;
			}
		}

		public JsonPropertyAttribute()
		{
		}

		public JsonPropertyAttribute(string propertyName)
		{
			PropertyName = propertyName;
		}
	}
	public abstract class JsonReader : IDisposable
	{
		protected internal enum State
		{
			Start,
			Complete,
			Property,
			ObjectStart,
			Object,
			ArrayStart,
			Array,
			Closed,
			PostValue,
			ConstructorStart,
			Constructor,
			Error,
			Finished
		}

		private JsonToken _tokenType;

		private object _value;

		internal char _quoteChar;

		internal State _currentState;

		private JsonPosition _currentPosition;

		private CultureInfo _culture;

		private DateTimeZoneHandling _dateTimeZoneHandling;

		private int? _maxDepth;

		private bool _hasExceededMaxDepth;

		internal DateParseHandling _dateParseHandling;

		internal FloatParseHandling _floatParseHandling;

		private string _dateFormatString;

		private List<JsonPosition> _stack;

		protected State CurrentState => _currentState;

		public bool CloseInput { get; set; }

		public bool SupportMultipleContent { get; set; }

		public virtual char QuoteChar
		{
			get
			{
				return _quoteChar;
			}
			protected internal set
			{
				_quoteChar = value;
			}
		}

		public DateTimeZoneHandling DateTimeZoneHandling
		{
			get
			{
				return _dateTimeZoneHandling;
			}
			set
			{
				if (value < DateTimeZoneHandling.Local || value > DateTimeZoneHandling.RoundtripKind)
				{
					throw new ArgumentOutOfRangeException("value");
				}
				_dateTimeZoneHandling = value;
			}
		}

		public DateParseHandling DateParseHandling
		{
			get
			{
				return _dateParseHandling;
			}
			set
			{
				if (value < DateParseHandling.None || value > DateParseHandling.DateTimeOffset)
				{
					throw new ArgumentOutOfRangeException("value");
				}
				_dateParseHandling = value;
			}
		}

		public FloatParseHandling FloatParseHandling
		{
			get
			{
				return _floatParseHandling;
			}
			set
			{
				if (value < FloatParseHandling.Double || value > FloatParseHandling.Decimal)
				{
					throw new ArgumentOutOfRangeException("value");
				}
				_floatParseHandling = value;
			}
		}

		public string DateFormatString
		{
			get
			{
				return _dateFormatString;
			}
			set
			{
				_dateFormatString = value;
			}
		}

		public int? MaxDepth
		{
			get
			{
				return _maxDepth;
			}
			set
			{
				if (value <= 0)
				{
					throw new ArgumentException("Value must be positive.", "value");
				}
				_maxDepth = value;
			}
		}

		public virtual JsonToken TokenType => _tokenType;

		public virtual object Value => _value;

		public virtual Type ValueType
		{
			get
			{
				if (_value == null)
				{
					return null;
				}
				return _value.GetType();
			}
		}

		public virtual int Depth
		{
			get
			{
				int num = ((_stack != null) ? _stack.Count : 0);
				if (JsonTokenUtils.IsStartToken(TokenType) || _currentPosition.Type == JsonContainerType.None)
				{
					return num;
				}
				return num + 1;
			}
		}

		public virtual string Path
		{
			get
			{
				if (_currentPosition.Type == JsonContainerType.None)
				{
					return string.Empty;
				}
				JsonPosition? currentPosition = ((_currentState != State.ArrayStart && _currentState != State.ConstructorStart && _currentState != State.ObjectStart) ? new JsonPosition?(_currentPosition) : null);
				return JsonPosition.BuildPath(_stack, currentPosition);
			}
		}

		public CultureInfo Culture
		{
			get
			{
				return _culture ?? CultureInfo.InvariantCulture;
			}
			set
			{
				_culture = value;
			}
		}

		internal JsonPosition GetPosition(int depth)
		{
			if (_stack != null && depth < _stack.Count)
			{
				return _stack[depth];
			}
			return _currentPosition;
		}

		protected JsonReader()
		{
			_currentState = State.Start;
			_dateTimeZoneHandling = DateTimeZoneHandling.RoundtripKind;
			_dateParseHandling = DateParseHandling.DateTime;
			_floatParseHandling = FloatParseHandling.Double;
			CloseInput = true;
		}

		private void Push(JsonContainerType value)
		{
			UpdateScopeWithFinishedValue();
			if (_currentPosition.Type == JsonContainerType.None)
			{
				_currentPosition = new JsonPosition(value);
				return;
			}
			if (_stack == null)
			{
				_stack = new List<JsonPosition>();
			}
			_stack.Add(_currentPosition);
			_currentPosition = new JsonPosition(value);
			if (_maxDepth.HasValue)
			{
				int num = Depth + 1;
				int? maxDepth = _maxDepth;
				if (num > maxDepth.GetValueOrDefault() && maxDepth.HasValue && !_hasExceededMaxDepth)
				{
					_hasExceededMaxDepth = true;
					throw JsonReaderException.Create(this, "The reader's MaxDepth of {0} has been exceeded.".FormatWith(CultureInfo.InvariantCulture, _maxDepth));
				}
			}
		}

		private JsonContainerType Pop()
		{
			JsonPosition currentPosition;
			if (_stack != null && _stack.Count > 0)
			{
				currentPosition = _currentPosition;
				_currentPosition = _stack[_stack.Count - 1];
				_stack.RemoveAt(_stack.Count - 1);
			}
			else
			{
				currentPosition = _currentPosition;
				_currentPosition = default(JsonPosition);
			}
			if (_maxDepth.HasValue && Depth <= _maxDepth)
			{
				_hasExceededMaxDepth = false;
			}
			return currentPosition.Type;
		}

		private JsonContainerType Peek()
		{
			return _currentPosition.Type;
		}

		public abstract bool Read();

		public virtual int? ReadAsInt32()
		{
			JsonToken contentToken = GetContentToken();
			switch (contentToken)
			{
			case JsonToken.None:
			case JsonToken.Null:
			case JsonToken.EndArray:
				return null;
			case JsonToken.Integer:
			case JsonToken.Float:
				if (!(Value is int))
				{
					SetToken(JsonToken.Integer, Convert.ToInt32(Value, CultureInfo.InvariantCulture), updateIndex: false);
				}
				return (int)Value;
			case JsonToken.String:
			{
				string s = (string)Value;
				return ReadInt32String(s);
			}
			default:
				throw JsonReaderException.Create(this, "Error reading integer. Unexpected token: {0}.".FormatWith(CultureInfo.InvariantCulture, contentToken));
			}
		}

		internal int? ReadInt32String(string s)
		{
			if (string.IsNullOrEmpty(s))
			{
				SetToken(JsonToken.Null, null, updateIndex: false);
				return null;
			}
			if (int.TryParse(s, NumberStyles.Integer, Culture, out var result))
			{
				SetToken(JsonToken.Integer, result, updateIndex: false);
				return result;
			}
			SetToken(JsonToken.String, s, updateIndex: false);
			throw JsonReaderException.Create(this, "Could not convert string to integer: {0}.".FormatWith(CultureInfo.InvariantCulture, s));
		}

		public virtual string ReadAsString()
		{
			JsonToken contentToken = GetContentToken();
			switch (contentToken)
			{
			case JsonToken.None:
			case JsonToken.Null:
			case JsonToken.EndArray:
				return null;
			case JsonToken.String:
				return (string)Value;
			default:
				if (JsonTokenUtils.IsPrimitiveToken(contentToken) && Value != null)
				{
					string text = ((Value is IFormattable) ? ((IFormattable)Value).ToString(null, Culture) : ((!(Value is Uri)) ? Value.ToString() : ((Uri)Value).OriginalString));
					SetToken(JsonToken.String, text, updateIndex: false);
					return text;
				}
				throw JsonReaderException.Create(this, "Error reading string. Unexpected token: {0}.".FormatWith(CultureInfo.InvariantCulture, contentToken));
			}
		}

		public virtual byte[] ReadAsBytes()
		{
			JsonToken contentToken = GetContentToken();
			if (contentToken == JsonToken.None)
			{
				return null;
			}
			if (TokenType == JsonToken.StartObject)
			{
				ReadIntoWrappedTypeObject();
				byte[] array = ReadAsBytes();
				ReaderReadAndAssert();
				if (TokenType != JsonToken.EndObject)
				{
					throw JsonReaderException.Create(this, "Error reading bytes. Unexpected token: {0}.".FormatWith(CultureInfo.InvariantCulture, TokenType));
				}
				SetToken(JsonToken.Bytes, array, updateIndex: false);
				return array;
			}
			switch (contentToken)
			{
			case JsonToken.String:
			{
				string text = (string)Value;
				Guid g;
				byte[] array3 = ((text.Length == 0) ? new byte[0] : ((!ConvertUtils.TryConvertGuid(text, out g)) ? Convert.FromBase64String(text) : g.ToByteArray()));
				SetToken(JsonToken.Bytes, array3, updateIndex: false);
				return array3;
			}
			case JsonToken.Null:
			case JsonToken.EndArray:
				return null;
			case JsonToken.Bytes:
				if ((object)ValueType == typeof(Guid))
				{
					byte[] array2 = ((Guid)Value).ToByteArray();
					SetToken(JsonToken.Bytes, array2, updateIndex: false);
					return array2;
				}
				return (byte[])Value;
			case JsonToken.StartArray:
				return ReadArrayIntoByteArray();
			default:
				throw JsonReaderException.Create(this, "Error reading bytes. Unexpected token: {0}.".FormatWith(CultureInfo.InvariantCulture, contentToken));
			}
		}

		internal byte[] ReadArrayIntoByteArray()
		{
			List<byte> list = new List<byte>();
			while (true)
			{
				JsonToken contentToken = GetContentToken();
				switch (contentToken)
				{
				case JsonToken.None:
					throw JsonReaderException.Create(this, "Unexpected end when reading bytes.");
				case JsonToken.Integer:
					break;
				case JsonToken.EndArray:
				{
					byte[] array = list.ToArray();
					SetToken(JsonToken.Bytes, array, updateIndex: false);
					return array;
				}
				default:
					throw JsonReaderException.Create(this, "Unexpected token when reading bytes: {0}.".FormatWith(CultureInfo.InvariantCulture, contentToken));
				}
				list.Add(Convert.ToByte(Value, CultureInfo.InvariantCulture));
			}
		}

		public virtual double? ReadAsDouble()
		{
			JsonToken contentToken = GetContentToken();
			switch (contentToken)
			{
			case JsonToken.None:
			case JsonToken.Null:
			case JsonToken.EndArray:
				return null;
			case JsonToken.Integer:
			case JsonToken.Float:
				if (!(Value is double))
				{
					double num = Convert.ToDouble(Value, CultureInfo.InvariantCulture);
					SetToken(JsonToken.Float, num, updateIndex: false);
				}
				return (double)Value;
			case JsonToken.String:
				return ReadDoubleString((string)Value);
			default:
				throw JsonReaderException.Create(this, "Error reading double. Unexpected token: {0}.".FormatWith(CultureInfo.InvariantCulture, contentToken));
			}
		}

		internal double? ReadDoubleString(string s)
		{
			if (string.IsNullOrEmpty(s))
			{
				SetToken(JsonToken.Null, null, updateIndex: false);
				return null;
			}
			if (double.TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, Culture, out var result))
			{
				SetToken(JsonToken.Float, result, updateIndex: false);
				return result;
			}
			SetToken(JsonToken.String, s, updateIndex: false);
			throw JsonReaderException.Create(this, "Could not convert string to double: {0}.".FormatWith(CultureInfo.InvariantCulture, s));
		}

		public virtual bool? ReadAsBoolean()
		{
			JsonToken contentToken = GetContentToken();
			switch (contentToken)
			{
			case JsonToken.None:
			case JsonToken.Null:
			case JsonToken.EndArray:
				return null;
			case JsonToken.Integer:
			case JsonToken.Float:
			{
				bool flag = Convert.ToBoolean(Value, CultureInfo.InvariantCulture);
				SetToken(JsonToken.Boolean, flag, updateIndex: false);
				return flag;
			}
			case JsonToken.String:
				return ReadBooleanString((string)Value);
			case JsonToken.Boolean:
				return (bool)Value;
			default:
				throw JsonReaderException.Create(this, "Error reading boolean. Unexpected token: {0}.".FormatWith(CultureInfo.InvariantCulture, contentToken));
			}
		}

		internal bool? ReadBooleanString(string s)
		{
			if (string.IsNullOrEmpty(s))
			{
				SetToken(JsonToken.Null, null, updateIndex: false);
				return null;
			}
			if (bool.TryParse(s, out var result))
			{
				SetToken(JsonToken.Boolean, result, updateIndex: false);
				return result;
			}
			SetToken(JsonToken.String, s, updateIndex: false);
			throw JsonReaderException.Create(this, "Could not convert string to boolean: {0}.".FormatWith(CultureInfo.InvariantCulture, s));
		}

		public virtual decimal? ReadAsDecimal()
		{
			JsonToken contentToken = GetContentToken();
			switch (contentToken)
			{
			case JsonToken.None:
			case JsonToken.Null:
			case JsonToken.EndArray:
				return null;
			case JsonToken.Integer:
			case JsonToken.Float:
				if (!(Value is decimal))
				{
					SetToken(JsonToken.Float, Convert.ToDecimal(Value, CultureInfo.InvariantCulture), updateIndex: false);
				}
				return (decimal)Value;
			case JsonToken.String:
				return ReadDecimalString((string)Value);
			default:
				throw JsonReaderException.Create(this, "Error reading decimal. Unexpected token: {0}.".FormatWith(CultureInfo.InvariantCulture, contentToken));
			}
		}

		internal decimal? ReadDecimalString(string s)
		{
			if (string.IsNullOrEmpty(s))
			{
				SetToken(JsonToken.Null, null, updateIndex: false);
				return null;
			}
			if (decimal.TryParse(s, NumberStyles.Number, Culture, out var result))
			{
				SetToken(JsonToken.Float, result, updateIndex: false);
				return result;
			}
			SetToken(JsonToken.String, s, updateIndex: false);
			throw JsonReaderException.Create(this, "Could not convert string to decimal: {0}.".FormatWith(CultureInfo.InvariantCulture, s));
		}

		public virtual DateTime? ReadAsDateTime()
		{
			switch (GetContentToken())
			{
			case JsonToken.None:
			case JsonToken.Null:
			case JsonToken.EndArray:
				return null;
			case JsonToken.Date:
				if (Value is DateTimeOffset)
				{
					SetToken(JsonToken.Date, ((DateTimeOffset)Value).DateTime, updateIndex: false);
				}
				return (DateTime)Value;
			case JsonToken.String:
			{
				string s = (string)Value;
				return ReadDateTimeString(s);
			}
			default:
				throw JsonReaderException.Create(this, "Error reading date. Unexpected token: {0}.".FormatWith(CultureInfo.InvariantCulture, TokenType));
			}
		}

		internal DateTime? ReadDateTimeString(string s)
		{
			if (string.IsNullOrEmpty(s))
			{
				SetToken(JsonToken.Null, null, updateIndex: false);
				return null;
			}
			if (DateTimeUtils.TryParseDateTime(s, DateTimeZoneHandling, _dateFormatString, Culture, out var dt))
			{
				dt = DateTimeUtils.EnsureDateTime(dt, DateTimeZoneHandling);
				SetToken(JsonToken.Date, dt, updateIndex: false);
				return dt;
			}
			if (DateTime.TryParse(s, Culture, DateTimeStyles.RoundtripKind, out dt))
			{
				dt = DateTimeUtils.EnsureDateTime(dt, DateTimeZoneHandling);
				SetToken(JsonToken.Date, dt, updateIndex: false);
				return dt;
			}
			throw JsonReaderException.Create(this, "Could not convert string to DateTime: {0}.".FormatWith(CultureInfo.InvariantCulture, s));
		}

		public virtual DateTimeOffset? ReadAsDateTimeOffset()
		{
			JsonToken contentToken = GetContentToken();
			switch (contentToken)
			{
			case JsonToken.None:
			case JsonToken.Null:
			case JsonToken.EndArray:
				return null;
			case JsonToken.Date:
				if (Value is DateTime)
				{
					SetToken(JsonToken.Date, new DateTimeOffset((DateTime)Value), updateIndex: false);
				}
				return (DateTimeOffset)Value;
			case JsonToken.String:
			{
				string s = (string)Value;
				return ReadDateTimeOffsetString(s);
			}
			default:
				throw JsonReaderException.Create(this, "Error reading date. Unexpected token: {0}.".FormatWith(CultureInfo.InvariantCulture, contentToken));
			}
		}

		internal DateTimeOffset? ReadDateTimeOffsetString(string s)
		{
			if (string.IsNullOrEmpty(s))
			{
				SetToken(JsonToken.Null, null, updateIndex: false);
				return null;
			}
			if (DateTimeUtils.TryParseDateTimeOffset(s, _dateFormatString, Culture, out var dt))
			{
				SetToken(JsonToken.Date, dt, updateIndex: false);
				return dt;
			}
			if (DateTimeOffset.TryParse(s, Culture, DateTimeStyles.RoundtripKind, out dt))
			{
				SetToken(JsonToken.Date, dt, updateIndex: false);
				return dt;
			}
			SetToken(JsonToken.String, s, updateIndex: false);
			throw JsonReaderException.Create(this, "Could not convert string to DateTimeOffset: {0}.".FormatWith(CultureInfo.InvariantCulture, s));
		}

		internal void ReaderReadAndAssert()
		{
			if (!Read())
			{
				throw CreateUnexpectedEndException();
			}
		}

		internal JsonReaderException CreateUnexpectedEndException()
		{
			return JsonReaderException.Create(this, "Unexpected end when reading JSON.");
		}

		internal void ReadIntoWrappedTypeObject()
		{
			ReaderReadAndAssert();
			if (Value.ToString() == "$type")
			{
				ReaderReadAndAssert();
				if (Value != null && Value.ToString().StartsWith("System.Byte[]", StringComparison.Ordinal))
				{
					ReaderReadAndAssert();
					if (Value.ToString() == "$value")
					{
						return;
					}
				}
			}
			throw JsonReaderException.Create(this, "Error reading bytes. Unexpected token: {0}.".FormatWith(CultureInfo.InvariantCulture, JsonToken.StartObject));
		}

		public void Skip()
		{
			if (TokenType == JsonToken.PropertyName)
			{
				Read();
			}
			if (JsonTokenUtils.IsStartToken(TokenType))
			{
				int depth = Depth;
				while (Read() && depth < Depth)
				{
				}
			}
		}

		protected void SetToken(JsonToken newToken)
		{
			SetToken(newToken, null, updateIndex: true);
		}

		protected void SetToken(JsonToken newToken, object value)
		{
			SetToken(newToken, value, updateIndex: true);
		}

		internal void SetToken(JsonToken newToken, object value, bool updateIndex)
		{
			_tokenType = newToken;
			_value = value;
			switch (newToken)
			{
			case JsonToken.StartObject:
				_currentState = State.ObjectStart;
				Push(JsonContainerType.Object);
				break;
			case JsonToken.StartArray:
				_currentState = State.ArrayStart;
				Push(JsonContainerType.Array);
				break;
			case JsonToken.StartConstructor:
				_currentState = State.ConstructorStart;
				Push(JsonContainerType.Constructor);
				break;
			case JsonToken.EndObject:
				ValidateEnd(JsonToken.EndObject);
				break;
			case JsonToken.EndArray:
				ValidateEnd(JsonToken.EndArray);
				break;
			case JsonToken.EndConstructor:
				ValidateEnd(JsonToken.EndConstructor);
				break;
			case JsonToken.PropertyName:
				_currentState = State.Property;
				_currentPosition.PropertyName = (string)value;
				break;
			case JsonToken.Raw:
			case JsonToken.Integer:
			case JsonToken.Float:
			case JsonToken.String:
			case JsonToken.Boolean:
			case JsonToken.Null:
			case JsonToken.Undefined:
			case JsonToken.Date:
			case JsonToken.Bytes:
				SetPostValueState(updateIndex);
				break;
			case JsonToken.Comment:
				break;
			}
		}

		internal void SetPostValueState(bool updateIndex)
		{
			if (Peek() != 0)
			{
				_currentState = State.PostValue;
			}
			else
			{
				SetFinished();
			}
			if (updateIndex)
			{
				UpdateScopeWithFinishedValue();
			}
		}

		private void UpdateScopeWithFinishedValue()
		{
			if (_currentPosition.HasIndex)
			{
				_currentPosition.Position++;
			}
		}

		private void ValidateEnd(JsonToken endToken)
		{
			JsonContainerType jsonContainerType = Pop();
			if (GetTypeForCloseToken(endToken) != jsonContainerType)
			{
				throw JsonReaderException.Create(this, "JsonToken {0} is not valid for closing JsonType {1}.".FormatWith(CultureInfo.InvariantCulture, endToken, jsonContainerType));
			}
			if (Peek() != 0)
			{
				_currentState = State.PostValue;
			}
			else
			{
				SetFinished();
			}
		}

		protected void SetStateBasedOnCurrent()
		{
			JsonContainerType jsonContainerType = Peek();
			switch (jsonContainerType)
			{
			case JsonContainerType.Object:
				_currentState = State.Object;
				break;
			case JsonContainerType.Array:
				_currentState = State.Array;
				break;
			case JsonContainerType.Constructor:
				_currentState = State.Constructor;
				break;
			case JsonContainerType.None:
				SetFinished();
				break;
			default:
				throw JsonReaderException.Create(this, "While setting the reader state back to current object an unexpected JsonType was encountered: {0}".FormatWith(CultureInfo.InvariantCulture, jsonContainerType));
			}
		}

		private void SetFinished()
		{
			if (SupportMultipleContent)
			{
				_currentState = State.Start;
			}
			else
			{
				_currentState = State.Finished;
			}
		}

		private JsonContainerType GetTypeForCloseToken(JsonToken token)
		{
			return token switch
			{
				JsonToken.EndObject => JsonContainerType.Object, 
				JsonToken.EndArray => JsonContainerType.Array, 
				JsonToken.EndConstructor => JsonContainerType.Constructor, 
				_ => throw JsonReaderException.Create(this, "Not a valid close JsonToken: {0}".FormatWith(CultureInfo.InvariantCulture, token)), 
			};
		}

		void IDisposable.Dispose()
		{
			Dispose(disposing: true);
			GC.SuppressFinalize(this);
		}

		protected virtual void Dispose(bool disposing)
		{
			if (_currentState != State.Closed && disposing)
			{
				Close();
			}
		}

		public virtual void Close()
		{
			_currentState = State.Closed;
			_tokenType = JsonToken.None;
			_value = null;
		}

		internal void ReadAndAssert()
		{
			if (!Read())
			{
				throw JsonSerializationException.Create(this, "Unexpected end when reading JSON.");
			}
		}

		internal bool ReadAndMoveToContent()
		{
			if (Read())
			{
				return MoveToContent();
			}
			return false;
		}

		internal bool MoveToContent()
		{
			JsonToken tokenType = TokenType;
			while (tokenType == JsonToken.None || tokenType == JsonToken.Comment)
			{
				if (!Read())
				{
					return false;
				}
				tokenType = TokenType;
			}
			return true;
		}

		private JsonToken GetContentToken()
		{
			JsonToken tokenType;
			do
			{
				if (!Read())
				{
					SetToken(JsonToken.None);
					return JsonToken.None;
				}
				tokenType = TokenType;
			}
			while (tokenType == JsonToken.Comment);
			return tokenType;
		}
	}
	[Serializable]
	public class JsonReaderException : JsonException
	{
		public int LineNumber { get; private set; }

		public int LinePosition { get; private set; }

		public string Path { get; private set; }

		public JsonReaderException()
		{
		}

		public JsonReaderException(string message)
			: base(message)
		{
		}

		public JsonReaderException(string message, Exception innerException)
			: base(message, innerException)
		{
		}

		public JsonReaderException(SerializationInfo info, StreamingContext context)
			: base(info, context)
		{
		}

		internal JsonReaderException(string message, Exception innerException, string path, int lineNumber, int linePosition)
			: base(message, innerException)
		{
			Path = path;
			LineNumber = lineNumber;
			LinePosition = linePosition;
		}

		internal static JsonReaderException Create(JsonReader reader, string message)
		{
			return Create(reader, message, null);
		}

		internal static JsonReaderException Create(JsonReader reader, string message, Exception ex)
		{
			return Create(reader as IJsonLineInfo, reader.Path, message, ex);
		}

		internal static JsonReaderException Create(IJsonLineInfo lineInfo, string path, string message, Exception ex)
		{
			message = JsonPosition.FormatMessage(lineInfo, path, message);
			int lineNumber;
			int linePosition;
			if (lineInfo != null && lineInfo.HasLineInfo())
			{
				lineNumber = lineInfo.LineNumber;
				linePosition = lineInfo.LinePosition;
			}
			else
			{
				lineNumber = 0;
				linePosition = 0;
			}
			return new JsonReaderException(message, ex, path, lineNumber, linePosition);
		}
	}
	[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
	public sealed class JsonRequiredAttribute : Attribute
	{
	}
	[Serializable]
	public class JsonSerializationException : JsonException
	{
		public JsonSerializationException()
		{
		}

		public JsonSerializationException(string message)
			: base(message)
		{
		}

		public JsonSerializationException(string message, Exception innerException)
			: base(message, innerException)
		{
		}

		public JsonSerializationException(SerializationInfo info, StreamingContext context)
			: base(info, context)
		{
		}

		internal static JsonSerializationException Create(JsonReader reader, string message)
		{
			return Create(reader, message, null);
		}

		internal static JsonSerializationException Create(JsonReader reader, string message, Exception ex)
		{
			return Create(reader as IJsonLineInfo, reader.Path, message, ex);
		}

		internal static JsonSerializationException Create(IJsonLineInfo lineInfo, string path, string message, Exception ex)
		{
			message = JsonPosition.FormatMessage(lineInfo, path, message);
			return new JsonSerializationException(message, ex);
		}
	}
	public class JsonSerializer
	{
		internal TypeNameHandling _typeNameHandling;

		internal FormatterAssemblyStyle _typeNameAssemblyFormat;

		internal PreserveReferencesHandling _preserveReferencesHandling;

		internal ReferenceLoopHandling _referenceLoopHandling;

		internal MissingMemberHandling _missingMemberHandling;

		internal ObjectCreationHandling _objectCreationHandling;

		internal NullValueHandling _nullValueHandling;

		internal DefaultValueHandling _defaultValueHandling;

		internal ConstructorHandling _constructorHandling;

		internal MetadataPropertyHandling _metadataPropertyHandling;

		internal JsonConverterCollection _converters;

		internal IContractResolver _contractResolver;

		internal ITraceWriter _traceWriter;

		internal IEqualityComparer _equalityComparer;

		internal SerializationBinder _binder;

		internal StreamingContext _context;

		private IReferenceResolver _referenceResolver;

		private Formatting? _formatting;

		private DateFormatHandling? _dateFormatHandling;

		private DateTimeZoneHandling? _dateTimeZoneHandling;

		private DateParseHandling? _dateParseHandling;

		private FloatFormatHandling? _floatFormatHandling;

		private FloatParseHandling? _floatParseHandling;

		private StringEscapeHandling? _stringEscapeHandling;

		private CultureInfo _culture;

		private int? _maxDepth;

		private bool _maxDepthSet;

		private bool? _checkAdditionalContent;

		private string _dateFormatString;

		private bool _dateFormatStringSet;

		public virtual IReferenceResolver ReferenceResolver
		{
			get
			{
				return GetReferenceResolver();
			}
			set
			{
				if (value == null)
				{
					throw new ArgumentNullException("value", "Reference resolver cannot be null.");
				}
				_referenceResolver = value;
			}
		}

		public virtual SerializationBinder Binder
		{
			get
			{
				return _binder;
			}
			set
			{
				if (value == null)
				{
					throw new ArgumentNullException("value", "Serialization binder cannot be null.");
				}
				_binder = value;
			}
		}

		public virtual ITraceWriter TraceWriter
		{
			get
			{
				return _traceWriter;
			}
			set
			{
				_traceWriter = value;
			}
		}

		public virtual IEqualityComparer EqualityComparer
		{
			get
			{
				return _equalityComparer;
			}
			set
			{
				_equalityComparer = value;
			}
		}

		public virtual TypeNameHandling TypeNameHandling
		{
			get
			{
				return _typeNameHandling;
			}
			set
			{
				if (value < TypeNameHandling.None || value > TypeNameHandling.Auto)
				{
					throw new ArgumentOutOfRangeException("value");
				}
				_typeNameHandling = value;
			}
		}

		public virtual FormatterAssemblyStyle TypeNameAssemblyFormat
		{
			get
			{
				return _typeNameAssemblyFormat;
			}
			set
			{
				if (value < FormatterAssemblyStyle.Simple || value > FormatterAssemblyStyle.Full)
				{
					throw new ArgumentOutOfRangeException("value");
				}
				_typeNameAssemblyFormat = value;
			}
		}

		public virtual PreserveReferencesHandling PreserveReferencesHandling
		{
			get
			{
				return _preserveReferencesHandling;
			}
			set
			{
				if (value < PreserveReferencesHandling.None || value > PreserveReferencesHandling.All)
				{
					throw new ArgumentOutOfRangeException("value");
				}
				_preserveReferencesHandling = value;
			}
		}

		public virtual ReferenceLoopHandling ReferenceLoopHandling
		{
			get
			{
				return _referenceLoopHandling;
			}
			set
			{
				if (value < ReferenceLoopHandling.Error || value > ReferenceLoopHandling.Serialize)
				{
					throw new ArgumentOutOfRangeException("value");
				}
				_referenceLoopHandling = value;
			}
		}

		public virtual MissingMemberHandling MissingMemberHandling
		{
			get
			{
				return _missingMemberHandling;
			}
			set
			{
				if (value < MissingMemberHandling.Ignore || value > MissingMemberHandling.Error)
				{
					throw new ArgumentOutOfRangeException("value");
				}
				_missingMemberHandling = value;
			}
		}

		public virtual NullValueHandling NullValueHandling
		{
			get
			{
				return _nullValueHandling;
			}
			set
			{
				if (value < NullValueHandling.Include || value > NullValueHandling.Ignore)
				{
					throw new ArgumentOutOfRangeException("value");
				}
				_nullValueHandling = value;
			}
		}

		public virtual DefaultValueHandling DefaultValueHandling
		{
			get
			{
				return _defaultValueHandling;
			}
			set
			{
				if (value < DefaultValueHandling.Include || value > DefaultValueHandling.IgnoreAndPopulate)
				{
					throw new ArgumentOutOfRangeException("value");
				}
				_defaultValueHandling = value;
			}
		}

		public virtual ObjectCreationHandling ObjectCreationHandling
		{
			get
			{
				return _objectCreationHandling;
			}
			set
			{
				if (value < ObjectCreationHandling.Auto || value > ObjectCreationHandling.Replace)
				{
					throw new ArgumentOutOfRangeException("value");
				}
				_objectCreationHandling = value;
			}
		}

		public virtual ConstructorHandling ConstructorHandling
		{
			get
			{
				return _constructorHandling;
			}
			set
			{
				if (value < ConstructorHandling.Default || value > ConstructorHandling.AllowNonPublicDefaultConstructor)
				{
					throw new ArgumentOutOfRangeException("value");
				}
				_constructorHandling = value;
			}
		}

		public virtual MetadataPropertyHandling MetadataPropertyHandling
		{
			get
			{
				return _metadataPropertyHandling;
			}
			set
			{
				if (value < MetadataPropertyHandling.Default || value > MetadataPropertyHandling.Ignore)
				{
					throw new ArgumentOutOfRangeException("value");
				}
				_metadataPropertyHandling = value;
			}
		}

		public virtual JsonConverterCollection Converters
		{
			get
			{
				if (_converters == null)
				{
					_converters = new JsonConverterCollection();
				}
				return _converters;
			}
		}

		public virtual IContractResolver ContractResolver
		{
			get
			{
				return _contractResolver;
			}
			set
			{
				_contractResolver = value ?? DefaultContractResolver.Instance;
			}
		}

		public virtual StreamingContext Context
		{
			get
			{
				return _context;
			}
			set
			{
				_context = value;
			}
		}

		public virtual Formatting Formatting
		{
			get
			{
				return _formatting ?? Formatting.None;
			}
			set
			{
				_formatting = value;
			}
		}

		public virtual DateFormatHandling DateFormatHandling
		{
			get
			{
				return _dateFormatHandling ?? DateFormatHandling.IsoDateFormat;
			}
			set
			{
				_dateFormatHandling = value;
			}
		}

		public virtual DateTimeZoneHandling DateTimeZoneHandling
		{
			get
			{
				return _dateTimeZoneHandling ?? DateTimeZoneHandling.RoundtripKind;
			}
			set
			{
				_dateTimeZoneHandling = value;
			}
		}

		public virtual DateParseHandling DateParseHandling
		{
			get
			{
				return _dateParseHandling ?? DateParseHandling.DateTime;
			}
			set
			{
				_dateParseHandling = value;
			}
		}

		public virtual FloatParseHandling FloatParseHandling
		{
			get
			{
				return _floatParseHandling ?? FloatParseHandling.Double;
			}
			set
			{
				_floatParseHandling = value;
			}
		}

		public virtual FloatFormatHandling FloatFormatHandling
		{
			get
			{
				return _floatFormatHandling ?? FloatFormatHandling.String;
			}
			set
			{
				_floatFormatHandling = value;
			}
		}

		public virtual StringEscapeHandling StringEscapeHandling
		{
			get
			{
				return _stringEscapeHandling ?? StringEscapeHandling.Default;
			}
			set
			{
				_stringEscapeHandling = value;
			}
		}

		public virtual string DateFormatString
		{
			get
			{
				return _dateFormatString ?? "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK";
			}
			set
			{
				_dateFormatString = value;
				_dateFormatStringSet = true;
			}
		}

		public virtual CultureInfo Culture
		{
			get
			{
				return _culture ?? JsonSerializerSettings.DefaultCulture;
			}
			set
			{
				_culture = value;
			}
		}

		public virtual int? MaxDepth
		{
			get
			{
				return _maxDepth;
			}
			set
			{
				if (value <= 0)
				{
					throw new ArgumentException("Value must be positive.", "value");
				}
				_maxDepth = value;
				_maxDepthSet = true;
			}
		}

		public virtual bool CheckAdditionalContent
		{
			get
			{
				return _checkAdditionalContent ?? false;
			}
			set
			{
				_checkAdditionalContent = value;
			}
		}

		public virtual event EventHandler<Valve.Newtonsoft.Json.Serialization.ErrorEventArgs> Error;

		internal bool IsCheckAdditionalContentSet()
		{
			return _checkAdditionalContent.HasValue;
		}

		public JsonSerializer()
		{
			_referenceLoopHandling = ReferenceLoopHandling.Error;
			_missingMemberHandling = MissingMemberHandling.Ignore;
			_nullValueHandling = NullValueHandling.Include;
			_defaultValueHandling = DefaultValueHandling.Include;
			_objectCreationHandling = ObjectCreationHandling.Auto;
			_preserveReferencesHandling = PreserveReferencesHandling.None;
			_constructorHandling = ConstructorHandling.Default;
			_typeNameHandling = TypeNameHandling.None;
			_metadataPropertyHandling = MetadataPropertyHandling.Default;
			_context = JsonSerializerSettings.DefaultContext;
			_binder = DefaultSerializationBinder.Instance;
			_culture = JsonSerializerSettings.DefaultCulture;
			_contractResolver = DefaultContractResolver.Instance;
		}

		public static JsonSerializer Create()
		{
			return new JsonSerializer();
		}

		public static JsonSerializer Create(JsonSerializerSettings settings)
		{
			JsonSerializer jsonSerializer = Create();
			if (settings != null)
			{
				ApplySerializerSettings(jsonSerializer, settings);
			}
			return jsonSerializer;
		}

		public static JsonSerializer CreateDefault()
		{
			return Create(JsonConvert.DefaultSettings?.Invoke());
		}

		public static JsonSerializer CreateDefault(JsonSerializerSettings settings)
		{
			JsonSerializer jsonSerializer = CreateDefault();
			if (settings != null)
			{
				ApplySerializerSettings(jsonSerializer, settings);
			}
			return jsonSerializer;
		}

		private static void ApplySerializerSettings(JsonSerializer serializer, JsonSerializerSettings settings)
		{
			if (!CollectionUtils.IsNullOrEmpty(settings.Converters))
			{
				for (int i = 0; i < settings.Converters.Count; i++)
				{
					serializer.Converters.Insert(i, settings.Converters[i]);
				}
			}
			if (settings._typeNameHandling.HasValue)
			{
				serializer.TypeNameHandling = settings.TypeNameHandling;
			}
			if (settings._metadataPropertyHandling.HasValue)
			{
				serializer.MetadataPropertyHandling = settings.MetadataPropertyHandling;
			}
			if (settings._typeNameAssemblyFormat.HasValue)
			{
				serializer.TypeNameAssemblyFormat = settings.TypeNameAssemblyFormat;
			}
			if (settings._preserveReferencesHandling.HasValue)
			{
				serializer.PreserveReferencesHandling = settings.PreserveReferencesHandling;
			}
			if (settings._referenceLoopHandling.HasValue)
			{
				serializer.ReferenceLoopHandling = settings.ReferenceLoopHandling;
			}
			if (settings._missingMemberHandling.HasValue)
			{
				serializer.MissingMemberHandling = settings.MissingMemberHandling;
			}
			if (settings._objectCreationHandling.HasValue)
			{
				serializer.ObjectCreationHandling = settings.ObjectCreationHandling;
			}
			if (settings._nullValueHandling.HasValue)
			{
				serializer.NullValueHandling = settings.NullValueHandling;
			}
			if (settings._defaultValueHandling.HasValue)
			{
				serializer.DefaultValueHandling = settings.DefaultValueHandling;
			}
			if (settings._constructorHandling.HasValue)
			{
				serializer.ConstructorHandling = settings.ConstructorHandling;
			}
			if (settings._context.HasValue)
			{
				serializer.Context = settings.Context;
			}
			if (settings._checkAdditionalContent.HasValue)
			{
				serializer._checkAdditionalContent = settings._checkAdditionalContent;
			}
			if (settings.Error != null)
			{
				serializer.Error += settings.Error;
			}
			if (settings.ContractResolver != null)
			{
				serializer.ContractResolver = settings.ContractResolver;
			}
			if (settings.ReferenceResolverProvider != null)
			{
				serializer.ReferenceResolver = settings.ReferenceResolverProvider();
			}
			if (settings.TraceWriter != null)
			{
				serializer.TraceWriter = settings.TraceWriter;
			}
			if (settings.EqualityComparer != null)
			{
				serializer.EqualityComparer = settings.EqualityComparer;
			}
			if (settings.Binder != null)
			{
				serializer.Binder = settings.Binder;
			}
			if (settings._formatting.HasValue)
			{
				serializer._formatting = settings._formatting;
			}
			if (settings._dateFormatHandling.HasValue)
			{
				serializer._dateFormatHandling = settings._dateFormatHandling;
			}
			if (settings._dateTimeZoneHandling.HasValue)
			{
				serializer._dateTimeZoneHandling = settings._dateTimeZoneHandling;
			}
			if (settings._dateParseHandling.HasValue)
			{
				serializer._dateParseHandling = settings._dateParseHandling;
			}
			if (settings._dateFormatStringSet)
			{
				serializer._dateFormatString = settings._dateFormatString;
				serializer._dateFormatStringSet = settings._dateFormatStringSet;
			}
			if (settings._floatFormatHandling.HasValue)
			{
				serializer._floatFormatHandling = settings._floatFormatHandling;
			}
			if (settings._floatParseHandling.HasValue)
			{
				serializer._floatParseHandling = settings._floatParseHandling;
			}
			if (settings._stringEscapeHandling.HasValue)
			{
				serializer._stringEscapeHandling = settings._stringEscapeHandling;
			}
			if (settings._culture != null)
			{
				serializer._culture = settings._culture;
			}
			if (settings._maxDepthSet)
			{
				serializer._maxDepth = settings._maxDepth;
				serializer._maxDepthSet = settings._maxDepthSet;
			}
		}

		public void Populate(TextReader reader, object target)
		{
			Populate(new JsonTextReader(reader), target);
		}

		public void Populate(JsonReader reader, object target)
		{
			PopulateInternal(reader, target);
		}

		internal virtual void PopulateInternal(JsonReader reader, object target)
		{
			ValidationUtils.ArgumentNotNull(reader, "reader");
			ValidationUtils.ArgumentNotNull(target, "target");
			SetupReader(reader, out var previousCulture, out var previousDateTimeZoneHandling, out var previousDateParseHandling, out var previousFloatParseHandling, out var previousMaxDepth, out var previousDateFormatString);
			TraceJsonReader traceJsonReader = ((TraceWriter != null && TraceWriter.LevelFilter >= TraceLevel.Verbose) ? new TraceJsonReader(reader) : null);
			new JsonSerializerInternalReader(this).Populate(traceJsonReader ?? reader, target);
			if (traceJsonReader != null)
			{
				TraceWriter.Trace(TraceLevel.Verbose, traceJsonReader.GetDeserializedJsonMessage(), null);
			}
			ResetReader(reader, previousCulture, previousDateTimeZoneHandling, previousDateParseHandling, previousFloatParseHandling, previousMaxDepth, previousDateFormatString);
		}

		public object Deserialize(JsonReader reader)
		{
			return Deserialize(reader, null);
		}

		public object Deserialize(TextReader reader, Type objectType)
		{
			return Deserialize(new JsonTextReader(reader), objectType);
		}

		public T Deserialize<T>(JsonReader reader)
		{
			return (T)Deserialize(reader, typeof(T));
		}

		public object Deserialize(JsonReader reader, Type objectType)
		{
			return DeserializeInternal(reader, objectType);
		}

		internal virtual object DeserializeInternal(JsonReader reader, Type objectType)
		{
			ValidationUtils.ArgumentNotNull(reader, "reader");
			SetupReader(reader, out var previousCulture, out var previousDateTimeZoneHandling, out var previousDateParseHandling, out var previousFloatParseHandling, out var previousMaxDepth, out var previousDateFormatString);
			TraceJsonReader traceJsonReader = ((TraceWriter != null && TraceWriter.LevelFilter >= TraceLevel.Verbose) ? new TraceJsonReader(reader) : null);
			object result = new JsonSerializerInternalReader(this).Deserialize(traceJsonReader ?? reader, objectType, CheckAdditionalContent);
			if (traceJsonReader != null)
			{
				TraceWriter.Trace(TraceLevel.Verbose, traceJsonReader.GetDeserializedJsonMessage(), null);
			}
			ResetReader(reader, previousCulture, previousDateTimeZoneHandling, previousDateParseHandling, previousFloatParseHandling, previousMaxDepth, previousDateFormatString);
			return result;
		}

		private void SetupReader(JsonReader reader, out CultureInfo previousCulture, out DateTimeZoneHandling? previousDateTimeZoneHandling, out DateParseHandling? previousDateParseHandling, out FloatParseHandling? previousFloatParseHandling, out int? previousMaxDepth, out string previousDateFormatString)
		{
			if (_culture != null && !_culture.Equals(reader.Culture))
			{
				previousCulture = reader.Culture;
				reader.Culture = _culture;
			}
			else
			{
				previousCulture = null;
			}
			if (_dateTimeZoneHandling.HasValue && reader.DateTimeZoneHandling != _dateTimeZoneHandling)
			{
				previousDateTimeZoneHandling = reader.DateTimeZoneHandling;
				reader.DateTimeZoneHandling = _dateTimeZoneHandling.GetValueOrDefault();
			}
			else
			{
				previousDateTimeZoneHandling = null;
			}
			if (_dateParseHandling.HasValue && reader.DateParseHandling != _dateParseHandling)
			{
				previousDateParseHandling = reader.DateParseHandling;
				reader.DateParseHandling = _dateParseHandling.GetValueOrDefault();
			}
			else
			{
				previousDateParseHandling = null;
			}
			if (_floatParseHandling.HasValue && reader.FloatParseHandling != _floatParseHandling)
			{
				previousFloatParseHandling = reader.FloatParseHandling;
				reader.FloatParseHandling = _floatParseHandling.GetValueOrDefault();
			}
			else
			{
				previousFloatParseHandling = null;
			}
			if (_maxDepthSet && reader.MaxDepth != _maxDepth)
			{
				previousMaxDepth = reader.MaxDepth;
				reader.MaxDepth = _maxDepth;
			}
			else
			{
				previousMaxDepth = null;
			}
			if (_dateFormatStringSet && reader.DateFormatString != _dateFormatString)
			{
				previousDateFormatString = reader.DateFormatString;
				reader.DateFormatString = _dateFormatString;
			}
			else
			{
				previousDateFormatString = null;
			}
			if (reader is JsonTextReader jsonTextReader && _contractResolver is DefaultContractResolver defaultContractResolver)
			{
				jsonTextReader.NameTable = defaultContractResolver.GetState().NameTable;
			}
		}

		private void ResetReader(JsonReader reader, CultureInfo previousCulture, DateTimeZoneHandling? previousDateTimeZoneHandling, DateParseHandling? previousDateParseHandling, FloatParseHandling? previousFloatParseHandling, int? previousMaxDepth, string previousDateFormatString)
		{
			if (previousCulture != null)
			{
				reader.Culture = previousCulture;
			}
			if (previousDateTimeZoneHandling.HasValue)
			{
				reader.DateTimeZoneHandling = previousDateTimeZoneHandling.GetValueOrDefault();
			}
			if (previousDateParseHandling.HasValue)
			{
				reader.DateParseHandling = previousDateParseHandling.GetValueOrDefault();
			}
			if (previousFloatParseHandling.HasValue)
			{
				reader.FloatParseHandling = previousFloatParseHandling.GetValueOrDefault();
			}
			if (_maxDepthSet)
			{
				reader.MaxDepth = previousMaxDepth;
			}
			if (_dateFormatStringSet)
			{
				reader.DateFormatString = previousDateFormatString;
			}
			if (reader is JsonTextReader jsonTextReader)
			{
				jsonTextReader.NameTable = null;
			}
		}

		public void Serialize(TextWriter textWriter, object value)
		{
			Serialize(new JsonTextWriter(textWriter), value);
		}

		public void Serialize(JsonWriter jsonWriter, object value, Type objectType)
		{
			SerializeInternal(jsonWriter, value, objectType);
		}

		public void Serialize(TextWriter textWriter, object value, Type objectType)
		{
			Serialize(new JsonTextWriter(textWriter), value, objectType);
		}

		public void Serialize(JsonWriter jsonWriter, object value)
		{
			SerializeInternal(jsonWriter, value, null);
		}

		internal virtual void SerializeInternal(JsonWriter jsonWriter, object value, Type objectType)
		{
			ValidationUtils.ArgumentNotNull(jsonWriter, "jsonWriter");
			Formatting? formatting = null;
			if (_formatting.HasValue && jsonWriter.Formatting != _formatting)
			{
				formatting = jsonWriter.Formatting;
				jsonWriter.Formatting = _formatting.GetValueOrDefault();
			}
			DateFormatHandling? dateFormatHandling = null;
			if (_dateFormatHandling.HasValue && jsonWriter.DateFormatHandling != _dateFormatHandling)
			{
				dateFormatHandling = jsonWriter.DateFormatHandling;
				jsonWriter.DateFormatHandling = _dateFormatHandling.GetValueOrDefault();
			}
			DateTimeZoneHandling? dateTimeZoneHandling = null;
			if (_dateTimeZoneHandling.HasValue && jsonWriter.DateTimeZoneHandling != _dateTimeZoneHandling)
			{
				dateTimeZoneHandling = jsonWriter.DateTimeZoneHandling;
				jsonWriter.DateTimeZoneHandling = _dateTimeZoneHandling.GetValueOrDefault();
			}
			FloatFormatHandling? floatFormatHandling = null;
			if (_floatFormatHandling.HasValue && jsonWriter.FloatFormatHandling != _floatFormatHandling)
			{
				floatFormatHandling = jsonWriter.FloatFormatHandling;
				jsonWriter.FloatFormatHandling = _floatFormatHandling.GetValueOrDefault();
			}
			StringEscapeHandling? stringEscapeHandling = null;
			if (_stringEscapeHandling.HasValue && jsonWriter.StringEscapeHandling != _stringEscapeHandling)
			{
				stringEscapeHandling = jsonWriter.StringEscapeHandling;
				jsonWriter.StringEscapeHandling = _stringEscapeHandling.GetValueOrDefault();
			}
			CultureInfo cultureInfo = null;
			if (_culture != null && !_culture.Equals(jsonWriter.Culture))
			{
				cultureInfo = jsonWriter.Culture;
				jsonWriter.Culture = _culture;
			}
			string dateFormatString = null;
			if (_dateFormatStringSet && jsonWriter.DateFormatString != _dateFormatString)
			{
				dateFormatString = jsonWriter.DateFormatString;
				jsonWriter.DateFormatString = _dateFormatString;
			}
			TraceJsonWriter traceJsonWriter = ((TraceWriter != null && TraceWriter.LevelFilter >= TraceLevel.Verbose) ? new TraceJsonWriter(jsonWriter) : null);
			new JsonSerializerInternalWriter(this).Serialize(traceJsonWriter ?? jsonWriter, value, objectType);
			if (traceJsonWriter != null)
			{
				TraceWriter.Trace(TraceLevel.Verbose, traceJsonWriter.GetSerializedJsonMessage(), null);
			}
			if (formatting.HasValue)
			{
				jsonWriter.Formatting = formatting.GetValueOrDefault();
			}
			if (dateFormatHandling.HasValue)
			{
				jsonWriter.DateFormatHandling = dateFormatHandling.GetValueOrDefault();
			}
			if (dateTimeZoneHandling.HasValue)
			{
				jsonWriter.DateTimeZoneHandling = dateTimeZoneHandling.GetValueOrDefault();
			}
			if (floatFormatHandling.HasValue)
			{
				jsonWriter.FloatFormatHandling = floatFormatHandling.GetValueOrDefault();
			}
			if (stringEscapeHandling.HasValue)
			{
				jsonWriter.StringEscapeHandling = stringEscapeHandling.GetValueOrDefault();
			}
			if (_dateFormatStringSet)
			{
				jsonWriter.DateFormatString = dateFormatString;
			}
			if (cultureInfo != null)
			{
				jsonWriter.Culture = cultureInfo;
			}
		}

		internal IReferenceResolver GetReferenceResolver()
		{
			if (_referenceResolver == null)
			{
				_referenceResolver = new DefaultReferenceResolver();
			}
			return _referenceResolver;
		}

		internal JsonConverter GetMatchingConverter(Type type)
		{
			return GetMatchingConverter(_converters, type);
		}

		internal static JsonConverter GetMatchingConverter(IList<JsonConverter> converters, Type objectType)
		{
			if (converters != null)
			{
				for (int i = 0; i < converters.Count; i++)
				{
					JsonConverter jsonConverter = converters[i];
					if (jsonConverter.CanConvert(objectType))
					{
						return jsonConverter;
					}
				}
			}
			return null;
		}

		internal void OnError(Valve.Newtonsoft.Json.Serialization.ErrorEventArgs e)
		{
			this.Error?.Invoke(this, e);
		}
	}
	public class JsonSerializerSettings
	{
		internal const ReferenceLoopHandling DefaultReferenceLoopHandling = ReferenceLoopHandling.Error;

		internal const MissingMemberHandling DefaultMissingMemberHandling = MissingMemberHandling.Ignore;

		internal const NullValueHandling DefaultNullValueHandling = NullValueHandling.Include;

		internal const DefaultValueHandling DefaultDefaultValueHandling = DefaultValueHandling.Include;

		internal const ObjectCreationHandling DefaultObjectCreationHandling = ObjectCreationHandling.Auto;

		internal const PreserveReferencesHandling DefaultPreserveReferencesHandling = PreserveReferencesHandling.None;

		internal const ConstructorHandling DefaultConstructorHandling = ConstructorHandling.Default;

		internal const TypeNameHandling DefaultTypeNameHandling = TypeNameHandling.None;

		internal const MetadataPropertyHandling DefaultMetadataPropertyHandling = MetadataPropertyHandling.Default;

		internal const FormatterAssemblyStyle DefaultTypeNameAssemblyFormat = FormatterAssemblyStyle.Simple;

		internal static readonly StreamingContext DefaultContext;

		internal const Formatting DefaultFormatting = Formatting.None;

		internal const DateFormatHandling DefaultDateFormatHandling = DateFormatHandling.IsoDateFormat;

		internal const DateTimeZoneHandling DefaultDateTimeZoneHandling = DateTimeZoneHandling.RoundtripKind;

		internal const DateParseHandling DefaultDateParseHandling = DateParseHandling.DateTime;

		internal const FloatParseHandling DefaultFloatParseHandling = FloatParseHandling.Double;

		internal const FloatFormatHandling DefaultFloatFormatHandling = FloatFormatHandling.String;

		internal const StringEscapeHandling DefaultStringEscapeHandling = StringEscapeHandling.Default;

		internal const FormatterAssemblyStyle DefaultFormatterAssemblyStyle = FormatterAssemblyStyle.Simple;

		internal static readonly CultureInfo DefaultCulture;

		internal const bool DefaultCheckAdditionalContent = false;

		internal const string DefaultDateFormatString = "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK";

		internal Formatting? _formatting;

		internal DateFormatHandling? _dateFormatHandling;

		internal DateTimeZoneHandling? _dateTimeZoneHandling;

		internal DateParseHandling? _dateParseHandling;

		internal FloatFormatHandling? _floatFormatHandling;

		internal FloatParseHandling? _floatParseHandling;

		internal StringEscapeHandling? _stringEscapeHandling;

		internal CultureInfo _culture;

		internal bool? _checkAdditionalContent;

		internal int? _maxDepth;

		internal bool _maxDepthSet;

		internal string _dateFormatString;

		internal bool _dateFormatStringSet;

		internal FormatterAssemblyStyle? _typeNameAssemblyFormat;

		internal DefaultValueHandling? _defaultValueHandling;

		internal PreserveReferencesHandling? _preserveReferencesHandling;

		internal NullValueHandling? _nullValueHandling;

		internal ObjectCreationHandling? _objectCreationHandling;

		internal MissingMemberHandling? _missingMemberHandling;

		internal ReferenceLoopHandling? _referenceLoopHandling;

		internal StreamingContext? _context;

		internal ConstructorHandling? _constructorHandling;

		internal TypeNameHandling? _typeNameHandling;

		internal MetadataPropertyHandling? _metadataPropertyHandling;

		public ReferenceLoopHandling ReferenceLoopHandling
		{
			get
			{
				return _referenceLoopHandling ?? ReferenceLoopHandling.Error;
			}
			set
			{
				_referenceLoopHandling = value;
			}
		}

		public MissingMemberHandling MissingMemberHandling
		{
			get
			{
				return _missingMemberHandling ?? MissingMemberHandling.Ignore;
			}
			set
			{
				_missingMemberHandling = value;
			}
		}

		public ObjectCreationHandling ObjectCreationHandling
		{
			get
			{
				return _objectCreationHandling ?? ObjectCreationHandling.Auto;
			}
			set
			{
				_objectCreationHandling = value;
			}
		}

		public NullValueHandling NullValueHandling
		{
			get
			{
				return _nullValueHandling ?? NullValueHandling.Include;
			}
			set
			{
				_nullValueHandling = value;
			}
		}

		public DefaultValueHandling DefaultValueHandling
		{
			get
			{
				return _defaultValueHandling ?? DefaultValueHandling.Include;
			}
			set
			{
				_defaultValueHandling = value;
			}
		}

		public IList<JsonConverter> Converters { get; set; }

		public PreserveReferencesHandling PreserveReferencesHandling
		{
			get
			{
				return _preserveReferencesHandling ?? PreserveReferencesHandling.None;
			}
			set
			{
				_preserveReferencesHandling = value;
			}
		}

		public TypeNameHandling TypeNameHandling
		{
			get
			{
				return _typeNameHandling ?? TypeNameHandling.None;
			}
			set
			{
				_typeNameHandling = value;
			}
		}

		public MetadataPropertyHandling MetadataPropertyHandling
		{
			get
			{
				return _metadataPropertyHandling ?? MetadataPropertyHandling.Default;
			}
			set
			{
				_metadataPropertyHandling = value;
			}
		}

		public FormatterAssemblyStyle TypeNameAssemblyFormat
		{
			get
			{
				return _typeNameAssemblyFormat ?? FormatterAssemblyStyle.Simple;
			}
			set
			{
				_typeNameAssemblyFormat = value;
			}
		}

		public ConstructorHandling ConstructorHandling
		{
			get
			{
				return _constructorHandling ?? ConstructorHandling.Default;
			}
			set
			{
				_constructorHandling = value;
			}
		}

		public IContractResolver ContractResolver { get; set; }

		public IEqualityComparer EqualityComparer { get; set; }

		[Obsolete("ReferenceResolver property is obsolete. Use the ReferenceResolverProvider property to set the IReferenceResolver: settings.ReferenceResolverProvider = () => resolver")]
		public IReferenceResolver ReferenceResolver
		{
			get
			{
				if (ReferenceResolverProvider == null)
				{
					return null;
				}
				return ReferenceResolverProvider();
			}
			set
			{
				ReferenceResolverProvider = ((value != null) ? ((Func<IReferenceResolver>)(() => value)) : null);
			}
		}

		public Func<IReferenceResolver> ReferenceResolverProvider { get; set; }

		public ITraceWriter TraceWriter { get; set; }

		public SerializationBinder Binder { get; set; }

		public EventHandler<Valve.Newtonsoft.Json.Serialization.ErrorEventArgs> Error { get; set; }

		public StreamingContext Context
		{
			get
			{
				return _context ?? DefaultContext;
			}
			set
			{
				_context = value;
			}
		}

		public string DateFormatString
		{
			get
			{
				return _dateFormatString ?? "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK";
			}
			set
			{
				_dateFormatString = value;
				_dateFormatStringSet = true;
			}
		}

		public int? MaxDepth
		{
			get
			{
				return _maxDepth;
			}
			set
			{
				if (value <= 0)
				{
					throw new ArgumentException("Value must be positive.", "value");
				}
				_maxDepth = value;
				_maxDepthSet = true;
			}
		}

		public Formatting Formatting
		{
			get
			{
				return _formatting ?? Formatting.None;
			}
			set
			{
				_formatting = value;
			}
		}

		public DateFormatHandling DateFormatHandling
		{
			get
			{
				return _dateFormatHandling ?? DateFormatHandling.IsoDateFormat;
			}
			set
			{
				_dateFormatHandling = value;
			}
		}

		public DateTimeZoneHandling DateTimeZoneHandling
		{
			get
			{
				return _dateTimeZoneHandling ?? DateTimeZoneHandling.RoundtripKind;
			}
			set
			{
				_dateTimeZoneHandling = value;
			}
		}

		public DateParseHandling DateParseHandling
		{
			get
			{
				return _dateParseHandling ?? DateParseHandling.DateTime;
			}
			set
			{
				_dateParseHandling = value;
			}
		}

		public FloatFormatHandling FloatFormatHandling
		{
			get
			{
				return _floatFormatHandling ?? FloatFormatHandling.String;
			}
			set
			{
				_floatFormatHandling = value;
			}
		}

		public FloatParseHandling FloatParseHandling
		{
			get
			{
				return _floatParseHandling ?? FloatParseHandling.Double;
			}
			set
			{
				_floatParseHandling = value;
			}
		}

		public StringEscapeHandling StringEscapeHandling
		{
			get
			{
				return _stringEscapeHandling ?? StringEscapeHandling.Default;
			}
			set
			{
				_stringEscapeHandling = value;
			}
		}

		public CultureInfo Culture
		{
			get
			{
				return _culture ?? DefaultCulture;
			}
			set
			{
				_culture = value;
			}
		}

		public bool CheckAdditionalContent
		{
			get
			{
				return _checkAdditionalContent ?? false;
			}
			set
			{
				_checkAdditionalContent = value;
			}
		}

		static JsonSerializerSettings()
		{
			DefaultContext = default(StreamingContext);
			DefaultCulture = CultureInfo.InvariantCulture;
		}

		public JsonSerializerSettings()
		{
			Converters = new List<JsonConverter>();
		}
	}
	internal enum ReadType
	{
		Read,
		ReadAsInt32,
		ReadAsBytes,
		ReadAsString,
		ReadAsDecimal,
		ReadAsDateTime,
		ReadAsDateTimeOffset,
		ReadAsDouble,
		ReadAsBoolean
	}
	public class JsonTextReader : JsonReader, IJsonLineInfo
	{
		private const char UnicodeReplacementChar = '\ufffd';

		private const int MaximumJavascriptIntegerCharacterLength = 380;

		private readonly TextReader _reader;

		private char[] _chars;

		private int _charsUsed;

		private int _charPos;

		private int _lineStartPos;

		private int _lineNumber;

		private bool _isEndOfFile;

		private StringBuffer _stringBuffer;

		private StringReference _stringReference;

		private IArrayPool<char> _arrayPool;

		internal PropertyNameTable NameTable;

		public IArrayPool<char> ArrayPool
		{
			get
			{
				return _arrayPool;
			}
			set
			{
				if (value == null)
				{
					throw new ArgumentNullException("value");
				}
				_arrayPool = value;
			}
		}

		public int LineNumber
		{
			get
			{
				if (base.CurrentState == State.Start && LinePosition == 0 && TokenType != JsonToken.Comment)
				{
					return 0;
				}
				return _lineNumber;
			}
		}

		public int LinePosition => _charPos - _lineStartPos;

		public JsonTextReader(TextReader reader)
		{
			if (reader == null)
			{
				throw new ArgumentNullException("reader");
			}
			_reader = reader;
			_lineNumber = 1;
		}

		private void EnsureBufferNotEmpty()
		{
			if (_stringBuffer.IsEmpty)
			{
				_stringBuffer = new StringBuffer(_arrayPool, 1024);
			}
		}

		private void OnNewLine(int pos)
		{
			_lineNumber++;
			_lineStartPos = pos;
		}

		private void ParseString(char quote, ReadType readType)
		{
			_charPos++;
			ShiftBufferIfNeeded();
			ReadStringIntoBuffer(quote);
			SetPostValueState(updateIndex: true);
			switch (readType)
			{
			case ReadType.ReadAsBytes:
			{
				Guid g;
				byte[] value2 = ((_stringReference.Length == 0) ? new byte[0] : ((_stringReference.Length != 36 || !ConvertUtils.TryConvertGuid(_stringReference.ToString(), out g)) ? Convert.FromBase64CharArray(_stringReference.Chars, _stringReference.StartIndex, _stringReference.Length) : g.ToByteArray()));
				SetToken(JsonToken.Bytes, value2, updateIndex: false);
				return;
			}
			case ReadType.ReadAsString:
			{
				string value = _stringReference.ToString();
				SetToken(JsonToken.String, value, updateIndex: false);
				_quoteChar = quote;
				return;
			}
			case ReadType.ReadAsInt32:
			case ReadType.ReadAsDecimal:
			case ReadType.ReadAsBoolean:
				return;
			}
			if (_dateParseHandling != 0)
			{
				DateTimeOffset dt2;
				if (readType switch
				{
					ReadType.ReadAsDateTime => 1, 
					ReadType.ReadAsDateTimeOffset => 2, 
					_ => (int)_dateParseHandling, 
				} == 1)
				{
					if (DateTimeUtils.TryParseDateTime(_stringReference, base.DateTimeZoneHandling, base.DateFormatString, base.Culture, out var dt))
					{
						SetToken(JsonToken.Date, dt, updateIndex: false);
						return;
					}
				}
				else if (DateTimeUtils.TryParseDateTimeOffset(_stringReference, base.DateFormatString, base.Culture, out dt2))
				{
					SetToken(JsonToken.Date, dt2, updateIndex: false);
					return;
				}
			}
			SetToken(JsonToken.String, _stringReference.ToString(), updateIndex: false);
			_quoteChar = quote;
		}

		private static void BlockCopyChars(char[] src, int srcOffset, char[] dst, int dstOffset, int count)
		{
			Buffer.BlockCopy(src, srcOffset * 2, dst, dstOffset * 2, count * 2);
		}

		private void ShiftBufferIfNeeded()
		{
			int num = _chars.Length;
			if ((double)(num - _charPos) <= (double)num * 0.1)
			{
				int num2 = _charsUsed - _charPos;
				if (num2 > 0)
				{
					BlockCopyChars(_chars, _charPos, _chars, 0, num2);
				}
				_lineStartPos -= _charPos;
				_charPos = 0;
				_charsUsed = num2;
				_chars[_charsUsed] = '\0';
			}
		}

		private int ReadData(bool append)
		{
			return ReadData(append, 0);
		}

		private int ReadData(bool append, int charsRequired)
		{
			if (_isEndOfFile)
			{
				return 0;
			}
			if (_charsUsed + charsRequired >= _chars.Length - 1)
			{
				if (append)
				{
					int minSize = Math.Max(_chars.Length * 2, _charsUsed + charsRequired + 1);
					char[] array = BufferUtils.RentBuffer(_arrayPool, minSize);
					BlockCopyChars(_chars, 0, array, 0, _chars.Length);
					BufferUtils.ReturnBuffer(_arrayPool, _chars);
					_chars = array;
				}
				else
				{
					int num = _charsUsed - _charPos;
					if (num + charsRequired + 1 >= _chars.Length)
					{
						char[] array2 = BufferUtils.RentBuffer(_arrayPool, num + charsRequired + 1);
						if (num > 0)
						{
							BlockCopyChars(_chars, _charPos, array2, 0, num);
						}
						BufferUtils.ReturnBuffer(_arrayPool, _chars);
						_chars = array2;
					}
					else if (num > 0)
					{
						BlockCopyChars(_chars, _charPos, _chars, 0, num);
					}
					_lineStartPos -= _charPos;
					_charPos = 0;
					_charsUsed = num;
				}
			}
			int count = _chars.Length - _charsUsed - 1;
			int num2 = _reader.Read(_chars, _charsUsed, count);
			_charsUsed += num2;
			if (num2 == 0)
			{
				_isEndOfFile = true;
			}
			_chars[_charsUsed] = '\0';
			return num2;
		}

		private bool EnsureChars(int relativePosition, bool append)
		{
			if (_charPos + relativePosition >= _charsUsed)
			{
				return ReadChars(relativePosition, append);
			}
			return true;
		}

		private bool ReadChars(int relativePosition, bool append)
		{
			if (_isEndOfFile)
			{
				return false;
			}
			int num = _charPos + relativePosition - _charsUsed + 1;
			int num2 = 0;
			do
			{
				int num3 = ReadData(append, num - num2);
				if (num3 == 0)
				{
					break;
				}
				num2 += num3;
			}
			while (num2 < num);
			if (num2 < num)
			{
				return false;
			}
			return true;
		}

		public override bool Read()
		{
			EnsureBuffer();
			do
			{
				switch (_currentState)
				{
				case State.Start:
				case State.Property:
				case State.ArrayStart:
				case State.Array:
				case State.ConstructorStart:
				case State.Constructor:
					return ParseValue();
				case State.ObjectStart:
				case State.Object:
					return ParseObject();
				case State.PostValue:
					break;
				case State.Finished:
					if (EnsureChars(0, append: false))
					{
						EatWhitespace(oneOrMore: false);
						if (_isEndOfFile)
						{
							SetToken(JsonToken.None);
							return false;
						}
						if (_chars[_charPos] == '/')
						{
							ParseComment(setToken: true);
							return true;
						}
						throw JsonReaderException.Create(this, "Additional text encountered after finished reading JSON content: {0}.".FormatWith(CultureInfo.InvariantCulture, _chars[_charPos]));
					}
					SetToken(JsonToken.None);
					return false;
				default:
					throw JsonReaderException.Create(this, "Unexpected state: {0}.".FormatWith(CultureInfo.InvariantCulture, base.CurrentState));
				}
			}
			while (!ParsePostValue());
			return true;
		}

		public override int? ReadAsInt32()
		{
			return (int?)ReadNumberValue(ReadType.ReadAsInt32);
		}

		public override DateTime? ReadAsDateTime()
		{
			return (DateTime?)ReadStringValue(ReadType.ReadAsDateTime);
		}

		public override string ReadAsString()
		{
			return (string)ReadStringValue(ReadType.ReadAsString);
		}

		public override byte[] ReadAsBytes()
		{
			EnsureBuffer();
			bool flag = false;
			switch (_currentState)
			{
			case State.Start:
			case State.Property:
			case State.ArrayStart:
			case State.Array:
			case State.PostValue:
			case State.ConstructorStart:
			case State.Constructor:
				while (true)
				{
					char c = _chars[_charPos];
					switch (c)
					{
					case '\0':
						if (ReadNullChar())
						{
							SetToken(JsonToken.None, null, updateIndex: false);
							return null;
						}
						break;
					case '"':
					case '\'':
					{
						ParseString(c, ReadType.ReadAsBytes);
						byte[] array = (byte[])Value;
						if (flag)
						{
							ReaderReadAndAssert();
							if (TokenType != JsonToken.EndObject)
							{
								throw JsonReaderException.Create(this, "Error reading bytes. Unexpected token: {0}.".FormatWith(CultureInfo.InvariantCulture, TokenType));
							}
							SetToken(JsonToken.Bytes, array, updateIndex: false);
						}
						return array;
					}
					case '{':
						_charPos++;
						SetToken(JsonToken.StartObject);
						ReadIntoWrappedTypeObject();
						flag = true;
						break;
					case '[':
						_charPos++;
						SetToken(JsonToken.StartArray);
						return ReadArrayIntoByteArray();
					case 'n':
						HandleNull();
						return null;
					case '/':
						ParseComment(setToken: false);
						break;
					case ',':
						ProcessValueComma();
						break;
					case ']':
						_charPos++;
						if (_currentState == State.Array || _currentState == State.ArrayStart || _currentState == State.PostValue)
						{
							SetToken(JsonToken.EndArray);
							return null;
						}
						throw CreateUnexpectedCharacterException(c);
					case '\r':
						ProcessCarriageReturn(append: false);
						break;
					case '\n':
						ProcessLineFeed();
						break;
					case '\t':
					case ' ':
						_charPos++;
						break;
					default:
						_charPos++;
						if (!char.IsWhiteSpace(c))
						{
							throw CreateUnexpectedCharacterException(c);
						}
						break;
					}
				}
			case State.Finished:
				ReadFinished();
				return null;
			default:
				throw JsonReaderException.Create(this, "Unexpected state: {0}.".FormatWith(CultureInfo.InvariantCulture, base.CurrentState));
			}
		}

		private object ReadStringValue(ReadType readType)
		{
			EnsureBuffer();
			switch (_currentState)
			{
			case State.Start:
			case State.Property:
			case State.ArrayStart:
			case State.Array:
			case State.PostValue:
			case State.ConstructorStart:
			case State.Constructor:
				while (true)
				{
					char c = _chars[_charPos];
					switch (c)
					{
					case '\0':
						if (ReadNullChar())
						{
							SetToken(JsonToken.None, null, updateIndex: false);
							return null;
						}
						break;
					case '"':
					case '\'':
						ParseString(c, readType);
						switch (readType)
						{
						case ReadType.ReadAsBytes:
							return Value;
						case ReadType.ReadAsString:
							return Value;
						case ReadType.ReadAsDateTime:
							if (Value is DateTime)
							{
								return (DateTime)Value;
							}
							return ReadDateTimeString((string)Value);
						case ReadType.ReadAsDateTimeOffset:
							if (Value is DateTimeOffset)
							{
								return (DateTimeOffset)Value;
							}
							return ReadDateTimeOffsetString((string)Value);
						default:
							throw new ArgumentOutOfRangeException("readType");
						}
					case '-':
						if (EnsureChars(1, append: true) && _chars[_charPos + 1] == 'I')
						{
							return ParseNumberNegativeInfinity(readType);
						}
						ParseNumber(readType);
						return Value;
					case '.':
					case '0':
					case '1':
					case '2':
					case '3':
					case '4':
					case '5':
					case '6':
					case '7':
					case '8':
					case '9':
						if (readType != ReadType.ReadAsString)
						{
							_charPos++;
							throw CreateUnexpectedCharacterException(c);
						}
						ParseNumber(ReadType.ReadAsString);
						return Value;
					case 'f':
					case 't':
					{
						if (readType != ReadType.ReadAsString)
						{
							_charPos++;
							throw CreateUnexpectedCharacterException(c);
						}
						string text = ((c == 't') ? JsonConvert.True : JsonConvert.False);
						if (!MatchValueWithTrailingSeparator(text))
						{
							throw CreateUnexpectedCharacterException(_chars[_charPos]);
						}
						SetToken(JsonToken.String, text);
						return text;
					}
					case 'I':
						return ParseNumberPositiveInfinity(readType);
					case 'N':
						return ParseNumberNaN(readType);
					case 'n':
						HandleNull();
						return null;
					case '/':
						ParseComment(setToken: false);
						break;
					case ',':
						ProcessValueComma();
						break;
					case ']':
						_charPos++;
						if (_currentState == State.Array || _currentState == State.ArrayStart || _currentState == State.PostValue)
						{
							SetToken(JsonToken.EndArray);
							return null;
						}
						throw CreateUnexpectedCharacterException(c);
					case '\r':
						ProcessCarriageReturn(append: false);
						break;
					case '\n':
						ProcessLineFeed();
						break;
					case '\t':
					case ' ':
						_charPos++;
						break;
					default:
						_charPos++;
						if (!char.IsWhiteSpace(c))
						{
							throw CreateUnexpectedCharacterException(c);
						}
						break;
					}
				}
			case State.Finished:
				ReadFinished();
				return null;
			default:
				throw JsonReaderException.Create(this, "Unexpected state: {0}.".FormatWith(CultureInfo.InvariantCulture, base.CurrentState));
			}
		}

		private JsonReaderException CreateUnexpectedCharacterException(char c)
		{
			return JsonReaderException.Create(this, "Unexpected character encountered while parsing value: {0}.".FormatWith(CultureInfo.InvariantCulture, c));
		}

		public override bool? ReadAsBoolean()
		{
			EnsureBuffer();
			switch (_currentState)
			{
			case State.Start:
			case State.Property:
			case State.ArrayStart:
			case State.Array:
			case State.PostValue:
			case State.ConstructorStart:
			case State.Constructor:
				while (true)
				{
					char c = _chars[_charPos];
					switch (c)
					{
					case '\0':
						if (ReadNullChar())
						{
							SetToken(JsonToken.None, null, updateIndex: false);
							return null;
						}
						break;
					case '"':
					case '\'':
						ParseString(c, ReadType.Read);
						return ReadBooleanString(_stringReference.ToString());
					case 'n':
						HandleNull();
						return null;
					case '-':
					case '.':
					case '0':
					case '1':
					case '2':
					case '3':
					case '4':
					case '5':
					case '6':
					case '7':
					case '8':
					case '9':
					{
						ParseNumber(ReadType.Read);
						bool flag2 = Convert.ToBoolean(Value, CultureInfo.InvariantCulture);
						SetToken(JsonToken.Boolean, flag2, updateIndex: false);
						return flag2;
					}
					case 'f':
					case 't':
					{
						bool flag = c == 't';
						string value = (flag ? JsonConvert.True : JsonConvert.False);
						if (!MatchValueWithTrailingSeparator(value))
						{
							throw CreateUnexpectedCharacterException(_chars[_charPos]);
						}
						SetToken(JsonToken.Boolean, flag);
						return flag;
					}
					case '/':
						ParseComment(setToken: false);
						break;
					case ',':
						ProcessValueComma();
						break;
					case ']':
						_charPos++;
						if (_currentState == State.Array || _currentState == State.ArrayStart || _currentState == State.PostValue)
						{
							SetToken(JsonToken.EndArray);
							return null;
						}
						throw CreateUnexpectedCharacterException(c);
					case '\r':
						ProcessCarriageReturn(append: false);
						break;
					case '\n':
						ProcessLineFeed();
						break;
					case '\t':
					case ' ':
						_charPos++;
						break;
					default:
						_charPos++;
						if (!char.IsWhiteSpace(c))
						{
							throw CreateUnexpectedCharacterException(c);
						}
						break;
					}
				}
			case State.Finished:
				ReadFinished();
				return null;
			default:
				throw JsonReaderException.Create(this, "Unexpected state: {0}.".FormatWith(CultureInfo.InvariantCulture, base.CurrentState));
			}
		}

		private void ProcessValueComma()
		{
			_charPos++;
			if (_currentState != State.PostValue)
			{
				SetToken(JsonToken.Undefined);
				throw CreateUnexpectedCharacterException(',');
			}
			SetStateBasedOnCurrent();
		}

		private object ReadNumberValue(ReadType readType)
		{
			EnsureBuffer();
			switch (_currentState)
			{
			case State.Start:
			case State.Property:
			case State.ArrayStart:
			case State.Array:
			case State.PostValue:
			case State.ConstructorStart:
			case State.Constructor:
				while (true)
				{
					char c = _chars[_charPos];
					switch (c)
					{
					case '\0':
						if (ReadNullChar())
						{
							SetToken(JsonToken.None, null, updateIndex: false);
							return null;
						}
						break;
					case '"':
					case '\'':
						ParseString(c, readType);
						return readType switch
						{
							ReadType.ReadAsInt32 => ReadInt32String(_stringReference.ToString()), 
							ReadType.ReadAsDecimal => ReadDecimalString(_stringReference.ToString()), 
							ReadType.ReadAsDouble => ReadDoubleString(_stringReference.ToString()), 
							_ => throw new ArgumentOutOfRangeException("readType"), 
						};
					case 'n':
						HandleNull();
						return null;
					case 'N':
						return ParseNumberNaN(readType);
					case 'I':
						return ParseNumberPositiveInfinity(readType);
					case '-':
						if (EnsureChars(1, append: true) && _chars[_charPos + 1] == 'I')
						{
							return ParseNumberNegativeInfinity(readType);
						}
						ParseNumber(readType);
						return Value;
					case '.':
					case '0':
					case '1':
					case '2':
					case '3':
					case '4':
					case '5':
					case '6':
					case '7':
					case '8':
					case '9':
						ParseNumber(readType);
						return Value;
					case '/':
						ParseComment(setToken: false);
						break;
					case ',':
						ProcessValueComma();
						break;
					case ']':
						_charPos++;
						if (_currentState == State.Array || _currentState == State.ArrayStart || _currentState == State.PostValue)
						{
							SetToken(JsonToken.EndArray);
							return null;
						}
						throw CreateUnexpectedCharacterException(c);
					case '\r':
						ProcessCarriageReturn(append: false);
						break;
					case '\n':
						ProcessLineFeed();
						break;
					case '\t':
					case ' ':
						_charPos++;
						break;
					default:
						_charPos++;
						if (!char.IsWhiteSpace(c))
						{
							throw CreateUnexpectedCharacterException(c);
						}
						break;
					}
				}
			case State.Finished:
				ReadFinished();
				return null;
			default:
				throw JsonReaderException.Create(this, "Unexpected state: {0}.".FormatWith(CultureInfo.InvariantCulture, base.CurrentState));
			}
		}

		public override DateTimeOffset? ReadAsDateTimeOffset()
		{
			return (DateTimeOffset?)ReadStringValue(ReadType.ReadAsDateTimeOffset);
		}

		public override decimal? ReadAsDecimal()
		{
			return (decimal?)ReadNumberValue(ReadType.ReadAsDecimal);
		}

		public override double? ReadAsDouble()
		{
			return (double?)ReadNumberValue(ReadType.ReadAsDouble);
		}

		private void HandleNull()
		{
			if (EnsureChars(1, append: true))
			{
				if (_chars[_charPos + 1] == 'u')
				{
					ParseNull();
					return;
				}
				_charPos += 2;
				throw CreateUnexpectedCharacterException(_chars[_charPos - 1]);
			}
			_charPos = 

patchers/VRPatcher.dll

Decompiled 3 days ago
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using System.Security.Cryptography;
using System.Text;
using AssetsTools.NET;
using AssetsTools.NET.Extra;
using Mono.Cecil;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("VRPatcher")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("VRPatcher")]
[assembly: AssemblyCopyright("Copyright ©  2023")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("423f0911-ccf0-4dbd-b8d3-423bf7be559c")]
[assembly: AssemblyMetadata("AI_Assisted_Creation", "This assembly was partially created with the assistance of generative AI (code, refactoring, tests and documentation), directed, reviewed and tested in game by the maintainer.")]
[assembly: AssemblyMetadata("AI_Model_Vendor", "Anthropic")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyFileVersion("2.0.3.0")]
[assembly: AssemblyInformationalVersion("2.0.3")]
[assembly: AssemblyVersion("2.0.3.0")]
namespace VRTRAKILL
{
	internal static class BuildVersion
	{
		public const string Value = "2.0.3";
	}
}
namespace VRPatcher
{
	public class Patcher
	{
		public class GameFileSyncResult
		{
			public int Copied;

			public int Unchanged;

			public int Failed;

			public bool SubsystemsChanged;
		}

		public static IEnumerable<string> TargetDLLs { get; } = new string[0];

		public static void Patch(AssemblyDefinition assembly)
		{
		}

		public static void Finish()
		{
		}

		public static void Initialize()
		{
			string location = Assembly.GetExecutingAssembly().Location;
			string fileName = Process.GetCurrentProcess().MainModule.FileName;
			string directoryName = Path.GetDirectoryName(location);
			string directoryName2 = Path.GetDirectoryName(fileName);
			string fileNameWithoutExtension = Path.GetFileNameWithoutExtension(fileName);
			string text = Path.Combine(directoryName2, fileNameWithoutExtension + "_Data/");
			string gameManagersPath = Path.Combine(text, "globalgamemanagers");
			string classDataPath = Path.Combine(directoryName, "classdata.tpk");
			string payloadDataPath = Path.Combine(directoryName, "GameData", fileNameWithoutExtension + "_Data");
			Console.WriteLine("Begin epic conversion from ULTRAKILL to VRTRAKILL...");
			InstallGameFiles(payloadDataPath, text);
			PatchGameManagers(gameManagersPath, classDataPath);
		}

		private static void InstallGameFiles(string PayloadDataPath, string DataPath)
		{
			if (!Directory.Exists(PayloadDataPath))
			{
				Console.WriteLine("No game files next to the patcher ('" + PayloadDataPath + "'); the game folder is used as installed.");
				return;
			}
			GameFileSyncResult gameFileSyncResult = SyncGameFiles(PayloadDataPath, DataPath);
			Console.WriteLine($"Game files: {gameFileSyncResult.Copied} copied, {gameFileSyncResult.Unchanged} already up to date, {gameFileSyncResult.Failed} failed.");
			if (gameFileSyncResult.Failed > 0)
			{
				Console.WriteLine("Some game files could not be copied. Close other programs that use the ULTRAKILL folder, then start the game again.");
			}
			if (gameFileSyncResult.SubsystemsChanged)
			{
				bool? flag = HasUnityScannedSubsystems(DataPath);
				if (flag == true)
				{
					Console.WriteLine("RESTART NEEDED: Unity read UnitySubsystems before the VR files were copied. VR will not start this time. Close the game and start it again.");
				}
				else if (flag == false)
				{
					Console.WriteLine("The VR files were copied before Unity read them. No restart is needed.");
				}
				else
				{
					Console.WriteLine("Could not read Player.log to check the start-up order. If VR does not start this time, close the game and start it again.");
				}
			}
		}

		public static GameFileSyncResult SyncGameFiles(string PayloadDataPath, string DataPath)
		{
			GameFileSyncResult gameFileSyncResult = new GameFileSyncResult();
			string text = Path.GetFullPath(PayloadDataPath).TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
			char directorySeparatorChar = Path.DirectorySeparatorChar;
			string text2 = text + directorySeparatorChar;
			foreach (string item in Directory.GetFiles(text2, "*", SearchOption.AllDirectories).OrderBy<string, string>((string p) => p, StringComparer.Ordinal))
			{
				string text3 = item.Substring(text2.Length);
				string text4 = Path.Combine(DataPath, text3);
				try
				{
					string text5 = ComputeSha256(item);
					if (File.Exists(text4) && new FileInfo(text4).Length == new FileInfo(item).Length && string.Equals(ComputeSha256(text4), text5, StringComparison.OrdinalIgnoreCase))
					{
						gameFileSyncResult.Unchanged++;
						continue;
					}
					Console.WriteLine(File.Exists(text4) ? ("Updating game file '" + text3 + "'.") : ("Adding game file '" + text3 + "'."));
					CopyFileAtomic(item, text4, text5);
					gameFileSyncResult.Copied++;
					if (text3.StartsWith("UnitySubsystems", StringComparison.OrdinalIgnoreCase))
					{
						gameFileSyncResult.SubsystemsChanged = true;
					}
				}
				catch (Exception ex)
				{
					gameFileSyncResult.Failed++;
					Console.WriteLine("Could not copy game file '" + text3 + "': " + ex.Message);
				}
			}
			return gameFileSyncResult;
		}

		private static void CopyFileAtomic(string source, string target, string sourceHash)
		{
			Directory.CreateDirectory(Path.GetDirectoryName(target));
			string text = target + ".vrtrakill.tmp";
			try
			{
				File.Copy(source, text, overwrite: true);
				if (!string.Equals(ComputeSha256(text), sourceHash, StringComparison.OrdinalIgnoreCase))
				{
					throw new IOException("The copied file does not match the shipped file.");
				}
				if (File.Exists(target))
				{
					File.Replace(text, target, null);
				}
				else
				{
					File.Move(text, target);
				}
			}
			finally
			{
				if (File.Exists(text))
				{
					File.Delete(text);
				}
			}
		}

		private static bool? HasUnityScannedSubsystems(string DataPath)
		{
			try
			{
				string text = null;
				string[] commandLineArgs = Environment.GetCommandLineArgs();
				for (int i = 0; i < commandLineArgs.Length - 1; i++)
				{
					if (string.Equals(commandLineArgs[i], "-logFile", StringComparison.OrdinalIgnoreCase))
					{
						text = commandLineArgs[i + 1];
					}
				}
				if (text == null)
				{
					string[] array = File.ReadAllLines(Path.Combine(DataPath, "app.info"));
					text = Path.Combine(Path.Combine(Environment.GetEnvironmentVariable("USERPROFILE"), "AppData", "LocalLow"), array[0].Trim(), array[1].Trim(), "Player.log");
				}
				if (text == "-" || !File.Exists(text))
				{
					return null;
				}
				using FileStream stream = new FileStream(text, FileMode.Open, FileAccess.Read, FileShare.ReadWrite | FileShare.Delete);
				using StreamReader streamReader = new StreamReader(stream);
				return streamReader.ReadToEnd().Contains("[Subsystems] Discovering subsystems");
			}
			catch (Exception)
			{
				return null;
			}
		}

		public static void PatchGameManagers(string GameManagersPath, string ClassDataPath)
		{
			string text = PrepareCurrentGameManagers(GameManagersPath);
			if (text == null)
			{
				Console.WriteLine("The current globalgamemanagers file is already patched.");
				return;
			}
			PatchVR(text, GameManagersPath, ClassDataPath);
			File.WriteAllText(GetPatchStatePath(GameManagersPath), ComputeSha256(GameManagersPath), Encoding.UTF8);
			Console.WriteLine("Epic conversion from ULTRAKILL to VRTRAKILL is complete.");
		}

		private static string PrepareCurrentGameManagers(string GameManagersPath)
		{
			string patchStatePath = GetPatchStatePath(GameManagersPath);
			string a = ComputeSha256(GameManagersPath);
			if (File.Exists(patchStatePath))
			{
				string b = File.ReadAllText(patchStatePath, Encoding.UTF8).Trim();
				if (string.Equals(a, b, StringComparison.OrdinalIgnoreCase))
				{
					return null;
				}
			}
			Console.WriteLine("Backing up the current file '" + GameManagersPath + "'...");
			string text = GameManagersPath + ".vrtrakill.bak";
			File.Copy(GameManagersPath, text, overwrite: true);
			Console.WriteLine("Created a current-version backup in '" + text + "'.");
			return text;
		}

		private static string GetPatchStatePath(string gameManagersPath)
		{
			return gameManagersPath + ".vrtrakill.sha256";
		}

		private static string ComputeSha256(string path)
		{
			using SHA256 sHA = SHA256.Create();
			using FileStream inputStream = File.OpenRead(path);
			byte[] array = sHA.ComputeHash(inputStream);
			StringBuilder stringBuilder = new StringBuilder(array.Length * 2);
			byte[] array2 = array;
			foreach (byte b in array2)
			{
				stringBuilder.Append(b.ToString("x2"));
			}
			return stringBuilder.ToString();
		}

		private static void PatchVR(string GameManagersBackupPath, string GameManagersPath, string ClassDataPath)
		{
			Console.WriteLine("Using ClassData file from '" + ClassDataPath + "'");
			string text = GameManagersPath + ".vrtrakill.tmp";
			try
			{
				WritePatchedGameManagers(GameManagersBackupPath, text, ClassDataPath);
				VerifyPatchedGameManagers(text, ClassDataPath);
				File.Replace(text, GameManagersPath, null);
			}
			finally
			{
				if (File.Exists(text))
				{
					File.Delete(text);
				}
			}
		}

		private static void WritePatchedGameManagers(string sourcePath, string outputPath, string classDataPath)
		{
			//IL_0000: Unknown result type (might be due to invalid IL or missing references)
			//IL_0006: Expected O, but got Unknown
			//IL_00c0: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c7: Expected O, but got Unknown
			AssetsManager val = new AssetsManager();
			try
			{
				val.LoadClassPackage(classDataPath);
				AssetsFileInstance val2 = val.LoadAssetsFile(sourcePath, false);
				AssetsFile file = val2.file;
				if (val.LoadClassDatabaseFromPackage(file.Metadata.UnityVersion) == null)
				{
					throw new InvalidDataException("No class database is available for Unity " + file.Metadata.UnityVersion + ".");
				}
				AssetFileInfo buildSettings = GetBuildSettings(file);
				AssetTypeValueField baseField = val.GetBaseField(val2, buildSettings, (AssetReadFlags)0);
				AssetTypeValueField obj = baseField["enabledVRDevices"]["Array"];
				if (obj.IsDummy)
				{
					throw new InvalidDataException("The enabledVRDevices array was not found in BuildSettings.");
				}
				AssetTypeValueField val3 = ValueBuilder.DefaultValueFieldFromArrayTemplate(obj);
				val3.AsString = "OpenVR";
				obj.Children = new List<AssetTypeValueField> { val3 };
				buildSettings.SetNewData(baseField);
				AssetsFileWriter val4 = new AssetsFileWriter(File.Create(outputPath));
				try
				{
					file.Write(val4, 0L);
				}
				finally
				{
					((IDisposable)val4)?.Dispose();
				}
			}
			finally
			{
				val.UnloadAll(true);
			}
		}

		private static void VerifyPatchedGameManagers(string path, string classDataPath)
		{
			//IL_0000: Unknown result type (might be due to invalid IL or missing references)
			//IL_0006: Expected O, but got Unknown
			AssetsManager val = new AssetsManager();
			try
			{
				val.LoadClassPackage(classDataPath);
				AssetsFileInstance val2 = val.LoadAssetsFile(path, false);
				if (val.LoadClassDatabaseFromPackage(val2.file.Metadata.UnityVersion) == null)
				{
					throw new InvalidDataException("No class database is available for Unity " + val2.file.Metadata.UnityVersion + ".");
				}
				AssetTypeValueField val3 = val.GetBaseField(val2, GetBuildSettings(val2.file), (AssetReadFlags)0)["enabledVRDevices"]["Array"];
				if (val3.IsDummy || val3.Children.Count != 1 || !(val3.Children[0].AsString == "OpenVR"))
				{
					throw new InvalidDataException("The generated globalgamemanagers file failed VR validation.");
				}
			}
			finally
			{
				val.UnloadAll(true);
			}
		}

		private static AssetFileInfo GetBuildSettings(AssetsFile file)
		{
			List<AssetFileInfo> assetsOfType = file.GetAssetsOfType((AssetClassID)141);
			if (assetsOfType.Count != 1)
			{
				throw new InvalidDataException($"Expected one BuildSettings asset, found {assetsOfType.Count}.");
			}
			return assetsOfType.Single();
		}
	}
}

plugins/Newtonsoft.Json.dll

Decompiled 3 days ago
using System;
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Data;
using System.Data.SqlTypes;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Dynamic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Numerics;
using System.Reflection;
using System.Reflection.Emit;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
using System.Xml;
using System.Xml.Linq;
using Microsoft.CodeAnalysis;
using Newtonsoft.Json.Bson;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Linq.JsonPath;
using Newtonsoft.Json.Schema;
using Newtonsoft.Json.Serialization;
using Newtonsoft.Json.Utilities;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AllowPartiallyTrustedCallers]
[assembly: InternalsVisibleTo("Newtonsoft.Json.Schema, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f561df277c6c0b497d629032b410cdcf286e537c054724f7ffa0164345f62b3e642029d7a80cc351918955328c4adc8a048823ef90b0cf38ea7db0d729caf2b633c3babe08b0310198c1081995c19029bc675193744eab9d7345b8a67258ec17d112cebdbbb2a281487dceeafb9d83aa930f32103fbe1d2911425bc5744002c7")]
[assembly: InternalsVisibleTo("Newtonsoft.Json.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f561df277c6c0b497d629032b410cdcf286e537c054724f7ffa0164345f62b3e642029d7a80cc351918955328c4adc8a048823ef90b0cf38ea7db0d729caf2b633c3babe08b0310198c1081995c19029bc675193744eab9d7345b8a67258ec17d112cebdbbb2a281487dceeafb9d83aa930f32103fbe1d2911425bc5744002c7")]
[assembly: InternalsVisibleTo("Newtonsoft.Json.Dynamic, PublicKey=0024000004800000940000000602000000240000525341310004000001000100cbd8d53b9d7de30f1f1278f636ec462cf9c254991291e66ebb157a885638a517887633b898ccbcf0d5c5ff7be85a6abe9e765d0ac7cd33c68dac67e7e64530e8222101109f154ab14a941c490ac155cd1d4fcba0fabb49016b4ef28593b015cab5937da31172f03f67d09edda404b88a60023f062ae71d0b2e4438b74cc11dc9")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("9ca358aa-317b-4925-8ada-4a29e943a363")]
[assembly: CLSCompliant(true)]
[assembly: TargetFramework(".NETFramework,Version=v4.5", FrameworkDisplayName = ".NET Framework 4.5")]
[assembly: AssemblyCompany("Newtonsoft")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyCopyright("Copyright © James Newton-King 2008")]
[assembly: AssemblyDescription("Json.NET is a popular high-performance JSON framework for .NET")]
[assembly: AssemblyFileVersion("13.0.3.27908")]
[assembly: AssemblyInformationalVersion("13.0.3+0a2e291c0d9c0c7675d445703e51750363a549ef")]
[assembly: AssemblyProduct("Json.NET")]
[assembly: AssemblyTitle("Json.NET .NET 4.5")]
[assembly: AssemblyMetadata("RepositoryUrl", "https://github.com/JamesNK/Newtonsoft.Json")]
[assembly: NeutralResourcesLanguage("en-US")]
[assembly: AssemblyVersion("13.0.0.0")]
namespace Microsoft.CodeAnalysis
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	internal sealed class EmbeddedAttribute : Attribute
	{
	}
}
namespace System.Runtime.CompilerServices
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	internal sealed class IsReadOnlyAttribute : Attribute
	{
	}
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)]
	internal sealed class NullableAttribute : Attribute
	{
		public readonly byte[] NullableFlags;

		public NullableAttribute(byte P_0)
		{
			NullableFlags = new byte[1] { P_0 };
		}

		public NullableAttribute(byte[] P_0)
		{
			NullableFlags = P_0;
		}
	}
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)]
	internal sealed class NullableContextAttribute : Attribute
	{
		public readonly byte Flag;

		public NullableContextAttribute(byte P_0)
		{
			Flag = P_0;
		}
	}
}
namespace System.Diagnostics.CodeAnalysis
{
	[AttributeUsage(AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple = true)]
	internal sealed class NotNullAttribute : Attribute
	{
	}
	[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false)]
	internal sealed class NotNullWhenAttribute : Attribute
	{
		public bool ReturnValue { get; }

		public NotNullWhenAttribute(bool returnValue)
		{
			ReturnValue = returnValue;
		}
	}
	[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue, Inherited = false)]
	internal sealed class MaybeNullAttribute : Attribute
	{
	}
	[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, Inherited = false)]
	internal sealed class AllowNullAttribute : Attribute
	{
	}
	[AttributeUsage(AttributeTargets.Parameter, Inherited = false)]
	internal class DoesNotReturnIfAttribute : Attribute
	{
		public bool ParameterValue { get; }

		public DoesNotReturnIfAttribute(bool parameterValue)
		{
			ParameterValue = parameterValue;
		}
	}
}
namespace Newtonsoft.Json
{
	public enum ConstructorHandling
	{
		Default,
		AllowNonPublicDefaultConstructor
	}
	public enum DateFormatHandling
	{
		IsoDateFormat,
		MicrosoftDateFormat
	}
	public enum DateParseHandling
	{
		None,
		DateTime,
		DateTimeOffset
	}
	public enum DateTimeZoneHandling
	{
		Local,
		Utc,
		Unspecified,
		RoundtripKind
	}
	public class DefaultJsonNameTable : JsonNameTable
	{
		private class Entry
		{
			internal readonly string Value;

			internal readonly int HashCode;

			internal Entry Next;

			internal Entry(string value, int hashCode, Entry next)
			{
				Value = value;
				HashCode = hashCode;
				Next = next;
			}
		}

		private static readonly int HashCodeRandomizer;

		private int _count;

		private Entry[] _entries;

		private int _mask = 31;

		static DefaultJsonNameTable()
		{
			HashCodeRandomizer = Environment.TickCount;
		}

		public DefaultJsonNameTable()
		{
			_entries = new Entry[_mask + 1];
		}

		public override string? Get(char[] key, int start, int length)
		{
			if (length == 0)
			{
				return string.Empty;
			}
			int num = length + HashCodeRandomizer;
			num += (num << 7) ^ key[start];
			int num2 = start + length;
			for (int i = start + 1; i < num2; i++)
			{
				num += (num << 7) ^ key[i];
			}
			num -= num >> 17;
			num -= num >> 11;
			num -= num >> 5;
			int num3 = Volatile.Read(ref _mask);
			int num4 = num & num3;
			for (Entry entry = _entries[num4]; entry != null; entry = entry.Next)
			{
				if (entry.HashCode == num && TextEquals(entry.Value, key, start, length))
				{
					return entry.Value;
				}
			}
			return null;
		}

		public string Add(string key)
		{
			if (key == null)
			{
				throw new ArgumentNullException("key");
			}
			int length = key.Length;
			if (length == 0)
			{
				return string.Empty;
			}
			int num = length + HashCodeRandomizer;
			for (int i = 0; i < key.Length; i++)
			{
				num += (num << 7) ^ key[i];
			}
			num -= num >> 17;
			num -= num >> 11;
			num -= num >> 5;
			for (Entry entry = _entries[num & _mask]; entry != null; entry = entry.Next)
			{
				if (entry.HashCode == num && entry.Value.Equals(key, StringComparison.Ordinal))
				{
					return entry.Value;
				}
			}
			return AddEntry(key, num);
		}

		private string AddEntry(string str, int hashCode)
		{
			int num = hashCode & _mask;
			Entry entry = new Entry(str, hashCode, _entries[num]);
			_entries[num] = entry;
			if (_count++ == _mask)
			{
				Grow();
			}
			return entry.Value;
		}

		private void Grow()
		{
			Entry[] entries = _entries;
			int num = _mask * 2 + 1;
			Entry[] array = new Entry[num + 1];
			for (int i = 0; i < entries.Length; i++)
			{
				Entry entry = entries[i];
				while (entry != null)
				{
					int num2 = entry.HashCode & num;
					Entry next = entry.Next;
					entry.Next = array[num2];
					array[num2] = entry;
					entry = next;
				}
			}
			_entries = array;
			Volatile.Write(ref _mask, num);
		}

		private static bool TextEquals(string str1, char[] str2, int str2Start, int str2Length)
		{
			if (str1.Length != str2Length)
			{
				return false;
			}
			for (int i = 0; i < str1.Length; i++)
			{
				if (str1[i] != str2[str2Start + i])
				{
					return false;
				}
			}
			return true;
		}
	}
	[Flags]
	public enum DefaultValueHandling
	{
		Include = 0,
		Ignore = 1,
		Populate = 2,
		IgnoreAndPopulate = 3
	}
	public enum FloatFormatHandling
	{
		String,
		Symbol,
		DefaultValue
	}
	public enum FloatParseHandling
	{
		Double,
		Decimal
	}
	public enum Formatting
	{
		None,
		Indented
	}
	public interface IArrayPool<T>
	{
		T[] Rent(int minimumLength);

		void Return(T[]? array);
	}
	public interface IJsonLineInfo
	{
		int LineNumber { get; }

		int LinePosition { get; }

		bool HasLineInfo();
	}
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = false)]
	public sealed class JsonArrayAttribute : JsonContainerAttribute
	{
		private bool _allowNullItems;

		public bool AllowNullItems
		{
			get
			{
				return _allowNullItems;
			}
			set
			{
				_allowNullItems = value;
			}
		}

		public JsonArrayAttribute()
		{
		}

		public JsonArrayAttribute(bool allowNullItems)
		{
			_allowNullItems = allowNullItems;
		}

		public JsonArrayAttribute(string id)
			: base(id)
		{
		}
	}
	[AttributeUsage(AttributeTargets.Constructor, AllowMultiple = false)]
	public sealed class JsonConstructorAttribute : Attribute
	{
	}
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = false)]
	public abstract class JsonContainerAttribute : Attribute
	{
		internal bool? _isReference;

		internal bool? _itemIsReference;

		internal ReferenceLoopHandling? _itemReferenceLoopHandling;

		internal TypeNameHandling? _itemTypeNameHandling;

		private Type? _namingStrategyType;

		private object[]? _namingStrategyParameters;

		public string? Id { get; set; }

		public string? Title { get; set; }

		public string? Description { get; set; }

		public Type? ItemConverterType { get; set; }

		public object[]? ItemConverterParameters { get; set; }

		public Type? NamingStrategyType
		{
			get
			{
				return _namingStrategyType;
			}
			set
			{
				_namingStrategyType = value;
				NamingStrategyInstance = null;
			}
		}

		public object[]? NamingStrategyParameters
		{
			get
			{
				return _namingStrategyParameters;
			}
			set
			{
				_namingStrategyParameters = value;
				NamingStrategyInstance = null;
			}
		}

		internal NamingStrategy? NamingStrategyInstance { get; set; }

		public bool IsReference
		{
			get
			{
				return _isReference.GetValueOrDefault();
			}
			set
			{
				_isReference = value;
			}
		}

		public bool ItemIsReference
		{
			get
			{
				return _itemIsReference.GetValueOrDefault();
			}
			set
			{
				_itemIsReference = value;
			}
		}

		public ReferenceLoopHandling ItemReferenceLoopHandling
		{
			get
			{
				return _itemReferenceLoopHandling.GetValueOrDefault();
			}
			set
			{
				_itemReferenceLoopHandling = value;
			}
		}

		public TypeNameHandling ItemTypeNameHandling
		{
			get
			{
				return _itemTypeNameHandling.GetValueOrDefault();
			}
			set
			{
				_itemTypeNameHandling = value;
			}
		}

		protected JsonContainerAttribute()
		{
		}

		protected JsonContainerAttribute(string id)
		{
			Id = id;
		}
	}
	public static class JsonConvert
	{
		public static readonly string True = "true";

		public static readonly string False = "false";

		public static readonly string Null = "null";

		public static readonly string Undefined = "undefined";

		public static readonly string PositiveInfinity = "Infinity";

		public static readonly string NegativeInfinity = "-Infinity";

		public static readonly string NaN = "NaN";

		public static Func<JsonSerializerSettings>? DefaultSettings { get; set; }

		public static string ToString(DateTime value)
		{
			return ToString(value, DateFormatHandling.IsoDateFormat, DateTimeZoneHandling.RoundtripKind);
		}

		public static string ToString(DateTime value, DateFormatHandling format, DateTimeZoneHandling timeZoneHandling)
		{
			DateTime value2 = DateTimeUtils.EnsureDateTime(value, timeZoneHandling);
			using StringWriter stringWriter = StringUtils.CreateStringWriter(64);
			stringWriter.Write('"');
			DateTimeUtils.WriteDateTimeString(stringWriter, value2, format, null, CultureInfo.InvariantCulture);
			stringWriter.Write('"');
			return stringWriter.ToString();
		}

		public static string ToString(DateTimeOffset value)
		{
			return ToString(value, DateFormatHandling.IsoDateFormat);
		}

		public static string ToString(DateTimeOffset value, DateFormatHandling format)
		{
			using StringWriter stringWriter = StringUtils.CreateStringWriter(64);
			stringWriter.Write('"');
			DateTimeUtils.WriteDateTimeOffsetString(stringWriter, value, format, null, CultureInfo.InvariantCulture);
			stringWriter.Write('"');
			return stringWriter.ToString();
		}

		public static string ToString(bool value)
		{
			if (!value)
			{
				return False;
			}
			return True;
		}

		public static string ToString(char value)
		{
			return ToString(char.ToString(value));
		}

		public static string ToString(Enum value)
		{
			return value.ToString("D");
		}

		public static string ToString(int value)
		{
			return value.ToString(null, CultureInfo.InvariantCulture);
		}

		public static string ToString(short value)
		{
			return value.ToString(null, CultureInfo.InvariantCulture);
		}

		[CLSCompliant(false)]
		public static string ToString(ushort value)
		{
			return value.ToString(null, CultureInfo.InvariantCulture);
		}

		[CLSCompliant(false)]
		public static string ToString(uint value)
		{
			return value.ToString(null, CultureInfo.InvariantCulture);
		}

		public static string ToString(long value)
		{
			return value.ToString(null, CultureInfo.InvariantCulture);
		}

		private static string ToStringInternal(BigInteger value)
		{
			return value.ToString(null, CultureInfo.InvariantCulture);
		}

		[CLSCompliant(false)]
		public static string ToString(ulong value)
		{
			return value.ToString(null, CultureInfo.InvariantCulture);
		}

		public static string ToString(float value)
		{
			return EnsureDecimalPlace(value, value.ToString("R", CultureInfo.InvariantCulture));
		}

		internal static string ToString(float value, FloatFormatHandling floatFormatHandling, char quoteChar, bool nullable)
		{
			return EnsureFloatFormat(value, EnsureDecimalPlace(value, value.ToString("R", CultureInfo.InvariantCulture)), floatFormatHandling, quoteChar, nullable);
		}

		private static string EnsureFloatFormat(double value, string text, FloatFormatHandling floatFormatHandling, char quoteChar, bool nullable)
		{
			if (floatFormatHandling == FloatFormatHandling.Symbol || (!double.IsInfinity(value) && !double.IsNaN(value)))
			{
				return text;
			}
			if (floatFormatHandling == FloatFormatHandling.DefaultValue)
			{
				if (nullable)
				{
					return Null;
				}
				return "0.0";
			}
			return quoteChar + text + quoteChar;
		}

		public static string ToString(double value)
		{
			return EnsureDecimalPlace(value, value.ToString("R", CultureInfo.InvariantCulture));
		}

		internal static string ToString(double value, FloatFormatHandling floatFormatHandling, char quoteChar, bool nullable)
		{
			return EnsureFloatFormat(value, EnsureDecimalPlace(value, value.ToString("R", CultureInfo.InvariantCulture)), floatFormatHandling, quoteChar, nullable);
		}

		private static string EnsureDecimalPlace(double value, string text)
		{
			if (double.IsNaN(value) || double.IsInfinity(value) || StringUtils.IndexOf(text, '.') != -1 || StringUtils.IndexOf(text, 'E') != -1 || StringUtils.IndexOf(text, 'e') != -1)
			{
				return text;
			}
			return text + ".0";
		}

		private static string EnsureDecimalPlace(string text)
		{
			if (StringUtils.IndexOf(text, '.') != -1)
			{
				return text;
			}
			return text + ".0";
		}

		public static string ToString(byte value)
		{
			return value.ToString(null, CultureInfo.InvariantCulture);
		}

		[CLSCompliant(false)]
		public static string ToString(sbyte value)
		{
			return value.ToString(null, CultureInfo.InvariantCulture);
		}

		public static string ToString(decimal value)
		{
			return EnsureDecimalPlace(value.ToString(null, CultureInfo.InvariantCulture));
		}

		public static string ToString(Guid value)
		{
			return ToString(value, '"');
		}

		internal static string ToString(Guid value, char quoteChar)
		{
			string text = value.ToString("D", CultureInfo.InvariantCulture);
			string text2 = quoteChar.ToString(CultureInfo.InvariantCulture);
			return text2 + text + text2;
		}

		public static string ToString(TimeSpan value)
		{
			return ToString(value, '"');
		}

		internal static string ToString(TimeSpan value, char quoteChar)
		{
			return ToString(value.ToString(), quoteChar);
		}

		public static string ToString(Uri? value)
		{
			if (value == null)
			{
				return Null;
			}
			return ToString(value, '"');
		}

		internal static string ToString(Uri value, char quoteChar)
		{
			return ToString(value.OriginalString, quoteChar);
		}

		public static string ToString(string? value)
		{
			return ToString(value, '"');
		}

		public static string ToString(string? value, char delimiter)
		{
			return ToString(value, delimiter, StringEscapeHandling.Default);
		}

		public static string ToString(string? value, char delimiter, StringEscapeHandling stringEscapeHandling)
		{
			if (delimiter != '"' && delimiter != '\'')
			{
				throw new ArgumentException("Delimiter must be a single or double quote.", "delimiter");
			}
			return JavaScriptUtils.ToEscapedJavaScriptString(value, delimiter, appendDelimiters: true, stringEscapeHandling);
		}

		public static string ToString(object? value)
		{
			if (value == null)
			{
				return Null;
			}
			return ConvertUtils.GetTypeCode(value.GetType()) switch
			{
				PrimitiveTypeCode.String => ToString((string)value), 
				PrimitiveTypeCode.Char => ToString((char)value), 
				PrimitiveTypeCode.Boolean => ToString((bool)value), 
				PrimitiveTypeCode.SByte => ToString((sbyte)value), 
				PrimitiveTypeCode.Int16 => ToString((short)value), 
				PrimitiveTypeCode.UInt16 => ToString((ushort)value), 
				PrimitiveTypeCode.Int32 => ToString((int)value), 
				PrimitiveTypeCode.Byte => ToString((byte)value), 
				PrimitiveTypeCode.UInt32 => ToString((uint)value), 
				PrimitiveTypeCode.Int64 => ToString((long)value), 
				PrimitiveTypeCode.UInt64 => ToString((ulong)value), 
				PrimitiveTypeCode.Single => ToString((float)value), 
				PrimitiveTypeCode.Double => ToString((double)value), 
				PrimitiveTypeCode.DateTime => ToString((DateTime)value), 
				PrimitiveTypeCode.Decimal => ToString((decimal)value), 
				PrimitiveTypeCode.DBNull => Null, 
				PrimitiveTypeCode.DateTimeOffset => ToString((DateTimeOffset)value), 
				PrimitiveTypeCode.Guid => ToString((Guid)value), 
				PrimitiveTypeCode.Uri => ToString((Uri)value), 
				PrimitiveTypeCode.TimeSpan => ToString((TimeSpan)value), 
				PrimitiveTypeCode.BigInteger => ToStringInternal((BigInteger)value), 
				_ => throw new ArgumentException("Unsupported type: {0}. Use the JsonSerializer class to get the object's JSON representation.".FormatWith(CultureInfo.InvariantCulture, value.GetType())), 
			};
		}

		[DebuggerStepThrough]
		public static string SerializeObject(object? value)
		{
			return SerializeObject(value, (Type?)null, (JsonSerializerSettings?)null);
		}

		[DebuggerStepThrough]
		public static string SerializeObject(object? value, Formatting formatting)
		{
			return SerializeObject(value, formatting, (JsonSerializerSettings?)null);
		}

		[DebuggerStepThrough]
		public static string SerializeObject(object? value, params JsonConverter[] converters)
		{
			JsonSerializerSettings settings = ((converters != null && converters.Length != 0) ? new JsonSerializerSettings
			{
				Converters = converters
			} : null);
			return SerializeObject(value, null, settings);
		}

		[DebuggerStepThrough]
		public static string SerializeObject(object? value, Formatting formatting, params JsonConverter[] converters)
		{
			JsonSerializerSettings settings = ((converters != null && converters.Length != 0) ? new JsonSerializerSettings
			{
				Converters = converters
			} : null);
			return SerializeObject(value, null, formatting, settings);
		}

		[DebuggerStepThrough]
		public static string SerializeObject(object? value, JsonSerializerSettings? settings)
		{
			return SerializeObject(value, null, settings);
		}

		[DebuggerStepThrough]
		public static string SerializeObject(object? value, Type? type, JsonSerializerSettings? settings)
		{
			JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(settings);
			return SerializeObjectInternal(value, type, jsonSerializer);
		}

		[DebuggerStepThrough]
		public static string SerializeObject(object? value, Formatting formatting, JsonSerializerSettings? settings)
		{
			return SerializeObject(value, null, formatting, settings);
		}

		[DebuggerStepThrough]
		public static string SerializeObject(object? value, Type? type, Formatting formatting, JsonSerializerSettings? settings)
		{
			JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(settings);
			jsonSerializer.Formatting = formatting;
			return SerializeObjectInternal(value, type, jsonSerializer);
		}

		private static string SerializeObjectInternal(object? value, Type? type, JsonSerializer jsonSerializer)
		{
			StringWriter stringWriter = new StringWriter(new StringBuilder(256), CultureInfo.InvariantCulture);
			using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
			{
				jsonTextWriter.Formatting = jsonSerializer.Formatting;
				jsonSerializer.Serialize(jsonTextWriter, value, type);
			}
			return stringWriter.ToString();
		}

		[DebuggerStepThrough]
		public static object? DeserializeObject(string value)
		{
			return DeserializeObject(value, (Type?)null, (JsonSerializerSettings?)null);
		}

		[DebuggerStepThrough]
		public static object? DeserializeObject(string value, JsonSerializerSettings settings)
		{
			return DeserializeObject(value, null, settings);
		}

		[DebuggerStepThrough]
		public static object? DeserializeObject(string value, Type type)
		{
			return DeserializeObject(value, type, (JsonSerializerSettings?)null);
		}

		[DebuggerStepThrough]
		public static T? DeserializeObject<T>(string value)
		{
			return JsonConvert.DeserializeObject<T>(value, (JsonSerializerSettings?)null);
		}

		[DebuggerStepThrough]
		public static T? DeserializeAnonymousType<T>(string value, T anonymousTypeObject)
		{
			return DeserializeObject<T>(value);
		}

		[DebuggerStepThrough]
		public static T? DeserializeAnonymousType<T>(string value, T anonymousTypeObject, JsonSerializerSettings settings)
		{
			return DeserializeObject<T>(value, settings);
		}

		[DebuggerStepThrough]
		public static T? DeserializeObject<T>(string value, params JsonConverter[] converters)
		{
			return (T)DeserializeObject(value, typeof(T), converters);
		}

		[DebuggerStepThrough]
		public static T? DeserializeObject<T>(string value, JsonSerializerSettings? settings)
		{
			return (T)DeserializeObject(value, typeof(T), settings);
		}

		[DebuggerStepThrough]
		public static object? DeserializeObject(string value, Type type, params JsonConverter[] converters)
		{
			JsonSerializerSettings settings = ((converters != null && converters.Length != 0) ? new JsonSerializerSettings
			{
				Converters = converters
			} : null);
			return DeserializeObject(value, type, settings);
		}

		public static object? DeserializeObject(string value, Type? type, JsonSerializerSettings? settings)
		{
			ValidationUtils.ArgumentNotNull(value, "value");
			JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(settings);
			if (!jsonSerializer.IsCheckAdditionalContentSet())
			{
				jsonSerializer.CheckAdditionalContent = true;
			}
			using JsonTextReader reader = new JsonTextReader(new StringReader(value));
			return jsonSerializer.Deserialize(reader, type);
		}

		[DebuggerStepThrough]
		public static void PopulateObject(string value, object target)
		{
			PopulateObject(value, target, null);
		}

		public static void PopulateObject(string value, object target, JsonSerializerSettings? settings)
		{
			JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(settings);
			using JsonReader jsonReader = new JsonTextReader(new StringReader(value));
			jsonSerializer.Populate(jsonReader, target);
			if (settings == null || !settings.CheckAdditionalContent)
			{
				return;
			}
			while (jsonReader.Read())
			{
				if (jsonReader.TokenType != JsonToken.Comment)
				{
					throw JsonSerializationException.Create(jsonReader, "Additional text found in JSON string after finishing deserializing object.");
				}
			}
		}

		public static string SerializeXmlNode(XmlNode? node)
		{
			return SerializeXmlNode(node, Formatting.None);
		}

		public static string SerializeXmlNode(XmlNode? node, Formatting formatting)
		{
			XmlNodeConverter xmlNodeConverter = new XmlNodeConverter();
			return SerializeObject(node, formatting, xmlNodeConverter);
		}

		public static string SerializeXmlNode(XmlNode? node, Formatting formatting, bool omitRootObject)
		{
			XmlNodeConverter xmlNodeConverter = new XmlNodeConverter
			{
				OmitRootObject = omitRootObject
			};
			return SerializeObject(node, formatting, xmlNodeConverter);
		}

		public static XmlDocument? DeserializeXmlNode(string value)
		{
			return DeserializeXmlNode(value, null);
		}

		public static XmlDocument? DeserializeXmlNode(string value, string? deserializeRootElementName)
		{
			return DeserializeXmlNode(value, deserializeRootElementName, writeArrayAttribute: false);
		}

		public static XmlDocument? DeserializeXmlNode(string value, string? deserializeRootElementName, bool writeArrayAttribute)
		{
			return DeserializeXmlNode(value, deserializeRootElementName, writeArrayAttribute, encodeSpecialCharacters: false);
		}

		public static XmlDocument? DeserializeXmlNode(string value, string? deserializeRootElementName, bool writeArrayAttribute, bool encodeSpecialCharacters)
		{
			XmlNodeConverter xmlNodeConverter = new XmlNodeConverter();
			xmlNodeConverter.DeserializeRootElementName = deserializeRootElementName;
			xmlNodeConverter.WriteArrayAttribute = writeArrayAttribute;
			xmlNodeConverter.EncodeSpecialCharacters = encodeSpecialCharacters;
			return (XmlDocument)DeserializeObject(value, typeof(XmlDocument), xmlNodeConverter);
		}

		public static string SerializeXNode(XObject? node)
		{
			return SerializeXNode(node, Formatting.None);
		}

		public static string SerializeXNode(XObject? node, Formatting formatting)
		{
			return SerializeXNode(node, formatting, omitRootObject: false);
		}

		public static string SerializeXNode(XObject? node, Formatting formatting, bool omitRootObject)
		{
			XmlNodeConverter xmlNodeConverter = new XmlNodeConverter
			{
				OmitRootObject = omitRootObject
			};
			return SerializeObject(node, formatting, xmlNodeConverter);
		}

		public static XDocument? DeserializeXNode(string value)
		{
			return DeserializeXNode(value, null);
		}

		public static XDocument? DeserializeXNode(string value, string? deserializeRootElementName)
		{
			return DeserializeXNode(value, deserializeRootElementName, writeArrayAttribute: false);
		}

		public static XDocument? DeserializeXNode(string value, string? deserializeRootElementName, bool writeArrayAttribute)
		{
			return DeserializeXNode(value, deserializeRootElementName, writeArrayAttribute, encodeSpecialCharacters: false);
		}

		public static XDocument? DeserializeXNode(string value, string? deserializeRootElementName, bool writeArrayAttribute, bool encodeSpecialCharacters)
		{
			//IL_0035: Unknown result type (might be due to invalid IL or missing references)
			//IL_003b: Expected O, but got Unknown
			XmlNodeConverter xmlNodeConverter = new XmlNodeConverter();
			xmlNodeConverter.DeserializeRootElementName = deserializeRootElementName;
			xmlNodeConverter.WriteArrayAttribute = writeArrayAttribute;
			xmlNodeConverter.EncodeSpecialCharacters = encodeSpecialCharacters;
			return (XDocument)DeserializeObject(value, typeof(XDocument), xmlNodeConverter);
		}
	}
	public abstract class JsonConverter
	{
		public virtual bool CanRead => true;

		public virtual bool CanWrite => true;

		public abstract void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer);

		public abstract object? ReadJson(JsonReader reader, Type objectType, object? existingValue, JsonSerializer serializer);

		public abstract bool CanConvert(Type objectType);
	}
	public abstract class JsonConverter<T> : JsonConverter
	{
		public sealed override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer)
		{
			if (!((value != null) ? (value is T) : ReflectionUtils.IsNullable(typeof(T))))
			{
				throw new JsonSerializationException("Converter cannot write specified value to JSON. {0} is required.".FormatWith(CultureInfo.InvariantCulture, typeof(T)));
			}
			WriteJson(writer, (T)value, serializer);
		}

		public abstract void WriteJson(JsonWriter writer, T? value, JsonSerializer serializer);

		public sealed override object? ReadJson(JsonReader reader, Type objectType, object? existingValue, JsonSerializer serializer)
		{
			bool flag = existingValue == null;
			if (!flag && !(existingValue is T))
			{
				throw new JsonSerializationException("Converter cannot read JSON with the specified existing value. {0} is required.".FormatWith(CultureInfo.InvariantCulture, typeof(T)));
			}
			return ReadJson(reader, objectType, flag ? default(T) : ((T)existingValue), !flag, serializer);
		}

		public abstract T? ReadJson(JsonReader reader, Type objectType, T? existingValue, bool hasExistingValue, JsonSerializer serializer);

		public sealed override bool CanConvert(Type objectType)
		{
			return typeof(T).IsAssignableFrom(objectType);
		}
	}
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Interface | AttributeTargets.Parameter, AllowMultiple = false)]
	public sealed class JsonConverterAttribute : Attribute
	{
		private readonly Type _converterType;

		public Type ConverterType => _converterType;

		public object[]? ConverterParameters { get; }

		public JsonConverterAttribute(Type converterType)
		{
			if (converterType == null)
			{
				throw new ArgumentNullException("converterType");
			}
			_converterType = converterType;
		}

		public JsonConverterAttribute(Type converterType, params object[] converterParameters)
			: this(converterType)
		{
			ConverterParameters = converterParameters;
		}
	}
	public class JsonConverterCollection : Collection<JsonConverter>
	{
	}
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = false)]
	public sealed class JsonDictionaryAttribute : JsonContainerAttribute
	{
		public JsonDictionaryAttribute()
		{
		}

		public JsonDictionaryAttribute(string id)
			: base(id)
		{
		}
	}
	[Serializable]
	public class JsonException : Exception
	{
		public JsonException()
		{
		}

		public JsonException(string message)
			: base(message)
		{
		}

		public JsonException(string message, Exception? innerException)
			: base(message, innerException)
		{
		}

		public JsonException(SerializationInfo info, StreamingContext context)
			: base(info, context)
		{
		}

		internal static JsonException Create(IJsonLineInfo lineInfo, string path, string message)
		{
			message = JsonPosition.FormatMessage(lineInfo, path, message);
			return new JsonException(message);
		}
	}
	[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
	public class JsonExtensionDataAttribute : Attribute
	{
		public bool WriteData { get; set; }

		public bool ReadData { get; set; }

		public JsonExtensionDataAttribute()
		{
			WriteData = true;
			ReadData = true;
		}
	}
	[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
	public sealed class JsonIgnoreAttribute : Attribute
	{
	}
	public abstract class JsonNameTable
	{
		public abstract string? Get(char[] key, int start, int length);
	}
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface, AllowMultiple = false)]
	public sealed class JsonObjectAttribute : JsonContainerAttribute
	{
		private MemberSerialization _memberSerialization;

		internal MissingMemberHandling? _missingMemberHandling;

		internal Required? _itemRequired;

		internal NullValueHandling? _itemNullValueHandling;

		public MemberSerialization MemberSerialization
		{
			get
			{
				return _memberSerialization;
			}
			set
			{
				_memberSerialization = value;
			}
		}

		public MissingMemberHandling MissingMemberHandling
		{
			get
			{
				return _missingMemberHandling.GetValueOrDefault();
			}
			set
			{
				_missingMemberHandling = value;
			}
		}

		public NullValueHandling ItemNullValueHandling
		{
			get
			{
				return _itemNullValueHandling.GetValueOrDefault();
			}
			set
			{
				_itemNullValueHandling = value;
			}
		}

		public Required ItemRequired
		{
			get
			{
				return _itemRequired.GetValueOrDefault();
			}
			set
			{
				_itemRequired = value;
			}
		}

		public JsonObjectAttribute()
		{
		}

		public JsonObjectAttribute(MemberSerialization memberSerialization)
		{
			MemberSerialization = memberSerialization;
		}

		public JsonObjectAttribute(string id)
			: base(id)
		{
		}
	}
	internal enum JsonContainerType
	{
		None,
		Object,
		Array,
		Constructor
	}
	internal struct JsonPosition
	{
		private static readonly char[] SpecialCharacters = new char[18]
		{
			'.', ' ', '\'', '/', '"', '[', ']', '(', ')', '\t',
			'\n', '\r', '\f', '\b', '\\', '\u0085', '\u2028', '\u2029'
		};

		internal JsonContainerType Type;

		internal int Position;

		internal string? PropertyName;

		internal bool HasIndex;

		public JsonPosition(JsonContainerType type)
		{
			Type = type;
			HasIndex = TypeHasIndex(type);
			Position = -1;
			PropertyName = null;
		}

		internal int CalculateLength()
		{
			switch (Type)
			{
			case JsonContainerType.Object:
				return PropertyName.Length + 5;
			case JsonContainerType.Array:
			case JsonContainerType.Constructor:
				return MathUtils.IntLength((ulong)Position) + 2;
			default:
				throw new ArgumentOutOfRangeException("Type");
			}
		}

		internal void WriteTo(StringBuilder sb, ref StringWriter? writer, ref char[]? buffer)
		{
			switch (Type)
			{
			case JsonContainerType.Object:
			{
				string propertyName = PropertyName;
				if (propertyName.IndexOfAny(SpecialCharacters) != -1)
				{
					sb.Append("['");
					if (writer == null)
					{
						writer = new StringWriter(sb);
					}
					JavaScriptUtils.WriteEscapedJavaScriptString(writer, propertyName, '\'', appendDelimiters: false, JavaScriptUtils.SingleQuoteCharEscapeFlags, StringEscapeHandling.Default, null, ref buffer);
					sb.Append("']");
				}
				else
				{
					if (sb.Length > 0)
					{
						sb.Append('.');
					}
					sb.Append(propertyName);
				}
				break;
			}
			case JsonContainerType.Array:
			case JsonContainerType.Constructor:
				sb.Append('[');
				sb.Append(Position);
				sb.Append(']');
				break;
			}
		}

		internal static bool TypeHasIndex(JsonContainerType type)
		{
			if (type != JsonContainerType.Array)
			{
				return type == JsonContainerType.Constructor;
			}
			return true;
		}

		internal static string BuildPath(List<JsonPosition> positions, JsonPosition? currentPosition)
		{
			int num = 0;
			if (positions != null)
			{
				for (int i = 0; i < positions.Count; i++)
				{
					num += positions[i].CalculateLength();
				}
			}
			if (currentPosition.HasValue)
			{
				num += currentPosition.GetValueOrDefault().CalculateLength();
			}
			StringBuilder stringBuilder = new StringBuilder(num);
			StringWriter writer = null;
			char[] buffer = null;
			if (positions != null)
			{
				foreach (JsonPosition position in positions)
				{
					position.WriteTo(stringBuilder, ref writer, ref buffer);
				}
			}
			currentPosition?.WriteTo(stringBuilder, ref writer, ref buffer);
			return stringBuilder.ToString();
		}

		internal static string FormatMessage(IJsonLineInfo? lineInfo, string path, string message)
		{
			if (!message.EndsWith(Environment.NewLine, StringComparison.Ordinal))
			{
				message = message.Trim();
				if (!StringUtils.EndsWith(message, '.'))
				{
					message += ".";
				}
				message += " ";
			}
			message += "Path '{0}'".FormatWith(CultureInfo.InvariantCulture, path);
			if (lineInfo != null && lineInfo.HasLineInfo())
			{
				message += ", line {0}, position {1}".FormatWith(CultureInfo.InvariantCulture, lineInfo.LineNumber, lineInfo.LinePosition);
			}
			message += ".";
			return message;
		}
	}
	[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, AllowMultiple = false)]
	public sealed class JsonPropertyAttribute : Attribute
	{
		internal NullValueHandling? _nullValueHandling;

		internal DefaultValueHandling? _defaultValueHandling;

		internal ReferenceLoopHandling? _referenceLoopHandling;

		internal ObjectCreationHandling? _objectCreationHandling;

		internal TypeNameHandling? _typeNameHandling;

		internal bool? _isReference;

		internal int? _order;

		internal Required? _required;

		internal bool? _itemIsReference;

		internal ReferenceLoopHandling? _itemReferenceLoopHandling;

		internal TypeNameHandling? _itemTypeNameHandling;

		public Type? ItemConverterType { get; set; }

		public object[]? ItemConverterParameters { get; set; }

		public Type? NamingStrategyType { get; set; }

		public object[]? NamingStrategyParameters { get; set; }

		public NullValueHandling NullValueHandling
		{
			get
			{
				return _nullValueHandling.GetValueOrDefault();
			}
			set
			{
				_nullValueHandling = value;
			}
		}

		public DefaultValueHandling DefaultValueHandling
		{
			get
			{
				return _defaultValueHandling.GetValueOrDefault();
			}
			set
			{
				_defaultValueHandling = value;
			}
		}

		public ReferenceLoopHandling ReferenceLoopHandling
		{
			get
			{
				return _referenceLoopHandling.GetValueOrDefault();
			}
			set
			{
				_referenceLoopHandling = value;
			}
		}

		public ObjectCreationHandling ObjectCreationHandling
		{
			get
			{
				return _objectCreationHandling.GetValueOrDefault();
			}
			set
			{
				_objectCreationHandling = value;
			}
		}

		public TypeNameHandling TypeNameHandling
		{
			get
			{
				return _typeNameHandling.GetValueOrDefault();
			}
			set
			{
				_typeNameHandling = value;
			}
		}

		public bool IsReference
		{
			get
			{
				return _isReference.GetValueOrDefault();
			}
			set
			{
				_isReference = value;
			}
		}

		public int Order
		{
			get
			{
				return _order.GetValueOrDefault();
			}
			set
			{
				_order = value;
			}
		}

		public Required Required
		{
			get
			{
				return _required.GetValueOrDefault();
			}
			set
			{
				_required = value;
			}
		}

		public string? PropertyName { get; set; }

		public ReferenceLoopHandling ItemReferenceLoopHandling
		{
			get
			{
				return _itemReferenceLoopHandling.GetValueOrDefault();
			}
			set
			{
				_itemReferenceLoopHandling = value;
			}
		}

		public TypeNameHandling ItemTypeNameHandling
		{
			get
			{
				return _itemTypeNameHandling.GetValueOrDefault();
			}
			set
			{
				_itemTypeNameHandling = value;
			}
		}

		public bool ItemIsReference
		{
			get
			{
				return _itemIsReference.GetValueOrDefault();
			}
			set
			{
				_itemIsReference = value;
			}
		}

		public JsonPropertyAttribute()
		{
		}

		public JsonPropertyAttribute(string propertyName)
		{
			PropertyName = propertyName;
		}
	}
	public abstract class JsonReader : IDisposable
	{
		protected internal enum State
		{
			Start,
			Complete,
			Property,
			ObjectStart,
			Object,
			ArrayStart,
			Array,
			Closed,
			PostValue,
			ConstructorStart,
			Constructor,
			Error,
			Finished
		}

		private JsonToken _tokenType;

		private object? _value;

		internal char _quoteChar;

		internal State _currentState;

		private JsonPosition _currentPosition;

		private CultureInfo? _culture;

		private DateTimeZoneHandling _dateTimeZoneHandling;

		private int? _maxDepth;

		private bool _hasExceededMaxDepth;

		internal DateParseHandling _dateParseHandling;

		internal FloatParseHandling _floatParseHandling;

		private string? _dateFormatString;

		private List<JsonPosition>? _stack;

		protected State CurrentState => _currentState;

		public bool CloseInput { get; set; }

		public bool SupportMultipleContent { get; set; }

		public virtual char QuoteChar
		{
			get
			{
				return _quoteChar;
			}
			protected internal set
			{
				_quoteChar = value;
			}
		}

		public DateTimeZoneHandling DateTimeZoneHandling
		{
			get
			{
				return _dateTimeZoneHandling;
			}
			set
			{
				if (value < DateTimeZoneHandling.Local || value > DateTimeZoneHandling.RoundtripKind)
				{
					throw new ArgumentOutOfRangeException("value");
				}
				_dateTimeZoneHandling = value;
			}
		}

		public DateParseHandling DateParseHandling
		{
			get
			{
				return _dateParseHandling;
			}
			set
			{
				if (value < DateParseHandling.None || value > DateParseHandling.DateTimeOffset)
				{
					throw new ArgumentOutOfRangeException("value");
				}
				_dateParseHandling = value;
			}
		}

		public FloatParseHandling FloatParseHandling
		{
			get
			{
				return _floatParseHandling;
			}
			set
			{
				if (value < FloatParseHandling.Double || value > FloatParseHandling.Decimal)
				{
					throw new ArgumentOutOfRangeException("value");
				}
				_floatParseHandling = value;
			}
		}

		public string? DateFormatString
		{
			get
			{
				return _dateFormatString;
			}
			set
			{
				_dateFormatString = value;
			}
		}

		public int? MaxDepth
		{
			get
			{
				return _maxDepth;
			}
			set
			{
				if (value <= 0)
				{
					throw new ArgumentException("Value must be positive.", "value");
				}
				_maxDepth = value;
			}
		}

		public virtual JsonToken TokenType => _tokenType;

		public virtual object? Value => _value;

		public virtual Type? ValueType => _value?.GetType();

		public virtual int Depth
		{
			get
			{
				int num = _stack?.Count ?? 0;
				if (JsonTokenUtils.IsStartToken(TokenType) || _currentPosition.Type == JsonContainerType.None)
				{
					return num;
				}
				return num + 1;
			}
		}

		public virtual string Path
		{
			get
			{
				if (_currentPosition.Type == JsonContainerType.None)
				{
					return string.Empty;
				}
				JsonPosition? currentPosition = ((_currentState != State.ArrayStart && _currentState != State.ConstructorStart && _currentState != State.ObjectStart) ? new JsonPosition?(_currentPosition) : null);
				return JsonPosition.BuildPath(_stack, currentPosition);
			}
		}

		public CultureInfo Culture
		{
			get
			{
				return _culture ?? CultureInfo.InvariantCulture;
			}
			set
			{
				_culture = value;
			}
		}

		public virtual Task<bool> ReadAsync(CancellationToken cancellationToken = default(CancellationToken))
		{
			return cancellationToken.CancelIfRequestedAsync<bool>() ?? Read().ToAsync();
		}

		public async Task SkipAsync(CancellationToken cancellationToken = default(CancellationToken))
		{
			if (TokenType == JsonToken.PropertyName)
			{
				await ReadAsync(cancellationToken).ConfigureAwait(continueOnCapturedContext: false);
			}
			if (JsonTokenUtils.IsStartToken(TokenType))
			{
				int depth = Depth;
				while (await ReadAsync(cancellationToken).ConfigureAwait(continueOnCapturedContext: false) && depth < Depth)
				{
				}
			}
		}

		internal async Task ReaderReadAndAssertAsync(CancellationToken cancellationToken)
		{
			if (!(await ReadAsync(cancellationToken).ConfigureAwait(continueOnCapturedContext: false)))
			{
				throw CreateUnexpectedEndException();
			}
		}

		public virtual Task<bool?> ReadAsBooleanAsync(CancellationToken cancellationToken = default(CancellationToken))
		{
			return cancellationToken.CancelIfRequestedAsync<bool?>() ?? Task.FromResult(ReadAsBoolean());
		}

		public virtual Task<byte[]?> ReadAsBytesAsync(CancellationToken cancellationToken = default(CancellationToken))
		{
			return cancellationToken.CancelIfRequestedAsync<byte[]>() ?? Task.FromResult(ReadAsBytes());
		}

		internal async Task<byte[]?> ReadArrayIntoByteArrayAsync(CancellationToken cancellationToken)
		{
			List<byte> buffer = new List<byte>();
			do
			{
				if (!(await ReadAsync(cancellationToken).ConfigureAwait(continueOnCapturedContext: false)))
				{
					SetToken(JsonToken.None);
				}
			}
			while (!ReadArrayElementIntoByteArrayReportDone(buffer));
			byte[] array = buffer.ToArray();
			SetToken(JsonToken.Bytes, array, updateIndex: false);
			return array;
		}

		public virtual Task<DateTime?> ReadAsDateTimeAsync(CancellationToken cancellationToken = default(CancellationToken))
		{
			return cancellationToken.CancelIfRequestedAsync<DateTime?>() ?? Task.FromResult(ReadAsDateTime());
		}

		public virtual Task<DateTimeOffset?> ReadAsDateTimeOffsetAsync(CancellationToken cancellationToken = default(CancellationToken))
		{
			return cancellationToken.CancelIfRequestedAsync<DateTimeOffset?>() ?? Task.FromResult(ReadAsDateTimeOffset());
		}

		public virtual Task<decimal?> ReadAsDecimalAsync(CancellationToken cancellationToken = default(CancellationToken))
		{
			return cancellationToken.CancelIfRequestedAsync<decimal?>() ?? Task.FromResult(ReadAsDecimal());
		}

		public virtual Task<double?> ReadAsDoubleAsync(CancellationToken cancellationToken = default(CancellationToken))
		{
			return Task.FromResult(ReadAsDouble());
		}

		public virtual Task<int?> ReadAsInt32Async(CancellationToken cancellationToken = default(CancellationToken))
		{
			return cancellationToken.CancelIfRequestedAsync<int?>() ?? Task.FromResult(ReadAsInt32());
		}

		public virtual Task<string?> ReadAsStringAsync(CancellationToken cancellationToken = default(CancellationToken))
		{
			return cancellationToken.CancelIfRequestedAsync<string>() ?? Task.FromResult(ReadAsString());
		}

		internal async Task<bool> ReadAndMoveToContentAsync(CancellationToken cancellationToken)
		{
			bool flag = await ReadAsync(cancellationToken).ConfigureAwait(continueOnCapturedContext: false);
			if (flag)
			{
				flag = await MoveToContentAsync(cancellationToken).ConfigureAwait(continueOnCapturedContext: false);
			}
			return flag;
		}

		internal Task<bool> MoveToContentAsync(CancellationToken cancellationToken)
		{
			JsonToken tokenType = TokenType;
			if (tokenType == JsonToken.None || tokenType == JsonToken.Comment)
			{
				return MoveToContentFromNonContentAsync(cancellationToken);
			}
			return AsyncUtils.True;
		}

		private async Task<bool> MoveToContentFromNonContentAsync(CancellationToken cancellationToken)
		{
			JsonToken tokenType;
			do
			{
				if (!(await ReadAsync(cancellationToken).ConfigureAwait(continueOnCapturedContext: false)))
				{
					return false;
				}
				tokenType = TokenType;
			}
			while (tokenType == JsonToken.None || tokenType == JsonToken.Comment);
			return true;
		}

		internal JsonPosition GetPosition(int depth)
		{
			if (_stack != null && depth < _stack.Count)
			{
				return _stack[depth];
			}
			return _currentPosition;
		}

		protected JsonReader()
		{
			_currentState = State.Start;
			_dateTimeZoneHandling = DateTimeZoneHandling.RoundtripKind;
			_dateParseHandling = DateParseHandling.DateTime;
			_floatParseHandling = FloatParseHandling.Double;
			_maxDepth = 64;
			CloseInput = true;
		}

		private void Push(JsonContainerType value)
		{
			UpdateScopeWithFinishedValue();
			if (_currentPosition.Type == JsonContainerType.None)
			{
				_currentPosition = new JsonPosition(value);
				return;
			}
			if (_stack == null)
			{
				_stack = new List<JsonPosition>();
			}
			_stack.Add(_currentPosition);
			_currentPosition = new JsonPosition(value);
			if (!_maxDepth.HasValue || !(Depth + 1 > _maxDepth) || _hasExceededMaxDepth)
			{
				return;
			}
			_hasExceededMaxDepth = true;
			throw JsonReaderException.Create(this, "The reader's MaxDepth of {0} has been exceeded.".FormatWith(CultureInfo.InvariantCulture, _maxDepth));
		}

		private JsonContainerType Pop()
		{
			JsonPosition currentPosition;
			if (_stack != null && _stack.Count > 0)
			{
				currentPosition = _currentPosition;
				_currentPosition = _stack[_stack.Count - 1];
				_stack.RemoveAt(_stack.Count - 1);
			}
			else
			{
				currentPosition = _currentPosition;
				_currentPosition = default(JsonPosition);
			}
			if (_maxDepth.HasValue && Depth <= _maxDepth)
			{
				_hasExceededMaxDepth = false;
			}
			return currentPosition.Type;
		}

		private JsonContainerType Peek()
		{
			return _currentPosition.Type;
		}

		public abstract bool Read();

		public virtual int? ReadAsInt32()
		{
			JsonToken contentToken = GetContentToken();
			switch (contentToken)
			{
			case JsonToken.None:
			case JsonToken.Null:
			case JsonToken.EndArray:
				return null;
			case JsonToken.Integer:
			case JsonToken.Float:
			{
				object value = Value;
				if (value is int)
				{
					return (int)value;
				}
				int num;
				if (value is BigInteger bigInteger)
				{
					num = (int)bigInteger;
				}
				else
				{
					try
					{
						num = Convert.ToInt32(value, CultureInfo.InvariantCulture);
					}
					catch (Exception ex)
					{
						throw JsonReaderException.Create(this, "Could not convert to integer: {0}.".FormatWith(CultureInfo.InvariantCulture, value), ex);
					}
				}
				SetToken(JsonToken.Integer, num, updateIndex: false);
				return num;
			}
			case JsonToken.String:
			{
				string s = (string)Value;
				return ReadInt32String(s);
			}
			default:
				throw JsonReaderException.Create(this, "Error reading integer. Unexpected token: {0}.".FormatWith(CultureInfo.InvariantCulture, contentToken));
			}
		}

		internal int? ReadInt32String(string? s)
		{
			if (StringUtils.IsNullOrEmpty(s))
			{
				SetToken(JsonToken.Null, null, updateIndex: false);
				return null;
			}
			if (int.TryParse(s, NumberStyles.Integer, Culture, out var result))
			{
				SetToken(JsonToken.Integer, result, updateIndex: false);
				return result;
			}
			SetToken(JsonToken.String, s, updateIndex: false);
			throw JsonReaderException.Create(this, "Could not convert string to integer: {0}.".FormatWith(CultureInfo.InvariantCulture, s));
		}

		public virtual string? ReadAsString()
		{
			JsonToken contentToken = GetContentToken();
			switch (contentToken)
			{
			case JsonToken.None:
			case JsonToken.Null:
			case JsonToken.EndArray:
				return null;
			case JsonToken.String:
				return (string)Value;
			default:
				if (JsonTokenUtils.IsPrimitiveToken(contentToken))
				{
					object value = Value;
					if (value != null)
					{
						string text = ((!(value is IFormattable formattable)) ? ((value is Uri uri) ? uri.OriginalString : value.ToString()) : formattable.ToString(null, Culture));
						SetToken(JsonToken.String, text, updateIndex: false);
						return text;
					}
				}
				throw JsonReaderException.Create(this, "Error reading string. Unexpected token: {0}.".FormatWith(CultureInfo.InvariantCulture, contentToken));
			}
		}

		public virtual byte[]? ReadAsBytes()
		{
			JsonToken contentToken = GetContentToken();
			switch (contentToken)
			{
			case JsonToken.StartObject:
			{
				ReadIntoWrappedTypeObject();
				byte[] array2 = ReadAsBytes();
				ReaderReadAndAssert();
				if (TokenType != JsonToken.EndObject)
				{
					throw JsonReaderException.Create(this, "Error reading bytes. Unexpected token: {0}.".FormatWith(CultureInfo.InvariantCulture, TokenType));
				}
				SetToken(JsonToken.Bytes, array2, updateIndex: false);
				return array2;
			}
			case JsonToken.String:
			{
				string text = (string)Value;
				Guid g;
				byte[] array3 = ((text.Length == 0) ? CollectionUtils.ArrayEmpty<byte>() : ((!ConvertUtils.TryConvertGuid(text, out g)) ? Convert.FromBase64String(text) : g.ToByteArray()));
				SetToken(JsonToken.Bytes, array3, updateIndex: false);
				return array3;
			}
			case JsonToken.None:
			case JsonToken.Null:
			case JsonToken.EndArray:
				return null;
			case JsonToken.Bytes:
				if (Value is Guid guid)
				{
					byte[] array = guid.ToByteArray();
					SetToken(JsonToken.Bytes, array, updateIndex: false);
					return array;
				}
				return (byte[])Value;
			case JsonToken.StartArray:
				return ReadArrayIntoByteArray();
			default:
				throw JsonReaderException.Create(this, "Error reading bytes. Unexpected token: {0}.".FormatWith(CultureInfo.InvariantCulture, contentToken));
			}
		}

		internal byte[] ReadArrayIntoByteArray()
		{
			List<byte> list = new List<byte>();
			do
			{
				if (!Read())
				{
					SetToken(JsonToken.None);
				}
			}
			while (!ReadArrayElementIntoByteArrayReportDone(list));
			byte[] array = list.ToArray();
			SetToken(JsonToken.Bytes, array, updateIndex: false);
			return array;
		}

		private bool ReadArrayElementIntoByteArrayReportDone(List<byte> buffer)
		{
			switch (TokenType)
			{
			case JsonToken.None:
				throw JsonReaderException.Create(this, "Unexpected end when reading bytes.");
			case JsonToken.Integer:
				buffer.Add(Convert.ToByte(Value, CultureInfo.InvariantCulture));
				return false;
			case JsonToken.EndArray:
				return true;
			case JsonToken.Comment:
				return false;
			default:
				throw JsonReaderException.Create(this, "Unexpected token when reading bytes: {0}.".FormatWith(CultureInfo.InvariantCulture, TokenType));
			}
		}

		public virtual double? ReadAsDouble()
		{
			JsonToken contentToken = GetContentToken();
			switch (contentToken)
			{
			case JsonToken.None:
			case JsonToken.Null:
			case JsonToken.EndArray:
				return null;
			case JsonToken.Integer:
			case JsonToken.Float:
			{
				object value = Value;
				if (value is double)
				{
					return (double)value;
				}
				double num = ((!(value is BigInteger bigInteger)) ? Convert.ToDouble(value, CultureInfo.InvariantCulture) : ((double)bigInteger));
				SetToken(JsonToken.Float, num, updateIndex: false);
				return num;
			}
			case JsonToken.String:
				return ReadDoubleString((string)Value);
			default:
				throw JsonReaderException.Create(this, "Error reading double. Unexpected token: {0}.".FormatWith(CultureInfo.InvariantCulture, contentToken));
			}
		}

		internal double? ReadDoubleString(string? s)
		{
			if (StringUtils.IsNullOrEmpty(s))
			{
				SetToken(JsonToken.Null, null, updateIndex: false);
				return null;
			}
			if (double.TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, Culture, out var result))
			{
				SetToken(JsonToken.Float, result, updateIndex: false);
				return result;
			}
			SetToken(JsonToken.String, s, updateIndex: false);
			throw JsonReaderException.Create(this, "Could not convert string to double: {0}.".FormatWith(CultureInfo.InvariantCulture, s));
		}

		public virtual bool? ReadAsBoolean()
		{
			JsonToken contentToken = GetContentToken();
			switch (contentToken)
			{
			case JsonToken.None:
			case JsonToken.Null:
			case JsonToken.EndArray:
				return null;
			case JsonToken.Integer:
			case JsonToken.Float:
			{
				bool flag = ((!(Value is BigInteger bigInteger)) ? Convert.ToBoolean(Value, CultureInfo.InvariantCulture) : (bigInteger != 0L));
				SetToken(JsonToken.Boolean, flag, updateIndex: false);
				return flag;
			}
			case JsonToken.String:
				return ReadBooleanString((string)Value);
			case JsonToken.Boolean:
				return (bool)Value;
			default:
				throw JsonReaderException.Create(this, "Error reading boolean. Unexpected token: {0}.".FormatWith(CultureInfo.InvariantCulture, contentToken));
			}
		}

		internal bool? ReadBooleanString(string? s)
		{
			if (StringUtils.IsNullOrEmpty(s))
			{
				SetToken(JsonToken.Null, null, updateIndex: false);
				return null;
			}
			if (bool.TryParse(s, out var result))
			{
				SetToken(JsonToken.Boolean, result, updateIndex: false);
				return result;
			}
			SetToken(JsonToken.String, s, updateIndex: false);
			throw JsonReaderException.Create(this, "Could not convert string to boolean: {0}.".FormatWith(CultureInfo.InvariantCulture, s));
		}

		public virtual decimal? ReadAsDecimal()
		{
			JsonToken contentToken = GetContentToken();
			switch (contentToken)
			{
			case JsonToken.None:
			case JsonToken.Null:
			case JsonToken.EndArray:
				return null;
			case JsonToken.Integer:
			case JsonToken.Float:
			{
				object value = Value;
				if (value is decimal)
				{
					return (decimal)value;
				}
				decimal num;
				if (value is BigInteger bigInteger)
				{
					num = (decimal)bigInteger;
				}
				else
				{
					try
					{
						num = Convert.ToDecimal(value, CultureInfo.InvariantCulture);
					}
					catch (Exception ex)
					{
						throw JsonReaderException.Create(this, "Could not convert to decimal: {0}.".FormatWith(CultureInfo.InvariantCulture, value), ex);
					}
				}
				SetToken(JsonToken.Float, num, updateIndex: false);
				return num;
			}
			case JsonToken.String:
				return ReadDecimalString((string)Value);
			default:
				throw JsonReaderException.Create(this, "Error reading decimal. Unexpected token: {0}.".FormatWith(CultureInfo.InvariantCulture, contentToken));
			}
		}

		internal decimal? ReadDecimalString(string? s)
		{
			if (StringUtils.IsNullOrEmpty(s))
			{
				SetToken(JsonToken.Null, null, updateIndex: false);
				return null;
			}
			if (decimal.TryParse(s, NumberStyles.Number, Culture, out var result))
			{
				SetToken(JsonToken.Float, result, updateIndex: false);
				return result;
			}
			if (ConvertUtils.DecimalTryParse(s.ToCharArray(), 0, s.Length, out result) == ParseResult.Success)
			{
				SetToken(JsonToken.Float, result, updateIndex: false);
				return result;
			}
			SetToken(JsonToken.String, s, updateIndex: false);
			throw JsonReaderException.Create(this, "Could not convert string to decimal: {0}.".FormatWith(CultureInfo.InvariantCulture, s));
		}

		public virtual DateTime? ReadAsDateTime()
		{
			switch (GetContentToken())
			{
			case JsonToken.None:
			case JsonToken.Null:
			case JsonToken.EndArray:
				return null;
			case JsonToken.Date:
				if (Value is DateTimeOffset dateTimeOffset)
				{
					SetToken(JsonToken.Date, dateTimeOffset.DateTime, updateIndex: false);
				}
				return (DateTime)Value;
			case JsonToken.String:
				return ReadDateTimeString((string)Value);
			default:
				throw JsonReaderException.Create(this, "Error reading date. Unexpected token: {0}.".FormatWith(CultureInfo.InvariantCulture, TokenType));
			}
		}

		internal DateTime? ReadDateTimeString(string? s)
		{
			if (StringUtils.IsNullOrEmpty(s))
			{
				SetToken(JsonToken.Null, null, updateIndex: false);
				return null;
			}
			if (DateTimeUtils.TryParseDateTime(s, DateTimeZoneHandling, _dateFormatString, Culture, out var dt))
			{
				dt = DateTimeUtils.EnsureDateTime(dt, DateTimeZoneHandling);
				SetToken(JsonToken.Date, dt, updateIndex: false);
				return dt;
			}
			if (DateTime.TryParse(s, Culture, DateTimeStyles.RoundtripKind, out dt))
			{
				dt = DateTimeUtils.EnsureDateTime(dt, DateTimeZoneHandling);
				SetToken(JsonToken.Date, dt, updateIndex: false);
				return dt;
			}
			throw JsonReaderException.Create(this, "Could not convert string to DateTime: {0}.".FormatWith(CultureInfo.InvariantCulture, s));
		}

		public virtual DateTimeOffset? ReadAsDateTimeOffset()
		{
			JsonToken contentToken = GetContentToken();
			switch (contentToken)
			{
			case JsonToken.None:
			case JsonToken.Null:
			case JsonToken.EndArray:
				return null;
			case JsonToken.Date:
				if (Value is DateTime dateTime)
				{
					SetToken(JsonToken.Date, new DateTimeOffset(dateTime), updateIndex: false);
				}
				return (DateTimeOffset)Value;
			case JsonToken.String:
			{
				string s = (string)Value;
				return ReadDateTimeOffsetString(s);
			}
			default:
				throw JsonReaderException.Create(this, "Error reading date. Unexpected token: {0}.".FormatWith(CultureInfo.InvariantCulture, contentToken));
			}
		}

		internal DateTimeOffset? ReadDateTimeOffsetString(string? s)
		{
			if (StringUtils.IsNullOrEmpty(s))
			{
				SetToken(JsonToken.Null, null, updateIndex: false);
				return null;
			}
			if (DateTimeUtils.TryParseDateTimeOffset(s, _dateFormatString, Culture, out var dt))
			{
				SetToken(JsonToken.Date, dt, updateIndex: false);
				return dt;
			}
			if (DateTimeOffset.TryParse(s, Culture, DateTimeStyles.RoundtripKind, out dt))
			{
				SetToken(JsonToken.Date, dt, updateIndex: false);
				return dt;
			}
			SetToken(JsonToken.String, s, updateIndex: false);
			throw JsonReaderException.Create(this, "Could not convert string to DateTimeOffset: {0}.".FormatWith(CultureInfo.InvariantCulture, s));
		}

		internal void ReaderReadAndAssert()
		{
			if (!Read())
			{
				throw CreateUnexpectedEndException();
			}
		}

		internal JsonReaderException CreateUnexpectedEndException()
		{
			return JsonReaderException.Create(this, "Unexpected end when reading JSON.");
		}

		internal void ReadIntoWrappedTypeObject()
		{
			ReaderReadAndAssert();
			if (Value != null && Value.ToString() == "$type")
			{
				ReaderReadAndAssert();
				if (Value != null && Value.ToString().StartsWith("System.Byte[]", StringComparison.Ordinal))
				{
					ReaderReadAndAssert();
					if (Value.ToString() == "$value")
					{
						return;
					}
				}
			}
			throw JsonReaderException.Create(this, "Error reading bytes. Unexpected token: {0}.".FormatWith(CultureInfo.InvariantCulture, JsonToken.StartObject));
		}

		public void Skip()
		{
			if (TokenType == JsonToken.PropertyName)
			{
				Read();
			}
			if (JsonTokenUtils.IsStartToken(TokenType))
			{
				int depth = Depth;
				while (Read() && depth < Depth)
				{
				}
			}
		}

		protected void SetToken(JsonToken newToken)
		{
			SetToken(newToken, null, updateIndex: true);
		}

		protected void SetToken(JsonToken newToken, object? value)
		{
			SetToken(newToken, value, updateIndex: true);
		}

		protected void SetToken(JsonToken newToken, object? value, bool updateIndex)
		{
			_tokenType = newToken;
			_value = value;
			switch (newToken)
			{
			case JsonToken.StartObject:
				_currentState = State.ObjectStart;
				Push(JsonContainerType.Object);
				break;
			case JsonToken.StartArray:
				_currentState = State.ArrayStart;
				Push(JsonContainerType.Array);
				break;
			case JsonToken.StartConstructor:
				_currentState = State.ConstructorStart;
				Push(JsonContainerType.Constructor);
				break;
			case JsonToken.EndObject:
				ValidateEnd(JsonToken.EndObject);
				break;
			case JsonToken.EndArray:
				ValidateEnd(JsonToken.EndArray);
				break;
			case JsonToken.EndConstructor:
				ValidateEnd(JsonToken.EndConstructor);
				break;
			case JsonToken.PropertyName:
				_currentState = State.Property;
				_currentPosition.PropertyName = (string)value;
				break;
			case JsonToken.Raw:
			case JsonToken.Integer:
			case JsonToken.Float:
			case JsonToken.String:
			case JsonToken.Boolean:
			case JsonToken.Null:
			case JsonToken.Undefined:
			case JsonToken.Date:
			case JsonToken.Bytes:
				SetPostValueState(updateIndex);
				break;
			case JsonToken.Comment:
				break;
			}
		}

		internal void SetPostValueState(bool updateIndex)
		{
			if (Peek() != 0 || SupportMultipleContent)
			{
				_currentState = State.PostValue;
			}
			else
			{
				SetFinished();
			}
			if (updateIndex)
			{
				UpdateScopeWithFinishedValue();
			}
		}

		private void UpdateScopeWithFinishedValue()
		{
			if (_currentPosition.HasIndex)
			{
				_currentPosition.Position++;
			}
		}

		private void ValidateEnd(JsonToken endToken)
		{
			JsonContainerType jsonContainerType = Pop();
			if (GetTypeForCloseToken(endToken) != jsonContainerType)
			{
				throw JsonReaderException.Create(this, "JsonToken {0} is not valid for closing JsonType {1}.".FormatWith(CultureInfo.InvariantCulture, endToken, jsonContainerType));
			}
			if (Peek() != 0 || SupportMultipleContent)
			{
				_currentState = State.PostValue;
			}
			else
			{
				SetFinished();
			}
		}

		protected void SetStateBasedOnCurrent()
		{
			JsonContainerType jsonContainerType = Peek();
			switch (jsonContainerType)
			{
			case JsonContainerType.Object:
				_currentState = State.Object;
				break;
			case JsonContainerType.Array:
				_currentState = State.Array;
				break;
			case JsonContainerType.Constructor:
				_currentState = State.Constructor;
				break;
			case JsonContainerType.None:
				SetFinished();
				break;
			default:
				throw JsonReaderException.Create(this, "While setting the reader state back to current object an unexpected JsonType was encountered: {0}".FormatWith(CultureInfo.InvariantCulture, jsonContainerType));
			}
		}

		private void SetFinished()
		{
			_currentState = ((!SupportMultipleContent) ? State.Finished : State.Start);
		}

		private JsonContainerType GetTypeForCloseToken(JsonToken token)
		{
			return token switch
			{
				JsonToken.EndObject => JsonContainerType.Object, 
				JsonToken.EndArray => JsonContainerType.Array, 
				JsonToken.EndConstructor => JsonContainerType.Constructor, 
				_ => throw JsonReaderException.Create(this, "Not a valid close JsonToken: {0}".FormatWith(CultureInfo.InvariantCulture, token)), 
			};
		}

		void IDisposable.Dispose()
		{
			Dispose(disposing: true);
			GC.SuppressFinalize(this);
		}

		protected virtual void Dispose(bool disposing)
		{
			if (_currentState != State.Closed && disposing)
			{
				Close();
			}
		}

		public virtual void Close()
		{
			_currentState = State.Closed;
			_tokenType = JsonToken.None;
			_value = null;
		}

		internal void ReadAndAssert()
		{
			if (!Read())
			{
				throw JsonSerializationException.Create(this, "Unexpected end when reading JSON.");
			}
		}

		internal void ReadForTypeAndAssert(JsonContract? contract, bool hasConverter)
		{
			if (!ReadForType(contract, hasConverter))
			{
				throw JsonSerializationException.Create(this, "Unexpected end when reading JSON.");
			}
		}

		internal bool ReadForType(JsonContract? contract, bool hasConverter)
		{
			if (hasConverter)
			{
				return Read();
			}
			switch (contract?.InternalReadType ?? ReadType.Read)
			{
			case ReadType.Read:
				return ReadAndMoveToContent();
			case ReadType.ReadAsInt32:
				ReadAsInt32();
				break;
			case ReadType.ReadAsInt64:
			{
				bool result = ReadAndMoveToContent();
				if (TokenType == JsonToken.Undefined)
				{
					throw JsonReaderException.Create(this, "An undefined token is not a valid {0}.".FormatWith(CultureInfo.InvariantCulture, contract?.UnderlyingType ?? typeof(long)));
				}
				return result;
			}
			case ReadType.ReadAsDecimal:
				ReadAsDecimal();
				break;
			case ReadType.ReadAsDouble:
				ReadAsDouble();
				break;
			case ReadType.ReadAsBytes:
				ReadAsBytes();
				break;
			case ReadType.ReadAsBoolean:
				ReadAsBoolean();
				break;
			case ReadType.ReadAsString:
				ReadAsString();
				break;
			case ReadType.ReadAsDateTime:
				ReadAsDateTime();
				break;
			case ReadType.ReadAsDateTimeOffset:
				ReadAsDateTimeOffset();
				break;
			default:
				throw new ArgumentOutOfRangeException();
			}
			return TokenType != JsonToken.None;
		}

		internal bool ReadAndMoveToContent()
		{
			if (Read())
			{
				return MoveToContent();
			}
			return false;
		}

		internal bool MoveToContent()
		{
			JsonToken tokenType = TokenType;
			while (tokenType == JsonToken.None || tokenType == JsonToken.Comment)
			{
				if (!Read())
				{
					return false;
				}
				tokenType = TokenType;
			}
			return true;
		}

		private JsonToken GetContentToken()
		{
			JsonToken tokenType;
			do
			{
				if (!Read())
				{
					SetToken(JsonToken.None);
					return JsonToken.None;
				}
				tokenType = TokenType;
			}
			while (tokenType == JsonToken.Comment);
			return tokenType;
		}
	}
	[Serializable]
	public class JsonReaderException : JsonException
	{
		public int LineNumber { get; }

		public int LinePosition { get; }

		public string? Path { get; }

		public JsonReaderException()
		{
		}

		public JsonReaderException(string message)
			: base(message)
		{
		}

		public JsonReaderException(string message, Exception innerException)
			: base(message, innerException)
		{
		}

		public JsonReaderException(SerializationInfo info, StreamingContext context)
			: base(info, context)
		{
		}

		public JsonReaderException(string message, string path, int lineNumber, int linePosition, Exception? innerException)
			: base(message, innerException)
		{
			Path = path;
			LineNumber = lineNumber;
			LinePosition = linePosition;
		}

		internal static JsonReaderException Create(JsonReader reader, string message)
		{
			return Create(reader, message, null);
		}

		internal static JsonReaderException Create(JsonReader reader, string message, Exception? ex)
		{
			return Create(reader as IJsonLineInfo, reader.Path, message, ex);
		}

		internal static JsonReaderException Create(IJsonLineInfo? lineInfo, string path, string message, Exception? ex)
		{
			message = JsonPosition.FormatMessage(lineInfo, path, message);
			int lineNumber;
			int linePosition;
			if (lineInfo != null && lineInfo.HasLineInfo())
			{
				lineNumber = lineInfo.LineNumber;
				linePosition = lineInfo.LinePosition;
			}
			else
			{
				lineNumber = 0;
				linePosition = 0;
			}
			return new JsonReaderException(message, path, lineNumber, linePosition, ex);
		}
	}
	[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
	public sealed class JsonRequiredAttribute : Attribute
	{
	}
	[Serializable]
	public class JsonSerializationException : JsonException
	{
		public int LineNumber { get; }

		public int LinePosition { get; }

		public string? Path { get; }

		public JsonSerializationException()
		{
		}

		public JsonSerializationException(string message)
			: base(message)
		{
		}

		public JsonSerializationException(string message, Exception innerException)
			: base(message, innerException)
		{
		}

		public JsonSerializationException(SerializationInfo info, StreamingContext context)
			: base(info, context)
		{
		}

		public JsonSerializationException(string message, string path, int lineNumber, int linePosition, Exception? innerException)
			: base(message, innerException)
		{
			Path = path;
			LineNumber = lineNumber;
			LinePosition = linePosition;
		}

		internal static JsonSerializationException Create(JsonReader reader, string message)
		{
			return Create(reader, message, null);
		}

		internal static JsonSerializationException Create(JsonReader reader, string message, Exception? ex)
		{
			return Create(reader as IJsonLineInfo, reader.Path, message, ex);
		}

		internal static JsonSerializationException Create(IJsonLineInfo? lineInfo, string path, string message, Exception? ex)
		{
			message = JsonPosition.FormatMessage(lineInfo, path, message);
			int lineNumber;
			int linePosition;
			if (lineInfo != null && lineInfo.HasLineInfo())
			{
				lineNumber = lineInfo.LineNumber;
				linePosition = lineInfo.LinePosition;
			}
			else
			{
				lineNumber = 0;
				linePosition = 0;
			}
			return new JsonSerializationException(message, path, lineNumber, linePosition, ex);
		}
	}
	public class JsonSerializer
	{
		internal TypeNameHandling _typeNameHandling;

		internal TypeNameAssemblyFormatHandling _typeNameAssemblyFormatHandling;

		internal PreserveReferencesHandling _preserveReferencesHandling;

		internal ReferenceLoopHandling _referenceLoopHandling;

		internal MissingMemberHandling _missingMemberHandling;

		internal ObjectCreationHandling _objectCreationHandling;

		internal NullValueHandling _nullValueHandling;

		internal DefaultValueHandling _defaultValueHandling;

		internal ConstructorHandling _constructorHandling;

		internal MetadataPropertyHandling _metadataPropertyHandling;

		internal JsonConverterCollection? _converters;

		internal IContractResolver _contractResolver;

		internal ITraceWriter? _traceWriter;

		internal IEqualityComparer? _equalityComparer;

		internal ISerializationBinder _serializationBinder;

		internal StreamingContext _context;

		private IReferenceResolver? _referenceResolver;

		private Formatting? _formatting;

		private DateFormatHandling? _dateFormatHandling;

		private DateTimeZoneHandling? _dateTimeZoneHandling;

		private DateParseHandling? _dateParseHandling;

		private FloatFormatHandling? _floatFormatHandling;

		private FloatParseHandling? _floatParseHandling;

		private StringEscapeHandling? _stringEscapeHandling;

		private CultureInfo _culture;

		private int? _maxDepth;

		private bool _maxDepthSet;

		private bool? _checkAdditionalContent;

		private string? _dateFormatString;

		private bool _dateFormatStringSet;

		public virtual IReferenceResolver? ReferenceResolver
		{
			get
			{
				return GetReferenceResolver();
			}
			set
			{
				if (value == null)
				{
					throw new ArgumentNullException("value", "Reference resolver cannot be null.");
				}
				_referenceResolver = value;
			}
		}

		[Obsolete("Binder is obsolete. Use SerializationBinder instead.")]
		public virtual SerializationBinder Binder
		{
			get
			{
				if (_serializationBinder is SerializationBinder result)
				{
					return result;
				}
				if (_serializationBinder is SerializationBinderAdapter serializationBinderAdapter)
				{
					return serializationBinderAdapter.SerializationBinder;
				}
				throw new InvalidOperationException("Cannot get SerializationBinder because an ISerializationBinder was previously set.");
			}
			set
			{
				if (value == null)
				{
					throw new ArgumentNullException("value", "Serialization binder cannot be null.");
				}
				_serializationBinder = (value as ISerializationBinder) ?? new SerializationBinderAdapter(value);
			}
		}

		public virtual ISerializationBinder SerializationBinder
		{
			get
			{
				return _serializationBinder;
			}
			set
			{
				if (value == null)
				{
					throw new ArgumentNullException("value", "Serialization binder cannot be null.");
				}
				_serializationBinder = value;
			}
		}

		public virtual ITraceWriter? TraceWriter
		{
			get
			{
				return _traceWriter;
			}
			set
			{
				_traceWriter = value;
			}
		}

		public virtual IEqualityComparer? EqualityComparer
		{
			get
			{
				return _equalityComparer;
			}
			set
			{
				_equalityComparer = value;
			}
		}

		public virtual TypeNameHandling TypeNameHandling
		{
			get
			{
				return _typeNameHandling;
			}
			set
			{
				if (value < TypeNameHandling.None || value > TypeNameHandling.Auto)
				{
					throw new ArgumentOutOfRangeException("value");
				}
				_typeNameHandling = value;
			}
		}

		[Obsolete("TypeNameAssemblyFormat is obsolete. Use TypeNameAssemblyFormatHandling instead.")]
		public virtual FormatterAssemblyStyle TypeNameAssemblyFormat
		{
			get
			{
				return (FormatterAssemblyStyle)_typeNameAssemblyFormatHandling;
			}
			set
			{
				if (value < FormatterAssemblyStyle.Simple || value > FormatterAssemblyStyle.Full)
				{
					throw new ArgumentOutOfRangeException("value");
				}
				_typeNameAssemblyFormatHandling = (TypeNameAssemblyFormatHandling)value;
			}
		}

		public virtual TypeNameAssemblyFormatHandling TypeNameAssemblyFormatHandling
		{
			get
			{
				return _typeNameAssemblyFormatHandling;
			}
			set
			{
				if (value < TypeNameAssemblyFormatHandling.Simple || value > TypeNameAssemblyFormatHandling.Full)
				{
					throw new ArgumentOutOfRangeException("value");
				}
				_typeNameAssemblyFormatHandling = value;
			}
		}

		public virtual PreserveReferencesHandling PreserveReferencesHandling
		{
			get
			{
				return _preserveReferencesHandling;
			}
			set
			{
				if (value < PreserveReferencesHandling.None || value > PreserveReferencesHandling.All)
				{
					throw new ArgumentOutOfRangeException("value");
				}
				_preserveReferencesHandling = value;
			}
		}

		public virtual ReferenceLoopHandling ReferenceLoopHandling
		{
			get
			{
				return _referenceLoopHandling;
			}
			set
			{
				if (value < ReferenceLoopHandling.Error || value > ReferenceLoopHandling.Serialize)
				{
					throw new ArgumentOutOfRangeException("value");
				}
				_referenceLoopHandling = value;
			}
		}

		public virtual MissingMemberHandling MissingMemberHandling
		{
			get
			{
				return _missingMemberHandling;
			}
			set
			{
				if (value < MissingMemberHandling.Ignore || value > MissingMemberHandling.Error)
				{
					throw new ArgumentOutOfRangeException("value");
				}
				_missingMemberHandling = value;
			}
		}

		public virtual NullValueHandling NullValueHandling
		{
			get
			{
				return _nullValueHandling;
			}
			set
			{
				if (value < NullValueHandling.Include || value > NullValueHandling.Ignore)
				{
					throw new ArgumentOutOfRangeException("value");
				}
				_nullValueHandling = value;
			}
		}

		public virtual DefaultValueHandling DefaultValueHandling
		{
			get
			{
				return _defaultValueHandling;
			}
			set
			{
				if (value < DefaultValueHandling.Include || value > DefaultValueHandling.IgnoreAndPopulate)
				{
					throw new ArgumentOutOfRangeException("value");
				}
				_defaultValueHandling = value;
			}
		}

		public virtual ObjectCreationHandling ObjectCreationHandling
		{
			get
			{
				return _objectCreationHandling;
			}
			set
			{
				if (value < ObjectCreationHandling.Auto || value > ObjectCreationHandling.Replace)
				{
					throw new ArgumentOutOfRangeException("value");
				}
				_objectCreationHandling = value;
			}
		}

		public virtual ConstructorHandling ConstructorHandling
		{
			get
			{
				return _constructorHandling;
			}
			set
			{
				if (value < ConstructorHandling.Default || value > ConstructorHandling.AllowNonPublicDefaultConstructor)
				{
					throw new ArgumentOutOfRangeException("value");
				}
				_constructorHandling = value;
			}
		}

		public virtual MetadataPropertyHandling MetadataPropertyHandling
		{
			get
			{
				return _metadataPropertyHandling;
			}
			set
			{
				if (value < MetadataPropertyHandling.Default || value > MetadataPropertyHandling.Ignore)
				{
					throw new ArgumentOutOfRangeException("value");
				}
				_metadataPropertyHandling = value;
			}
		}

		public virtual JsonConverterCollection Converters
		{
			get
			{
				if (_converters == null)
				{
					_converters = new JsonConverterCollection();
				}
				return _converters;
			}
		}

		public virtual IContractResolver ContractResolver
		{
			get
			{
				return _contractResolver;
			}
			set
			{
				_contractResolver = value ?? DefaultContractResolver.Instance;
			}
		}

		public virtual StreamingContext Context
		{
			get
			{
				return _context;
			}
			set
			{
				_context = value;
			}
		}

		public virtual Formatting Formatting
		{
			get
			{
				return _formatting.GetValueOrDefault();
			}
			set
			{
				_formatting = value;
			}
		}

		public virtual DateFormatHandling DateFormatHandling
		{
			get
			{
				return _dateFormatHandling.GetValueOrDefault();
			}
			set
			{
				_dateFormatHandling = value;
			}
		}

		public virtual DateTimeZoneHandling DateTimeZoneHandling
		{
			get
			{
				return _dateTimeZoneHandling ?? DateTimeZoneHandling.RoundtripKind;
			}
			set
			{
				_dateTimeZoneHandling = value;
			}
		}

		public virtual DateParseHandling DateParseHandling
		{
			get
			{
				return _dateParseHandling ?? DateParseHandling.DateTime;
			}
			set
			{
				_dateParseHandling = value;
			}
		}

		public virtual FloatParseHandling FloatParseHandling
		{
			get
			{
				return _floatParseHandling.GetValueOrDefault();
			}
			set
			{
				_floatParseHandling = value;
			}
		}

		public virtual FloatFormatHandling FloatFormatHandling
		{
			get
			{
				return _floatFormatHandling.GetValueOrDefault();
			}
			set
			{
				_floatFormatHandling = value;
			}
		}

		public virtual StringEscapeHandling StringEscapeHandling
		{
			get
			{
				return _stringEscapeHandling.GetValueOrDefault();
			}
			set
			{
				_stringEscapeHandling = value;
			}
		}

		public virtual string DateFormatString
		{
			get
			{
				return _dateFormatString ?? "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK";
			}
			set
			{
				_dateFormatString = value;
				_dateFormatStringSet = true;
			}
		}

		public virtual CultureInfo Culture
		{
			get
			{
				return _culture ?? JsonSerializerSettings.DefaultCulture;
			}
			set
			{
				_culture = value;
			}
		}

		public virtual int? MaxDepth
		{
			get
			{
				return _maxDepth;
			}
			set
			{
				if (value <= 0)
				{
					throw new ArgumentException("Value must be positive.", "value");
				}
				_maxDepth = value;
				_maxDepthSet = true;
			}
		}

		public virtual bool CheckAdditionalContent
		{
			get
			{
				return _checkAdditionalContent.GetValueOrDefault();
			}
			set
			{
				_checkAdditionalContent = value;
			}
		}

		public virtual event EventHandler<Newtonsoft.Json.Serialization.ErrorEventArgs>? Error;

		internal bool IsCheckAdditionalContentSet()
		{
			return _checkAdditionalContent.HasValue;
		}

		public JsonSerializer()
		{
			_referenceLoopHandling = ReferenceLoopHandling.Error;
			_missingMemberHandling = MissingMemberHandling.Ignore;
			_nullValueHandling = NullValueHandling.Include;
			_defaultValueHandling = DefaultValueHandling.Include;
			_objectCreationHandling = ObjectCreationHandling.Auto;
			_preserveReferencesHandling = PreserveReferencesHandling.None;
			_constructorHandling = ConstructorHandling.Default;
			_typeNameHandling = TypeNameHandling.None;
			_metadataPropertyHandling = MetadataPropertyHandling.Default;
			_context = JsonSerializerSettings.DefaultContext;
			_serializationBinder = DefaultSerializationBinder.Instance;
			_culture = JsonSerializerSettings.DefaultCulture;
			_contractResolver = DefaultContractResolver.Instance;
		}

		public static JsonSerializer Create()
		{
			return new JsonSerializer();
		}

		public static JsonSerializer Create(JsonSerializerSettings? settings)
		{
			JsonSerializer jsonSerializer = Create();
			if (settings != null)
			{
				ApplySerializerSettings(jsonSerializer, settings);
			}
			return jsonSerializer;
		}

		public static JsonSerializer CreateDefault()
		{
			return Create(JsonConvert.DefaultSettings?.Invoke());
		}

		public static JsonSerializer CreateDefault(JsonSerializerSettings? settings)
		{
			JsonSerializer jsonSerializer = CreateDefault();
			if (settings != null)
			{
				ApplySerializerSettings(jsonSerializer, settings);
			}
			return jsonSerializer;
		}

		private static void ApplySerializerSettings(JsonSerializer serializer, JsonSerializerSettings settings)
		{
			if (!CollectionUtils.IsNullOrEmpty(settings.Converters))
			{
				for (int i = 0; i < settings.Converters.Count; i++)
				{
					serializer.Converters.Insert(i, settings.Converters[i]);
				}
			}
			if (settings._typeNameHandling.HasValue)
			{
				serializer.TypeNameHandling = settings.TypeNameHandling;
			}
			if (settings._metadataPropertyHandling.HasValue)
			{
				serializer.MetadataPropertyHandling = settings.MetadataPropertyHandling;
			}
			if (settings._typeNameAssemblyFormatHandling.HasValue)
			{
				serializer.TypeNameAssemblyFormatHandling = settings.TypeNameAssemblyFormatHandling;
			}
			if (settings._preserveReferencesHandling.HasValue)
			{
				serializer.PreserveReferencesHandling = settings.PreserveReferencesHandling;
			}
			if (settings._referenceLoopHandling.HasValue)
			{
				serializer.ReferenceLoopHandling = settings.ReferenceLoopHandling;
			}
			if (settings._missingMemberHandling.HasValue)
			{
				serializer.MissingMemberHandling = settings.MissingMemberHandling;
			}
			if (settings._objectCreationHandling.HasValue)
			{
				serializer.ObjectCreationHandling = settings.ObjectCreationHandling;
			}
			if (settings._nullValueHandling.HasValue)
			{
				serializer.NullValueHandling = settings.NullValueHandling;
			}
			if (settings._defaultValueHandling.HasValue)
			{
				serializer.DefaultValueHandling = settings.DefaultValueHandling;
			}
			if (settings._constructorHandling.HasValue)
			{
				serializer.ConstructorHandling = settings.ConstructorHandling;
			}
			if (settings._context.HasValue)
			{
				serializer.Context = settings.Context;
			}
			if (settings._checkAdditionalContent.HasValue)
			{
				serializer._checkAdditionalContent = settings._checkAdditionalContent;
			}
			if (settings.Error != null)
			{
				serializer.Error += settings.Error;
			}
			if (settings.ContractResolver != null)
			{
				serializer.ContractResolver = settings.ContractResolver;
			}
			if (settings.ReferenceResolverProvider != null)
			{
				serializer.ReferenceResolver = settings.ReferenceResolverProvider();
			}
			if (settings.TraceWriter != null)
			{
				serializer.TraceWriter = settings.TraceWriter;
			}
			if (settings.EqualityComparer != null)
			{
				serializer.EqualityComparer = settings.EqualityComparer;
			}
			if (settings.SerializationBinder != null)
			{
				serializer.SerializationBinder = settings.SerializationBinder;
			}
			if (settings._formatting.HasValue)
			{
				serializer._formatting = settings._formatting;
			}
			if (settings._dateFormatHandling.HasValue)
			{
				serializer._dateFormatHandling = settings._dateFormatHandling;
			}
			if (settings._dateTimeZoneHandling.HasValue)
			{
				serializer._dateTimeZoneHandling = settings._dateTimeZoneHandling;
			}
			if (settings._dateParseHandling.HasValue)
			{
				serializer._dateParseHandling = settings._dateParseHandling;
			}
			if (settings._dateFormatStringSet)
			{
				serializer._dateFormatString = settings._dateFormatString;
				serializer._dateFormatStringSet = settings._dateFormatStringSet;
			}
			if (settings._floatFormatHandling.HasValue)
			{
				serializer._floatFormatHandling = settings._floatFormatHandling;
			}
			if (settings._floatParseHandling.HasValue)
			{
				serializer._floatParseHandling = settings._floatParseHandling;
			}
			if (settings._stringEscapeHandling.HasValue)
			{
				serializer._stringEscapeHandling = settings._stringEscapeHandling;
			}
			if (settings._culture != null)
			{
				serializer._culture = settings._culture;
			}
			if (settings._maxDepthSet)
			{
				serializer._maxDepth = settings._maxDepth;
				serializer._maxDepthSet = settings._maxDepthSet;
			}
		}

		[DebuggerStepThrough]
		public void Populate(TextReader reader, object target)
		{
			Populate(new JsonTextReader(reader), target);
		}

		[DebuggerStepThrough]
		public void Populate(JsonReader reader, object target)
		{
			PopulateInternal(reader, target);
		}

		internal virtual void PopulateInternal(JsonReader reader, object target)
		{
			ValidationUtils.ArgumentNotNull(reader, "reader");
			ValidationUtils.ArgumentNotNull(target, "target");
			SetupReader(reader, out CultureInfo previousCulture, out DateTimeZoneHandling? previousDateTimeZoneHandling, out DateParseHandling? previousDateParseHandling, out FloatParseHandling? previousFloatParseHandling, out int? previousMaxDepth, out string previousDateFormatString);
			TraceJsonReader traceJsonReader = ((TraceWriter != null && TraceWriter.LevelFilter >= TraceLevel.Verbose) ? CreateTraceJsonReader(reader) : null);
			new JsonSerializerInternalReader(this).Populate(traceJsonReader ?? reader, target);
			if (traceJsonReader != null)
			{
				TraceWriter.Trace(TraceLevel.Verbose, traceJsonReader.GetDeserializedJsonMessage(), null);
			}
			ResetReader(reader, previousCulture, previousDateTimeZoneHandling, previousDateParseHandling, previousFloatParseHandling, previousMaxDepth, previousDateFormatString);
		}

		[DebuggerStepThrough]
		public object? Deserialize(JsonReader reader)
		{
			return Deserialize(reader, null);
		}

		[DebuggerStepThrough]
		public object? Deserialize(TextReader reader, Type objectType)
		{
			return Deserialize(new JsonTextReader(reader), objectType);
		}

		[DebuggerStepThrough]
		public T? Deserialize<T>(JsonReader reader)
		{
			return (T)Deserialize(reader, typeof(T));
		}

		[DebuggerStepThrough]
		public object? Deserialize(JsonReader reader, Type? objectType)
		{
			return DeserializeInternal(reader, objectType);
		}

		internal virtual object? DeserializeInternal(JsonReader reader, Type? objectType)
		{
			ValidationUtils.ArgumentNotNull(reader, "reader");
			SetupReader(reader, out CultureInfo previousCulture, out DateTimeZoneHandling? previousDateTimeZoneHandling, out DateParseHandling? previousDateParseHandling, out FloatParseHandling? previousFloatParseHandling, out int? previousMaxDepth, out string previousDateFormatString);
			TraceJsonReader traceJsonReader = ((TraceWriter != null && TraceWriter.LevelFilter >= TraceLevel.Verbose) ? CreateTraceJsonReader(reader) : null);
			object? result = new JsonSerializerInternalReader(this).Deserialize(traceJsonReader ?? reader, objectType, CheckAdditionalContent);
			if (traceJsonReader != null)
			{
				TraceWriter.Trace(TraceLevel.Verbose, traceJsonReader.GetDeserializedJsonMessage(), null);
			}
			ResetReader(reader, previousCulture, previousDateTimeZoneHandling, previousDateParseHandling, previousFloatParseHandling, previousMaxDepth, previousDateFormatString);
			return result;
		}

		internal void SetupReader(JsonReader reader, out CultureInfo? previousCulture, out DateTimeZoneHandling? previousDateTimeZoneHandling, out DateParseHandling? previousDateParseHandling, out FloatParseHandling? previousFloatParseHandling, out int? previousMaxDepth, out string? previousDateFormatString)
		{
			if (_culture != null && !_culture.Equals(reader.Culture))
			{
				previousCulture = reader.Culture;
				reader.Culture = _culture;
			}
			else
			{
				previousCulture = null;
			}
			if (_dateTimeZoneHandling.HasValue && reader.DateTimeZoneHandling != _dateTimeZoneHandling)
			{
				previousDateTimeZoneHandling = reader.DateTimeZoneHandling;
				reader.DateTimeZoneHandling = _dateTimeZoneHandling.GetValueOrDefault();
			}
			else
			{
				previousDateTimeZoneHandling = null;
			}
			if (_dateParseHandling.HasValue && reader.DateParseHandling != _dateParseHandling)
			{
				previousDateParseHandling = reader.DateParseHandling;
				reader.DateParseHandling = _dateParseHandling.GetValueOrDefault();
			}
			else
			{
				previousDateParseHandling = null;
			}
			if (_floatParseHandling.HasValue && reader.FloatParseHandling != _floatParseHandling)
			{
				previousFloatParseHandling = reader.FloatParseHandling;
				reader.FloatParseHandling = _floatParseHandling.GetValueOrDefault();
			}
			else
			{
				previousFloatParseHandling = null;
			}
			if (_maxDepthSet && reader.MaxDepth != _maxDepth)
			{
				previousMaxDepth = reader.MaxDepth;
				reader.MaxDepth = _maxDepth;
			}
			else
			{
				previousMaxDepth = null;
			}
			if (_dateFormatStringSet && reader.DateFormatString != _dateFormatString)
			{
				previousDateFormatString = reader.DateFormatString;
				reader.DateFormatString = _dateFormatString;
			}
			else
			{
				previousDateFormatString = null;
			}
			if (reader is JsonTextReader jsonTextReader && jsonTextReader.PropertyNameTable == null && _contractResolver is DefaultContractResolver defaultContractResolver)
			{
				jsonTextReader.PropertyNameTable = defaultContractResolver.GetNameTable();
			}
		}

		private void ResetReader(JsonReader reader, CultureInfo? previousCulture, DateTimeZoneHandling? previousDateTimeZoneHandling, DateParseHandling? previousDateParseHandling, FloatParseHandling? previousFloatParseHandling, int? previousMaxDepth, string? previousDateFormatString)
		{
			if (previousCulture != null)
			{
				reader.Culture = previousCulture;
			}
			if (previousDateTimeZoneHandling.HasValue)
			{
				reader.DateTimeZoneHandling = previousDateTimeZoneHandling.GetValueOrDefault();
			}
			if (previousDateParseHandling.HasValue)
			{
				reader.DateParseHandling = previousDateParseHandling.GetValueOrDefault();
			}
			if (previousFloatParseHandling.HasValue)
			{
				reader.FloatParseHandling = previousFloatParseHandling.GetValueOrDefault();
			}
			if (_maxDepthSet)
			{
				reader.MaxDepth = previousMaxDepth;
			}
			if (_dateFormatStringSet)
			{
				reader.DateFormatString = previousDateFormatString;
			}
			if (reader is JsonTextReader jsonTextReader && jsonTextReader.PropertyNameTable != null && _contractResolver is DefaultContractResolver defaultContractResolver && jsonTextReader.PropertyNameTable == defaultContractResolver.GetNameTable())
			{
				jsonTextReader.PropertyNameTable = null;
			}
		}

		public void Serialize(TextWriter textWriter, object? value)
		{
			Serialize(new JsonTextWriter(textWriter), value);
		}

		public void Serialize(JsonWriter jsonWriter, object? value, Type? objectType)
		{
			SerializeInternal(jsonWriter, value, objectType);
		}

		public void Serialize(TextWriter textWriter, object? value, Type objectType)
		{
			Serialize(new JsonTextWriter(textWriter), value, objectType);
		}

		public void Serialize(JsonWriter jsonWriter, object? value)
		{
			SerializeInternal(jsonWriter, value, null);
		}

		private TraceJsonReader CreateTraceJsonReader(JsonReader reader)
		{
			TraceJsonReader traceJsonReader = new TraceJsonReader(reader);
			if (reader.TokenType != 0)
			{
				traceJsonReader.WriteCurrentToken();
			}
			return traceJsonReader;
		}

		internal virtual void SerializeInternal(JsonWriter jsonWriter, object? value, Type? objectType)
		{
			ValidationUtils.ArgumentNotNull(jsonWriter, "jsonWriter");
			Formatting? formatting = null;
			if (_formatting.HasValue && jsonWriter.Formatting != _formatting)
			{
				formatting = jsonWriter.Formatting;
				jsonWriter.Formatting = _formatting.GetValueOrDefault();
			}
			DateFormatHandling? dateFormatHandling = null;
			if (_dateFormatHandling.HasValue && jsonWriter.DateFormatHandling != _dateFormatHandling)
			{
				dateFormatHandling = jsonWriter.DateFormatHandling;
				jsonWriter.DateFormatHandling = _dateFormatHandling.GetValueOrDefault();
			}
			DateTimeZoneHandling? dateTimeZoneHandling = null;
			if (_dateTimeZoneHandling.HasValue && jsonWriter.DateTimeZoneHandling != _dateTimeZoneHandling)
			{
				dateTimeZoneHandling = jsonWriter.DateTimeZoneHandling;
				jsonWriter.DateTimeZoneHandling = _dateTimeZoneHandling.GetValueOrDefault();
			}
			FloatFormatHandling? floatFormatHandling = null;
			if (_floatFormatHandling.HasValue && jsonWriter.FloatFormatHandling != _floatFormatHandling)
			{
				floatFormatHandling = jsonWriter.FloatFormatHandling;
				jsonWriter.FloatFormatHandling = _floatFormatHandling.GetValueOrDefault();
			}
			StringEscapeHandling? stringEscapeHandling = null;
			if (_stringEscapeHandling.HasValue && jsonWriter.StringEscapeHandling != _stringEscapeHandling)
			{
				stringEscapeHandling = jsonWriter.StringEscapeHandling;
				jsonWriter.StringEscapeHandling = _stringEscapeHandling.GetValueOrDefault();
			}
			CultureInfo cultureInfo = null;
			if (_culture != null && !_culture.Equals(jsonWriter.Culture))
			{
				cultureInfo = jsonWriter.Culture;
				jsonWriter.Culture = _culture;
			}
			string dateFormatString = null;
			if (_dateFormatStringSet && jsonWriter.DateFormatString != _dateFormatString)
			{
				dateFormatString = jsonWriter.DateFormatString;
				jsonWriter.DateFormatString = _dateFormatString;
			}
			TraceJsonWriter traceJsonWriter = ((TraceWriter != null && TraceWriter.LevelFilter >= TraceLevel.Verbose) ? new TraceJsonWriter(jsonWriter) : null);
			new JsonSerializerInternalWriter(this).Serialize(traceJsonWriter ?? jsonWriter, value, objectType);
			if (traceJsonWriter != null)
			{
				TraceWriter.Trace(TraceLevel.Verbose, traceJsonWriter.GetSerializedJsonMessage(), null);
			}
			if (formatting.HasValue)
			{
				jsonWriter.Formatting = formatting.GetValueOrDefault();
			}
			if (dateFormatHandling.HasValue)
			{
				jsonWriter.DateFormatHandling = dateFormatHandling.GetValueOrDefault();
			}
			if (dateTimeZoneHandling.HasValue)
			{
				jsonWriter.DateTimeZoneHandling = dateTimeZoneHandling.GetValueOrDefault();
			}
			if (floatFormatHandling.HasValue)
			{
				jsonWriter.FloatFormatHandling = floatFormatHandling.GetValueOrDefault();
			}
			if (stringEscapeHandling.HasValue)
			{
				jsonWriter.StringEscapeHandling = stringEscapeHandling.GetValueOrDefault();
			}
			if (_dateFormatStringSet)
			{
				jsonWriter.DateFormatString = dateFormatString;
			}
			if (cultureInfo != null)
			{
				jsonWriter.Culture = cultureInfo;
			}
		}

		internal IReferenceResolver GetReferenceResolver()
		{
			if (_referenceResolver == null)
			{
				_referenceResolver = new DefaultReferenceResolver();
			}
			return _referenceResolver;
		}

		internal JsonConverter? GetMatchingConverter(Type type)
		{
			return GetMatchingConverter(_converters, type);
		}

		internal static JsonConverter? GetMatchingConverter(IList<JsonConverter>? converters, Type objectType)
		{
			if (converters != null)
			{
				for (int i = 0; i < converters.Count; i++)
				{
					JsonConverter jsonConverter = converters[i];
					if (jsonConverter.CanConvert(objectType))
					{
						return jsonConverter;
					}
				}
			}
			return null;
		}

		internal void OnError(Newtonsoft.Json.Serialization.ErrorEventArgs e)
		{
			this.Error?.Invoke(this, e);
		}
	}
	public class JsonSerializerSettings
	{
		internal const ReferenceLoopHandling DefaultReferenceLoopHandling = ReferenceLoopHandling.Error;

		internal const MissingMemberHandling DefaultMissingMemberHandling = MissingMemberHandling.Ignore;

		internal const NullValueHandling DefaultNullValueHandling = NullValueHandling.Include;

		internal const DefaultValueHandling DefaultDefaultValueHandling = DefaultValueHandling.Include;

		internal const ObjectCreationHandling DefaultObjectCreationHandling = ObjectCreationHandling.Auto;

		internal const PreserveReferencesHandling DefaultPreserveReferencesHandling = PreserveReferencesHandling.None;

		internal const ConstructorHandling DefaultConstructorHandling = ConstructorHandling.Default;

		internal const TypeNameHandling DefaultTypeNameHandling = TypeNameHandling.None;

		internal const MetadataPropertyHandling DefaultMetadataPropertyHandling = MetadataPropertyHandling.Default;

		internal static readonly StreamingContext DefaultContext;

		internal const Formatting DefaultFormatting = Formatting.None;

		internal const DateFormatHandling DefaultDateFormatHandling = DateFormatHandling.IsoDateFormat;

		internal const DateTimeZoneHandling DefaultDateTimeZoneHandling = DateTimeZoneHandling.RoundtripKind;

		internal const DateParseHandling DefaultDateParseHandling = DateParseHandling.DateTime;

		internal const FloatParseHandling DefaultFloatParseHandling = FloatParseHandling.Double;

		internal const FloatFormatHandling DefaultFloatFormatHandling = FloatFormatHandling.String;

		internal const StringEscapeHandling DefaultStringEscapeHandling = StringEscapeHandling.Default;

		internal const TypeNameAssemblyFormatHandling DefaultTypeNameAssemblyFormatHandling = TypeNameAssemblyFormatHandling.Simple;

		internal static readonly CultureInfo DefaultCulture;

		internal const bool DefaultCheckAdditionalContent = false;

		internal const string DefaultDateFormatString = "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK";

		internal const int DefaultMaxDepth = 64;

		internal Formatting? _formatting;

		internal DateFormatHandling? _dateFormatHandling;

		internal DateTimeZoneHandling? _dateTimeZoneHandling;

		internal DateParseHandling? _dateParseHandling;

		internal FloatFormatHandling? _floatFormatHandling;

		internal FloatParseHandling? _floatParseHandling;

		internal StringEscapeHandling? _stringEscapeHandling;

		internal CultureInfo? _culture;

		internal bool? _checkAdditionalContent;

		internal int? _maxDepth;

		internal bool _maxDepthSet;

		internal string? _dateFormatString;

		internal bool _dateFormatStringSet;

		internal TypeNameAssemblyFormatHandling? _typeNameAssemblyFormatHandling;

		internal DefaultValueHandling? _defaultValueHandling;

		internal PreserveReferencesHandling? _preserveReferencesHandling;

		internal NullValueHandling? _nullValueHandling;

		internal ObjectCreationHandling? _objectCreationHandling;

		internal MissingMemberHandling? _missingMemberHandling;

		internal ReferenceLoopHandling? _referenceLoopHandling;

		internal StreamingContext? _context;

		internal ConstructorHandling? _constructorHandling;

		internal TypeNameHandling? _typeNameHandling;

		internal MetadataPropertyHandling? _metadataPropertyHandling;

		public ReferenceLoopHandling ReferenceLoopHandling
		{
			get
			{
				return _referenceLoopHandling.GetValueOrDefault();
			}
			set
			{
				_referenceLoopHandling = value;
			}
		}

		public MissingMemberHandling MissingMemberHandling
		{
			get
			{
				return _missingMemberHandling.GetValueOrDefault();
			}
			set
			{
				_missingMemberHandling = value;
			}
		}

		public ObjectCreationHandling ObjectCreationHandling
		{
			get
			{
				return _objectCreationHandling.GetValueOrDefault();
			}
			set
			{
				_objectCreationHandling = value;
			}
		}

		public NullValueHandling NullValueHandling
		{
			get
			{
				return _nullValueHandling.GetValueOrDefault();
			}
			set
			{
				_nullValueHandling = value;
			}
		}

		public DefaultValueHandling DefaultValueHandling
		{
			get
			{
				return _defaultValueHandling.GetValueOrDefault();
			}
			set
			{
				_defaultValueHandling = value;
			}
		}

		public IList<JsonConverter> Converters { get; set; }

		public PreserveReferencesHandling PreserveReferencesHandling
		{
			get
			{
				return _preserveReferencesHandling.GetValueOrDef

plugins/SteamVR.dll

Decompiled 3 days ago
using System;
using System.CodeDom.Compiler;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using Unity.XR.OpenVR;
using UnityEngine;
using UnityEngine.AI;
using UnityEngine.EventSystems;
using UnityEngine.Events;
using UnityEngine.Rendering;
using UnityEngine.SceneManagement;
using UnityEngine.Serialization;
using UnityEngine.SpatialTracking;
using UnityEngine.UI;
using UnityEngine.XR;
using Valve.Newtonsoft.Json;
using Valve.VR;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyVersion("0.0.0.0")]
[ExecuteInEditMode]
public class URPMaterialSwitcher : MonoBehaviour
{
	public bool children;
}
public static class SteamVR_Utils
{
	public class Event
	{
		public delegate void Handler(params object[] args);

		private static Hashtable listeners = new Hashtable();

		public static void Listen(string message, Handler action)
		{
			if (listeners[message] is Handler a)
			{
				listeners[message] = (Handler)Delegate.Combine(a, action);
			}
			else
			{
				listeners[message] = action;
			}
		}

		public static void Remove(string message, Handler action)
		{
			if (listeners[message] is Handler source)
			{
				listeners[message] = (Handler)Delegate.Remove(source, action);
			}
		}

		public static void Send(string message, params object[] args)
		{
			if (listeners[message] is Handler handler)
			{
				handler(args);
			}
		}
	}

	[Serializable]
	public struct RigidTransform
	{
		public Vector3 pos;

		public Quaternion rot;

		public static RigidTransform identity => new RigidTransform(Vector3.zero, Quaternion.identity);

		public static RigidTransform FromLocal(Transform t)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			return new RigidTransform(t.localPosition, t.localRotation);
		}

		public RigidTransform(Vector3 pos, Quaternion rot)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0008: Unknown result type (might be due to invalid IL or missing references)
			//IL_0009: Unknown result type (might be due to invalid IL or missing references)
			this.pos = pos;
			this.rot = rot;
		}

		public RigidTransform(Transform t)
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_000e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0013: Unknown result type (might be due to invalid IL or missing references)
			pos = t.position;
			rot = t.rotation;
		}

		public RigidTransform(Transform from, Transform to)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0006: Unknown result type (might be due to invalid IL or missing references)
			//IL_000b: Unknown result type (might be due to invalid IL or missing references)
			//IL_000d: Unknown result type (might be due to invalid IL or missing references)
			//IL_000f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0014: Unknown result type (might be due to invalid IL or missing references)
			//IL_0019: Unknown result type (might be due to invalid IL or missing references)
			//IL_001f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0021: Unknown result type (might be due to invalid IL or missing references)
			//IL_0027: Unknown result type (might be due to invalid IL or missing references)
			//IL_002c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0031: Unknown result type (might be due to invalid IL or missing references)
			//IL_0036: Unknown result type (might be due to invalid IL or missing references)
			Quaternion val = Quaternion.Inverse(from.rotation);
			rot = val * to.rotation;
			pos = val * (to.position - from.position);
		}

		public RigidTransform(HmdMatrix34_t pose)
		{
			//IL_0000: Unknown result type (might be due to invalid IL or missing references)
			//IL_0005: Unknown result type (might be due to invalid IL or missing references)
			//IL_000a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0019: Unknown result type (might be due to invalid IL or missing references)
			//IL_0028: Unknown result type (might be due to invalid IL or missing references)
			//IL_0038: Unknown result type (might be due to invalid IL or missing references)
			//IL_0047: Unknown result type (might be due to invalid IL or missing references)
			//IL_0056: Unknown result type (might be due to invalid IL or missing references)
			//IL_0065: Unknown result type (might be due to invalid IL or missing references)
			//IL_0075: Unknown result type (might be due to invalid IL or missing references)
			//IL_0084: Unknown result type (might be due to invalid IL or missing references)
			//IL_0094: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b3: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c2: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c7: Unknown result type (might be due to invalid IL or missing references)
			//IL_00cd: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ce: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d3: Unknown result type (might be due to invalid IL or missing references)
			Matrix4x4 matrix = Matrix4x4.identity;
			((Matrix4x4)(ref matrix))[0, 0] = pose.m0;
			((Matrix4x4)(ref matrix))[0, 1] = pose.m1;
			((Matrix4x4)(ref matrix))[0, 2] = 0f - pose.m2;
			((Matrix4x4)(ref matrix))[0, 3] = pose.m3;
			((Matrix4x4)(ref matrix))[1, 0] = pose.m4;
			((Matrix4x4)(ref matrix))[1, 1] = pose.m5;
			((Matrix4x4)(ref matrix))[1, 2] = 0f - pose.m6;
			((Matrix4x4)(ref matrix))[1, 3] = pose.m7;
			((Matrix4x4)(ref matrix))[2, 0] = 0f - pose.m8;
			((Matrix4x4)(ref matrix))[2, 1] = 0f - pose.m9;
			((Matrix4x4)(ref matrix))[2, 2] = pose.m10;
			((Matrix4x4)(ref matrix))[2, 3] = 0f - pose.m11;
			pos = ((Matrix4x4)(ref matrix)).GetPosition();
			rot = matrix.GetRotation();
		}

		public RigidTransform(HmdMatrix44_t pose)
		{
			//IL_0000: Unknown result type (might be due to invalid IL or missing references)
			//IL_0005: Unknown result type (might be due to invalid IL or missing references)
			//IL_000a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0019: Unknown result type (might be due to invalid IL or missing references)
			//IL_0028: Unknown result type (might be due to invalid IL or missing references)
			//IL_0038: Unknown result type (might be due to invalid IL or missing references)
			//IL_0047: Unknown result type (might be due to invalid IL or missing references)
			//IL_0056: Unknown result type (might be due to invalid IL or missing references)
			//IL_0065: Unknown result type (might be due to invalid IL or missing references)
			//IL_0075: Unknown result type (might be due to invalid IL or missing references)
			//IL_0084: Unknown result type (might be due to invalid IL or missing references)
			//IL_0094: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b3: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c3: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d2: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e1: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f1: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ff: Unknown result type (might be due to invalid IL or missing references)
			//IL_0104: Unknown result type (might be due to invalid IL or missing references)
			//IL_010a: Unknown result type (might be due to invalid IL or missing references)
			//IL_010b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0110: Unknown result type (might be due to invalid IL or missing references)
			Matrix4x4 matrix = Matrix4x4.identity;
			((Matrix4x4)(ref matrix))[0, 0] = pose.m0;
			((Matrix4x4)(ref matrix))[0, 1] = pose.m1;
			((Matrix4x4)(ref matrix))[0, 2] = 0f - pose.m2;
			((Matrix4x4)(ref matrix))[0, 3] = pose.m3;
			((Matrix4x4)(ref matrix))[1, 0] = pose.m4;
			((Matrix4x4)(ref matrix))[1, 1] = pose.m5;
			((Matrix4x4)(ref matrix))[1, 2] = 0f - pose.m6;
			((Matrix4x4)(ref matrix))[1, 3] = pose.m7;
			((Matrix4x4)(ref matrix))[2, 0] = 0f - pose.m8;
			((Matrix4x4)(ref matrix))[2, 1] = 0f - pose.m9;
			((Matrix4x4)(ref matrix))[2, 2] = pose.m10;
			((Matrix4x4)(ref matrix))[2, 3] = 0f - pose.m11;
			((Matrix4x4)(ref matrix))[3, 0] = pose.m12;
			((Matrix4x4)(ref matrix))[3, 1] = pose.m13;
			((Matrix4x4)(ref matrix))[3, 2] = 0f - pose.m14;
			((Matrix4x4)(ref matrix))[3, 3] = pose.m15;
			pos = ((Matrix4x4)(ref matrix)).GetPosition();
			rot = matrix.GetRotation();
		}

		public HmdMatrix44_t ToHmdMatrix44()
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_000c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0011: Unknown result type (might be due to invalid IL or missing references)
			//IL_0016: Unknown result type (might be due to invalid IL or missing references)
			//IL_0019: Unknown result type (might be due to invalid IL or missing references)
			//IL_0125: Unknown result type (might be due to invalid IL or missing references)
			Matrix4x4 val = Matrix4x4.TRS(pos, rot, Vector3.one);
			return new HmdMatrix44_t
			{
				m0 = ((Matrix4x4)(ref val))[0, 0],
				m1 = ((Matrix4x4)(ref val))[0, 1],
				m2 = 0f - ((Matrix4x4)(ref val))[0, 2],
				m3 = ((Matrix4x4)(ref val))[0, 3],
				m4 = ((Matrix4x4)(ref val))[1, 0],
				m5 = ((Matrix4x4)(ref val))[1, 1],
				m6 = 0f - ((Matrix4x4)(ref val))[1, 2],
				m7 = ((Matrix4x4)(ref val))[1, 3],
				m8 = 0f - ((Matrix4x4)(ref val))[2, 0],
				m9 = 0f - ((Matrix4x4)(ref val))[2, 1],
				m10 = ((Matrix4x4)(ref val))[2, 2],
				m11 = 0f - ((Matrix4x4)(ref val))[2, 3],
				m12 = ((Matrix4x4)(ref val))[3, 0],
				m13 = ((Matrix4x4)(ref val))[3, 1],
				m14 = 0f - ((Matrix4x4)(ref val))[3, 2],
				m15 = ((Matrix4x4)(ref val))[3, 3]
			};
		}

		public HmdMatrix34_t ToHmdMatrix34()
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_000c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0011: Unknown result type (might be due to invalid IL or missing references)
			//IL_0016: Unknown result type (might be due to invalid IL or missing references)
			//IL_0019: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e4: Unknown result type (might be due to invalid IL or missing references)
			Matrix4x4 val = Matrix4x4.TRS(pos, rot, Vector3.one);
			return new HmdMatrix34_t
			{
				m0 = ((Matrix4x4)(ref val))[0, 0],
				m1 = ((Matrix4x4)(ref val))[0, 1],
				m2 = 0f - ((Matrix4x4)(ref val))[0, 2],
				m3 = ((Matrix4x4)(ref val))[0, 3],
				m4 = ((Matrix4x4)(ref val))[1, 0],
				m5 = ((Matrix4x4)(ref val))[1, 1],
				m6 = 0f - ((Matrix4x4)(ref val))[1, 2],
				m7 = ((Matrix4x4)(ref val))[1, 3],
				m8 = 0f - ((Matrix4x4)(ref val))[2, 0],
				m9 = 0f - ((Matrix4x4)(ref val))[2, 1],
				m10 = ((Matrix4x4)(ref val))[2, 2],
				m11 = 0f - ((Matrix4x4)(ref val))[2, 3]
			};
		}

		public override bool Equals(object o)
		{
			//IL_0010: Unknown result type (might be due to invalid IL or missing references)
			//IL_0016: Unknown result type (might be due to invalid IL or missing references)
			//IL_0023: Unknown result type (might be due to invalid IL or missing references)
			//IL_0029: Unknown result type (might be due to invalid IL or missing references)
			if (o is RigidTransform rigidTransform)
			{
				if (pos == rigidTransform.pos)
				{
					return rot == rigidTransform.rot;
				}
				return false;
			}
			return false;
		}

		public override int GetHashCode()
		{
			return ((object)Unsafe.As<Vector3, Vector3>(ref pos)/*cast due to .constrained prefix*/).GetHashCode() ^ ((object)Unsafe.As<Quaternion, Quaternion>(ref rot)/*cast due to .constrained prefix*/).GetHashCode();
		}

		public static bool operator ==(RigidTransform a, RigidTransform b)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_0014: Unknown result type (might be due to invalid IL or missing references)
			//IL_001a: Unknown result type (might be due to invalid IL or missing references)
			if (a.pos == b.pos)
			{
				return a.rot == b.rot;
			}
			return false;
		}

		public static bool operator !=(RigidTransform a, RigidTransform b)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_0014: Unknown result type (might be due to invalid IL or missing references)
			//IL_001a: Unknown result type (might be due to invalid IL or missing references)
			if (!(a.pos != b.pos))
			{
				return a.rot != b.rot;
			}
			return true;
		}

		public static RigidTransform operator *(RigidTransform a, RigidTransform b)
		{
			//IL_000b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0011: Unknown result type (might be due to invalid IL or missing references)
			//IL_0016: Unknown result type (might be due to invalid IL or missing references)
			//IL_001b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0023: Unknown result type (might be due to invalid IL or missing references)
			//IL_0029: Unknown result type (might be due to invalid IL or missing references)
			//IL_002f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0034: Unknown result type (might be due to invalid IL or missing references)
			//IL_0039: Unknown result type (might be due to invalid IL or missing references)
			//IL_003e: Unknown result type (might be due to invalid IL or missing references)
			return new RigidTransform
			{
				rot = a.rot * b.rot,
				pos = a.pos + a.rot * b.pos
			};
		}

		public void Inverse()
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_000c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0013: Unknown result type (might be due to invalid IL or missing references)
			//IL_0019: Unknown result type (might be due to invalid IL or missing references)
			//IL_001e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0023: Unknown result type (might be due to invalid IL or missing references)
			//IL_0028: Unknown result type (might be due to invalid IL or missing references)
			rot = Quaternion.Inverse(rot);
			pos = -(rot * pos);
		}

		public RigidTransform GetInverse()
		{
			//IL_0003: Unknown result type (might be due to invalid IL or missing references)
			//IL_0009: Unknown result type (might be due to invalid IL or missing references)
			RigidTransform result = new RigidTransform(pos, rot);
			result.Inverse();
			return result;
		}

		public void Multiply(RigidTransform a, RigidTransform b)
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0008: Unknown result type (might be due to invalid IL or missing references)
			//IL_000d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0012: Unknown result type (might be due to invalid IL or missing references)
			//IL_0019: Unknown result type (might be due to invalid IL or missing references)
			//IL_001f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0025: Unknown result type (might be due to invalid IL or missing references)
			//IL_002a: Unknown result type (might be due to invalid IL or missing references)
			//IL_002f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0034: Unknown result type (might be due to invalid IL or missing references)
			rot = a.rot * b.rot;
			pos = a.pos + a.rot * b.pos;
		}

		public Vector3 InverseTransformPoint(Vector3 point)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0006: Unknown result type (might be due to invalid IL or missing references)
			//IL_000b: Unknown result type (might be due to invalid IL or missing references)
			//IL_000d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0012: Unknown result type (might be due to invalid IL or missing references)
			//IL_0017: Unknown result type (might be due to invalid IL or missing references)
			return Quaternion.Inverse(rot) * (point - pos);
		}

		public Vector3 TransformPoint(Vector3 point)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_000c: Unknown result type (might be due to invalid IL or missing references)
			//IL_000d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0012: Unknown result type (might be due to invalid IL or missing references)
			return pos + rot * point;
		}

		public static Vector3 operator *(RigidTransform t, Vector3 v)
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0003: Unknown result type (might be due to invalid IL or missing references)
			return t.TransformPoint(v);
		}

		public static RigidTransform Interpolate(RigidTransform a, RigidTransform b, float t)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_000d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0013: Unknown result type (might be due to invalid IL or missing references)
			//IL_0019: Unknown result type (might be due to invalid IL or missing references)
			//IL_001f: Unknown result type (might be due to invalid IL or missing references)
			return new RigidTransform(Vector3.Lerp(a.pos, b.pos, t), Quaternion.Slerp(a.rot, b.rot, t));
		}

		public void Interpolate(RigidTransform to, float t)
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0008: Unknown result type (might be due to invalid IL or missing references)
			//IL_000e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0013: Unknown result type (might be due to invalid IL or missing references)
			//IL_001a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0020: Unknown result type (might be due to invalid IL or missing references)
			//IL_0026: Unknown result type (might be due to invalid IL or missing references)
			//IL_002b: Unknown result type (might be due to invalid IL or missing references)
			pos = Lerp(pos, to.pos, t);
			rot = Slerp(rot, to.rot, t);
		}
	}

	public delegate object SystemFn(CVRSystem system, params object[] args);

	private const string secretKey = "foobar";

	public static bool IsValid(Vector3 vector)
	{
		//IL_0000: Unknown result type (might be due to invalid IL or missing references)
		//IL_000d: Unknown result type (might be due to invalid IL or missing references)
		//IL_001a: Unknown result type (might be due to invalid IL or missing references)
		if (!float.IsNaN(vector.x) && !float.IsNaN(vector.y))
		{
			return !float.IsNaN(vector.z);
		}
		return false;
	}

	public static bool IsValid(Quaternion rotation)
	{
		//IL_0000: Unknown result type (might be due to invalid IL or missing references)
		//IL_000d: Unknown result type (might be due to invalid IL or missing references)
		//IL_001a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0027: Unknown result type (might be due to invalid IL or missing references)
		//IL_0034: Unknown result type (might be due to invalid IL or missing references)
		//IL_0041: Unknown result type (might be due to invalid IL or missing references)
		//IL_004e: Unknown result type (might be due to invalid IL or missing references)
		//IL_005b: Unknown result type (might be due to invalid IL or missing references)
		if (!float.IsNaN(rotation.x) && !float.IsNaN(rotation.y) && !float.IsNaN(rotation.z) && !float.IsNaN(rotation.w))
		{
			if (rotation.x == 0f && rotation.y == 0f && rotation.z == 0f)
			{
				return rotation.w != 0f;
			}
			return true;
		}
		return false;
	}

	public static Quaternion Slerp(Quaternion A, Quaternion B, float t)
	{
		//IL_0000: Unknown result type (might be due to invalid IL or missing references)
		//IL_0006: Unknown result type (might be due to invalid IL or missing references)
		//IL_000d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0013: Unknown result type (might be due to invalid IL or missing references)
		//IL_001b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0021: Unknown result type (might be due to invalid IL or missing references)
		//IL_0029: Unknown result type (might be due to invalid IL or missing references)
		//IL_002f: Unknown result type (might be due to invalid IL or missing references)
		//IL_0051: Unknown result type (might be due to invalid IL or missing references)
		//IL_0058: Unknown result type (might be due to invalid IL or missing references)
		//IL_005f: Unknown result type (might be due to invalid IL or missing references)
		//IL_0066: Unknown result type (might be due to invalid IL or missing references)
		//IL_00bd: Unknown result type (might be due to invalid IL or missing references)
		//IL_00c5: Unknown result type (might be due to invalid IL or missing references)
		//IL_00ce: Unknown result type (might be due to invalid IL or missing references)
		//IL_00d6: Unknown result type (might be due to invalid IL or missing references)
		//IL_00df: Unknown result type (might be due to invalid IL or missing references)
		//IL_00e7: Unknown result type (might be due to invalid IL or missing references)
		//IL_00f0: Unknown result type (might be due to invalid IL or missing references)
		//IL_00f8: Unknown result type (might be due to invalid IL or missing references)
		//IL_0100: Unknown result type (might be due to invalid IL or missing references)
		float num = Mathf.Clamp(A.x * B.x + A.y * B.y + A.z * B.z + A.w * B.w, -1f, 1f);
		if (num < 0f)
		{
			((Quaternion)(ref B))..ctor(0f - B.x, 0f - B.y, 0f - B.z, 0f - B.w);
			num = 0f - num;
		}
		float num4;
		float num5;
		if (1f - num > 0.0001f)
		{
			float num2 = Mathf.Acos(num);
			float num3 = Mathf.Sin(num2);
			num4 = Mathf.Sin((1f - t) * num2) / num3;
			num5 = Mathf.Sin(t * num2) / num3;
		}
		else
		{
			num4 = 1f - t;
			num5 = t;
		}
		return new Quaternion(num4 * A.x + num5 * B.x, num4 * A.y + num5 * B.y, num4 * A.z + num5 * B.z, num4 * A.w + num5 * B.w);
	}

	public static Vector3 Lerp(Vector3 A, Vector3 B, float t)
	{
		//IL_0000: Unknown result type (might be due to invalid IL or missing references)
		//IL_0006: Unknown result type (might be due to invalid IL or missing references)
		//IL_0012: Unknown result type (might be due to invalid IL or missing references)
		//IL_0018: Unknown result type (might be due to invalid IL or missing references)
		//IL_0024: Unknown result type (might be due to invalid IL or missing references)
		//IL_002a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0036: Unknown result type (might be due to invalid IL or missing references)
		return new Vector3(Lerp(A.x, B.x, t), Lerp(A.y, B.y, t), Lerp(A.z, B.z, t));
	}

	public static float Lerp(float A, float B, float t)
	{
		return A + (B - A) * t;
	}

	public static double Lerp(double A, double B, double t)
	{
		return A + (B - A) * t;
	}

	public static float InverseLerp(Vector3 A, Vector3 B, Vector3 result)
	{
		//IL_0000: Unknown result type (might be due to invalid IL or missing references)
		//IL_0001: Unknown result type (might be due to invalid IL or missing references)
		//IL_0002: Unknown result type (might be due to invalid IL or missing references)
		//IL_0007: Unknown result type (might be due to invalid IL or missing references)
		//IL_0008: Unknown result type (might be due to invalid IL or missing references)
		//IL_0009: Unknown result type (might be due to invalid IL or missing references)
		return Vector3.Dot(result - A, B - A);
	}

	public static float InverseLerp(float A, float B, float result)
	{
		return (result - A) / (B - A);
	}

	public static double InverseLerp(double A, double B, double result)
	{
		return (result - A) / (B - A);
	}

	public static float Saturate(float A)
	{
		if (!(A < 0f))
		{
			if (!(A > 1f))
			{
				return A;
			}
			return 1f;
		}
		return 0f;
	}

	public static Vector2 Saturate(Vector2 A)
	{
		//IL_0000: Unknown result type (might be due to invalid IL or missing references)
		//IL_000b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0016: Unknown result type (might be due to invalid IL or missing references)
		return new Vector2(Saturate(A.x), Saturate(A.y));
	}

	public static float Abs(float A)
	{
		if (!(A < 0f))
		{
			return A;
		}
		return 0f - A;
	}

	public static Vector2 Abs(Vector2 A)
	{
		//IL_0000: Unknown result type (might be due to invalid IL or missing references)
		//IL_000b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0016: Unknown result type (might be due to invalid IL or missing references)
		return new Vector2(Abs(A.x), Abs(A.y));
	}

	private static float _copysign(float sizeval, float signval)
	{
		if (Mathf.Sign(signval) != 1f)
		{
			return 0f - Mathf.Abs(sizeval);
		}
		return Mathf.Abs(sizeval);
	}

	public static Quaternion GetRotation(this Matrix4x4 matrix)
	{
		//IL_0002: Unknown result type (might be due to invalid IL or missing references)
		//IL_0014: Unknown result type (might be due to invalid IL or missing references)
		//IL_001b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0022: Unknown result type (might be due to invalid IL or missing references)
		//IL_004a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0051: Unknown result type (might be due to invalid IL or missing references)
		//IL_0058: Unknown result type (might be due to invalid IL or missing references)
		//IL_0080: Unknown result type (might be due to invalid IL or missing references)
		//IL_0087: Unknown result type (might be due to invalid IL or missing references)
		//IL_008e: Unknown result type (might be due to invalid IL or missing references)
		//IL_00b6: Unknown result type (might be due to invalid IL or missing references)
		//IL_00bd: Unknown result type (might be due to invalid IL or missing references)
		//IL_00c4: Unknown result type (might be due to invalid IL or missing references)
		//IL_00e2: Unknown result type (might be due to invalid IL or missing references)
		//IL_00e8: Unknown result type (might be due to invalid IL or missing references)
		//IL_00ee: Unknown result type (might be due to invalid IL or missing references)
		//IL_0101: Unknown result type (might be due to invalid IL or missing references)
		//IL_0107: Unknown result type (might be due to invalid IL or missing references)
		//IL_010d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0120: Unknown result type (might be due to invalid IL or missing references)
		//IL_0126: Unknown result type (might be due to invalid IL or missing references)
		//IL_012c: Unknown result type (might be due to invalid IL or missing references)
		//IL_013d: Unknown result type (might be due to invalid IL or missing references)
		Quaternion val = default(Quaternion);
		val.w = Mathf.Sqrt(Mathf.Max(0f, 1f + matrix.m00 + matrix.m11 + matrix.m22)) / 2f;
		val.x = Mathf.Sqrt(Mathf.Max(0f, 1f + matrix.m00 - matrix.m11 - matrix.m22)) / 2f;
		val.y = Mathf.Sqrt(Mathf.Max(0f, 1f - matrix.m00 + matrix.m11 - matrix.m22)) / 2f;
		val.z = Mathf.Sqrt(Mathf.Max(0f, 1f - matrix.m00 - matrix.m11 + matrix.m22)) / 2f;
		val.x = _copysign(val.x, matrix.m21 - matrix.m12);
		val.y = _copysign(val.y, matrix.m02 - matrix.m20);
		val.z = _copysign(val.z, matrix.m10 - matrix.m01);
		return val;
	}

	public static Vector3 GetPosition(this Matrix4x4 matrix)
	{
		//IL_0000: Unknown result type (might be due to invalid IL or missing references)
		//IL_0006: Unknown result type (might be due to invalid IL or missing references)
		//IL_000d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0016: Unknown result type (might be due to invalid IL or missing references)
		float m = matrix.m03;
		float m2 = matrix.m13;
		float m3 = matrix.m23;
		return new Vector3(m, m2, m3);
	}

	public static Vector3 GetScale(this Matrix4x4 m)
	{
		//IL_0000: Unknown result type (might be due to invalid IL or missing references)
		//IL_0006: Unknown result type (might be due to invalid IL or missing references)
		//IL_000d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0013: Unknown result type (might be due to invalid IL or missing references)
		//IL_001b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0021: Unknown result type (might be due to invalid IL or missing references)
		//IL_002e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0034: Unknown result type (might be due to invalid IL or missing references)
		//IL_003b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0041: Unknown result type (might be due to invalid IL or missing references)
		//IL_0049: Unknown result type (might be due to invalid IL or missing references)
		//IL_004f: Unknown result type (might be due to invalid IL or missing references)
		//IL_005d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0063: Unknown result type (might be due to invalid IL or missing references)
		//IL_006a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0070: Unknown result type (might be due to invalid IL or missing references)
		//IL_0078: Unknown result type (might be due to invalid IL or missing references)
		//IL_007e: Unknown result type (might be due to invalid IL or missing references)
		//IL_008e: Unknown result type (might be due to invalid IL or missing references)
		float num = Mathf.Sqrt(m.m00 * m.m00 + m.m01 * m.m01 + m.m02 * m.m02);
		float num2 = Mathf.Sqrt(m.m10 * m.m10 + m.m11 * m.m11 + m.m12 * m.m12);
		float num3 = Mathf.Sqrt(m.m20 * m.m20 + m.m21 * m.m21 + m.m22 * m.m22);
		return new Vector3(num, num2, num3);
	}

	public static float GetLossyScale(Transform t)
	{
		//IL_0001: Unknown result type (might be due to invalid IL or missing references)
		return t.lossyScale.x;
	}

	public static string GetBadMD5Hash(string usedString)
	{
		return GetBadMD5Hash(Encoding.UTF8.GetBytes(usedString + "foobar"));
	}

	public static string GetBadMD5Hash(byte[] bytes)
	{
		byte[] array = new MD5CryptoServiceProvider().ComputeHash(bytes);
		StringBuilder stringBuilder = new StringBuilder();
		for (int i = 0; i < array.Length; i++)
		{
			stringBuilder.Append(array[i].ToString("x2"));
		}
		return stringBuilder.ToString();
	}

	public static string GetBadMD5HashFromFile(string filePath)
	{
		if (!File.Exists(filePath))
		{
			return null;
		}
		return GetBadMD5Hash(File.ReadAllText(filePath) + "foobar");
	}

	public static string SanitizePath(string path, bool allowLeadingSlash = true)
	{
		if (path.Contains("\\\\"))
		{
			path = path.Replace("\\\\", "\\");
		}
		if (path.Contains("//"))
		{
			path = path.Replace("//", "/");
		}
		if (!allowLeadingSlash && (path[0] == '/' || path[0] == '\\'))
		{
			path = path.Substring(1);
		}
		return path;
	}

	public static Type FindType(string typeName)
	{
		Type type = Type.GetType(typeName);
		if (type != null)
		{
			return type;
		}
		Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies();
		for (int i = 0; i < assemblies.Length; i++)
		{
			type = assemblies[i].GetType(typeName);
			if (type != null)
			{
				return type;
			}
		}
		return null;
	}

	public static object CallSystemFn(SystemFn fn, params object[] args)
	{
		//IL_0017: Unknown result type (might be due to invalid IL or missing references)
		bool flag = !SteamVR.active && !SteamVR.usingNativeSupport;
		if (flag)
		{
			EVRInitError val = (EVRInitError)0;
			OpenVR.Init(ref val, (EVRApplicationType)4, "");
		}
		CVRSystem system = OpenVR.System;
		object result = ((system != null) ? fn(system, args) : null);
		if (flag)
		{
			OpenVR.Shutdown();
		}
		return result;
	}

	public static void TakeStereoScreenshot(uint screenshotHandle, GameObject target, int cellSize, float ipd, ref string previewFilename, ref string VRFilename)
	{
		//IL_000c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0012: Expected O, but got Unknown
		//IL_0052: Unknown result type (might be due to invalid IL or missing references)
		//IL_0059: Expected O, but got Unknown
		//IL_0065: Unknown result type (might be due to invalid IL or missing references)
		//IL_006c: Expected O, but got Unknown
		//IL_008d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0092: Unknown result type (might be due to invalid IL or missing references)
		//IL_00e9: Unknown result type (might be due to invalid IL or missing references)
		//IL_011c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0121: Unknown result type (might be due to invalid IL or missing references)
		//IL_0129: Unknown result type (might be due to invalid IL or missing references)
		//IL_012e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0136: Unknown result type (might be due to invalid IL or missing references)
		//IL_013b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0148: Unknown result type (might be due to invalid IL or missing references)
		//IL_014d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0151: Unknown result type (might be due to invalid IL or missing references)
		//IL_0160: Unknown result type (might be due to invalid IL or missing references)
		//IL_0165: Unknown result type (might be due to invalid IL or missing references)
		//IL_0191: Unknown result type (might be due to invalid IL or missing references)
		//IL_0198: Expected O, but got Unknown
		//IL_0039: Unknown result type (might be due to invalid IL or missing references)
		//IL_0523: Unknown result type (might be due to invalid IL or missing references)
		//IL_059d: Unknown result type (might be due to invalid IL or missing references)
		//IL_05aa: Unknown result type (might be due to invalid IL or missing references)
		//IL_05b7: Unknown result type (might be due to invalid IL or missing references)
		//IL_04e6: Unknown result type (might be due to invalid IL or missing references)
		//IL_0290: Unknown result type (might be due to invalid IL or missing references)
		//IL_029e: Unknown result type (might be due to invalid IL or missing references)
		//IL_02a3: Unknown result type (might be due to invalid IL or missing references)
		//IL_02b4: Unknown result type (might be due to invalid IL or missing references)
		//IL_02b9: Unknown result type (might be due to invalid IL or missing references)
		//IL_02be: Unknown result type (might be due to invalid IL or missing references)
		//IL_02c2: Unknown result type (might be due to invalid IL or missing references)
		//IL_02c4: Unknown result type (might be due to invalid IL or missing references)
		//IL_02c6: Unknown result type (might be due to invalid IL or missing references)
		//IL_02d9: Unknown result type (might be due to invalid IL or missing references)
		//IL_02de: Unknown result type (might be due to invalid IL or missing references)
		//IL_02e2: Unknown result type (might be due to invalid IL or missing references)
		//IL_02e4: Unknown result type (might be due to invalid IL or missing references)
		//IL_02e6: Unknown result type (might be due to invalid IL or missing references)
		//IL_02f0: Unknown result type (might be due to invalid IL or missing references)
		//IL_02f2: Unknown result type (might be due to invalid IL or missing references)
		//IL_02f7: Unknown result type (might be due to invalid IL or missing references)
		//IL_02fc: Unknown result type (might be due to invalid IL or missing references)
		//IL_0351: Unknown result type (might be due to invalid IL or missing references)
		//IL_0356: Unknown result type (might be due to invalid IL or missing references)
		//IL_035b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0360: Unknown result type (might be due to invalid IL or missing references)
		//IL_0369: Unknown result type (might be due to invalid IL or missing references)
		//IL_036e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0373: Unknown result type (might be due to invalid IL or missing references)
		//IL_0378: Unknown result type (might be due to invalid IL or missing references)
		//IL_0383: Unknown result type (might be due to invalid IL or missing references)
		//IL_0388: Unknown result type (might be due to invalid IL or missing references)
		//IL_038d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0392: Unknown result type (might be due to invalid IL or missing references)
		//IL_039d: Unknown result type (might be due to invalid IL or missing references)
		//IL_03a2: Unknown result type (might be due to invalid IL or missing references)
		//IL_03a7: Unknown result type (might be due to invalid IL or missing references)
		//IL_03ac: Unknown result type (might be due to invalid IL or missing references)
		//IL_03ae: Unknown result type (might be due to invalid IL or missing references)
		//IL_03b0: Unknown result type (might be due to invalid IL or missing references)
		//IL_03b7: Unknown result type (might be due to invalid IL or missing references)
		//IL_03bc: Unknown result type (might be due to invalid IL or missing references)
		//IL_03be: Unknown result type (might be due to invalid IL or missing references)
		//IL_03c0: Unknown result type (might be due to invalid IL or missing references)
		//IL_03c2: Unknown result type (might be due to invalid IL or missing references)
		//IL_03c9: Unknown result type (might be due to invalid IL or missing references)
		//IL_03ce: Unknown result type (might be due to invalid IL or missing references)
		//IL_03d0: Unknown result type (might be due to invalid IL or missing references)
		//IL_03d2: Unknown result type (might be due to invalid IL or missing references)
		//IL_03d4: Unknown result type (might be due to invalid IL or missing references)
		//IL_03db: Unknown result type (might be due to invalid IL or missing references)
		//IL_03e0: Unknown result type (might be due to invalid IL or missing references)
		//IL_03e2: Unknown result type (might be due to invalid IL or missing references)
		//IL_03e3: Unknown result type (might be due to invalid IL or missing references)
		//IL_03ea: Unknown result type (might be due to invalid IL or missing references)
		//IL_03ef: Unknown result type (might be due to invalid IL or missing references)
		//IL_03f1: Unknown result type (might be due to invalid IL or missing references)
		//IL_03f3: Unknown result type (might be due to invalid IL or missing references)
		//IL_03f8: Unknown result type (might be due to invalid IL or missing references)
		//IL_03fa: Unknown result type (might be due to invalid IL or missing references)
		//IL_03fc: Unknown result type (might be due to invalid IL or missing references)
		//IL_0401: Unknown result type (might be due to invalid IL or missing references)
		//IL_0429: Unknown result type (might be due to invalid IL or missing references)
		//IL_042d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0432: Unknown result type (might be due to invalid IL or missing references)
		//IL_0434: Unknown result type (might be due to invalid IL or missing references)
		//IL_0438: Unknown result type (might be due to invalid IL or missing references)
		//IL_043d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0441: Unknown result type (might be due to invalid IL or missing references)
		//IL_044b: Unknown result type (might be due to invalid IL or missing references)
		//IL_044d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0451: Unknown result type (might be due to invalid IL or missing references)
		//IL_0453: Unknown result type (might be due to invalid IL or missing references)
		//IL_048f: Unknown result type (might be due to invalid IL or missing references)
		Texture2D val = new Texture2D(4096, 4096, (TextureFormat)5, false);
		Stopwatch stopwatch = new Stopwatch();
		Camera val2 = null;
		stopwatch.Start();
		Camera val3 = target.GetComponent<Camera>();
		if ((Object)(object)val3 == (Object)null)
		{
			if ((Object)(object)val2 == (Object)null)
			{
				val2 = new GameObject().AddComponent<Camera>();
			}
			val3 = val2;
		}
		Texture2D val4 = new Texture2D(2048, 2048, (TextureFormat)5, false);
		RenderTexture val5 = new RenderTexture(2048, 2048, 24);
		RenderTexture targetTexture = val3.targetTexture;
		bool orthographic = val3.orthographic;
		float fieldOfView = val3.fieldOfView;
		float aspect = val3.aspect;
		StereoTargetEyeMask stereoTargetEye = val3.stereoTargetEye;
		val3.stereoTargetEye = (StereoTargetEyeMask)0;
		val3.fieldOfView = 60f;
		val3.orthographic = false;
		val3.targetTexture = val5;
		val3.aspect = 1f;
		val3.Render();
		RenderTexture.active = val5;
		val4.ReadPixels(new Rect(0f, 0f, (float)((Texture)val5).width, (float)((Texture)val5).height), 0, 0);
		RenderTexture.active = null;
		val3.targetTexture = null;
		Object.DestroyImmediate((Object)(object)val5);
		SteamVR_SphericalProjection steamVR_SphericalProjection = ((Component)val3).gameObject.AddComponent<SteamVR_SphericalProjection>();
		Vector3 localPosition = target.transform.localPosition;
		Quaternion localRotation = target.transform.localRotation;
		Vector3 position = target.transform.position;
		Quaternion rotation = target.transform.rotation;
		Quaternion val6 = Quaternion.Euler(0f, ((Quaternion)(ref rotation)).eulerAngles.y, 0f);
		Transform transform = ((Component)val3).transform;
		int num = 1024 / cellSize;
		float num2 = 90f / (float)num;
		float num3 = num2 / 2f;
		RenderTexture val7 = new RenderTexture(cellSize, cellSize, 24);
		((Texture)val7).wrapMode = (TextureWrapMode)1;
		val7.antiAliasing = 8;
		val3.fieldOfView = num2;
		val3.orthographic = false;
		val3.targetTexture = val7;
		val3.aspect = aspect;
		val3.stereoTargetEye = (StereoTargetEyeMask)0;
		for (int i = 0; i < num; i++)
		{
			float num4 = 90f - (float)i * num2 - num3;
			int num5 = 4096 / ((Texture)val7).width;
			float num6 = 360f / (float)num5;
			float num7 = num6 / 2f;
			int num8 = i * 1024 / num;
			for (int j = 0; j < 2; j++)
			{
				if (j == 1)
				{
					num4 = 0f - num4;
					num8 = 2048 - num8 - cellSize;
				}
				for (int k = 0; k < num5; k++)
				{
					float num9 = -180f + (float)k * num6 + num7;
					int num10 = k * 4096 / num5;
					int num11 = 0;
					float num12 = (0f - ipd) / 2f * Mathf.Cos(num4 * (MathF.PI / 180f));
					for (int l = 0; l < 2; l++)
					{
						if (l == 1)
						{
							num11 = 2048;
							num12 = 0f - num12;
						}
						Vector3 val8 = val6 * Quaternion.Euler(0f, num9, 0f) * new Vector3(num12, 0f, 0f);
						transform.position = position + val8;
						Quaternion val9 = Quaternion.Euler(num4, num9, 0f);
						transform.rotation = val6 * val9;
						Vector3 val10 = val9 * Vector3.forward;
						float num13 = num9 - num6 / 2f;
						float num14 = num13 + num6;
						float num15 = num4 + num2 / 2f;
						float num16 = num15 - num2;
						float num17 = (num13 + num14) / 2f;
						float num18 = ((Mathf.Abs(num15) < Mathf.Abs(num16)) ? num15 : num16);
						Vector3 val11 = Quaternion.Euler(num18, num13, 0f) * Vector3.forward;
						Vector3 val12 = Quaternion.Euler(num18, num14, 0f) * Vector3.forward;
						Vector3 val13 = Quaternion.Euler(num15, num17, 0f) * Vector3.forward;
						Vector3 val14 = Quaternion.Euler(num16, num17, 0f) * Vector3.forward;
						Vector3 val15 = val11 / Vector3.Dot(val11, val10);
						Vector3 val16 = val12 / Vector3.Dot(val12, val10);
						Vector3 val17 = val13 / Vector3.Dot(val13, val10);
						Vector3 val18 = val14 / Vector3.Dot(val14, val10);
						Vector3 val19 = val16 - val15;
						Vector3 val20 = val18 - val17;
						float magnitude = ((Vector3)(ref val19)).magnitude;
						float magnitude2 = ((Vector3)(ref val20)).magnitude;
						float num19 = 1f / magnitude;
						float num20 = 1f / magnitude2;
						Vector3 uAxis = val19 * num19;
						Vector3 vAxis = val20 * num20;
						steamVR_SphericalProjection.Set(val10, num13, num14, num15, num16, uAxis, val15, num19, vAxis, val17, num20);
						val3.aspect = magnitude / magnitude2;
						val3.Render();
						RenderTexture.active = val7;
						val.ReadPixels(new Rect(0f, 0f, (float)((Texture)val7).width, (float)((Texture)val7).height), num10, num8 + num11);
						RenderTexture.active = null;
					}
					float num21 = ((float)i * ((float)num5 * 2f) + (float)k + (float)(j * num5)) / ((float)num * ((float)num5 * 2f));
					OpenVR.Screenshots.UpdateScreenshotProgress(screenshotHandle, num21);
				}
			}
		}
		OpenVR.Screenshots.UpdateScreenshotProgress(screenshotHandle, 1f);
		previewFilename += ".png";
		VRFilename += ".png";
		val4.Apply();
		File.WriteAllBytes(previewFilename, ImageConversion.EncodeToPNG(val4));
		val.Apply();
		File.WriteAllBytes(VRFilename, ImageConversion.EncodeToPNG(val));
		if ((Object)(object)val3 != (Object)(object)val2)
		{
			val3.targetTexture = targetTexture;
			val3.orthographic = orthographic;
			val3.fieldOfView = fieldOfView;
			val3.aspect = aspect;
			val3.stereoTargetEye = stereoTargetEye;
			target.transform.localPosition = localPosition;
			target.transform.localRotation = localRotation;
		}
		else
		{
			val2.targetTexture = null;
		}
		Object.DestroyImmediate((Object)(object)val7);
		Object.DestroyImmediate((Object)(object)steamVR_SphericalProjection);
		stopwatch.Stop();
		Debug.Log((object)$"Screenshot took {stopwatch.Elapsed} seconds.");
		if ((Object)(object)val2 != (Object)null)
		{
			Object.DestroyImmediate((Object)(object)((Component)val2).gameObject);
		}
		Object.DestroyImmediate((Object)(object)val4);
		Object.DestroyImmediate((Object)(object)val);
	}
}
[CompilerGenerated]
[EditorBrowsable(EditorBrowsableState.Never)]
[GeneratedCode("Unity.MonoScriptGenerator.MonoScriptInfoGenerator", null)]
internal class UnitySourceGeneratedAssemblyMonoScriptTypes_v1
{
	private struct MonoScriptData
	{
		public byte[] FilePathsData;

		public byte[] TypesData;

		public int TotalTypes;

		public int TotalFiles;

		public bool IsEditorOnly;
	}

	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	private static MonoScriptData Get()
	{
		return new MonoScriptData
		{
			FilePathsData = new byte[11552]
			{
				0, 0, 0, 1, 0, 0, 0, 46, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 69, 120, 116, 114, 97, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 95, 67,
				97, 109, 101, 114, 97, 72, 101, 108, 112, 101,
				114, 46, 99, 115, 0, 0, 0, 1, 0, 0,
				0, 50, 92, 65, 115, 115, 101, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 92, 69, 120,
				116, 114, 97, 115, 92, 83, 116, 101, 97, 109,
				86, 82, 95, 70, 111, 114, 99, 101, 83, 116,
				101, 97, 109, 86, 82, 77, 111, 100, 101, 46,
				99, 115, 0, 0, 0, 2, 0, 0, 0, 45,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 69, 120, 116, 114,
				97, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				95, 71, 97, 122, 101, 84, 114, 97, 99, 107,
				101, 114, 46, 99, 115, 0, 0, 0, 2, 0,
				0, 0, 46, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 69,
				120, 116, 114, 97, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 95, 76, 97, 115, 101, 114, 80,
				111, 105, 110, 116, 101, 114, 46, 99, 115, 0,
				0, 0, 1, 0, 0, 0, 43, 92, 65, 115,
				115, 101, 116, 115, 92, 83, 116, 101, 97, 109,
				86, 82, 92, 69, 120, 116, 114, 97, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 95, 84, 101,
				115, 116, 84, 104, 114, 111, 119, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 51, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 69, 120, 116, 114, 97, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 95, 84,
				101, 115, 116, 84, 114, 97, 99, 107, 101, 100,
				67, 97, 109, 101, 114, 97, 46, 99, 115, 0,
				0, 0, 1, 0, 0, 0, 76, 92, 65, 115,
				115, 101, 116, 115, 92, 83, 116, 101, 97, 109,
				86, 82, 92, 73, 110, 112, 117, 116, 92, 66,
				101, 104, 97, 118, 105, 111, 117, 114, 85, 110,
				105, 116, 121, 69, 118, 101, 110, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 95, 66, 101,
				104, 97, 118, 105, 111, 117, 114, 95, 66, 111,
				111, 108, 101, 97, 110, 69, 118, 101, 110, 116,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				73, 92, 65, 115, 115, 101, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 92, 73, 110, 112,
				117, 116, 92, 66, 101, 104, 97, 118, 105, 111,
				117, 114, 85, 110, 105, 116, 121, 69, 118, 101,
				110, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 95, 66, 101, 104, 97, 118, 105, 111, 117,
				114, 95, 80, 111, 115, 101, 69, 118, 101, 110,
				116, 46, 99, 115, 0, 0, 0, 1, 0, 0,
				0, 90, 92, 65, 115, 115, 101, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 92, 73, 110,
				112, 117, 116, 92, 66, 101, 104, 97, 118, 105,
				111, 117, 114, 85, 110, 105, 116, 121, 69, 118,
				101, 110, 116, 115, 92, 83, 116, 101, 97, 109,
				86, 82, 95, 66, 101, 104, 97, 118, 105, 111,
				117, 114, 95, 80, 111, 115, 101, 95, 67, 111,
				110, 110, 101, 99, 116, 101, 100, 67, 104, 97,
				110, 103, 101, 100, 69, 118, 101, 110, 116, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 92,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 112, 117,
				116, 92, 66, 101, 104, 97, 118, 105, 111, 117,
				114, 85, 110, 105, 116, 121, 69, 118, 101, 110,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				95, 66, 101, 104, 97, 118, 105, 111, 117, 114,
				95, 80, 111, 115, 101, 95, 68, 101, 118, 105,
				99, 101, 73, 110, 100, 101, 120, 67, 104, 97,
				110, 103, 101, 100, 69, 118, 101, 110, 116, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 89,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 112, 117,
				116, 92, 66, 101, 104, 97, 118, 105, 111, 117,
				114, 85, 110, 105, 116, 121, 69, 118, 101, 110,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				95, 66, 101, 104, 97, 118, 105, 111, 117, 114,
				95, 80, 111, 115, 101, 95, 84, 114, 97, 99,
				107, 105, 110, 103, 67, 104, 97, 110, 103, 101,
				100, 69, 118, 101, 110, 116, 46, 99, 115, 0,
				0, 0, 1, 0, 0, 0, 75, 92, 65, 115,
				115, 101, 116, 115, 92, 83, 116, 101, 97, 109,
				86, 82, 92, 73, 110, 112, 117, 116, 92, 66,
				101, 104, 97, 118, 105, 111, 117, 114, 85, 110,
				105, 116, 121, 69, 118, 101, 110, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 95, 66, 101,
				104, 97, 118, 105, 111, 117, 114, 95, 83, 105,
				110, 103, 108, 101, 69, 118, 101, 110, 116, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 77,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 112, 117,
				116, 92, 66, 101, 104, 97, 118, 105, 111, 117,
				114, 85, 110, 105, 116, 121, 69, 118, 101, 110,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				95, 66, 101, 104, 97, 118, 105, 111, 117, 114,
				95, 83, 107, 101, 108, 101, 116, 111, 110, 69,
				118, 101, 110, 116, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 94, 92, 65, 115, 115, 101,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				92, 73, 110, 112, 117, 116, 92, 66, 101, 104,
				97, 118, 105, 111, 117, 114, 85, 110, 105, 116,
				121, 69, 118, 101, 110, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 95, 66, 101, 104, 97,
				118, 105, 111, 117, 114, 95, 83, 107, 101, 108,
				101, 116, 111, 110, 95, 67, 111, 110, 110, 101,
				99, 116, 101, 100, 67, 104, 97, 110, 103, 101,
				100, 69, 118, 101, 110, 116, 46, 99, 115, 0,
				0, 0, 1, 0, 0, 0, 93, 92, 65, 115,
				115, 101, 116, 115, 92, 83, 116, 101, 97, 109,
				86, 82, 92, 73, 110, 112, 117, 116, 92, 66,
				101, 104, 97, 118, 105, 111, 117, 114, 85, 110,
				105, 116, 121, 69, 118, 101, 110, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 95, 66, 101,
				104, 97, 118, 105, 111, 117, 114, 95, 83, 107,
				101, 108, 101, 116, 111, 110, 95, 84, 114, 97,
				99, 107, 105, 110, 103, 67, 104, 97, 110, 103,
				101, 100, 69, 118, 101, 110, 116, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 76, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 73, 110, 112, 117, 116, 92,
				66, 101, 104, 97, 118, 105, 111, 117, 114, 85,
				110, 105, 116, 121, 69, 118, 101, 110, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 95, 66,
				101, 104, 97, 118, 105, 111, 117, 114, 95, 86,
				101, 99, 116, 111, 114, 50, 69, 118, 101, 110,
				116, 46, 99, 115, 0, 0, 0, 1, 0, 0,
				0, 76, 92, 65, 115, 115, 101, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 92, 73, 110,
				112, 117, 116, 92, 66, 101, 104, 97, 118, 105,
				111, 117, 114, 85, 110, 105, 116, 121, 69, 118,
				101, 110, 116, 115, 92, 83, 116, 101, 97, 109,
				86, 82, 95, 66, 101, 104, 97, 118, 105, 111,
				117, 114, 95, 86, 101, 99, 116, 111, 114, 51,
				69, 118, 101, 110, 116, 46, 99, 115, 0, 0,
				0, 7, 0, 0, 0, 39, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 112, 117, 116, 92, 83, 116,
				101, 97, 109, 86, 82, 95, 65, 99, 116, 105,
				111, 110, 46, 99, 115, 0, 0, 0, 3, 0,
				0, 0, 42, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 73,
				110, 112, 117, 116, 92, 83, 116, 101, 97, 109,
				86, 82, 95, 65, 99, 116, 105, 111, 110, 83,
				101, 116, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 50, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 73,
				110, 112, 117, 116, 92, 83, 116, 101, 97, 109,
				86, 82, 95, 65, 99, 116, 105, 111, 110, 83,
				101, 116, 95, 77, 97, 110, 97, 103, 101, 114,
				46, 99, 115, 0, 0, 0, 4, 0, 0, 0,
				47, 92, 65, 115, 115, 101, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 92, 73, 110, 112,
				117, 116, 92, 83, 116, 101, 97, 109, 86, 82,
				95, 65, 99, 116, 105, 111, 110, 95, 66, 111,
				111, 108, 101, 97, 110, 46, 99, 115, 0, 0,
				0, 5, 0, 0, 0, 42, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 112, 117, 116, 92, 83, 116,
				101, 97, 109, 86, 82, 95, 65, 99, 116, 105,
				111, 110, 95, 73, 110, 46, 99, 115, 0, 0,
				0, 4, 0, 0, 0, 43, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 112, 117, 116, 92, 83, 116,
				101, 97, 109, 86, 82, 95, 65, 99, 116, 105,
				111, 110, 95, 79, 117, 116, 46, 99, 115, 0,
				0, 0, 5, 0, 0, 0, 44, 92, 65, 115,
				115, 101, 116, 115, 92, 83, 116, 101, 97, 109,
				86, 82, 92, 73, 110, 112, 117, 116, 92, 83,
				116, 101, 97, 109, 86, 82, 95, 65, 99, 116,
				105, 111, 110, 95, 80, 111, 115, 101, 46, 99,
				115, 0, 0, 0, 4, 0, 0, 0, 46, 92,
				65, 115, 115, 101, 116, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 92, 73, 110, 112, 117, 116,
				92, 83, 116, 101, 97, 109, 86, 82, 95, 65,
				99, 116, 105, 111, 110, 95, 83, 105, 110, 103,
				108, 101, 46, 99, 115, 0, 0, 0, 7, 0,
				0, 0, 48, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 73,
				110, 112, 117, 116, 92, 83, 116, 101, 97, 109,
				86, 82, 95, 65, 99, 116, 105, 111, 110, 95,
				83, 107, 101, 108, 101, 116, 111, 110, 46, 99,
				115, 0, 0, 0, 4, 0, 0, 0, 47, 92,
				65, 115, 115, 101, 116, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 92, 73, 110, 112, 117, 116,
				92, 83, 116, 101, 97, 109, 86, 82, 95, 65,
				99, 116, 105, 111, 110, 95, 86, 101, 99, 116,
				111, 114, 50, 46, 99, 115, 0, 0, 0, 4,
				0, 0, 0, 47, 92, 65, 115, 115, 101, 116,
				115, 92, 83, 116, 101, 97, 109, 86, 82, 92,
				73, 110, 112, 117, 116, 92, 83, 116, 101, 97,
				109, 86, 82, 95, 65, 99, 116, 105, 111, 110,
				95, 86, 101, 99, 116, 111, 114, 51, 46, 99,
				115, 0, 0, 0, 4, 0, 0, 0, 49, 92,
				65, 115, 115, 101, 116, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 92, 73, 110, 112, 117, 116,
				92, 83, 116, 101, 97, 109, 86, 82, 95, 65,
				99, 116, 105, 111, 110, 95, 86, 105, 98, 114,
				97, 116, 105, 111, 110, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 56, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 112, 117, 116, 92, 83, 116,
				101, 97, 109, 86, 82, 95, 65, 99, 116, 105,
				118, 97, 116, 101, 65, 99, 116, 105, 111, 110,
				83, 101, 116, 79, 110, 76, 111, 97, 100, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 50,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 112, 117,
				116, 92, 83, 116, 101, 97, 109, 86, 82, 95,
				66, 101, 104, 97, 118, 105, 111, 117, 114, 95,
				66, 111, 111, 108, 101, 97, 110, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 47, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 73, 110, 112, 117, 116, 92,
				83, 116, 101, 97, 109, 86, 82, 95, 66, 101,
				104, 97, 118, 105, 111, 117, 114, 95, 80, 111,
				115, 101, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 49, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 73,
				110, 112, 117, 116, 92, 83, 116, 101, 97, 109,
				86, 82, 95, 66, 101, 104, 97, 118, 105, 111,
				117, 114, 95, 83, 105, 110, 103, 108, 101, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 51,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 112, 117,
				116, 92, 83, 116, 101, 97, 109, 86, 82, 95,
				66, 101, 104, 97, 118, 105, 111, 117, 114, 95,
				83, 107, 101, 108, 101, 116, 111, 110, 46, 99,
				115, 0, 0, 0, 1, 0, 0, 0, 57, 92,
				65, 115, 115, 101, 116, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 92, 73, 110, 112, 117, 116,
				92, 83, 116, 101, 97, 109, 86, 82, 95, 66,
				101, 104, 97, 118, 105, 111, 117, 114, 95, 83,
				107, 101, 108, 101, 116, 111, 110, 67, 117, 115,
				116, 111, 109, 46, 99, 115, 0, 0, 0, 1,
				0, 0, 0, 50, 92, 65, 115, 115, 101, 116,
				115, 92, 83, 116, 101, 97, 109, 86, 82, 92,
				73, 110, 112, 117, 116, 92, 83, 116, 101, 97,
				109, 86, 82, 95, 66, 101, 104, 97, 118, 105,
				111, 117, 114, 95, 86, 101, 99, 116, 111, 114,
				50, 46, 99, 115, 0, 0, 0, 1, 0, 0,
				0, 50, 92, 65, 115, 115, 101, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 92, 73, 110,
				112, 117, 116, 92, 83, 116, 101, 97, 109, 86,
				82, 95, 66, 101, 104, 97, 118, 105, 111, 117,
				114, 95, 86, 101, 99, 116, 111, 114, 51, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 38,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 112, 117,
				116, 92, 83, 116, 101, 97, 109, 86, 82, 95,
				73, 110, 112, 117, 116, 46, 99, 115, 0, 0,
				0, 13, 0, 0, 0, 49, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 112, 117, 116, 92, 83, 116,
				101, 97, 109, 86, 82, 95, 73, 110, 112, 117,
				116, 95, 65, 99, 116, 105, 111, 110, 70, 105,
				108, 101, 46, 99, 115, 0, 0, 0, 9, 0,
				0, 0, 50, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 73,
				110, 112, 117, 116, 92, 83, 116, 101, 97, 109,
				86, 82, 95, 73, 110, 112, 117, 116, 95, 66,
				105, 110, 100, 105, 110, 103, 70, 105, 108, 101,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				54, 92, 65, 115, 115, 101, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 92, 73, 110, 112,
				117, 116, 92, 83, 116, 101, 97, 109, 86, 82,
				95, 73, 110, 112, 117, 116, 95, 71, 101, 110,
				101, 114, 97, 116, 111, 114, 95, 78, 97, 109,
				101, 115, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 45, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 73,
				110, 112, 117, 116, 92, 83, 116, 101, 97, 109,
				86, 82, 95, 73, 110, 112, 117, 116, 95, 83,
				111, 117, 114, 99, 101, 46, 99, 115, 0, 0,
				0, 3, 0, 0, 0, 46, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 112, 117, 116, 92, 83, 116,
				101, 97, 109, 86, 82, 95, 83, 107, 101, 108,
				101, 116, 111, 110, 95, 80, 111, 115, 101, 46,
				99, 115, 0, 0, 0, 5, 0, 0, 0, 47,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 112, 117,
				116, 92, 83, 116, 101, 97, 109, 86, 82, 95,
				83, 107, 101, 108, 101, 116, 111, 110, 95, 80,
				111, 115, 101, 114, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 62, 92, 65, 115, 115, 101,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				92, 73, 110, 116, 101, 114, 97, 99, 116, 105,
				111, 110, 83, 121, 115, 116, 101, 109, 92, 67,
				111, 114, 101, 92, 83, 99, 114, 105, 112, 116,
				115, 92, 66, 111, 100, 121, 67, 111, 108, 108,
				105, 100, 101, 114, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 63, 92, 65, 115, 115, 101,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				92, 73, 110, 116, 101, 114, 97, 99, 116, 105,
				111, 110, 83, 121, 115, 116, 101, 109, 92, 67,
				111, 114, 101, 92, 83, 99, 114, 105, 112, 116,
				115, 92, 67, 105, 114, 99, 117, 108, 97, 114,
				68, 114, 105, 118, 101, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 66, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 116, 101, 114, 97, 99, 116,
				105, 111, 110, 83, 121, 115, 116, 101, 109, 92,
				67, 111, 114, 101, 92, 83, 99, 114, 105, 112,
				116, 115, 92, 67, 111, 109, 112, 108, 101, 120,
				84, 104, 114, 111, 119, 97, 98, 108, 101, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 74,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 116, 101,
				114, 97, 99, 116, 105, 111, 110, 83, 121, 115,
				116, 101, 109, 92, 67, 111, 114, 101, 92, 83,
				99, 114, 105, 112, 116, 115, 92, 67, 111, 110,
				116, 114, 111, 108, 108, 101, 114, 72, 111, 118,
				101, 114, 72, 105, 103, 104, 108, 105, 103, 104,
				116, 46, 99, 115, 0, 0, 0, 3, 0, 0,
				0, 62, 92, 65, 115, 115, 101, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 92, 73, 110,
				116, 101, 114, 97, 99, 116, 105, 111, 110, 83,
				121, 115, 116, 101, 109, 92, 67, 111, 114, 101,
				92, 83, 99, 114, 105, 112, 116, 115, 92, 67,
				117, 115, 116, 111, 109, 69, 118, 101, 110, 116,
				115, 46, 99, 115, 0, 0, 0, 1, 0, 0,
				0, 57, 92, 65, 115, 115, 101, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 92, 73, 110,
				116, 101, 114, 97, 99, 116, 105, 111, 110, 83,
				121, 115, 116, 101, 109, 92, 67, 111, 114, 101,
				92, 83, 99, 114, 105, 112, 116, 115, 92, 68,
				101, 98, 117, 103, 85, 73, 46, 99, 115, 0,
				0, 0, 1, 0, 0, 0, 75, 92, 65, 115,
				115, 101, 116, 115, 92, 83, 116, 101, 97, 109,
				86, 82, 92, 73, 110, 116, 101, 114, 97, 99,
				116, 105, 111, 110, 83, 121, 115, 116, 101, 109,
				92, 67, 111, 114, 101, 92, 83, 99, 114, 105,
				112, 116, 115, 92, 68, 101, 115, 116, 114, 111,
				121, 79, 110, 68, 101, 116, 97, 99, 104, 101,
				100, 70, 114, 111, 109, 72, 97, 110, 100, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 78,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 116, 101,
				114, 97, 99, 116, 105, 111, 110, 83, 121, 115,
				116, 101, 109, 92, 67, 111, 114, 101, 92, 83,
				99, 114, 105, 112, 116, 115, 92, 68, 101, 115,
				116, 114, 111, 121, 79, 110, 80, 97, 114, 116,
				105, 99, 108, 101, 83, 121, 115, 116, 101, 109,
				68, 101, 97, 116, 104, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 71, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 116, 101, 114, 97, 99, 116,
				105, 111, 110, 83, 121, 115, 116, 101, 109, 92,
				67, 111, 114, 101, 92, 83, 99, 114, 105, 112,
				116, 115, 92, 68, 101, 115, 116, 114, 111, 121,
				79, 110, 84, 114, 105, 103, 103, 101, 114, 69,
				110, 116, 101, 114, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 65, 92, 65, 115, 115, 101,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				92, 73, 110, 116, 101, 114, 97, 99, 116, 105,
				111, 110, 83, 121, 115, 116, 101, 109, 92, 67,
				111, 114, 101, 92, 83, 99, 114, 105, 112, 116,
				115, 92, 68, 105, 115, 116, 97, 110, 99, 101,
				72, 97, 112, 116, 105, 99, 115, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 67, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 73, 110, 116, 101, 114, 97,
				99, 116, 105, 111, 110, 83, 121, 115, 116, 101,
				109, 92, 67, 111, 114, 101, 92, 83, 99, 114,
				105, 112, 116, 115, 92, 68, 111, 110, 116, 68,
				101, 115, 116, 114, 111, 121, 79, 110, 76, 111,
				97, 100, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 59, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 73,
				110, 116, 101, 114, 97, 99, 116, 105, 111, 110,
				83, 121, 115, 116, 101, 109, 92, 67, 111, 114,
				101, 92, 83, 99, 114, 105, 112, 116, 115, 92,
				69, 110, 117, 109, 70, 108, 97, 103, 115, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 60,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 116, 101,
				114, 97, 99, 116, 105, 111, 110, 83, 121, 115,
				116, 101, 109, 92, 67, 111, 114, 101, 92, 83,
				99, 114, 105, 112, 116, 115, 92, 69, 113, 117,
				105, 112, 112, 97, 98, 108, 101, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 74, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 73, 110, 116, 101, 114, 97,
				99, 116, 105, 111, 110, 83, 121, 115, 116, 101,
				109, 92, 67, 111, 114, 101, 92, 83, 99, 114,
				105, 112, 116, 115, 92, 70, 97, 108, 108, 98,
				97, 99, 107, 67, 97, 109, 101, 114, 97, 67,
				111, 110, 116, 114, 111, 108, 108, 101, 114, 46,
				99, 115, 0, 0, 0, 3, 0, 0, 0, 54,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 116, 101,
				114, 97, 99, 116, 105, 111, 110, 83, 121, 115,
				116, 101, 109, 92, 67, 111, 114, 101, 92, 83,
				99, 114, 105, 112, 116, 115, 92, 72, 97, 110,
				100, 46, 99, 115, 0, 0, 0, 2, 0, 0,
				0, 62, 92, 65, 115, 115, 101, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 92, 73, 110,
				116, 101, 114, 97, 99, 116, 105, 111, 110, 83,
				121, 115, 116, 101, 109, 92, 67, 111, 114, 101,
				92, 83, 99, 114, 105, 112, 116, 115, 92, 72,
				97, 110, 100, 67, 111, 108, 108, 105, 100, 101,
				114, 46, 99, 115, 0, 0, 0, 1, 0, 0,
				0, 61, 92, 65, 115, 115, 101, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 92, 73, 110,
				116, 101, 114, 97, 99, 116, 105, 111, 110, 83,
				121, 115, 116, 101, 109, 92, 67, 111, 114, 101,
				92, 83, 99, 114, 105, 112, 116, 115, 92, 72,
				97, 110, 100, 80, 104, 121, 115, 105, 99, 115,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				60, 92, 65, 115, 115, 101, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 92, 73, 110, 116,
				101, 114, 97, 99, 116, 105, 111, 110, 83, 121,
				115, 116, 101, 109, 92, 67, 111, 114, 101, 92,
				83, 99, 114, 105, 112, 116, 115, 92, 72, 97,
				112, 116, 105, 99, 82, 97, 99, 107, 46, 99,
				115, 0, 0, 0, 1, 0, 0, 0, 69, 92,
				65, 115, 115, 101, 116, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 92, 73, 110, 116, 101, 114,
				97, 99, 116, 105, 111, 110, 83, 121, 115, 116,
				101, 109, 92, 67, 111, 114, 101, 92, 83, 99,
				114, 105, 112, 116, 115, 92, 72, 105, 100, 101,
				79, 110, 72, 97, 110, 100, 70, 111, 99, 117,
				115, 76, 111, 115, 116, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 61, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 116, 101, 114, 97, 99, 116,
				105, 111, 110, 83, 121, 115, 116, 101, 109, 92,
				67, 111, 114, 101, 92, 83, 99, 114, 105, 112,
				116, 115, 92, 72, 111, 118, 101, 114, 66, 117,
				116, 116, 111, 110, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 64, 92, 65, 115, 115, 101,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				92, 73, 110, 116, 101, 114, 97, 99, 116, 105,
				111, 110, 83, 121, 115, 116, 101, 109, 92, 67,
				111, 114, 101, 92, 83, 99, 114, 105, 112, 116,
				115, 92, 73, 103, 110, 111, 114, 101, 72, 111,
				118, 101, 114, 105, 110, 103, 46, 99, 115, 0,
				0, 0, 1, 0, 0, 0, 61, 92, 65, 115,
				115, 101, 116, 115, 92, 83, 116, 101, 97, 109,
				86, 82, 92, 73, 110, 116, 101, 114, 97, 99,
				116, 105, 111, 110, 83, 121, 115, 116, 101, 109,
				92, 67, 111, 114, 101, 92, 83, 99, 114, 105,
				112, 116, 115, 92, 73, 110, 112, 117, 116, 77,
				111, 100, 117, 108, 101, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 62, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 116, 101, 114, 97, 99, 116,
				105, 111, 110, 83, 121, 115, 116, 101, 109, 92,
				67, 111, 114, 101, 92, 83, 99, 114, 105, 112,
				116, 115, 92, 73, 110, 116, 101, 114, 97, 99,
				116, 97, 98, 108, 101, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 67, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 116, 101, 114, 97, 99, 116,
				105, 111, 110, 83, 121, 115, 116, 101, 109, 92,
				67, 111, 114, 101, 92, 83, 99, 114, 105, 112,
				116, 115, 92, 73, 110, 116, 101, 114, 97, 99,
				116, 97, 98, 108, 101, 68, 101, 98, 117, 103,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				73, 92, 65, 115, 115, 101, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 92, 73, 110, 116,
				101, 114, 97, 99, 116, 105, 111, 110, 83, 121,
				115, 116, 101, 109, 92, 67, 111, 114, 101, 92,
				83, 99, 114, 105, 112, 116, 115, 92, 73, 110,
				116, 101, 114, 97, 99, 116, 97, 98, 108, 101,
				72, 111, 118, 101, 114, 69, 118, 101, 110, 116,
				115, 46, 99, 115, 0, 0, 0, 1, 0, 0,
				0, 61, 92, 65, 115, 115, 101, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 92, 73, 110,
				116, 101, 114, 97, 99, 116, 105, 111, 110, 83,
				121, 115, 116, 101, 109, 92, 67, 111, 114, 101,
				92, 83, 99, 114, 105, 112, 116, 115, 92, 73,
				116, 101, 109, 80, 97, 99, 107, 97, 103, 101,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				70, 92, 65, 115, 115, 101, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 92, 73, 110, 116,
				101, 114, 97, 99, 116, 105, 111, 110, 83, 121,
				115, 116, 101, 109, 92, 67, 111, 114, 101, 92,
				83, 99, 114, 105, 112, 116, 115, 92, 73, 116,
				101, 109, 80, 97, 99, 107, 97, 103, 101, 82,
				101, 102, 101, 114, 101, 110, 99, 101, 46, 99,
				115, 0, 0, 0, 1, 0, 0, 0, 68, 92,
				65, 115, 115, 101, 116, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 92, 73, 110, 116, 101, 114,
				97, 99, 116, 105, 111, 110, 83, 121, 115, 116,
				101, 109, 92, 67, 111, 114, 101, 92, 83, 99,
				114, 105, 112, 116, 115, 92, 73, 116, 101, 109,
				80, 97, 99, 107, 97, 103, 101, 83, 112, 97,
				119, 110, 101, 114, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 65, 92, 65, 115, 115, 101,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				92, 73, 110, 116, 101, 114, 97, 99, 116, 105,
				111, 110, 83, 121, 115, 116, 101, 109, 92, 67,
				111, 114, 101, 92, 83, 99, 114, 105, 112, 116,
				115, 92, 76, 105, 110, 101, 97, 114, 65, 110,
				105, 109, 97, 116, 105, 111, 110, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 64, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 73, 110, 116, 101, 114, 97,
				99, 116, 105, 111, 110, 83, 121, 115, 116, 101,
				109, 92, 67, 111, 114, 101, 92, 83, 99, 114,
				105, 112, 116, 115, 92, 76, 105, 110, 101, 97,
				114, 65, 110, 105, 109, 97, 116, 111, 114, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 66,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 116, 101,
				114, 97, 99, 116, 105, 111, 110, 83, 121, 115,
				116, 101, 109, 92, 67, 111, 114, 101, 92, 83,
				99, 114, 105, 112, 116, 115, 92, 76, 105, 110,
				101, 97, 114, 65, 117, 100, 105, 111, 80, 105,
				116, 99, 104, 46, 99, 115, 0, 0, 0, 1,
				0, 0, 0, 66, 92, 65, 115, 115, 101, 116,
				115, 92, 83, 116, 101, 97, 109, 86, 82, 92,
				73, 110, 116, 101, 114, 97, 99, 116, 105, 111,
				110, 83, 121, 115, 116, 101, 109, 92, 67, 111,
				114, 101, 92, 83, 99, 114, 105, 112, 116, 115,
				92, 76, 105, 110, 101, 97, 114, 66, 108, 101,
				110, 100, 115, 104, 97, 112, 101, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 68, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 73, 110, 116, 101, 114, 97,
				99, 116, 105, 111, 110, 83, 121, 115, 116, 101,
				109, 92, 67, 111, 114, 101, 92, 83, 99, 114,
				105, 112, 116, 115, 92, 76, 105, 110, 101, 97,
				114, 68, 105, 115, 112, 108, 97, 99, 101, 109,
				101, 110, 116, 46, 99, 115, 0, 0, 0, 1,
				0, 0, 0, 61, 92, 65, 115, 115, 101, 116,
				115, 92, 83, 116, 101, 97, 109, 86, 82, 92,
				73, 110, 116, 101, 114, 97, 99, 116, 105, 111,
				110, 83, 121, 115, 116, 101, 109, 92, 67, 111,
				114, 101, 92, 83, 99, 114, 105, 112, 116, 115,
				92, 76, 105, 110, 101, 97, 114, 68, 114, 105,
				118, 101, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 63, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 73,
				110, 116, 101, 114, 97, 99, 116, 105, 111, 110,
				83, 121, 115, 116, 101, 109, 92, 67, 111, 114,
				101, 92, 83, 99, 114, 105, 112, 116, 115, 92,
				76, 105, 110, 101, 97, 114, 77, 97, 112, 112,
				105, 110, 103, 46, 99, 115, 0, 0, 0, 1,
				0, 0, 0, 64, 92, 65, 115, 115, 101, 116,
				115, 92, 83, 116, 101, 97, 109, 86, 82, 92,
				73, 110, 116, 101, 114, 97, 99, 116, 105, 111,
				110, 83, 121, 115, 116, 101, 109, 92, 67, 111,
				114, 101, 92, 83, 99, 114, 105, 112, 116, 115,
				92, 77, 111, 100, 97, 108, 84, 104, 114, 111,
				119, 97, 98, 108, 101, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 56, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 116, 101, 114, 97, 99, 116,
				105, 111, 110, 83, 121, 115, 116, 101, 109, 92,
				67, 111, 114, 101, 92, 83, 99, 114, 105, 112,
				116, 115, 92, 80, 108, 97, 121, 101, 114, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 59,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 116, 101,
				114, 97, 99, 116, 105, 111, 110, 83, 121, 115,
				116, 101, 109, 92, 67, 111, 114, 101, 92, 83,
				99, 114, 105, 112, 116, 115, 92, 80, 108, 97,
				121, 83, 111, 117, 110, 100, 46, 99, 115, 0,
				0, 0, 1, 0, 0, 0, 61, 92, 65, 115,
				115, 101, 116, 115, 92, 83, 116, 101, 97, 109,
				86, 82, 92, 73, 110, 116, 101, 114, 97, 99,
				116, 105, 111, 110, 83, 121, 115, 116, 101, 109,
				92, 67, 111, 114, 101, 92, 83, 99, 114, 105,
				112, 116, 115, 92, 82, 101, 110, 100, 101, 114,
				77, 111, 100, 101, 108, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 57, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 116, 101, 114, 97, 99, 116,
				105, 111, 110, 83, 121, 115, 116, 101, 109, 92,
				67, 111, 114, 101, 92, 83, 99, 114, 105, 112,
				116, 115, 92, 83, 101, 101, 84, 104, 114, 117,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				62, 92, 65, 115, 115, 101, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 92, 73, 110, 116,
				101, 114, 97, 99, 116, 105, 111, 110, 83, 121,
				115, 116, 101, 109, 92, 67, 111, 114, 101, 92,
				83, 99, 114, 105, 112, 116, 115, 92, 83, 108,
				101, 101, 112, 79, 110, 65, 119, 97, 107, 101,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				63, 92, 65, 115, 115, 101, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 92, 73, 110, 116,
				101, 114, 97, 99, 116, 105, 111, 110, 83, 121,
				115, 116, 101, 109, 92, 67, 111, 114, 101, 92,
				83, 99, 114, 105, 112, 116, 115, 92, 83, 111,
				117, 110, 100, 68, 101, 112, 97, 114, 101, 110,
				116, 46, 99, 115, 0, 0, 0, 1, 0, 0,
				0, 66, 92, 65, 115, 115, 101, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 92, 73, 110,
				116, 101, 114, 97, 99, 116, 105, 111, 110, 83,
				121, 115, 116, 101, 109, 92, 67, 111, 114, 101,
				92, 83, 99, 114, 105, 112, 116, 115, 92, 83,
				111, 117, 110, 100, 80, 108, 97, 121, 79, 110,
				101, 115, 104, 111, 116, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 89, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 116, 101, 114, 97, 99, 116,
				105, 111, 110, 83, 121, 115, 116, 101, 109, 92,
				67, 111, 114, 101, 92, 83, 99, 114, 105, 112,
				116, 115, 92, 83, 112, 97, 119, 110, 65, 110,
				100, 65, 116, 116, 97, 99, 104, 65, 102, 116,
				101, 114, 67, 111, 110, 116, 114, 111, 108, 108,
				101, 114, 73, 115, 84, 114, 97, 99, 107, 105,
				110, 103, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 70, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 73,
				110, 116, 101, 114, 97, 99, 116, 105, 111, 110,
				83, 121, 115, 116, 101, 109, 92, 67, 111, 114,
				101, 92, 83, 99, 114, 105, 112, 116, 115, 92,
				83, 112, 97, 119, 110, 65, 110, 100, 65, 116,
				116, 97, 99, 104, 84, 111, 72, 97, 110, 100,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				59, 92, 65, 115, 115, 101, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 92, 73, 110, 116,
				101, 114, 97, 99, 116, 105, 111, 110, 83, 121,
				115, 116, 101, 109, 92, 67, 111, 114, 101, 92,
				83, 99, 114, 105, 112, 116, 115, 92, 84, 104,
				114, 111, 119, 97, 98, 108, 101, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 59, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 73, 110, 116, 101, 114, 97,
				99, 116, 105, 111, 110, 83, 121, 115, 116, 101,
				109, 92, 67, 111, 114, 101, 92, 83, 99, 114,
				105, 112, 116, 115, 92, 85, 73, 69, 108, 101,
				109, 101, 110, 116, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 58, 92, 65, 115, 115, 101,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				92, 73, 110, 116, 101, 114, 97, 99, 116, 105,
				111, 110, 83, 121, 115, 116, 101, 109, 92, 67,
				111, 114, 101, 92, 83, 99, 114, 105, 112, 116,
				115, 92, 85, 110, 112, 97, 114, 101, 110, 116,
				46, 99, 115, 0, 0, 0, 2, 0, 0, 0,
				54, 92, 65, 115, 115, 101, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 92, 73, 110, 116,
				101, 114, 97, 99, 116, 105, 111, 110, 83, 121,
				115, 116, 101, 109, 92, 67, 111, 114, 101, 92,
				83, 99, 114, 105, 112, 116, 115, 92, 85, 116,
				105, 108, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 67, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 73,
				110, 116, 101, 114, 97, 99, 116, 105, 111, 110,
				83, 121, 115, 116, 101, 109, 92, 67, 111, 114,
				101, 92, 83, 99, 114, 105, 112, 116, 115, 92,
				86, 101, 108, 111, 99, 105, 116, 121, 69, 115,
				116, 105, 109, 97, 116, 111, 114, 46, 99, 115,
				0, 0, 0, 2, 0, 0, 0, 72, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 73, 110, 116, 101, 114, 97,
				99, 116, 105, 111, 110, 83, 121, 115, 116, 101,
				109, 92, 72, 105, 110, 116, 115, 92, 83, 99,
				114, 105, 112, 116, 115, 92, 67, 111, 110, 116,
				114, 111, 108, 108, 101, 114, 66, 117, 116, 116,
				111, 110, 72, 105, 110, 116, 115, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 66, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 73, 110, 116, 101, 114, 97,
				99, 116, 105, 111, 110, 83, 121, 115, 116, 101,
				109, 92, 76, 111, 110, 103, 98, 111, 119, 92,
				83, 99, 114, 105, 112, 116, 115, 92, 65, 114,
				99, 104, 101, 114, 121, 84, 97, 114, 103, 101,
				116, 46, 99, 115, 0, 0, 0, 1, 0, 0,
				0, 58, 92, 65, 115, 115, 101, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 92, 73, 110,
				116, 101, 114, 97, 99, 116, 105, 111, 110, 83,
				121, 115, 116, 101, 109, 92, 76, 111, 110, 103,
				98, 111, 119, 92, 83, 99, 114, 105, 112, 116,
				115, 92, 65, 114, 114, 111, 119, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 62, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 73, 110, 116, 101, 114, 97,
				99, 116, 105, 111, 110, 83, 121, 115, 116, 101,
				109, 92, 76, 111, 110, 103, 98, 111, 119, 92,
				83, 99, 114, 105, 112, 116, 115, 92, 65, 114,
				114, 111, 119, 72, 97, 110, 100, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 70, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 73, 110, 116, 101, 114, 97,
				99, 116, 105, 111, 110, 83, 121, 115, 116, 101,
				109, 92, 76, 111, 110, 103, 98, 111, 119, 92,
				83, 99, 114, 105, 112, 116, 115, 92, 65, 114,
				114, 111, 119, 104, 101, 97, 100, 82, 111, 116,
				97, 116, 105, 111, 110, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 60, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 116, 101, 114, 97, 99, 116,
				105, 111, 110, 83, 121, 115, 116, 101, 109, 92,
				76, 111, 110, 103, 98, 111, 119, 92, 83, 99,
				114, 105, 112, 116, 115, 92, 66, 97, 108, 108,
				111, 111, 110, 46, 99, 115, 0, 0, 0, 1,
				0, 0, 0, 69, 92, 65, 115, 115, 101, 116,
				115, 92, 83, 116, 101, 97, 109, 86, 82, 92,
				73, 110, 116, 101, 114, 97, 99, 116, 105, 111,
				110, 83, 121, 115, 116, 101, 109, 92, 76, 111,
				110, 103, 98, 111, 119, 92, 83, 99, 114, 105,
				112, 116, 115, 92, 66, 97, 108, 108, 111, 111,
				110, 67, 111, 108, 108, 105, 100, 101, 114, 115,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				70, 92, 65, 115, 115, 101, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 92, 73, 110, 116,
				101, 114, 97, 99, 116, 105, 111, 110, 83, 121,
				115, 116, 101, 109, 92, 76, 111, 110, 103, 98,
				111, 119, 92, 83, 99, 114, 105, 112, 116, 115,
				92, 66, 97, 108, 108, 111, 111, 110, 72, 97,
				112, 116, 105, 99, 66, 117, 109, 112, 46, 99,
				115, 0, 0, 0, 1, 0, 0, 0, 67, 92,
				65, 115, 115, 101, 116, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 92, 73, 110, 116, 101, 114,
				97, 99, 116, 105, 111, 110, 83, 121, 115, 116,
				101, 109, 92, 76, 111, 110, 103, 98, 111, 119,
				92, 83, 99, 114, 105, 112, 116, 115, 92, 66,
				97, 108, 108, 111, 111, 110, 83, 112, 97, 119,
				110, 101, 114, 46, 99, 115, 0, 0, 0, 1,
				0, 0, 0, 68, 92, 65, 115, 115, 101, 116,
				115, 92, 83, 116, 101, 97, 109, 86, 82, 92,
				73, 110, 116, 101, 114, 97, 99, 116, 105, 111,
				110, 83, 121, 115, 116, 101, 109, 92, 76, 111,
				110, 103, 98, 111, 119, 92, 83, 99, 114, 105,
				112, 116, 115, 92, 69, 120, 112, 108, 111, 115,
				105, 111, 110, 87, 111, 98, 98, 108, 101, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 63,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 116, 101,
				114, 97, 99, 116, 105, 111, 110, 83, 121, 115,
				116, 101, 109, 92, 76, 111, 110, 103, 98, 111,
				119, 92, 83, 99, 114, 105, 112, 116, 115, 92,
				70, 105, 114, 101, 83, 111, 117, 114, 99, 101,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				60, 92, 65, 115, 115, 101, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 92, 73, 110, 116,
				101, 114, 97, 99, 116, 105, 111, 110, 83, 121,
				115, 116, 101, 109, 92, 76, 111, 110, 103, 98,
				111, 119, 92, 83, 99, 114, 105, 112, 116, 115,
				92, 76, 111, 110, 103, 98, 111, 119, 46, 99,
				115, 0, 0, 0, 1, 0, 0, 0, 66, 92,
				65, 115, 115, 101, 116, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 92, 73, 110, 116, 101, 114,
				97, 99, 116, 105, 111, 110, 83, 121, 115, 116,
				101, 109, 92, 76, 111, 110, 103, 98, 111, 119,
				92, 83, 99, 114, 105, 112, 116, 115, 92, 83,
				111, 117, 110, 100, 66, 111, 119, 67, 108, 105,
				99, 107, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 74, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 73,
				110, 116, 101, 114, 97, 99, 116, 105, 111, 110,
				83, 121, 115, 116, 101, 109, 92, 83, 97, 109,
				112, 108, 101, 115, 92, 66, 117, 103, 103, 121,
				66, 117, 100, 100, 121, 92, 65, 117, 100, 105,
				111, 92, 65, 109, 98, 105, 101, 110, 116, 83,
				111, 117, 110, 100, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 66, 92, 65, 115, 115, 101,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				92, 73, 110, 116, 101, 114, 97, 99, 116, 105,
				111, 110, 83, 121, 115, 116, 101, 109, 92, 83,
				97, 109, 112, 108, 101, 115, 92, 66, 117, 103,
				103, 121, 66, 117, 100, 100, 121, 92, 66, 117,
				103, 103, 121, 66, 117, 100, 100, 121, 46, 99,
				115, 0, 0, 0, 1, 0, 0, 0, 71, 92,
				65, 115, 115, 101, 116, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 92, 73, 110, 116, 101, 114,
				97, 99, 116, 105, 111, 110, 83, 121, 115, 116,
				101, 109, 92, 83, 97, 109, 112, 108, 101, 115,
				92, 66, 117, 103, 103, 121, 66, 117, 100, 100,
				121, 92, 66, 117, 103, 103, 121, 67, 111, 110,
				116, 114, 111, 108, 108, 101, 114, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 67, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 73, 110, 116, 101, 114, 97,
				99, 116, 105, 111, 110, 83, 121, 115, 116, 101,
				109, 92, 83, 97, 109, 112, 108, 101, 115, 92,
				66, 117, 103, 103, 121, 66, 117, 100, 100, 121,
				92, 76, 111, 99, 107, 84, 111, 80, 111, 105,
				110, 116, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 64, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 73,
				110, 116, 101, 114, 97, 99, 116, 105, 111, 110,
				83, 121, 115, 116, 101, 109, 92, 83, 97, 109,
				112, 108, 101, 115, 92, 66, 117, 103, 103, 121,
				66, 117, 100, 100, 121, 92, 116, 114, 97, 99,
				107, 67, 97, 109, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 64, 92, 65, 115, 115, 101,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				92, 73, 110, 116, 101, 114, 97, 99, 116, 105,
				111, 110, 83, 121, 115, 116, 101, 109, 92, 83,
				97, 109, 112, 108, 101, 115, 92, 66, 117, 103,
				103, 121, 66, 117, 100, 100, 121, 92, 116, 114,
				97, 99, 107, 79, 98, 106, 46, 99, 115, 0,
				0, 0, 1, 0, 0, 0, 65, 92, 65, 115,
				115, 101, 116, 115, 92, 83, 116, 101, 97, 109,
				86, 82, 92, 73, 110, 116, 101, 114, 97, 99,
				116, 105, 111, 110, 83, 121, 115, 116, 101, 109,
				92, 83, 97, 109, 112, 108, 101, 115, 92, 66,
				117, 103, 103, 121, 66, 117, 100, 100, 121, 92,
				87, 104, 101, 101, 108, 68, 117, 115, 116, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 60,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 116, 101,
				114, 97, 99, 116, 105, 111, 110, 83, 121, 115,
				116, 101, 109, 92, 83, 97, 109, 112, 108, 101,
				115, 92, 71, 114, 101, 110, 97, 100, 101, 92,
				71, 114, 101, 110, 97, 100, 101, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 60, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 73, 110, 116, 101, 114, 97,
				99, 116, 105, 111, 110, 83, 121, 115, 116, 101,
				109, 92, 83, 97, 109, 112, 108, 101, 115, 92,
				74, 111, 101, 74, 101, 102, 102, 92, 74, 111,
				101, 74, 101, 102, 102, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 70, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 116, 101, 114, 97, 99, 116,
				105, 111, 110, 83, 121, 115, 116, 101, 109, 92,
				83, 97, 109, 112, 108, 101, 115, 92, 74, 111,
				101, 74, 101, 102, 102, 92, 74, 111, 101, 74,
				101, 102, 102, 67, 111, 110, 116, 114, 111, 108,
				108, 101, 114, 46, 99, 115, 0, 0, 0, 1,
				0, 0, 0, 68, 92, 65, 115, 115, 101, 116,
				115, 92, 83, 116, 101, 97, 109, 86, 82, 92,
				73, 110, 116, 101, 114, 97, 99, 116, 105, 111,
				110, 83, 121, 115, 116, 101, 109, 92, 83, 97,
				109, 112, 108, 101, 115, 92, 74, 111, 101, 74,
				101, 102, 102, 92, 74, 111, 101, 74, 101, 102,
				102, 71, 101, 115, 116, 117, 114, 101, 115, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 67,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 116, 101,
				114, 97, 99, 116, 105, 111, 110, 83, 121, 115,
				116, 101, 109, 92, 83, 97, 109, 112, 108, 101,
				115, 92, 74, 111, 101, 74, 101, 102, 102, 92,
				80, 114, 111, 99, 101, 100, 117, 114, 97, 108,
				72, 97, 116, 115, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 65, 92, 65, 115, 115, 101,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				92, 73, 110, 116, 101, 114, 97, 99, 116, 105,
				111, 110, 83, 121, 115, 116, 101, 109, 92, 83,
				97, 109, 112, 108, 101, 115, 92, 83, 99, 114,
				105, 112, 116, 115, 92, 66, 117, 116, 116, 111,
				110, 69, 102, 102, 101, 99, 116, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 66, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 73, 110, 116, 101, 114, 97,
				99, 116, 105, 111, 110, 83, 121, 115, 116, 101,
				109, 92, 83, 97, 109, 112, 108, 101, 115, 92,
				83, 99, 114, 105, 112, 116, 115, 92, 66, 117,
				116, 116, 111, 110, 69, 120, 97, 109, 112, 108,
				101, 46, 99, 115, 0, 0, 0, 1, 0, 0,
				0, 75, 92, 65, 115, 115, 101, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 92, 73, 110,
				116, 101, 114, 97, 99, 116, 105, 111, 110, 83,
				121, 115, 116, 101, 109, 92, 83, 97, 109, 112,
				108, 101, 115, 92, 83, 99, 114, 105, 112, 116,
				115, 92, 67, 111, 110, 116, 114, 111, 108, 108,
				101, 114, 72, 105, 110, 116, 115, 69, 120, 97,
				109, 112, 108, 101, 46, 99, 115, 0, 0, 0,
				4, 0, 0, 0, 73, 92, 65, 115, 115, 101,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				92, 73, 110, 116, 101, 114, 97, 99, 116, 105,
				111, 110, 83, 121, 115, 116, 101, 109, 92, 83,
				97, 109, 112, 108, 101, 115, 92, 83, 99, 114,
				105, 112, 116, 115, 92, 67, 117, 115, 116, 111,
				109, 83, 107, 101, 108, 101, 116, 111, 110, 72,
				101, 108, 112, 101, 114, 46, 99, 115, 0, 0,
				0, 2, 0, 0, 0, 63, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 116, 101, 114, 97, 99, 116,
				105, 111, 110, 83, 121, 115, 116, 101, 109, 92,
				83, 97, 109, 112, 108, 101, 115, 92, 83, 99,
				114, 105, 112, 116, 115, 92, 70, 108, 111, 112,
				112, 121, 72, 97, 110, 100, 46, 99, 115, 0,
				0, 0, 1, 0, 0, 0, 66, 92, 65, 115,
				115, 101, 116, 115, 92, 83, 116, 101, 97, 109,
				86, 82, 92, 73, 110, 116, 101, 114, 97, 99,
				116, 105, 111, 110, 83, 121, 115, 116, 101, 109,
				92, 83, 97, 109, 112, 108, 101, 115, 92, 83,
				99, 114, 105, 112, 116, 115, 92, 70, 108, 111,
				119, 101, 114, 80, 108, 97, 110, 116, 101, 100,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				72, 92, 65, 115, 115, 101, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 92, 73, 110, 116,
				101, 114, 97, 99, 116, 105, 111, 110, 83, 121,
				115, 116, 101, 109, 92, 83, 97, 109, 112, 108,
				101, 115, 92, 83, 99, 114, 105, 112, 116, 115,
				92, 73, 110, 116, 101, 114, 97, 99, 116, 97,
				98, 108, 101, 69, 120, 97, 109, 112, 108, 101,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				61, 92, 65, 115, 115, 101, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 92, 73, 110, 116,
				101, 114, 97, 99, 116, 105, 111, 110, 83, 121,
				115, 116, 101, 109, 92, 83, 97, 109, 112, 108,
				101, 115, 92, 83, 99, 114, 105, 112, 116, 115,
				92, 80, 108, 97, 110, 116, 105, 110, 103, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 73,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 116, 101,
				114, 97, 99, 116, 105, 111, 110, 83, 121, 115,
				116, 101, 109, 92, 83, 97, 109, 112, 108, 101,
				115, 92, 83, 99, 114, 105, 112, 116, 115, 92,
				82, 101, 110, 100, 101, 114, 77, 111, 100, 101,
				108, 67, 104, 97, 110, 103, 101, 114, 85, 73,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				70, 92, 65, 115, 115, 101, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 92, 73, 110, 116,
				101, 114, 97, 99, 116, 105, 111, 110, 83, 121,
				115, 116, 101, 109, 92, 83, 97, 109, 112, 108,
				101, 115, 92, 83, 99, 114, 105, 112, 116, 115,
				92, 83, 107, 101, 108, 101, 116, 111, 110, 85,
				73, 79, 112, 116, 105, 111, 110, 115, 46, 99,
				115, 0, 0, 0, 1, 0, 0, 0, 68, 92,
				65, 115, 115, 101, 116, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 92, 73, 110, 116, 101, 114,
				97, 99, 116, 105, 111, 110, 83, 121, 115, 116,
				101, 109, 92, 83, 97, 109, 112, 108, 101, 115,
				92, 83, 99, 114, 105, 112, 116, 115, 92, 84,
				97, 114, 103, 101, 116, 72, 105, 116, 69, 102,
				102, 101, 99, 116, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 70, 92, 65, 115, 115, 101,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				92, 73, 110, 116, 101, 114, 97, 99, 116, 105,
				111, 110, 83, 121, 115, 116, 101, 109, 92, 83,
				97, 109, 112, 108, 101, 115, 92, 83, 99, 114,
				105, 112, 116, 115, 92, 84, 97, 114, 103, 101,
				116, 77, 101, 97, 115, 117, 114, 101, 109, 101,
				110, 116, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 72, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 73,
				110, 116, 101, 114, 97, 99, 116, 105, 111, 110,
				83, 121, 115, 116, 101, 109, 92, 83, 97, 109,
				112, 108, 101, 115, 92, 83, 99, 114, 105, 112,
				116, 115, 92, 85, 82, 80, 77, 97, 116, 101,
				114, 105, 97, 108, 83, 119, 105, 116, 99, 104,
				101, 114, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 63, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 73,
				110, 116, 101, 114, 97, 99, 116, 105, 111, 110,
				83, 121, 115, 116, 101, 109, 92, 83, 97, 109,
				112, 108, 101, 115, 92, 83, 113, 117, 105, 115,
				104, 121, 92, 83, 113, 117, 105, 115, 104, 121,
				84, 111, 121, 46, 99, 115, 0, 0, 0, 1,
				0, 0, 0, 54, 92, 65, 115, 115, 101, 116,
				115, 92, 83, 116, 101, 97, 109, 86, 82, 92,
				73, 110, 116, 101, 114, 97, 99, 116, 105, 111,
				110, 83, 121, 115, 116, 101, 109, 92, 83, 110,
				97, 112, 84, 117, 114, 110, 92, 83, 110, 97,
				112, 84, 117, 114, 110, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 86, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 116, 101, 114, 97, 99, 116,
				105, 111, 110, 83, 121, 115, 116, 101, 109, 92,
				84, 101, 108, 101, 112, 111, 114, 116, 92, 83,
				99, 114, 105, 112, 116, 115, 92, 65, 108, 108,
				111, 119, 84, 101, 108, 101, 112, 111, 114, 116,
				87, 104, 105, 108, 101, 65, 116, 116, 97, 99,
				104, 101, 100, 84, 111, 72, 97, 110, 100, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 67,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 73, 110, 116, 101,
				114, 97, 99, 116, 105, 111, 110, 83, 121, 115,
				116, 101, 109, 92, 84, 101, 108, 101, 112, 111,
				114, 116, 92, 83, 99, 114, 105, 112, 116, 115,
				92, 67, 104, 97, 112, 101, 114, 111, 110, 101,
				73, 110, 102, 111, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 73, 92, 65, 115, 115, 101,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				92, 73, 110, 116, 101, 114, 97, 99, 116, 105,
				111, 110, 83, 121, 115, 116, 101, 109, 92, 84,
				101, 108, 101, 112, 111, 114, 116, 92, 83, 99,
				114, 105, 112, 116, 115, 92, 73, 103, 110, 111,
				114, 101, 84, 101, 108, 101, 112, 111, 114, 116,
				84, 114, 97, 99, 101, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 62, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 116, 101, 114, 97, 99, 116,
				105, 111, 110, 83, 121, 115, 116, 101, 109, 92,
				84, 101, 108, 101, 112, 111, 114, 116, 92, 83,
				99, 114, 105, 112, 116, 115, 92, 84, 101, 108,
				101, 112, 111, 114, 116, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 65, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 73, 110, 116, 101, 114, 97, 99, 116,
				105, 111, 110, 83, 121, 115, 116, 101, 109, 92,
				84, 101, 108, 101, 112, 111, 114, 116, 92, 83,
				99, 114, 105, 112, 116, 115, 92, 84, 101, 108,
				101, 112, 111, 114, 116, 65, 114, 99, 46, 99,
				115, 0, 0, 0, 1, 0, 0, 0, 66, 92,
				65, 115, 115, 101, 116, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 92, 73, 110, 116, 101, 114,
				97, 99, 116, 105, 111, 110, 83, 121, 115, 116,
				101, 109, 92, 84, 101, 108, 101, 112, 111, 114,
				116, 92, 83, 99, 114, 105, 112, 116, 115, 92,
				84, 101, 108, 101, 112, 111, 114, 116, 65, 114,
				101, 97, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 72, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 73,
				110, 116, 101, 114, 97, 99, 116, 105, 111, 110,
				83, 121, 115, 116, 101, 109, 92, 84, 101, 108,
				101, 112, 111, 114, 116, 92, 83, 99, 114, 105,
				112, 116, 115, 92, 84, 101, 108, 101, 112, 111,
				114, 116, 77, 97, 114, 107, 101, 114, 66, 97,
				115, 101, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 67, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 73,
				110, 116, 101, 114, 97, 99, 116, 105, 111, 110,
				83, 121, 115, 116, 101, 109, 92, 84, 101, 108,
				101, 112, 111, 114, 116, 92, 83, 99, 114, 105,
				112, 116, 115, 92, 84, 101, 108, 101, 112, 111,
				114, 116, 80, 111, 105, 110, 116, 46, 99, 115,
				0, 0, 0, 1, 0, 0, 0, 71, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 92, 73, 110, 116, 101, 114, 97,
				99, 116, 105, 111, 110, 83, 121, 115, 116, 101,
				109, 92, 84, 101, 108, 101, 112, 111, 114, 116,
				92, 83, 99, 114, 105, 112, 116, 115, 92, 84,
				101, 108, 101, 112, 111, 114, 116, 85, 82, 80,
				72, 101, 108, 112, 101, 114, 46, 99, 115, 0,
				0, 0, 1, 0, 0, 0, 34, 92, 65, 115,
				115, 101, 116, 115, 92, 83, 116, 101, 97, 109,
				86, 82, 92, 83, 99, 114, 105, 112, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 46, 99,
				115, 0, 0, 0, 1, 0, 0, 0, 44, 92,
				65, 115, 115, 101, 116, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 92, 83, 99, 114, 105, 112,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				95, 66, 101, 104, 97, 118, 105, 111, 117, 114,
				46, 99, 115, 0, 0, 0, 1, 0, 0, 0,
				41, 92, 65, 115, 115, 101, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 92, 83, 99, 114,
				105, 112, 116, 115, 92, 83, 116, 101, 97, 109,
				86, 82, 95, 67, 97, 109, 101, 114, 97, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 45,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 83, 99, 114, 105,
				112, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 95, 67, 97, 109, 101, 114, 97, 70, 108,
				105, 112, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 45, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 83,
				99, 114, 105, 112, 116, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 95, 67, 97, 109, 101, 114,
				97, 77, 97, 115, 107, 46, 99, 115, 0, 0,
				0, 1, 0, 0, 0, 39, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 83, 99, 114, 105, 112, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 95, 69, 97,
				114, 115, 46, 99, 115, 0, 0, 0, 3, 0,
				0, 0, 55, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 83,
				99, 114, 105, 112, 116, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 95, 69, 110, 117, 109, 69,
				113, 117, 97, 108, 105, 116, 121, 67, 111, 109,
				112, 97, 114, 101, 114, 46, 99, 115, 0, 0,
				0, 10, 0, 0, 0, 41, 92, 65, 115, 115,
				101, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 92, 83, 99, 114, 105, 112, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 95, 69, 118,
				101, 110, 116, 115, 46, 99, 115, 0, 0, 0,
				2, 0, 0, 0, 49, 92, 65, 115, 115, 101,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				92, 83, 99, 114, 105, 112, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 95, 69, 120, 116,
				101, 114, 110, 97, 108, 67, 97, 109, 101, 114,
				97, 46, 99, 115, 0, 0, 0, 1, 0, 0,
				0, 63, 92, 65, 115, 115, 101, 116, 115, 92,
				83, 116, 101, 97, 109, 86, 82, 92, 83, 99,
				114, 105, 112, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 95, 69, 120, 116, 101, 114, 110,
				97, 108, 67, 97, 109, 101, 114, 97, 95, 76,
				101, 103, 97, 99, 121, 77, 97, 110, 97, 103,
				101, 114, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 39, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 92, 83,
				99, 114, 105, 112, 116, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 95, 70, 97, 100, 101, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 42,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 83, 99, 114, 105,
				112, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 95, 70, 114, 117, 115, 116, 117, 109, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 37,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 92, 83, 99, 114, 105,
				112, 116, 115, 92, 83, 116, 101, 97, 109, 86,
				82, 95, 73, 75, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 44, 92, 65, 115, 115, 101,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				92, 83, 99, 114, 105, 112, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 95, 76, 111, 97,
				100, 76, 101, 118, 101, 108, 46, 99, 115, 0,
				0, 0, 1, 0, 0, 0, 39, 92, 65, 115,
				115, 101, 116, 115, 92, 83, 116, 101, 97, 109,
				86, 82, 92, 83, 99, 114, 105, 112, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 95, 77,
				101, 110, 117, 46, 99, 115, 0, 0, 0, 2,
				0, 0, 0, 42, 92, 65, 115, 115, 101, 116,
				115, 92, 83, 116, 101, 97, 109, 86, 82, 92,
				83, 99, 114, 105, 112, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 95, 79, 118, 101, 114,
				108, 97, 121, 46, 99, 115, 0, 0, 0, 1,
				0, 0, 0, 43, 92, 65, 115, 115, 101, 116,
				115, 92, 83, 116, 101, 97, 109, 86, 82, 92,
				83, 99, 114, 105, 112, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 95, 80, 108, 97, 121,
				65, 114, 101, 97, 46, 99, 115, 0, 0, 0,
				1, 0, 0, 0, 41, 92, 65, 115, 115, 101,
				116, 115, 92, 83, 116, 101, 97, 109, 86, 82,
				92, 83, 99, 114, 105, 112, 116, 115, 92, 83,
				116, 101, 97, 109, 86, 82, 95, 82, 101, 110,
				100, 101, 114, 46, 99, 115, 0, 0, 0, 3,
				0, 0, 0, 46, 92, 65, 115, 115, 101, 116,
				115, 92, 83, 116, 101, 97, 109, 86, 82, 92,
				83, 99, 114, 105, 112, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 95, 82, 101, 110, 100,
				101, 114, 77, 111, 100, 101, 108, 46, 99, 115,
				0, 0, 0, 3, 0, 

plugins/SteamVR_Actions.dll

Decompiled 3 days ago
using System.CodeDom.Compiler;
using System.ComponentModel;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyVersion("0.0.0.0")]
[CompilerGenerated]
[EditorBrowsable(EditorBrowsableState.Never)]
[GeneratedCode("Unity.MonoScriptGenerator.MonoScriptInfoGenerator", null)]
internal class UnitySourceGeneratedAssemblyMonoScriptTypes_v1
{
	private struct MonoScriptData
	{
		public byte[] FilePathsData;

		public byte[] TypesData;

		public int TotalTypes;

		public int TotalFiles;

		public bool IsEditorOnly;
	}

	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	private static MonoScriptData Get()
	{
		return new MonoScriptData
		{
			FilePathsData = new byte[253]
			{
				0, 0, 0, 1, 0, 0, 0, 73, 92, 65,
				115, 115, 101, 116, 115, 92, 83, 116, 101, 97,
				109, 86, 82, 95, 73, 110, 112, 117, 116, 92,
				65, 99, 116, 105, 111, 110, 83, 101, 116, 67,
				108, 97, 115, 115, 101, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 95, 73, 110, 112, 117, 116,
				95, 65, 99, 116, 105, 111, 110, 83, 101, 116,
				95, 100, 101, 102, 97, 117, 108, 116, 46, 99,
				115, 0, 0, 0, 1, 0, 0, 0, 46, 92,
				65, 115, 115, 101, 116, 115, 92, 83, 116, 101,
				97, 109, 86, 82, 95, 73, 110, 112, 117, 116,
				92, 83, 116, 101, 97, 109, 86, 82, 95, 73,
				110, 112, 117, 116, 95, 65, 99, 116, 105, 111,
				110, 115, 46, 99, 115, 0, 0, 0, 1, 0,
				0, 0, 49, 92, 65, 115, 115, 101, 116, 115,
				92, 83, 116, 101, 97, 109, 86, 82, 95, 73,
				110, 112, 117, 116, 92, 83, 116, 101, 97, 109,
				86, 82, 95, 73, 110, 112, 117, 116, 95, 65,
				99, 116, 105, 111, 110, 83, 101, 116, 115, 46,
				99, 115, 0, 0, 0, 1, 0, 0, 0, 53,
				92, 65, 115, 115, 101, 116, 115, 92, 83, 116,
				101, 97, 109, 86, 82, 95, 73, 110, 112, 117,
				116, 92, 83, 116, 101, 97, 109, 86, 82, 95,
				73, 110, 112, 117, 116, 95, 73, 110, 105, 116,
				105, 97, 108, 105, 122, 97, 116, 105, 111, 110,
				46, 99, 115
			},
			TypesData = new byte[132]
			{
				0, 0, 0, 0, 40, 86, 97, 108, 118, 101,
				46, 86, 82, 124, 83, 116, 101, 97, 109, 86,
				82, 95, 73, 110, 112, 117, 116, 95, 65, 99,
				116, 105, 111, 110, 83, 101, 116, 95, 100, 101,
				102, 97, 117, 108, 116, 1, 0, 0, 0, 24,
				86, 97, 108, 118, 101, 46, 86, 82, 124, 83,
				116, 101, 97, 109, 86, 82, 95, 65, 99, 116,
				105, 111, 110, 115, 1, 0, 0, 0, 24, 86,
				97, 108, 118, 101, 46, 86, 82, 124, 83, 116,
				101, 97, 109, 86, 82, 95, 65, 99, 116, 105,
				111, 110, 115, 1, 0, 0, 0, 24, 86, 97,
				108, 118, 101, 46, 86, 82, 124, 83, 116, 101,
				97, 109, 86, 82, 95, 65, 99, 116, 105, 111,
				110, 115
			},
			TotalFiles = 4,
			TotalTypes = 4,
			IsEditorOnly = false
		};
	}
}
namespace Valve.VR;

public class SteamVR_Input_ActionSet_default : SteamVR_ActionSet
{
	public virtual SteamVR_Action_Vector2 Movement => SteamVR_Actions.default_Movement;

	public virtual SteamVR_Action_Vector2 Turn => SteamVR_Actions.default_Turn;

	public virtual SteamVR_Action_Boolean Shoot => SteamVR_Actions.default_Shoot;

	public virtual SteamVR_Action_Boolean AltShoot => SteamVR_Actions.default_AltShoot;

	public virtual SteamVR_Action_Boolean Jump => SteamVR_Actions.default_Jump;

	public virtual SteamVR_Action_Boolean Slide => SteamVR_Actions.default_Slide;

	public virtual SteamVR_Action_Boolean Dash => SteamVR_Actions.default_Dash;

	public virtual SteamVR_Action_Boolean Escape => SteamVR_Actions.default_Escape;

	public virtual SteamVR_Action_Boolean OpenWeaponWheel => SteamVR_Actions.default_OpenWeaponWheel;

	public virtual SteamVR_Action_Boolean ChangeWeaponVariation => SteamVR_Actions.default_ChangeWeaponVariation;

	public virtual SteamVR_Action_Vector2 IterateWeapon => SteamVR_Actions.default_IterateWeapon;

	public virtual SteamVR_Action_Boolean SwapHand => SteamVR_Actions.default_SwapHand;

	public virtual SteamVR_Action_Boolean Slot1 => SteamVR_Actions.default_Slot1;

	public virtual SteamVR_Action_Boolean Slot2 => SteamVR_Actions.default_Slot2;

	public virtual SteamVR_Action_Boolean Slot3 => SteamVR_Actions.default_Slot3;

	public virtual SteamVR_Action_Boolean Slot4 => SteamVR_Actions.default_Slot4;

	public virtual SteamVR_Action_Boolean Slot5 => SteamVR_Actions.default_Slot5;

	public virtual SteamVR_Action_Boolean Slot6 => SteamVR_Actions.default_Slot6;

	public virtual SteamVR_Action_Boolean Slot7 => SteamVR_Actions.default_Slot7;

	public virtual SteamVR_Action_Boolean Slot8 => SteamVR_Actions.default_Slot8;

	public virtual SteamVR_Action_Boolean Slot9 => SteamVR_Actions.default_Slot9;

	public virtual SteamVR_Action_Boolean Slot0 => SteamVR_Actions.default_Slot0;

	public virtual SteamVR_Action_Boolean Whiplash => SteamVR_Actions.default_Whiplash;

	public virtual SteamVR_Action_Boolean Punch => SteamVR_Actions.default_Punch;

	public virtual SteamVR_Action_Pose LeftPose => SteamVR_Actions.default_LeftPose;

	public virtual SteamVR_Action_Pose RightPose => SteamVR_Actions.default_RightPose;

	public virtual SteamVR_Action_Vector2 WeaponWheelScroll => SteamVR_Actions.default_WeaponWheelScroll;

	public virtual SteamVR_Action_Boolean NextWeapon => SteamVR_Actions.default_NextWeapon;

	public virtual SteamVR_Action_Boolean PrevWeapon => SteamVR_Actions.default_PrevWeapon;

	public virtual SteamVR_Action_Vibration Haptic => SteamVR_Actions.default_Haptic;
}
public class SteamVR_Actions
{
	private static SteamVR_Action_Vector2 p_default_Movement;

	private static SteamVR_Action_Vector2 p_default_Turn;

	private static SteamVR_Action_Boolean p_default_Shoot;

	private static SteamVR_Action_Boolean p_default_AltShoot;

	private static SteamVR_Action_Boolean p_default_Jump;

	private static SteamVR_Action_Boolean p_default_Slide;

	private static SteamVR_Action_Boolean p_default_Dash;

	private static SteamVR_Action_Boolean p_default_Escape;

	private static SteamVR_Action_Boolean p_default_OpenWeaponWheel;

	private static SteamVR_Action_Boolean p_default_ChangeWeaponVariation;

	private static SteamVR_Action_Vector2 p_default_IterateWeapon;

	private static SteamVR_Action_Boolean p_default_SwapHand;

	private static SteamVR_Action_Boolean p_default_Slot1;

	private static SteamVR_Action_Boolean p_default_Slot2;

	private static SteamVR_Action_Boolean p_default_Slot3;

	private static SteamVR_Action_Boolean p_default_Slot4;

	private static SteamVR_Action_Boolean p_default_Slot5;

	private static SteamVR_Action_Boolean p_default_Slot6;

	private static SteamVR_Action_Boolean p_default_Slot7;

	private static SteamVR_Action_Boolean p_default_Slot8;

	private static SteamVR_Action_Boolean p_default_Slot9;

	private static SteamVR_Action_Boolean p_default_Slot0;

	private static SteamVR_Action_Boolean p_default_Whiplash;

	private static SteamVR_Action_Boolean p_default_Punch;

	private static SteamVR_Action_Pose p_default_LeftPose;

	private static SteamVR_Action_Pose p_default_RightPose;

	private static SteamVR_Action_Vector2 p_default_WeaponWheelScroll;

	private static SteamVR_Action_Boolean p_default_NextWeapon;

	private static SteamVR_Action_Boolean p_default_PrevWeapon;

	private static SteamVR_Action_Vibration p_default_Haptic;

	private static SteamVR_Input_ActionSet_default p__default;

	public static SteamVR_Action_Vector2 default_Movement => ((SteamVR_Action)p_default_Movement).GetCopy<SteamVR_Action_Vector2>();

	public static SteamVR_Action_Vector2 default_Turn => ((SteamVR_Action)p_default_Turn).GetCopy<SteamVR_Action_Vector2>();

	public static SteamVR_Action_Boolean default_Shoot => ((SteamVR_Action)p_default_Shoot).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_AltShoot => ((SteamVR_Action)p_default_AltShoot).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_Jump => ((SteamVR_Action)p_default_Jump).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_Slide => ((SteamVR_Action)p_default_Slide).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_Dash => ((SteamVR_Action)p_default_Dash).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_Escape => ((SteamVR_Action)p_default_Escape).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_OpenWeaponWheel => ((SteamVR_Action)p_default_OpenWeaponWheel).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_ChangeWeaponVariation => ((SteamVR_Action)p_default_ChangeWeaponVariation).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Vector2 default_IterateWeapon => ((SteamVR_Action)p_default_IterateWeapon).GetCopy<SteamVR_Action_Vector2>();

	public static SteamVR_Action_Boolean default_SwapHand => ((SteamVR_Action)p_default_SwapHand).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_Slot1 => ((SteamVR_Action)p_default_Slot1).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_Slot2 => ((SteamVR_Action)p_default_Slot2).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_Slot3 => ((SteamVR_Action)p_default_Slot3).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_Slot4 => ((SteamVR_Action)p_default_Slot4).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_Slot5 => ((SteamVR_Action)p_default_Slot5).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_Slot6 => ((SteamVR_Action)p_default_Slot6).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_Slot7 => ((SteamVR_Action)p_default_Slot7).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_Slot8 => ((SteamVR_Action)p_default_Slot8).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_Slot9 => ((SteamVR_Action)p_default_Slot9).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_Slot0 => ((SteamVR_Action)p_default_Slot0).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_Whiplash => ((SteamVR_Action)p_default_Whiplash).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_Punch => ((SteamVR_Action)p_default_Punch).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Pose default_LeftPose => ((SteamVR_Action)p_default_LeftPose).GetCopy<SteamVR_Action_Pose>();

	public static SteamVR_Action_Pose default_RightPose => ((SteamVR_Action)p_default_RightPose).GetCopy<SteamVR_Action_Pose>();

	public static SteamVR_Action_Vector2 default_WeaponWheelScroll => ((SteamVR_Action)p_default_WeaponWheelScroll).GetCopy<SteamVR_Action_Vector2>();

	public static SteamVR_Action_Boolean default_NextWeapon => ((SteamVR_Action)p_default_NextWeapon).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Boolean default_PrevWeapon => ((SteamVR_Action)p_default_PrevWeapon).GetCopy<SteamVR_Action_Boolean>();

	public static SteamVR_Action_Vibration default_Haptic => ((SteamVR_Action)p_default_Haptic).GetCopy<SteamVR_Action_Vibration>();

	public static SteamVR_Input_ActionSet_default _default => ((SteamVR_ActionSet)p__default).GetCopy<SteamVR_Input_ActionSet_default>();

	private static void InitializeActionArrays()
	{
		SteamVR_Input.actions = (SteamVR_Action[])(object)new SteamVR_Action[30]
		{
			(SteamVR_Action)default_Movement,
			(SteamVR_Action)default_Turn,
			(SteamVR_Action)default_Shoot,
			(SteamVR_Action)default_AltShoot,
			(SteamVR_Action)default_Jump,
			(SteamVR_Action)default_Slide,
			(SteamVR_Action)default_Dash,
			(SteamVR_Action)default_Escape,
			(SteamVR_Action)default_OpenWeaponWheel,
			(SteamVR_Action)default_ChangeWeaponVariation,
			(SteamVR_Action)default_IterateWeapon,
			(SteamVR_Action)default_SwapHand,
			(SteamVR_Action)default_Slot1,
			(SteamVR_Action)default_Slot2,
			(SteamVR_Action)default_Slot3,
			(SteamVR_Action)default_Slot4,
			(SteamVR_Action)default_Slot5,
			(SteamVR_Action)default_Slot6,
			(SteamVR_Action)default_Slot7,
			(SteamVR_Action)default_Slot8,
			(SteamVR_Action)default_Slot9,
			(SteamVR_Action)default_Slot0,
			(SteamVR_Action)default_Whiplash,
			(SteamVR_Action)default_Punch,
			(SteamVR_Action)default_LeftPose,
			(SteamVR_Action)default_RightPose,
			(SteamVR_Action)default_WeaponWheelScroll,
			(SteamVR_Action)default_NextWeapon,
			(SteamVR_Action)default_PrevWeapon,
			(SteamVR_Action)default_Haptic
		};
		SteamVR_Input.actionsIn = (ISteamVR_Action_In[])(object)new ISteamVR_Action_In[29]
		{
			(ISteamVR_Action_In)default_Movement,
			(ISteamVR_Action_In)default_Turn,
			(ISteamVR_Action_In)default_Shoot,
			(ISteamVR_Action_In)default_AltShoot,
			(ISteamVR_Action_In)default_Jump,
			(ISteamVR_Action_In)default_Slide,
			(ISteamVR_Action_In)default_Dash,
			(ISteamVR_Action_In)default_Escape,
			(ISteamVR_Action_In)default_OpenWeaponWheel,
			(ISteamVR_Action_In)default_ChangeWeaponVariation,
			(ISteamVR_Action_In)default_IterateWeapon,
			(ISteamVR_Action_In)default_SwapHand,
			(ISteamVR_Action_In)default_Slot1,
			(ISteamVR_Action_In)default_Slot2,
			(ISteamVR_Action_In)default_Slot3,
			(ISteamVR_Action_In)default_Slot4,
			(ISteamVR_Action_In)default_Slot5,
			(ISteamVR_Action_In)default_Slot6,
			(ISteamVR_Action_In)default_Slot7,
			(ISteamVR_Action_In)default_Slot8,
			(ISteamVR_Action_In)default_Slot9,
			(ISteamVR_Action_In)default_Slot0,
			(ISteamVR_Action_In)default_Whiplash,
			(ISteamVR_Action_In)default_Punch,
			(ISteamVR_Action_In)default_LeftPose,
			(ISteamVR_Action_In)default_RightPose,
			(ISteamVR_Action_In)default_WeaponWheelScroll,
			(ISteamVR_Action_In)default_NextWeapon,
			(ISteamVR_Action_In)default_PrevWeapon
		};
		SteamVR_Input.actionsOut = (ISteamVR_Action_Out[])(object)new ISteamVR_Action_Out[1] { (ISteamVR_Action_Out)default_Haptic };
		SteamVR_Input.actionsVibration = (SteamVR_Action_Vibration[])(object)new SteamVR_Action_Vibration[1] { default_Haptic };
		SteamVR_Input.actionsPose = (SteamVR_Action_Pose[])(object)new SteamVR_Action_Pose[2] { default_LeftPose, default_RightPose };
		SteamVR_Input.actionsBoolean = (SteamVR_Action_Boolean[])(object)new SteamVR_Action_Boolean[23]
		{
			default_Shoot, default_AltShoot, default_Jump, default_Slide, default_Dash, default_Escape, default_OpenWeaponWheel, default_ChangeWeaponVariation, default_SwapHand, default_Slot1,
			default_Slot2, default_Slot3, default_Slot4, default_Slot5, default_Slot6, default_Slot7, default_Slot8, default_Slot9, default_Slot0, default_Whiplash,
			default_Punch, default_NextWeapon, default_PrevWeapon
		};
		SteamVR_Input.actionsSingle = (SteamVR_Action_Single[])(object)new SteamVR_Action_Single[0];
		SteamVR_Input.actionsVector2 = (SteamVR_Action_Vector2[])(object)new SteamVR_Action_Vector2[4] { default_Movement, default_Turn, default_IterateWeapon, default_WeaponWheelScroll };
		SteamVR_Input.actionsVector3 = (SteamVR_Action_Vector3[])(object)new SteamVR_Action_Vector3[0];
		SteamVR_Input.actionsSkeleton = (SteamVR_Action_Skeleton[])(object)new SteamVR_Action_Skeleton[0];
		SteamVR_Input.actionsNonPoseNonSkeletonIn = (ISteamVR_Action_In[])(object)new ISteamVR_Action_In[27]
		{
			(ISteamVR_Action_In)default_Movement,
			(ISteamVR_Action_In)default_Turn,
			(ISteamVR_Action_In)default_Shoot,
			(ISteamVR_Action_In)default_AltShoot,
			(ISteamVR_Action_In)default_Jump,
			(ISteamVR_Action_In)default_Slide,
			(ISteamVR_Action_In)default_Dash,
			(ISteamVR_Action_In)default_Escape,
			(ISteamVR_Action_In)default_OpenWeaponWheel,
			(ISteamVR_Action_In)default_ChangeWeaponVariation,
			(ISteamVR_Action_In)default_IterateWeapon,
			(ISteamVR_Action_In)default_SwapHand,
			(ISteamVR_Action_In)default_Slot1,
			(ISteamVR_Action_In)default_Slot2,
			(ISteamVR_Action_In)default_Slot3,
			(ISteamVR_Action_In)default_Slot4,
			(ISteamVR_Action_In)default_Slot5,
			(ISteamVR_Action_In)default_Slot6,
			(ISteamVR_Action_In)default_Slot7,
			(ISteamVR_Action_In)default_Slot8,
			(ISteamVR_Action_In)default_Slot9,
			(ISteamVR_Action_In)default_Slot0,
			(ISteamVR_Action_In)default_Whiplash,
			(ISteamVR_Action_In)default_Punch,
			(ISteamVR_Action_In)default_WeaponWheelScroll,
			(ISteamVR_Action_In)default_NextWeapon,
			(ISteamVR_Action_In)default_PrevWeapon
		};
	}

	private static void PreInitActions()
	{
		p_default_Movement = SteamVR_Action.Create<SteamVR_Action_Vector2>("/actions/default/in/Movement");
		p_default_Turn = SteamVR_Action.Create<SteamVR_Action_Vector2>("/actions/default/in/Turn");
		p_default_Shoot = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Shoot");
		p_default_AltShoot = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/AltShoot");
		p_default_Jump = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Jump");
		p_default_Slide = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Slide");
		p_default_Dash = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Dash");
		p_default_Escape = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Escape");
		p_default_OpenWeaponWheel = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/OpenWeaponWheel");
		p_default_ChangeWeaponVariation = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/ChangeWeaponVariation");
		p_default_IterateWeapon = SteamVR_Action.Create<SteamVR_Action_Vector2>("/actions/default/in/IterateWeapon");
		p_default_SwapHand = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/SwapHand");
		p_default_Slot1 = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Slot1");
		p_default_Slot2 = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Slot2");
		p_default_Slot3 = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Slot3");
		p_default_Slot4 = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Slot4");
		p_default_Slot5 = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Slot5");
		p_default_Slot6 = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Slot6");
		p_default_Slot7 = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Slot7");
		p_default_Slot8 = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Slot8");
		p_default_Slot9 = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Slot9");
		p_default_Slot0 = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Slot0");
		p_default_Whiplash = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Whiplash");
		p_default_Punch = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/Punch");
		p_default_LeftPose = SteamVR_Action.Create<SteamVR_Action_Pose>("/actions/default/in/LeftPose");
		p_default_RightPose = SteamVR_Action.Create<SteamVR_Action_Pose>("/actions/default/in/RightPose");
		p_default_WeaponWheelScroll = SteamVR_Action.Create<SteamVR_Action_Vector2>("/actions/default/in/WeaponWheelScroll");
		p_default_NextWeapon = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/NextWeapon");
		p_default_PrevWeapon = SteamVR_Action.Create<SteamVR_Action_Boolean>("/actions/default/in/PrevWeapon");
		p_default_Haptic = SteamVR_Action.Create<SteamVR_Action_Vibration>("/actions/default/out/Haptic");
	}

	private static void StartPreInitActionSets()
	{
		p__default = SteamVR_ActionSet.Create<SteamVR_Input_ActionSet_default>("/actions/default");
		SteamVR_Input.actionSets = (SteamVR_ActionSet[])(object)new SteamVR_ActionSet[1] { _default };
	}

	public static void PreInitialize()
	{
		StartPreInitActionSets();
		SteamVR_Input.PreinitializeActionSetDictionaries();
		PreInitActions();
		InitializeActionArrays();
		SteamVR_Input.PreinitializeActionDictionaries();
		SteamVR_Input.PreinitializeFinishActionSets();
	}
}

plugins/VRTRAKILL.Utilities.dll

Decompiled 3 days ago
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using System.Threading;
using BepInEx.Logging;
using HarmonyLib;
using UnityEngine;
using WindowsInput.Native;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("VRTRAKILL.Utilities")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("VRTRAKILL.Utilities")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("3709e33e-4c44-43f8-a947-f71fe9f67233")]
[assembly: AssemblyMetadata("AI_Assisted_Creation", "This assembly was partially created with the assistance of generative AI (code, refactoring, tests and documentation), directed, reviewed and tested in game by the maintainer.")]
[assembly: AssemblyMetadata("AI_Model_Vendor", "Anthropic")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyFileVersion("2.0.3.0")]
[assembly: AssemblyInformationalVersion("2.0.3")]
[assembly: AssemblyVersion("2.0.3.0")]
namespace VRTRAKILL
{
	internal static class BuildVersion
	{
		public const string Value = "2.0.3";
	}
}
namespace VRTRAKILL.Utilities
{
	public class Patcher
	{
		public Harmony Harmony { get; set; }

		public Assembly Ass { get; set; } = Assembly.GetCallingAssembly();

		public string Namespace { get; set; }

		public string[] Namespaces { get; set; }

		public Type Type { get; set; }

		public Type[] Types { get; set; }

		public ManualLogSource Log { get; set; }

		public int Failures { get; private set; }

		public Patcher(Harmony _Harmony)
		{
			Harmony = _Harmony;
		}

		public Patcher(Harmony _Harmony, string _Namespace)
			: this(_Harmony)
		{
			Namespace = _Namespace;
		}

		public Patcher(Harmony _Harmony, string[] _Namespaces)
			: this(_Harmony)
		{
			Namespaces = _Namespaces;
		}

		public Patcher(Harmony _Harmony, Type _Type)
			: this(_Harmony)
		{
			Type = _Type;
		}

		public Patcher(Harmony _Harmony, Type[] _Types)
			: this(_Harmony)
		{
			Types = _Types.ToArray();
		}

		public Patcher(Harmony _Harmony, Assembly _ASS)
			: this(_Harmony)
		{
			Ass = _ASS;
		}

		public Patcher(Harmony _Harmony, Assembly _ASS, string _Namespace)
			: this(_Harmony, _ASS)
		{
			Namespace = _Namespace;
		}

		public Patcher(Harmony _Harmony, Assembly _ASS, string[] _Namespaces)
			: this(_Harmony, _ASS)
		{
			Namespaces = _Namespaces;
		}

		public Patcher(Harmony _Harmony, Assembly _ASS, Type _Type)
			: this(_Harmony, _ASS)
		{
			Type = _Type;
		}

		public Patcher(Harmony _Harmony, Assembly _ASS, Type[] _Types)
			: this(_Harmony, _ASS)
		{
			Types = _Types.ToArray();
		}

		private List<Type> GetPatches(string _Namespace = null)
		{
			IEnumerable<Type> source = ((_Namespace != null) ? (from T in Ass.GetTypes()
				where T.Namespace == _Namespace && T.IsDefined(typeof(HarmonyPatch), inherit: false)
				select T) : (from T in Ass.GetTypes()
				where T.IsDefined(typeof(HarmonyPatch), inherit: false)
				select T));
			return source.ToList();
		}

		private List<Type> GetPatches(string[] _Namespaces)
		{
			List<Type> list = new List<Type>();
			foreach (string text in _Namespaces)
			{
				list.AddRange(GetPatches(text));
			}
			return list;
		}

		private IEnumerable<Type> GetTypes(string _Namespace)
		{
			return GetPatches(_Namespace);
		}

		private IEnumerable<Type> GetTypes(string[] _Namespaces)
		{
			return GetPatches(_Namespaces);
		}

		public void PatchAll()
		{
			List<Type> list = new List<Type>();
			if (Namespace == null && Namespaces == null && Type == null && Types == null)
			{
				try
				{
					Harmony.PatchAll();
					return;
				}
				catch (NullReferenceException)
				{
					Log.LogFatal((object)"Could not find any patches(???) wtf?");
					return;
				}
			}
			if (Type != null)
			{
				list.Add(Type);
			}
			if (Types != null && Types.Length != 0)
			{
				list.AddRange(Types.ToArray());
			}
			if (Namespace != null)
			{
				list.AddRange(GetTypes(Namespace));
			}
			if (Namespaces != null && Namespaces.Length != 0)
			{
				list.AddRange(GetTypes(Namespaces));
			}
			Patch(list.ToArray());
		}

		public void Patch(string _Namespace)
		{
			Log.LogInfo((object)("Patching Namespace \"" + _Namespace + "\"..."));
			Patch(GetTypes(_Namespace).ToArray());
		}

		public void Patch(string[] _Namespaces)
		{
			Patch(GetTypes(_Namespaces).ToArray());
		}

		public void Patch(Type _T)
		{
			Log.LogInfo((object)("Patching Type \"" + _T.FullName + "\"..."));
			Harmony.PatchAll(_T);
		}

		public void Patch(Type[] _T)
		{
			foreach (Type type in _T)
			{
				try
				{
					Harmony.PatchAll(type);
				}
				catch (Exception arg)
				{
					Failures++;
					Log.LogError((object)$"Patching {type.FullName} failed: {arg}");
				}
			}
		}

		public void UnpatchAll()
		{
			Harmony.UnpatchSelf();
		}
	}
	public static class Unity
	{
		public static GameObject ForceFindGameObject(string Name)
		{
			GameObject[] array = Resources.FindObjectsOfTypeAll(typeof(GameObject)) as GameObject[];
			foreach (GameObject val in array)
			{
				if (((Object)val).name == Name)
				{
					return val;
				}
			}
			return null;
		}

		public static void RecursiveChangeLayer(this GameObject GM, int Layer)
		{
			GM.layer = Layer;
			if (GM.transform.childCount <= 0)
			{
				return;
			}
			for (int i = 0; i < GM.transform.childCount; i++)
			{
				try
				{
					((Component)GM.transform.GetChild(i)).gameObject.RecursiveChangeLayer(Layer);
				}
				catch
				{
				}
			}
		}

		public static RaycastHit ForwardRaycast(this Transform T, float Length, int? Layer = null)
		{
			//IL_002d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0033: Unknown result type (might be due to invalid IL or missing references)
			//IL_0038: Unknown result type (might be due to invalid IL or missing references)
			//IL_0046: Unknown result type (might be due to invalid IL or missing references)
			//IL_000a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0010: Unknown result type (might be due to invalid IL or missing references)
			//IL_0015: Unknown result type (might be due to invalid IL or missing references)
			//IL_002a: Unknown result type (might be due to invalid IL or missing references)
			if (Layer.HasValue)
			{
				RaycastHit result = default(RaycastHit);
				Physics.Raycast(new Ray(T.position, T.forward), ref result, Length, Layer.Value);
				return result;
			}
			RaycastHit result2 = default(RaycastHit);
			Physics.Raycast(new Ray(T.position, T.forward), ref result2, Length);
			return result2;
		}

		public static void EnableOffscreenRendering(Transform T = null, SkinnedMeshRenderer SMR = null)
		{
			if (Object.op_Implicit((Object)(object)T))
			{
				SkinnedMeshRenderer[] componentsInChildren = ((Component)T).GetComponentsInChildren<SkinnedMeshRenderer>();
				for (int i = 0; i < componentsInChildren.Length; i++)
				{
					componentsInChildren[i].updateWhenOffscreen = true;
				}
			}
			else if (Object.op_Implicit((Object)(object)SMR))
			{
				SMR.updateWhenOffscreen = true;
			}
			else
			{
				SkinnedMeshRenderer[] componentsInChildren = Object.FindObjectsOfType<SkinnedMeshRenderer>();
				for (int i = 0; i < componentsInChildren.Length; i++)
				{
					componentsInChildren[i].updateWhenOffscreen = true;
				}
			}
		}

		public static void CopyCameraValues(Camera CopyTo, Camera CopyFrom)
		{
			//IL_0026: Unknown result type (might be due to invalid IL or missing references)
			//IL_0032: Unknown result type (might be due to invalid IL or missing references)
			//IL_004a: Unknown result type (might be due to invalid IL or missing references)
			CopyTo.nearClipPlane = CopyFrom.nearClipPlane;
			CopyTo.farClipPlane = CopyFrom.farClipPlane;
			CopyTo.depth = CopyFrom.depth;
			CopyTo.stereoTargetEye = CopyFrom.stereoTargetEye;
			CopyTo.backgroundColor = CopyFrom.backgroundColor;
			CopyTo.cullingMask = CopyFrom.cullingMask;
			CopyTo.clearFlags = CopyFrom.clearFlags;
			CopyTo.fieldOfView = CopyFrom.fieldOfView;
		}

		public static int DetectCollisions(Vector3 Pos, float Radius, int Layer)
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			int num = 0;
			Collider[] array = Physics.OverlapSphere(Pos, Radius, 1 << Layer, (QueryTriggerInteraction)1);
			for (int i = 0; i < array.Length; i++)
			{
				num++;
			}
			return num;
		}
	}
	public static class UnityExtensions
	{
		public static bool HasComponent<T>(this GameObject GM) where T : Component
		{
			return (Object)(object)GM.GetComponent<T>() != (Object)null;
		}
	}
}
namespace WindowsInput
{
	public interface IInputDeviceStateAdaptor
	{
		bool IsKeyDown(VirtualKeyCode keyCode);

		bool IsKeyUp(VirtualKeyCode keyCode);

		bool IsHardwareKeyDown(VirtualKeyCode keyCode);

		bool IsHardwareKeyUp(VirtualKeyCode keyCode);

		bool IsTogglingKeyInEffect(VirtualKeyCode keyCode);
	}
	internal interface IInputMessageDispatcher
	{
		void DispatchInput(INPUT[] inputs);
	}
	public interface IInputSimulator
	{
		IKeyboardSimulator Keyboard { get; }

		IMouseSimulator Mouse { get; }

		IInputDeviceStateAdaptor InputDeviceState { get; }
	}
	public interface IKeyboardSimulator
	{
		IMouseSimulator Mouse { get; }

		IKeyboardSimulator KeyDown(VirtualKeyCode keyCode);

		IKeyboardSimulator KeyPress(VirtualKeyCode keyCode);

		IKeyboardSimulator KeyPress(params VirtualKeyCode[] keyCodes);

		IKeyboardSimulator KeyUp(VirtualKeyCode keyCode);

		IKeyboardSimulator ModifiedKeyStroke(IEnumerable<VirtualKeyCode> modifierKeyCodes, IEnumerable<VirtualKeyCode> keyCodes);

		IKeyboardSimulator ModifiedKeyStroke(IEnumerable<VirtualKeyCode> modifierKeyCodes, VirtualKeyCode keyCode);

		IKeyboardSimulator ModifiedKeyStroke(VirtualKeyCode modifierKey, IEnumerable<VirtualKeyCode> keyCodes);

		IKeyboardSimulator ModifiedKeyStroke(VirtualKeyCode modifierKeyCode, VirtualKeyCode keyCode);

		IKeyboardSimulator TextEntry(string text);

		IKeyboardSimulator TextEntry(char character);

		IKeyboardSimulator Sleep(int millsecondsTimeout);

		IKeyboardSimulator Sleep(TimeSpan timeout);
	}
	public interface IMouseSimulator
	{
		IKeyboardSimulator Keyboard { get; }

		IMouseSimulator MoveMouseBy(int pixelDeltaX, int pixelDeltaY);

		IMouseSimulator MoveMouseTo(double absoluteX, double absoluteY);

		IMouseSimulator MoveMouseToPositionOnVirtualDesktop(double absoluteX, double absoluteY);

		IMouseSimulator LeftButtonDown();

		IMouseSimulator LeftButtonUp();

		IMouseSimulator LeftButtonClick();

		IMouseSimulator LeftButtonDoubleClick();

		IMouseSimulator RightButtonDown();

		IMouseSimulator RightButtonUp();

		IMouseSimulator RightButtonClick();

		IMouseSimulator RightButtonDoubleClick();

		IMouseSimulator MiddleButtonDown();

		IMouseSimulator MiddleButtonUp();

		IMouseSimulator XButtonDown(int buttonId);

		IMouseSimulator XButtonUp(int buttonId);

		IMouseSimulator XButtonClick(int buttonId);

		IMouseSimulator XButtonDoubleClick(int buttonId);

		IMouseSimulator VerticalScroll(int scrollAmountInClicks);

		IMouseSimulator HorizontalScroll(int scrollAmountInClicks);

		IMouseSimulator Sleep(int millsecondsTimeout);

		IMouseSimulator Sleep(TimeSpan timeout);
	}
	internal class InputBuilder : IEnumerable<INPUT>, IEnumerable
	{
		private readonly List<INPUT> _inputList;

		public INPUT this[int position] => _inputList[position];

		public InputBuilder()
		{
			_inputList = new List<INPUT>();
		}

		public INPUT[] ToArray()
		{
			return _inputList.ToArray();
		}

		public IEnumerator<INPUT> GetEnumerator()
		{
			return _inputList.GetEnumerator();
		}

		IEnumerator IEnumerable.GetEnumerator()
		{
			return GetEnumerator();
		}

		public static bool IsExtendedKey(VirtualKeyCode keyCode)
		{
			if (keyCode == VirtualKeyCode.MENU || keyCode == VirtualKeyCode.LMENU || keyCode == VirtualKeyCode.RMENU || keyCode == VirtualKeyCode.CONTROL || keyCode == VirtualKeyCode.RCONTROL || keyCode == VirtualKeyCode.INSERT || keyCode == VirtualKeyCode.DELETE || keyCode == VirtualKeyCode.HOME || keyCode == VirtualKeyCode.END || keyCode == VirtualKeyCode.PRIOR || keyCode == VirtualKeyCode.NEXT || keyCode == VirtualKeyCode.RIGHT || keyCode == VirtualKeyCode.UP || keyCode == VirtualKeyCode.LEFT || keyCode == VirtualKeyCode.DOWN || keyCode == VirtualKeyCode.NUMLOCK || keyCode == VirtualKeyCode.CANCEL || keyCode == VirtualKeyCode.SNAPSHOT || keyCode == VirtualKeyCode.DIVIDE)
			{
				return true;
			}
			return false;
		}

		public InputBuilder AddKeyDown(VirtualKeyCode keyCode)
		{
			INPUT item = new INPUT
			{
				Type = 1u,
				Data = 
				{
					Keyboard = new KEYBDINPUT
					{
						KeyCode = (ushort)keyCode,
						Scan = (ushort)(NativeMethods.MapVirtualKey((uint)keyCode, 0u) & 0xFF),
						Flags = (IsExtendedKey(keyCode) ? 1u : 0u),
						Time = 0u,
						ExtraInfo = IntPtr.Zero
					}
				}
			};
			_inputList.Add(item);
			return this;
		}

		public InputBuilder AddKeyUp(VirtualKeyCode keyCode)
		{
			INPUT item = new INPUT
			{
				Type = 1u,
				Data = 
				{
					Keyboard = new KEYBDINPUT
					{
						KeyCode = (ushort)keyCode,
						Scan = (ushort)(NativeMethods.MapVirtualKey((uint)keyCode, 0u) & 0xFF),
						Flags = (IsExtendedKey(keyCode) ? 3u : 2u),
						Time = 0u,
						ExtraInfo = IntPtr.Zero
					}
				}
			};
			_inputList.Add(item);
			return this;
		}

		public InputBuilder AddKeyPress(VirtualKeyCode keyCode)
		{
			AddKeyDown(keyCode);
			AddKeyUp(keyCode);
			return this;
		}

		public InputBuilder AddCharacter(char character)
		{
			ushort num = character;
			INPUT item = new INPUT
			{
				Type = 1u,
				Data = 
				{
					Keyboard = new KEYBDINPUT
					{
						KeyCode = 0,
						Scan = num,
						Flags = 4u,
						Time = 0u,
						ExtraInfo = IntPtr.Zero
					}
				}
			};
			INPUT item2 = new INPUT
			{
				Type = 1u,
				Data = 
				{
					Keyboard = new KEYBDINPUT
					{
						KeyCode = 0,
						Scan = num,
						Flags = 6u,
						Time = 0u,
						ExtraInfo = IntPtr.Zero
					}
				}
			};
			if ((num & 0xFF00) == 57344)
			{
				item.Data.Keyboard.Flags |= 1u;
				item2.Data.Keyboard.Flags |= 1u;
			}
			_inputList.Add(item);
			_inputList.Add(item2);
			return this;
		}

		public InputBuilder AddCharacters(IEnumerable<char> characters)
		{
			foreach (char character in characters)
			{
				AddCharacter(character);
			}
			return this;
		}

		public InputBuilder AddCharacters(string characters)
		{
			return AddCharacters(characters.ToCharArray());
		}

		public InputBuilder AddRelativeMouseMovement(int x, int y)
		{
			INPUT item = new INPUT
			{
				Type = 0u
			};
			item.Data.Mouse.Flags = 1u;
			item.Data.Mouse.X = x;
			item.Data.Mouse.Y = y;
			_inputList.Add(item);
			return this;
		}

		public InputBuilder AddAbsoluteMouseMovement(int absoluteX, int absoluteY)
		{
			INPUT item = new INPUT
			{
				Type = 0u
			};
			item.Data.Mouse.Flags = 32769u;
			item.Data.Mouse.X = absoluteX;
			item.Data.Mouse.Y = absoluteY;
			_inputList.Add(item);
			return this;
		}

		public InputBuilder AddAbsoluteMouseMovementOnVirtualDesktop(int absoluteX, int absoluteY)
		{
			INPUT item = new INPUT
			{
				Type = 0u
			};
			item.Data.Mouse.Flags = 49153u;
			item.Data.Mouse.X = absoluteX;
			item.Data.Mouse.Y = absoluteY;
			_inputList.Add(item);
			return this;
		}

		public InputBuilder AddMouseButtonDown(MouseButton button)
		{
			INPUT item = new INPUT
			{
				Type = 0u
			};
			item.Data.Mouse.Flags = (uint)ToMouseButtonDownFlag(button);
			_inputList.Add(item);
			return this;
		}

		public InputBuilder AddMouseXButtonDown(int xButtonId)
		{
			INPUT item = new INPUT
			{
				Type = 0u
			};
			item.Data.Mouse.Flags = 128u;
			item.Data.Mouse.MouseData = (uint)xButtonId;
			_inputList.Add(item);
			return this;
		}

		public InputBuilder AddMouseButtonUp(MouseButton button)
		{
			INPUT item = new INPUT
			{
				Type = 0u
			};
			item.Data.Mouse.Flags = (uint)ToMouseButtonUpFlag(button);
			_inputList.Add(item);
			return this;
		}

		public InputBuilder AddMouseXButtonUp(int xButtonId)
		{
			INPUT item = new INPUT
			{
				Type = 0u
			};
			item.Data.Mouse.Flags = 256u;
			item.Data.Mouse.MouseData = (uint)xButtonId;
			_inputList.Add(item);
			return this;
		}

		public InputBuilder AddMouseButtonClick(MouseButton button)
		{
			return AddMouseButtonDown(button).AddMouseButtonUp(button);
		}

		public InputBuilder AddMouseXButtonClick(int xButtonId)
		{
			return AddMouseXButtonDown(xButtonId).AddMouseXButtonUp(xButtonId);
		}

		public InputBuilder AddMouseButtonDoubleClick(MouseButton button)
		{
			return AddMouseButtonClick(button).AddMouseButtonClick(button);
		}

		public InputBuilder AddMouseXButtonDoubleClick(int xButtonId)
		{
			return AddMouseXButtonClick(xButtonId).AddMouseXButtonClick(xButtonId);
		}

		public InputBuilder AddMouseVerticalWheelScroll(int scrollAmount)
		{
			INPUT item = new INPUT
			{
				Type = 0u
			};
			item.Data.Mouse.Flags = 2048u;
			item.Data.Mouse.MouseData = (uint)scrollAmount;
			_inputList.Add(item);
			return this;
		}

		public InputBuilder AddMouseHorizontalWheelScroll(int scrollAmount)
		{
			INPUT item = new INPUT
			{
				Type = 0u
			};
			item.Data.Mouse.Flags = 4096u;
			item.Data.Mouse.MouseData = (uint)scrollAmount;
			_inputList.Add(item);
			return this;
		}

		private static MouseFlag ToMouseButtonDownFlag(MouseButton button)
		{
			return button switch
			{
				MouseButton.LeftButton => MouseFlag.LeftDown, 
				MouseButton.MiddleButton => MouseFlag.MiddleDown, 
				MouseButton.RightButton => MouseFlag.RightDown, 
				_ => MouseFlag.LeftDown, 
			};
		}

		private static MouseFlag ToMouseButtonUpFlag(MouseButton button)
		{
			return button switch
			{
				MouseButton.LeftButton => MouseFlag.LeftUp, 
				MouseButton.MiddleButton => MouseFlag.MiddleUp, 
				MouseButton.RightButton => MouseFlag.RightUp, 
				_ => MouseFlag.LeftUp, 
			};
		}
	}
	public class InputSimulator : IInputSimulator
	{
		private readonly IKeyboardSimulator _keyboardSimulator;

		private readonly IMouseSimulator _mouseSimulator;

		private readonly IInputDeviceStateAdaptor _inputDeviceState;

		public IKeyboardSimulator Keyboard => _keyboardSimulator;

		public IMouseSimulator Mouse => _mouseSimulator;

		public IInputDeviceStateAdaptor InputDeviceState => _inputDeviceState;

		public InputSimulator(IKeyboardSimulator keyboardSimulator, IMouseSimulator mouseSimulator, IInputDeviceStateAdaptor inputDeviceStateAdaptor)
		{
			_keyboardSimulator = keyboardSimulator;
			_mouseSimulator = mouseSimulator;
			_inputDeviceState = inputDeviceStateAdaptor;
		}

		public InputSimulator()
		{
			_keyboardSimulator = new KeyboardSimulator(this);
			_mouseSimulator = new MouseSimulator(this);
			_inputDeviceState = new WindowsInputDeviceStateAdaptor();
		}
	}
	public class KeyboardSimulator : IKeyboardSimulator
	{
		private readonly IInputSimulator _inputSimulator;

		private readonly IInputMessageDispatcher _messageDispatcher;

		public IMouseSimulator Mouse => _inputSimulator.Mouse;

		public KeyboardSimulator(IInputSimulator inputSimulator)
		{
			if (inputSimulator == null)
			{
				throw new ArgumentNullException("inputSimulator");
			}
			_inputSimulator = inputSimulator;
			_messageDispatcher = new WindowsInputMessageDispatcher();
		}

		internal KeyboardSimulator(IInputSimulator inputSimulator, IInputMessageDispatcher messageDispatcher)
		{
			if (inputSimulator == null)
			{
				throw new ArgumentNullException("inputSimulator");
			}
			if (messageDispatcher == null)
			{
				throw new InvalidOperationException(string.Format("The {0} cannot operate with a null {1}. Please provide a valid {1} instance to use for dispatching {2} messages.", typeof(KeyboardSimulator).Name, typeof(IInputMessageDispatcher).Name, typeof(INPUT).Name));
			}
			_inputSimulator = inputSimulator;
			_messageDispatcher = messageDispatcher;
		}

		private void ModifiersDown(InputBuilder builder, IEnumerable<VirtualKeyCode> modifierKeyCodes)
		{
			if (modifierKeyCodes == null)
			{
				return;
			}
			foreach (VirtualKeyCode modifierKeyCode in modifierKeyCodes)
			{
				builder.AddKeyDown(modifierKeyCode);
			}
		}

		private void ModifiersUp(InputBuilder builder, IEnumerable<VirtualKeyCode> modifierKeyCodes)
		{
			if (modifierKeyCodes != null)
			{
				Stack<VirtualKeyCode> stack = new Stack<VirtualKeyCode>(modifierKeyCodes);
				while (stack.Count > 0)
				{
					builder.AddKeyUp(stack.Pop());
				}
			}
		}

		private void KeysPress(InputBuilder builder, IEnumerable<VirtualKeyCode> keyCodes)
		{
			if (keyCodes == null)
			{
				return;
			}
			foreach (VirtualKeyCode keyCode in keyCodes)
			{
				builder.AddKeyPress(keyCode);
			}
		}

		private void SendSimulatedInput(INPUT[] inputList)
		{
			_messageDispatcher.DispatchInput(inputList);
		}

		public IKeyboardSimulator KeyDown(VirtualKeyCode keyCode)
		{
			INPUT[] inputList = new InputBuilder().AddKeyDown(keyCode).ToArray();
			SendSimulatedInput(inputList);
			return this;
		}

		public IKeyboardSimulator KeyUp(VirtualKeyCode keyCode)
		{
			INPUT[] inputList = new InputBuilder().AddKeyUp(keyCode).ToArray();
			SendSimulatedInput(inputList);
			return this;
		}

		public IKeyboardSimulator KeyPress(VirtualKeyCode keyCode)
		{
			INPUT[] inputList = new InputBuilder().AddKeyPress(keyCode).ToArray();
			SendSimulatedInput(inputList);
			return this;
		}

		public IKeyboardSimulator KeyPress(params VirtualKeyCode[] keyCodes)
		{
			InputBuilder inputBuilder = new InputBuilder();
			KeysPress(inputBuilder, keyCodes);
			SendSimulatedInput(inputBuilder.ToArray());
			return this;
		}

		public IKeyboardSimulator ModifiedKeyStroke(VirtualKeyCode modifierKeyCode, VirtualKeyCode keyCode)
		{
			ModifiedKeyStroke(new VirtualKeyCode[1] { modifierKeyCode }, new VirtualKeyCode[1] { keyCode });
			return this;
		}

		public IKeyboardSimulator ModifiedKeyStroke(IEnumerable<VirtualKeyCode> modifierKeyCodes, VirtualKeyCode keyCode)
		{
			ModifiedKeyStroke(modifierKeyCodes, new VirtualKeyCode[1] { keyCode });
			return this;
		}

		public IKeyboardSimulator ModifiedKeyStroke(VirtualKeyCode modifierKey, IEnumerable<VirtualKeyCode> keyCodes)
		{
			ModifiedKeyStroke(new VirtualKeyCode[1] { modifierKey }, keyCodes);
			return this;
		}

		public IKeyboardSimulator ModifiedKeyStroke(IEnumerable<VirtualKeyCode> modifierKeyCodes, IEnumerable<VirtualKeyCode> keyCodes)
		{
			InputBuilder inputBuilder = new InputBuilder();
			ModifiersDown(inputBuilder, modifierKeyCodes);
			KeysPress(inputBuilder, keyCodes);
			ModifiersUp(inputBuilder, modifierKeyCodes);
			SendSimulatedInput(inputBuilder.ToArray());
			return this;
		}

		public IKeyboardSimulator TextEntry(string text)
		{
			if ((long)text.Length > 2147483647L)
			{
				throw new ArgumentException($"The text parameter is too long. It must be less than {2147483647u} characters.", "text");
			}
			INPUT[] inputList = new InputBuilder().AddCharacters(text).ToArray();
			SendSimulatedInput(inputList);
			return this;
		}

		public IKeyboardSimulator TextEntry(char character)
		{
			INPUT[] inputList = new InputBuilder().AddCharacter(character).ToArray();
			SendSimulatedInput(inputList);
			return this;
		}

		public IKeyboardSimulator Sleep(int millsecondsTimeout)
		{
			Thread.Sleep(millsecondsTimeout);
			return this;
		}

		public IKeyboardSimulator Sleep(TimeSpan timeout)
		{
			Thread.Sleep(timeout);
			return this;
		}
	}
	public enum MouseButton
	{
		LeftButton,
		MiddleButton,
		RightButton
	}
	public class MouseSimulator : IMouseSimulator
	{
		private const int MouseWheelClickSize = 120;

		private readonly IInputSimulator _inputSimulator;

		private readonly IInputMessageDispatcher _messageDispatcher;

		public IKeyboardSimulator Keyboard => _inputSimulator.Keyboard;

		public MouseSimulator(IInputSimulator inputSimulator)
		{
			if (inputSimulator == null)
			{
				throw new ArgumentNullException("inputSimulator");
			}
			_inputSimulator = inputSimulator;
			_messageDispatcher = new WindowsInputMessageDispatcher();
		}

		internal MouseSimulator(IInputSimulator inputSimulator, IInputMessageDispatcher messageDispatcher)
		{
			if (inputSimulator == null)
			{
				throw new ArgumentNullException("inputSimulator");
			}
			if (messageDispatcher == null)
			{
				throw new InvalidOperationException(string.Format("The {0} cannot operate with a null {1}. Please provide a valid {1} instance to use for dispatching {2} messages.", typeof(MouseSimulator).Name, typeof(IInputMessageDispatcher).Name, typeof(INPUT).Name));
			}
			_inputSimulator = inputSimulator;
			_messageDispatcher = messageDispatcher;
		}

		private void SendSimulatedInput(INPUT[] inputList)
		{
			_messageDispatcher.DispatchInput(inputList);
		}

		public IMouseSimulator MoveMouseBy(int pixelDeltaX, int pixelDeltaY)
		{
			INPUT[] inputList = new InputBuilder().AddRelativeMouseMovement(pixelDeltaX, pixelDeltaY).ToArray();
			SendSimulatedInput(inputList);
			return this;
		}

		public IMouseSimulator MoveMouseTo(double absoluteX, double absoluteY)
		{
			INPUT[] inputList = new InputBuilder().AddAbsoluteMouseMovement((int)Math.Truncate(absoluteX), (int)Math.Truncate(absoluteY)).ToArray();
			SendSimulatedInput(inputList);
			return this;
		}

		public IMouseSimulator MoveMouseToPositionOnVirtualDesktop(double absoluteX, double absoluteY)
		{
			INPUT[] inputList = new InputBuilder().AddAbsoluteMouseMovementOnVirtualDesktop((int)Math.Truncate(absoluteX), (int)Math.Truncate(absoluteY)).ToArray();
			SendSimulatedInput(inputList);
			return this;
		}

		public IMouseSimulator LeftButtonDown()
		{
			INPUT[] inputList = new InputBuilder().AddMouseButtonDown(MouseButton.LeftButton).ToArray();
			SendSimulatedInput(inputList);
			return this;
		}

		public IMouseSimulator LeftButtonUp()
		{
			INPUT[] inputList = new InputBuilder().AddMouseButtonUp(MouseButton.LeftButton).ToArray();
			SendSimulatedInput(inputList);
			return this;
		}

		public IMouseSimulator LeftButtonClick()
		{
			INPUT[] inputList = new InputBuilder().AddMouseButtonClick(MouseButton.LeftButton).ToArray();
			SendSimulatedInput(inputList);
			return this;
		}

		public IMouseSimulator LeftButtonDoubleClick()
		{
			INPUT[] inputList = new InputBuilder().AddMouseButtonDoubleClick(MouseButton.LeftButton).ToArray();
			SendSimulatedInput(inputList);
			return this;
		}

		public IMouseSimulator RightButtonDown()
		{
			INPUT[] inputList = new InputBuilder().AddMouseButtonDown(MouseButton.RightButton).ToArray();
			SendSimulatedInput(inputList);
			return this;
		}

		public IMouseSimulator RightButtonUp()
		{
			INPUT[] inputList = new InputBuilder().AddMouseButtonUp(MouseButton.RightButton).ToArray();
			SendSimulatedInput(inputList);
			return this;
		}

		public IMouseSimulator RightButtonClick()
		{
			INPUT[] inputList = new InputBuilder().AddMouseButtonClick(MouseButton.RightButton).ToArray();
			SendSimulatedInput(inputList);
			return this;
		}

		public IMouseSimulator RightButtonDoubleClick()
		{
			INPUT[] inputList = new InputBuilder().AddMouseButtonDoubleClick(MouseButton.RightButton).ToArray();
			SendSimulatedInput(inputList);
			return this;
		}

		public IMouseSimulator MiddleButtonDown()
		{
			INPUT[] inputList = new InputBuilder().AddMouseButtonDown(MouseButton.MiddleButton).ToArray();
			SendSimulatedInput(inputList);
			return this;
		}

		public IMouseSimulator MiddleButtonUp()
		{
			INPUT[] inputList = new InputBuilder().AddMouseButtonUp(MouseButton.MiddleButton).ToArray();
			SendSimulatedInput(inputList);
			return this;
		}

		public IMouseSimulator XButtonDown(int buttonId)
		{
			INPUT[] inputList = new InputBuilder().AddMouseXButtonDown(buttonId).ToArray();
			SendSimulatedInput(inputList);
			return this;
		}

		public IMouseSimulator XButtonUp(int buttonId)
		{
			INPUT[] inputList = new InputBuilder().AddMouseXButtonUp(buttonId).ToArray();
			SendSimulatedInput(inputList);
			return this;
		}

		public IMouseSimulator XButtonClick(int buttonId)
		{
			INPUT[] inputList = new InputBuilder().AddMouseXButtonClick(buttonId).ToArray();
			SendSimulatedInput(inputList);
			return this;
		}

		public IMouseSimulator XButtonDoubleClick(int buttonId)
		{
			INPUT[] inputList = new InputBuilder().AddMouseXButtonDoubleClick(buttonId).ToArray();
			SendSimulatedInput(inputList);
			return this;
		}

		public IMouseSimulator VerticalScroll(int scrollAmountInClicks)
		{
			INPUT[] inputList = new InputBuilder().AddMouseVerticalWheelScroll(scrollAmountInClicks * 120).ToArray();
			SendSimulatedInput(inputList);
			return this;
		}

		public IMouseSimulator HorizontalScroll(int scrollAmountInClicks)
		{
			INPUT[] inputList = new InputBuilder().AddMouseHorizontalWheelScroll(scrollAmountInClicks * 120).ToArray();
			SendSimulatedInput(inputList);
			return this;
		}

		public IMouseSimulator Sleep(int millsecondsTimeout)
		{
			Thread.Sleep(millsecondsTimeout);
			return this;
		}

		public IMouseSimulator Sleep(TimeSpan timeout)
		{
			Thread.Sleep(timeout);
			return this;
		}
	}
	public class WindowsInputDeviceStateAdaptor : IInputDeviceStateAdaptor
	{
		public bool IsKeyDown(VirtualKeyCode keyCode)
		{
			return NativeMethods.GetKeyState((ushort)keyCode) < 0;
		}

		public bool IsKeyUp(VirtualKeyCode keyCode)
		{
			return !IsKeyDown(keyCode);
		}

		public bool IsHardwareKeyDown(VirtualKeyCode keyCode)
		{
			return NativeMethods.GetAsyncKeyState((ushort)keyCode) < 0;
		}

		public bool IsHardwareKeyUp(VirtualKeyCode keyCode)
		{
			return !IsHardwareKeyDown(keyCode);
		}

		public bool IsTogglingKeyInEffect(VirtualKeyCode keyCode)
		{
			return (NativeMethods.GetKeyState((ushort)keyCode) & 1) == 1;
		}
	}
	internal class WindowsInputMessageDispatcher : IInputMessageDispatcher
	{
		public void DispatchInput(INPUT[] inputs)
		{
			if (inputs == null)
			{
				throw new ArgumentNullException("inputs");
			}
			if (inputs.Length == 0)
			{
				throw new ArgumentException("The input array was empty", "inputs");
			}
			if (NativeMethods.SendInput((uint)inputs.Length, inputs, Marshal.SizeOf(typeof(INPUT))) != inputs.Length)
			{
				throw new Exception("Some simulated input commands were not sent successfully. The most common reason for this happening are the security features of Windows including User Interface Privacy Isolation (UIPI). Your application can only send commands to applications of the same or lower elevation. Similarly certain commands are restricted to Accessibility/UIAutomation applications. Refer to the project home page and the code samples for more information.");
			}
		}
	}
}
namespace WindowsInput.Native
{
	internal struct HARDWAREINPUT
	{
		public uint Msg;

		public ushort ParamL;

		public ushort ParamH;
	}
	internal struct INPUT
	{
		public uint Type;

		public MOUSEKEYBDHARDWAREINPUT Data;
	}
	internal enum InputType : uint
	{
		Mouse,
		Keyboard,
		Hardware
	}
	internal struct KEYBDINPUT
	{
		public ushort KeyCode;

		public ushort Scan;

		public uint Flags;

		public uint Time;

		public IntPtr ExtraInfo;
	}
	[Flags]
	internal enum KeyboardFlag : uint
	{
		ExtendedKey = 1u,
		KeyUp = 2u,
		Unicode = 4u,
		ScanCode = 8u
	}
	[Flags]
	internal enum MouseFlag : uint
	{
		Move = 1u,
		LeftDown = 2u,
		LeftUp = 4u,
		RightDown = 8u,
		RightUp = 0x10u,
		MiddleDown = 0x20u,
		MiddleUp = 0x40u,
		XDown = 0x80u,
		XUp = 0x100u,
		VerticalWheel = 0x800u,
		HorizontalWheel = 0x1000u,
		VirtualDesk = 0x4000u,
		Absolute = 0x8000u
	}
	internal struct MOUSEINPUT
	{
		public int X;

		public int Y;

		public uint MouseData;

		public uint Flags;

		public uint Time;

		public IntPtr ExtraInfo;
	}
	[StructLayout(LayoutKind.Explicit)]
	internal struct MOUSEKEYBDHARDWAREINPUT
	{
		[FieldOffset(0)]
		public MOUSEINPUT Mouse;

		[FieldOffset(0)]
		public KEYBDINPUT Keyboard;

		[FieldOffset(0)]
		public HARDWAREINPUT Hardware;
	}
	internal static class NativeMethods
	{
		[DllImport("user32.dll", SetLastError = true)]
		public static extern short GetAsyncKeyState(ushort virtualKeyCode);

		[DllImport("user32.dll", SetLastError = true)]
		public static extern short GetKeyState(ushort virtualKeyCode);

		[DllImport("user32.dll", SetLastError = true)]
		public static extern uint SendInput(uint numberOfInputs, INPUT[] inputs, int sizeOfInputStructure);

		[DllImport("user32.dll")]
		public static extern IntPtr GetMessageExtraInfo();

		[DllImport("user32.dll")]
		public static extern uint MapVirtualKey(uint uCode, uint uMapType);
	}
	public enum VirtualKeyCode
	{
		LBUTTON = 1,
		RBUTTON = 2,
		CANCEL = 3,
		MBUTTON = 4,
		XBUTTON1 = 5,
		XBUTTON2 = 6,
		BACK = 8,
		TAB = 9,
		CLEAR = 12,
		RETURN = 13,
		SHIFT = 16,
		CONTROL = 17,
		MENU = 18,
		PAUSE = 19,
		CAPITAL = 20,
		KANA = 21,
		HANGEUL = 21,
		HANGUL = 21,
		JUNJA = 23,
		FINAL = 24,
		HANJA = 25,
		KANJI = 25,
		ESCAPE = 27,
		CONVERT = 28,
		NONCONVERT = 29,
		ACCEPT = 30,
		MODECHANGE = 31,
		SPACE = 32,
		PRIOR = 33,
		NEXT = 34,
		END = 35,
		HOME = 36,
		LEFT = 37,
		UP = 38,
		RIGHT = 39,
		DOWN = 40,
		SELECT = 41,
		PRINT = 42,
		EXECUTE = 43,
		SNAPSHOT = 44,
		INSERT = 45,
		DELETE = 46,
		HELP = 47,
		VK_0 = 48,
		VK_1 = 49,
		VK_2 = 50,
		VK_3 = 51,
		VK_4 = 52,
		VK_5 = 53,
		VK_6 = 54,
		VK_7 = 55,
		VK_8 = 56,
		VK_9 = 57,
		VK_A = 65,
		VK_B = 66,
		VK_C = 67,
		VK_D = 68,
		VK_E = 69,
		VK_F = 70,
		VK_G = 71,
		VK_H = 72,
		VK_I = 73,
		VK_J = 74,
		VK_K = 75,
		VK_L = 76,
		VK_M = 77,
		VK_N = 78,
		VK_O = 79,
		VK_P = 80,
		VK_Q = 81,
		VK_R = 82,
		VK_S = 83,
		VK_T = 84,
		VK_U = 85,
		VK_V = 86,
		VK_W = 87,
		VK_X = 88,
		VK_Y = 89,
		VK_Z = 90,
		LWIN = 91,
		RWIN = 92,
		APPS = 93,
		SLEEP = 95,
		NUMPAD0 = 96,
		NUMPAD1 = 97,
		NUMPAD2 = 98,
		NUMPAD3 = 99,
		NUMPAD4 = 100,
		NUMPAD5 = 101,
		NUMPAD6 = 102,
		NUMPAD7 = 103,
		NUMPAD8 = 104,
		NUMPAD9 = 105,
		MULTIPLY = 106,
		ADD = 107,
		SEPARATOR = 108,
		SUBTRACT = 109,
		DECIMAL = 110,
		DIVIDE = 111,
		F1 = 112,
		F2 = 113,
		F3 = 114,
		F4 = 115,
		F5 = 116,
		F6 = 117,
		F7 = 118,
		F8 = 119,
		F9 = 120,
		F10 = 121,
		F11 = 122,
		F12 = 123,
		F13 = 124,
		F14 = 125,
		F15 = 126,
		F16 = 127,
		F17 = 128,
		F18 = 129,
		F19 = 130,
		F20 = 131,
		F21 = 132,
		F22 = 133,
		F23 = 134,
		F24 = 135,
		NUMLOCK = 144,
		SCROLL = 145,
		LSHIFT = 160,
		RSHIFT = 161,
		LCONTROL = 162,
		RCONTROL = 163,
		LMENU = 164,
		RMENU = 165,
		BROWSER_BACK = 166,
		BROWSER_FORWARD = 167,
		BROWSER_REFRESH = 168,
		BROWSER_STOP = 169,
		BROWSER_SEARCH = 170,
		BROWSER_FAVORITES = 171,
		BROWSER_HOME = 172,
		VOLUME_MUTE = 173,
		VOLUME_DOWN = 174,
		VOLUME_UP = 175,
		MEDIA_NEXT_TRACK = 176,
		MEDIA_PREV_TRACK = 177,
		MEDIA_STOP = 178,
		MEDIA_PLAY_PAUSE = 179,
		LAUNCH_MAIL = 180,
		LAUNCH_MEDIA_SELECT = 181,
		LAUNCH_APP1 = 182,
		LAUNCH_APP2 = 183,
		OEM_1 = 186,
		OEM_PLUS = 187,
		OEM_COMMA = 188,
		OEM_MINUS = 189,
		OEM_PERIOD = 190,
		OEM_2 = 191,
		OEM_3 = 192,
		OEM_4 = 219,
		OEM_5 = 220,
		OEM_6 = 221,
		OEM_7 = 222,
		OEM_8 = 223,
		OEM_102 = 226,
		PROCESSKEY = 229,
		PACKET = 231,
		ATTN = 246,
		CRSEL = 247,
		EXSEL = 248,
		EREOF = 249,
		PLAY = 250,
		ZOOM = 251,
		NONAME = 252,
		PA1 = 253,
		OEM_CLEAR = 254
	}
	internal enum XButton : uint
	{
		XButton1 = 1u,
		XButton2
	}
}
namespace Plugin.Util.Libraries.EZhex1991.EZSoftBone
{
	public class EZSoftBone : MonoBehaviour
	{
		public enum UnificationMode
		{
			None,
			Rooted,
			Unified
		}

		public enum DeltaTimeMode
		{
			DeltaTime,
			UnscaledDeltaTime,
			Constant
		}

		private class Bone
		{
			public Bone parentBone;

			public Vector3 localPosition;

			public Quaternion localRotation;

			public Bone leftBone;

			public Vector3 leftPosition;

			public Bone rightBone;

			public Vector3 rightPosition;

			public List<Bone> childBones = new List<Bone>();

			public Transform transform;

			public Vector3 worldPosition;

			public Transform systemSpace;

			public Vector3 systemPosition;

			public int depth;

			public float boneLength;

			public float treeLength;

			public float normalizedLength;

			public float radius;

			public float damping;

			public float stiffness;

			public float resistance;

			public float slackness;

			public Vector3 speed;

			public Bone(Transform systemSpace, Transform transform, IEnumerable<Transform> endBones, int startDepth, int depth, float nodeLength, float boneLength)
			{
				//IL_0021: Unknown result type (might be due to invalid IL or missing references)
				//IL_0026: Unknown result type (might be due to invalid IL or missing references)
				//IL_0044: Unknown result type (might be due to invalid IL or missing references)
				//IL_0037: Unknown result type (might be due to invalid IL or missing references)
				//IL_003c: Unknown result type (might be due to invalid IL or missing references)
				//IL_0049: Unknown result type (might be due to invalid IL or missing references)
				//IL_0050: Unknown result type (might be due to invalid IL or missing references)
				//IL_0055: Unknown result type (might be due to invalid IL or missing references)
				//IL_005c: Unknown result type (might be due to invalid IL or missing references)
				//IL_0061: Unknown result type (might be due to invalid IL or missing references)
				//IL_00cb: Unknown result type (might be due to invalid IL or missing references)
				//IL_00d1: Unknown result type (might be due to invalid IL or missing references)
				this.transform = transform;
				this.systemSpace = systemSpace;
				worldPosition = transform.position;
				systemPosition = (((Object)(object)systemSpace == (Object)null) ? worldPosition : systemSpace.InverseTransformPoint(worldPosition));
				localPosition = transform.localPosition;
				localRotation = transform.localRotation;
				this.depth = depth;
				if (depth > startDepth)
				{
					this.boneLength = boneLength + nodeLength;
				}
				treeLength = Mathf.Max(treeLength, this.boneLength);
				if (transform.childCount > 0 && !endBones.Contains(transform))
				{
					for (int i = 0; i < transform.childCount; i++)
					{
						Transform child = transform.GetChild(i);
						if (((Component)child).gameObject.activeSelf)
						{
							Bone bone = new Bone(systemSpace, child, endBones, startDepth, depth + 1, Vector3.Distance(child.position, transform.position), this.boneLength)
							{
								parentBone = this
							};
							childBones.Add(bone);
							treeLength = Mathf.Max(treeLength, bone.treeLength);
						}
					}
				}
				normalizedLength = ((treeLength == 0f) ? 0f : (this.boneLength / treeLength));
			}

			public void SetTreeLength()
			{
				SetTreeLength(treeLength);
			}

			public void SetTreeLength(float treeLength)
			{
				this.treeLength = treeLength;
				normalizedLength = ((treeLength == 0f) ? 0f : (boneLength / treeLength));
				for (int i = 0; i < childBones.Count; i++)
				{
					childBones[i].SetTreeLength(treeLength);
				}
			}

			public void SetLeftSibling(Bone left)
			{
				//IL_001d: Unknown result type (might be due to invalid IL or missing references)
				//IL_0022: Unknown result type (might be due to invalid IL or missing references)
				//IL_0027: Unknown result type (might be due to invalid IL or missing references)
				if (left != this && left != rightBone)
				{
					leftBone = left;
					leftPosition = transform.InverseTransformPoint(left.worldPosition);
				}
			}

			public void SetRightSibling(Bone right)
			{
				//IL_001d: Unknown result type (might be due to invalid IL or missing references)
				//IL_0022: Unknown result type (might be due to invalid IL or missing references)
				//IL_0027: Unknown result type (might be due to invalid IL or missing references)
				if (right != this && right != leftBone)
				{
					rightBone = right;
					rightPosition = transform.InverseTransformPoint(right.worldPosition);
				}
			}

			public void Inflate(float baseRadius, AnimationCurve radiusCurve)
			{
				radius = radiusCurve.Evaluate(normalizedLength) * baseRadius;
				for (int i = 0; i < childBones.Count; i++)
				{
					childBones[i].Inflate(baseRadius, radiusCurve);
				}
			}

			public void Inflate(float baseRadius, AnimationCurve radiusCurve, EZSoftBoneMaterial material)
			{
				radius = radiusCurve.Evaluate(normalizedLength) * baseRadius;
				damping = material.GetDamping(normalizedLength);
				stiffness = material.GetStiffness(normalizedLength);
				resistance = material.GetResistance(normalizedLength);
				slackness = material.GetSlackness(normalizedLength);
				for (int i = 0; i < childBones.Count; i++)
				{
					childBones[i].Inflate(baseRadius, radiusCurve, material);
				}
			}

			public void RevertTransforms(int startDepth)
			{
				//IL_0010: Unknown result type (might be due to invalid IL or missing references)
				//IL_0021: Unknown result type (might be due to invalid IL or missing references)
				if (depth > startDepth)
				{
					transform.localPosition = localPosition;
					transform.localRotation = localRotation;
				}
				for (int i = 0; i < childBones.Count; i++)
				{
					childBones[i].RevertTransforms(startDepth);
				}
			}

			public void UpdateTransform(bool siblingRotationConstraints, int startDepth)
			{
				//IL_01d7: Unknown result type (might be due to invalid IL or missing references)
				//IL_01dc: Unknown result type (might be due to invalid IL or missing references)
				//IL_01e1: Unknown result type (might be due to invalid IL or missing references)
				//IL_01b7: Unknown result type (might be due to invalid IL or missing references)
				//IL_0031: Unknown result type (might be due to invalid IL or missing references)
				//IL_0037: Unknown result type (might be due to invalid IL or missing references)
				//IL_0043: Unknown result type (might be due to invalid IL or missing references)
				//IL_0049: Unknown result type (might be due to invalid IL or missing references)
				//IL_004e: Unknown result type (might be due to invalid IL or missing references)
				//IL_0053: Unknown result type (might be due to invalid IL or missing references)
				//IL_0058: Unknown result type (might be due to invalid IL or missing references)
				//IL_005d: Unknown result type (might be due to invalid IL or missing references)
				//IL_0113: Unknown result type (might be due to invalid IL or missing references)
				//IL_0124: Unknown result type (might be due to invalid IL or missing references)
				//IL_012a: Unknown result type (might be due to invalid IL or missing references)
				//IL_012f: Unknown result type (might be due to invalid IL or missing references)
				//IL_0134: Unknown result type (might be due to invalid IL or missing references)
				//IL_0139: Unknown result type (might be due to invalid IL or missing references)
				//IL_013b: Unknown result type (might be due to invalid IL or missing references)
				//IL_013d: Unknown result type (might be due to invalid IL or missing references)
				//IL_0142: Unknown result type (might be due to invalid IL or missing references)
				//IL_014b: Unknown result type (might be due to invalid IL or missing references)
				//IL_0150: Unknown result type (might be due to invalid IL or missing references)
				//IL_0152: Unknown result type (might be due to invalid IL or missing references)
				//IL_0084: Unknown result type (might be due to invalid IL or missing references)
				//IL_0095: Unknown result type (might be due to invalid IL or missing references)
				//IL_009b: Unknown result type (might be due to invalid IL or missing references)
				//IL_00a0: Unknown result type (might be due to invalid IL or missing references)
				//IL_00a5: Unknown result type (might be due to invalid IL or missing references)
				//IL_00aa: Unknown result type (might be due to invalid IL or missing references)
				//IL_00ab: Unknown result type (might be due to invalid IL or missing references)
				//IL_00ac: Unknown result type (might be due to invalid IL or missing references)
				//IL_00b1: Unknown result type (might be due to invalid IL or missing references)
				//IL_00b3: Unknown result type (might be due to invalid IL or missing references)
				//IL_00c4: Unknown result type (might be due to invalid IL or missing references)
				//IL_00ca: Unknown result type (might be due to invalid IL or missing references)
				//IL_00cf: Unknown result type (might be due to invalid IL or missing references)
				//IL_00d4: Unknown result type (might be due to invalid IL or missing references)
				//IL_00d9: Unknown result type (might be due to invalid IL or missing references)
				//IL_00da: Unknown result type (might be due to invalid IL or missing references)
				//IL_00db: Unknown result type (might be due to invalid IL or missing references)
				//IL_00e0: Unknown result type (might be due to invalid IL or missing references)
				//IL_00e9: Unknown result type (might be due to invalid IL or missing references)
				//IL_00ee: Unknown result type (might be due to invalid IL or missing references)
				//IL_00ef: Unknown result type (might be due to invalid IL or missing references)
				//IL_00f6: Unknown result type (might be due to invalid IL or missing references)
				//IL_00fb: Unknown result type (might be due to invalid IL or missing references)
				//IL_0167: Unknown result type (might be due to invalid IL or missing references)
				//IL_0178: Unknown result type (might be due to invalid IL or missing references)
				//IL_017e: Unknown result type (might be due to invalid IL or missing references)
				//IL_0183: Unknown result type (might be due to invalid IL or missing references)
				//IL_0188: Unknown result type (might be due to invalid IL or missing references)
				//IL_018d: Unknown result type (might be due to invalid IL or missing references)
				//IL_018f: Unknown result type (might be due to invalid IL or missing references)
				//IL_0191: Unknown result type (might be due to invalid IL or missing references)
				//IL_0196: Unknown result type (might be due to invalid IL or missing references)
				//IL_019f: Unknown result type (might be due to invalid IL or missing references)
				//IL_01a4: Unknown result type (might be due to invalid IL or missing references)
				//IL_01a6: Unknown result type (might be due to invalid IL or missing references)
				if (depth > startDepth)
				{
					if (childBones.Count == 1)
					{
						Bone bone = childBones[0];
						Transform obj = transform;
						obj.rotation *= Quaternion.FromToRotation(bone.localPosition, transform.InverseTransformVector(bone.worldPosition - worldPosition));
						if (siblingRotationConstraints)
						{
							if (leftBone != null && rightBone != null)
							{
								Vector3 val = leftPosition;
								Vector3 val2 = transform.InverseTransformVector(leftBone.worldPosition - worldPosition);
								Quaternion val3 = Quaternion.FromToRotation(val, val2);
								Vector3 val4 = rightPosition;
								Vector3 val5 = transform.InverseTransformVector(rightBone.worldPosition - worldPosition);
								Quaternion val6 = Quaternion.FromToRotation(val4, val5);
								Transform obj2 = transform;
								obj2.rotation *= Quaternion.Lerp(val3, val6, 0.5f);
							}
							else if (leftBone != null)
							{
								Vector3 val7 = leftPosition;
								Vector3 val8 = transform.InverseTransformVector(leftBone.worldPosition - worldPosition);
								Quaternion val9 = Quaternion.FromToRotation(val7, val8);
								Transform obj3 = transform;
								obj3.rotation *= val9;
							}
							else if (rightBone != null)
							{
								Vector3 val10 = rightPosition;
								Vector3 val11 = transform.InverseTransformVector(rightBone.worldPosition - worldPosition);
								Quaternion val12 = Quaternion.FromToRotation(val10, val11);
								Transform obj4 = transform;
								obj4.rotation *= val12;
							}
						}
					}
					transform.position = worldPosition;
				}
				if ((Object)(object)systemSpace != (Object)null)
				{
					systemPosition = systemSpace.InverseTransformPoint(worldPosition);
				}
				for (int i = 0; i < childBones.Count; i++)
				{
					childBones[i].UpdateTransform(siblingRotationConstraints, startDepth);
				}
			}

			public void SetRestState()
			{
				//IL_0007: Unknown result type (might be due to invalid IL or missing references)
				//IL_000c: Unknown result type (might be due to invalid IL or missing references)
				//IL_0034: Unknown result type (might be due to invalid IL or missing references)
				//IL_0027: Unknown result type (might be due to invalid IL or missing references)
				//IL_002c: Unknown result type (might be due to invalid IL or missing references)
				//IL_0039: Unknown result type (might be due to invalid IL or missing references)
				//IL_003f: Unknown result type (might be due to invalid IL or missing references)
				//IL_0044: Unknown result type (might be due to invalid IL or missing references)
				worldPosition = transform.position;
				systemPosition = (((Object)(object)systemSpace == (Object)null) ? worldPosition : systemSpace.InverseTransformPoint(worldPosition));
				speed = Vector3.zero;
				for (int i = 0; i < childBones.Count; i++)
				{
					childBones[i].SetRestState();
				}
			}

			public void UpdateSpace()
			{
				//IL_0017: Unknown result type (might be due to invalid IL or missing references)
				//IL_001c: Unknown result type (might be due to invalid IL or missing references)
				//IL_0021: Unknown result type (might be due to invalid IL or missing references)
				if (!((Object)(object)systemSpace == (Object)null))
				{
					worldPosition = systemSpace.TransformPoint(systemPosition);
					for (int i = 0; i < childBones.Count; i++)
					{
						childBones[i].UpdateSpace();
					}
				}
			}
		}

		public static readonly float DeltaTime_Min = 1E-06f;

		[SerializeField]
		public List<Transform> m_RootBones = new List<Transform>();

		[SerializeField]
		public List<Transform> m_EndBones = new List<Transform>();

		[SerializeField]
		private EZSoftBoneMaterial m_Material;

		private EZSoftBoneMaterial m_InstanceMaterial;

		[SerializeField]
		private int m_StartDepth;

		[SerializeField]
		private UnificationMode m_SiblingConstraints;

		[SerializeField]
		private bool m_ClosedSiblings;

		[SerializeField]
		private bool m_SiblingRotationConstraints = true;

		[SerializeField]
		private UnificationMode m_LengthUnification;

		[SerializeField]
		private LayerMask m_CollisionLayers = LayerMask.op_Implicit(1);

		[SerializeField]
		private List<Collider> m_ExtraColliders = new List<Collider>();

		[SerializeField]
		private float m_Radius;

		[SerializeField]
		[EZCurveRect(0f, 0f, 1f, 1f)]
		private AnimationCurve m_RadiusCurve = AnimationCurve.Linear(0f, 1f, 1f, 1f);

		[SerializeField]
		private DeltaTimeMode m_DeltaTimeMode;

		[SerializeField]
		private float m_ConstantDeltaTime = 0.03f;

		[SerializeField]
		[Range(1f, 10f)]
		private int m_Iterations = 1;

		[SerializeField]
		private float m_SleepThreshold = 0.005f;

		[SerializeField]
		private Transform m_GravityAligner;

		[SerializeField]
		private Vector3 m_Gravity;

		[SerializeField]
		private EZSoftBoneForceField m_ForceModule;

		[SerializeField]
		private float m_ForceScale = 1f;

		[SerializeField]
		private Transform m_SimulateSpace;

		private List<Bone> m_Structures = new List<Bone>();

		public List<Transform> rootBones => m_RootBones;

		public List<Transform> endBones => m_EndBones;

		public EZSoftBoneMaterial sharedMaterial
		{
			get
			{
				if ((Object)(object)m_Material == (Object)null)
				{
					m_Material = EZSoftBoneMaterial.defaultMaterial;
				}
				return m_Material;
			}
			set
			{
				m_Material = value;
			}
		}

		public EZSoftBoneMaterial material
		{
			get
			{
				if ((Object)(object)m_InstanceMaterial == (Object)null)
				{
					m_InstanceMaterial = (m_Material = Object.Instantiate<EZSoftBoneMaterial>(sharedMaterial));
				}
				return m_InstanceMaterial;
			}
			set
			{
				m_InstanceMaterial = (m_Material = value);
			}
		}

		public int startDepth
		{
			get
			{
				return m_StartDepth;
			}
			set
			{
				m_StartDepth = value;
			}
		}

		public UnificationMode siblingConstraints
		{
			get
			{
				return m_SiblingConstraints;
			}
			set
			{
				m_SiblingConstraints = value;
			}
		}

		public bool closedSiblings
		{
			get
			{
				return m_ClosedSiblings;
			}
			set
			{
				m_ClosedSiblings = value;
			}
		}

		public bool siblingRotationConstraints
		{
			get
			{
				return m_SiblingRotationConstraints;
			}
			set
			{
				m_SiblingRotationConstraints = value;
			}
		}

		public UnificationMode lengthUnification
		{
			get
			{
				return m_LengthUnification;
			}
			set
			{
				m_LengthUnification = value;
			}
		}

		public LayerMask collisionLayers
		{
			get
			{
				//IL_0001: Unknown result type (might be due to invalid IL or missing references)
				return m_CollisionLayers;
			}
			set
			{
				//IL_0001: Unknown result type (might be due to invalid IL or missing references)
				//IL_0002: Unknown result type (might be due to invalid IL or missing references)
				m_CollisionLayers = value;
			}
		}

		public List<Collider> extraColliders => m_ExtraColliders;

		public float radius
		{
			get
			{
				return m_Radius;
			}
			set
			{
				m_Radius = value;
			}
		}

		public AnimationCurve radiusCurve => m_RadiusCurve;

		public DeltaTimeMode deltaTimeMode
		{
			get
			{
				return m_DeltaTimeMode;
			}
			set
			{
				m_DeltaTimeMode = value;
			}
		}

		public float constantDeltaTime
		{
			get
			{
				return m_ConstantDeltaTime;
			}
			set
			{
				m_ConstantDeltaTime = value;
			}
		}

		public int iterations
		{
			get
			{
				return m_Iterations;
			}
			set
			{
				m_Iterations = value;
			}
		}

		public float sleepThreshold
		{
			get
			{
				return m_SleepThreshold;
			}
			set
			{
				m_SleepThreshold = Mathf.Max(0f, value);
			}
		}

		public Transform gravityAligner
		{
			get
			{
				return m_GravityAligner;
			}
			set
			{
				m_GravityAligner = value;
			}
		}

		public Vector3 gravity
		{
			get
			{
				//IL_0001: Unknown result type (might be due to invalid IL or missing references)
				return m_Gravity;
			}
			set
			{
				//IL_0001: Unknown result type (might be due to invalid IL or missing references)
				//IL_0002: Unknown result type (might be due to invalid IL or missing references)
				m_Gravity = value;
			}
		}

		public EZSoftBoneForceField forceModule
		{
			get
			{
				return m_ForceModule;
			}
			set
			{
				m_ForceModule = value;
			}
		}

		public float forceScale
		{
			get
			{
				return m_ForceScale;
			}
			set
			{
				m_ForceScale = value;
			}
		}

		public Transform simulateSpace
		{
			get
			{
				return m_SimulateSpace;
			}
			set
			{
				m_SimulateSpace = value;
			}
		}

		public float globalRadius { get; private set; }

		public Vector3 globalForce { get; private set; }

		public void Awake()
		{
			InitStructures();
		}

		public void OnEnable()
		{
			SetRestState();
		}

		public void Update()
		{
			RevertTransforms(startDepth);
		}

		public void LateUpdate()
		{
			switch (deltaTimeMode)
			{
			case DeltaTimeMode.DeltaTime:
				UpdateStructures(Time.deltaTime);
				break;
			case DeltaTimeMode.UnscaledDeltaTime:
				UpdateStructures(Time.unscaledDeltaTime);
				break;
			case DeltaTimeMode.Constant:
				UpdateStructures(constantDeltaTime);
				break;
			}
			UpdateTransforms();
		}

		public void OnDisable()
		{
			RevertTransforms(startDepth);
		}

		public void RevertTransforms()
		{
			RevertTransforms(startDepth);
		}

		public void RevertTransforms(int startDepth)
		{
			for (int i = 0; i < m_Structures.Count; i++)
			{
				m_Structures[i].RevertTransforms(startDepth);
			}
		}

		public void InitStructures()
		{
			CreateBones();
			SetSiblings();
			SetTreeLength();
			RefreshRadius();
		}

		public void SetRestState()
		{
			for (int i = 0; i < m_Structures.Count; i++)
			{
				m_Structures[i].SetRestState();
			}
		}

		private void CreateBones()
		{
			m_Structures.Clear();
			if (rootBones == null || rootBones.Count == 0)
			{
				return;
			}
			for (int i = 0; i < rootBones.Count; i++)
			{
				if (!((Object)(object)rootBones[i] == (Object)null))
				{
					Bone item = new Bone(simulateSpace, rootBones[i], endBones, startDepth, 0, 0f, 0f);
					m_Structures.Add(item);
				}
			}
		}

		private void SetSiblings()
		{
			if (siblingConstraints == UnificationMode.Rooted)
			{
				for (int i = 0; i < m_Structures.Count; i++)
				{
					Queue<Bone> queue = new Queue<Bone>();
					queue.Enqueue(m_Structures[i]);
					SetSiblingsByDepth(queue, closedSiblings);
				}
			}
			else if (siblingConstraints == UnificationMode.Unified)
			{
				Queue<Bone> queue2 = new Queue<Bone>();
				for (int j = 0; j < m_Structures.Count; j++)
				{
					queue2.Enqueue(m_Structures[j]);
				}
				if (queue2.Count > 0)
				{
					SetSiblingsByDepth(queue2, closedSiblings);
				}
			}
		}

		private void SetSiblingsByDepth(Queue<Bone> bones, bool closed)
		{
			Bone bone = bones.Dequeue();
			for (int i = 0; i < bone.childBones.Count; i++)
			{
				bones.Enqueue(bone.childBones[i]);
			}
			Bone bone2 = bone;
			Bone bone3 = null;
			while (bones.Count > 0)
			{
				bone3 = bones.Dequeue();
				for (int j = 0; j < bone3.childBones.Count; j++)
				{
					bones.Enqueue(bone3.childBones[j]);
				}
				if (bone2.depth == bone3.depth)
				{
					bone2.SetRightSibling(bone3);
					bone3.SetLeftSibling(bone2);
				}
				else
				{
					if (closed)
					{
						bone2.SetRightSibling(bone);
						bone.SetLeftSibling(bone2);
					}
					bone = bone3;
				}
				bone2 = bone3;
			}
			if (bone3 != null && closed)
			{
				bone.SetLeftSibling(bone3);
				bone3.SetRightSibling(bone);
			}
		}

		private void SetTreeLength()
		{
			if (lengthUnification == UnificationMode.Rooted)
			{
				for (int i = 0; i < m_Structures.Count; i++)
				{
					m_Structures[i].SetTreeLength();
				}
			}
			else if (lengthUnification == UnificationMode.Unified)
			{
				float num = 0f;
				for (int j = 0; j < m_Structures.Count; j++)
				{
					num = Mathf.Max(num, m_Structures[j].treeLength);
				}
				for (int k = 0; k < m_Structures.Count; k++)
				{
					m_Structures[k].SetTreeLength(num);
				}
			}
		}

		public void RefreshRadius()
		{
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_000c: Unknown result type (might be due to invalid IL or missing references)
			globalRadius = ((Component)this).transform.lossyScale.Abs().Max() * radius;
			for (int i = 0; i < m_Structures.Count; i++)
			{
				m_Structures[i].Inflate(globalRadius, radiusCurve);
			}
		}

		private void UpdateStructures(float deltaTime)
		{
			//IL_0010: Unknown result type (might be due to invalid IL or missing references)
			//IL_0015: Unknown result type (might be due to invalid IL or missing references)
			//IL_0085: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a9: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ae: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b1: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b7: Unknown result type (might be due to invalid IL or missing references)
			//IL_00bc: Unknown result type (might be due to invalid IL or missing references)
			//IL_00bf: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c5: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d9: Unknown result type (might be due to invalid IL or missing references)
			//IL_00df: Unknown result type (might be due to invalid IL or missing references)
			if (deltaTime <= DeltaTime_Min)
			{
				return;
			}
			globalRadius = ((Component)this).transform.lossyScale.Abs().Max() * radius;
			for (int i = 0; i < m_Structures.Count; i++)
			{
				m_Structures[i].Inflate(globalRadius, radiusCurve, sharedMaterial);
				if ((Object)(object)simulateSpace != (Object)null)
				{
					m_Structures[i].UpdateSpace();
				}
			}
			globalForce = gravity;
			if ((Object)(object)gravityAligner != (Object)null)
			{
				Vector3 val = gravityAligner.TransformDirection(gravity);
				Vector3 normalized = ((Vector3)(ref val)).normalized;
				val = gravity;
				Vector3 normalized2 = ((Vector3)(ref val)).normalized;
				float num = Mathf.Acos(Vector3.Dot(normalized, normalized2)) / (float)Math.PI;
				globalForce *= num;
			}
			deltaTime /= (float)iterations;
			for (int j = 0; j < iterations; j++)
			{
				for (int k = 0; k < m_Structures.Count; k++)
				{
					UpdateBones(m_Structures[k], deltaTime);
				}
			}
		}

		private void UpdateBones(Bone bone, float deltaTime)
		{
			//IL_03da: Unknown result type (might be due to invalid IL or missing references)
			//IL_03df: Unknown result type (might be due to invalid IL or missing references)
			//IL_0012: Unknown result type (might be due to invalid IL or missing references)
			//IL_0017: Unknown result type (might be due to invalid IL or missing references)
			//IL_0018: Unknown result type (might be due to invalid IL or missing references)
			//IL_0019: Unknown result type (might be due to invalid IL or missing references)
			//IL_001b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0020: Unknown result type (might be due to invalid IL or missing references)
			//IL_006e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0089: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b2: Unknown result type (might be due to invalid IL or missing references)
			//IL_00b7: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d0: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d5: Unknown result type (might be due to invalid IL or missing references)
			//IL_00da: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e1: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f2: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f7: Unknown result type (might be due to invalid IL or missing references)
			//IL_0128: Unknown result type (might be due to invalid IL or missing references)
			//IL_0138: Unknown result type (might be due to invalid IL or missing references)
			//IL_013d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0142: Unknown result type (might be due to invalid IL or missing references)
			//IL_0150: Unknown result type (might be due to invalid IL or missing references)
			//IL_0155: Unknown result type (might be due to invalid IL or missing references)
			//IL_015a: Unknown result type (might be due to invalid IL or missing references)
			//IL_015c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0161: Unknown result type (might be due to invalid IL or missing references)
			//IL_0162: Unknown result type (might be due to invalid IL or missing references)
			//IL_0163: Unknown result type (might be due to invalid IL or missing references)
			//IL_0172: Unknown result type (might be due to invalid IL or missing references)
			//IL_0177: Unknown result type (might be due to invalid IL or missing references)
			//IL_0178: Unknown result type (might be due to invalid IL or missing references)
			//IL_017f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0184: Unknown result type (might be due to invalid IL or missing references)
			//IL_0189: Unknown result type (might be due to invalid IL or missing references)
			//IL_018d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0192: Unknown result type (might be due to invalid IL or missing references)
			//IL_01a0: Unknown result type (might be due to invalid IL or missing references)
			//IL_01a5: Unknown result type (might be due to invalid IL or missing references)
			//IL_01aa: Unknown result type (might be due to invalid IL or missing references)
			//IL_01bb: Unknown result type (might be due to invalid IL or missing references)
			//IL_01c0: Unknown result type (might be due to invalid IL or missing references)
			//IL_01c4: Unknown result type (might be due to invalid IL or missing references)
			//IL_01c9: Unknown result type (might be due to invalid IL or missing references)
			//IL_01ce: Unknown result type (might be due to invalid IL or missing references)
			//IL_010f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0111: Unknown result type (might be due to invalid IL or missing references)
			//IL_0117: Unknown result type (might be due to invalid IL or missing references)
			//IL_011c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0121: Unknown result type (might be due to invalid IL or missing references)
			//IL_003c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0049: Unknown result type (might be due to invalid IL or missing references)
			//IL_0054: Unknown result type (might be due to invalid IL or missing references)
			//IL_0059: Unknown result type (might be due to invalid IL or missing references)
			//IL_005e: Unknown result type (might be due to invalid IL or missing references)
			//IL_02a9: Unknown result type (might be due to invalid IL or missing references)
			//IL_02ad: Unknown result type (might be due to invalid IL or missing references)
			//IL_02b2: Unknown result type (might be due to invalid IL or missing references)
			//IL_02b3: Unknown result type (might be due to invalid IL or missing references)
			//IL_02b4: Unknown result type (might be due to invalid IL or missing references)
			//IL_02c3: Unknown result type (might be due to invalid IL or missing references)
			//IL_02c8: Unknown result type (might be due to invalid IL or missing references)
			//IL_03a4: Unknown result type (might be due to invalid IL or missing references)
			//IL_03a9: Unknown result type (might be due to invalid IL or missing references)
			//IL_03aa: Unknown result type (might be due to invalid IL or missing references)
			//IL_03ab: Unknown result type (might be due to invalid IL or missing references)
			//IL_03b1: Unknown result type (might be due to invalid IL or missing references)
			//IL_03b6: Unknown result type (might be due to invalid IL or missing references)
			//IL_03c0: Unknown result type (might be due to invalid IL or missing references)
			//IL_03c5: Unknown result type (might be due to invalid IL or missing references)
			//IL_03cb: Unknown result type (might be due to invalid IL or missing references)
			//IL_03cc: Unknown result type (might be due to invalid IL or missing references)
			//IL_01e5: Unknown result type (might be due to invalid IL or missing references)
			//IL_01ec: Unknown result type (might be due to invalid IL or missing references)
			//IL_01f1: Unknown result type (might be due to invalid IL or missing references)
			//IL_01f6: Unknown result type (might be due to invalid IL or missing references)
			//IL_01fa: Unknown result type (might be due to invalid IL or missing references)
			//IL_01ff: Unknown result type (might be due to invalid IL or missing references)
			//IL_0208: Unknown result type (might be due to invalid IL or missing references)
			//IL_020d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0212: Unknown result type (might be due to invalid IL or missing references)
			//IL_021d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0224: Unknown result type (might be due to invalid IL or missing references)
			//IL_0229: Unknown result type (might be due to invalid IL or missing references)
			//IL_022d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0232: Unknown result type (might be due to invalid IL or missing references)
			//IL_0237: Unknown result type (might be due to invalid IL or missing references)
			//IL_023c: Unknown result type (might be due to invalid IL or missing references)
			//IL_024b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0252: Unknown result type (might be due to invalid IL or missing references)
			//IL_0257: Unknown result type (might be due to invalid IL or missing references)
			//IL_025c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0260: Unknown result type (might be due to invalid IL or missing references)
			//IL_0265: Unknown result type (might be due to invalid IL or missing references)
			//IL_026e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0273: Unknown result type (might be due to invalid IL or missing references)
			//IL_0278: Unknown result type (might be due to invalid IL or missing references)
			//IL_0283: Unknown result type (might be due to invalid IL or missing references)
			//IL_028a: Unknown result type (might be due to invalid IL or missing references)
			//IL_028f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0293: Unknown result type (might be due to invalid IL or missing references)
			//IL_0298: Unknown result type (might be due to invalid IL or missing references)
			//IL_029d: Unknown result type (might be due to invalid IL or missing references)
			//IL_02a2: Unknown result type (might be due to invalid IL or missing references)
			//IL_0305: Unknown result type (might be due to invalid IL or missing references)
			if (bone.depth > startDepth)
			{
				Vector3 val2;
				Vector3 val = (val2 = bone.worldPosition);
				Vector3 val3 = globalForce;
				if ((Object)(object)forceModule != (Object)null && ((Behaviour)forceModule).isActiveAndEnabled)
				{
					val3 += forceModule.GetForce(bone.normalizedLength) * forceScale;
				}
				val3.x *= ((Component)this).transform.localScale.x;
				val3.y *= ((Component)this).transform.localScale.y;
				val3.z *= ((Component)this).transform.localScale.z;
				bone.speed += val3 * (1f - bone.resistance) / (float)iterations;
				bone.speed *= 1f - bone.damping;
				if (((Vector3)(ref bone.speed)).sqrMagnitude > sleepThreshold)
				{
					val2 += bone.speed * deltaTime;
				}
				Vector3 val4 = bone.parentBone.worldPosition - bone.parentBone.transform.position;
				Vector3 val5 = bone.parentBone.transform.TransformPoint(bone.localPosition) + val4;
				val2 = Vector3.Lerp(val2, val5, bone.stiffness / (float)iterations);
				Vector3 val6 = val2 - bone.parentBone.worldPosition;
				Vector3 normalized = ((Vector3)(ref val6)).normalized;
				val6 = bone.parentBone.transform.TransformVector(bone.localPosition);
				float magnitude = ((Vector3)(ref val6)).magnitude;
				val5 = bone.parentBone.worldPosition + normalized * magnitude;
				int num = 1;
				if (siblingConstraints != UnificationMode.None)
				{
					if (bone.leftBone != null)
					{
						val6 = val2 - bone.leftBone.worldPosition;
						Vector3 normalized2 = ((Vector3)(ref val6)).normalized;
						val6 = bone.transform.TransformVector(bone.leftPosition);
						float magnitude2 = ((Vector3)(ref val6)).magnitude;
						val5 += bone.leftBone.worldPosition + normalized2 * magnitude2;
						num++;
					}
					if (bone.rightBone != null)
					{
						val6 = val2 - bone.rightBone.worldPosition;
						Vector3 normalized3 = ((Vector3)(ref val6)).normalized;
						val6 = bone.transform.TransformVector(bone.rightPosition);
						float magnitude3 = ((Vector3)(ref val6)).magnitude;
						val5 += bone.rightBone.worldPosition + normalized3 * magnitude3;
						num++;
					}
				}
				val5 /= (float)num;
				val2 = Vector3.Lerp(val5, val2, bone.slackness / (float)iterations);
				if (bone.radius > 0f)
				{
					foreach (EZSoftBoneColliderBase enabledCollider in EZSoftBoneColliderBase.EnabledColliders)
					{
						if ((Object)(object)bone.transform != (Object)(object)((Component)enabledCollider).transform && collisionLayers.Contains(((Component)enabledCollider).gameObject.layer))
						{
							enabledCollider.Collide(ref val2, bone.radius);
						}
					}
					foreach (Collider extraCollider in extraColliders)
					{
						if ((Object)(object)bone.transform != (Object)(object)((Component)extraCollider).transform && extraCollider.enabled)
						{
							EZSoftBoneUtility.PointOutsideCollider(ref val2, extraCollider, bone.radius);
						}
					}
				}
				bone.speed = (bone.speed + (val2 - val) / deltaTime) * 0.5f;
				bone.worldPosition = val2;
			}
			else
			{
				bone.worldPosition = bone.transform.position;
			}
			for (int i = 0; i < bone.childBones.Count; i++)
			{
				UpdateBones(bone.childBones[i], deltaTime);
			}
		}

		private void UpdateTransforms()
		{
			for (int i = 0; i < m_Structures.Count; i++)
			{
				m_Structures[i].UpdateTransform(siblingRotationConstraints, startDepth);
			}
		}
	}
	[RequireComponent(typeof(Collider))]
	public class EZSoftBoneCollider : EZSoftBoneColliderBase
	{
		[SerializeField]
		private Collider m_ReferenceCollider;

		[SerializeField]
		private float m_Margin;

		[SerializeField]
		private bool m_InsideMode;

		public Collider referenceCollider
		{
			get
			{
				if ((Object)(object)m_ReferenceCollider == (Object)null)
				{
					m_ReferenceCollider = ((Component)this).GetComponent<Collider>();
				}
				return m_ReferenceCollider;
			}
		}

		public float margin
		{
			get
			{
				return m_Margin;
			}
			set
			{
				m_Margin = value;
			}
		}

		public bool insideMode
		{
			get
			{
				return m_InsideMode;
			}
			set
			{
				m_InsideMode = value;
			}
		}

		public override void Collide(ref Vector3 position, float spacing)
		{
			if (referenceCollider is SphereCollider)
			{
				Collider obj = referenceCollider;
				SphereCollider collider = (SphereCollider)(object)((obj is SphereCollider) ? obj : null);
				if (insideMode)
				{
					EZSoftBoneUtility.PointInsideSphere(ref position, collider, spacing + margin);
				}
				else
				{
					EZSoftBoneUtility.PointOutsideSphere(ref position, collider, spacing + margin);
				}
			}
			else if (referenceCollider is CapsuleCollider)
			{
				Collider obj2 = referenceCollider;
				CapsuleCollider collider2 = (CapsuleCollider)(object)((obj2 is CapsuleCollider) ? obj2 : null);
				if (insideMode)
				{
					EZSoftBoneUtility.PointInsideCapsule(ref position, collider2, spacing + margin);
				}
				else
				{
					EZSoftBoneUtility.PointOutsideCapsule(ref position, collider2, spacing + margin);
				}
			}
			else if (referenceCollider is BoxCollider)
			{
				Collider obj3 = referenceCollider;
				BoxCollider collider3 = (BoxCollider)(object)((obj3 is BoxCollider) ? obj3 : null);
				if (insideMode)
				{
					EZSoftBoneUtility.PointInsideBox(ref position, collider3, spacing + margin);
				}
				else
				{
					EZSoftBoneUtility.PointOutsideBox(ref position, collider3, spacing + margin);
				}
			}
			else if (referenceCollider is MeshCollider)
			{
				Collider obj4 = referenceCollider;
				if (!CheckConvex((MeshCollider)(object)((obj4 is MeshCollider) ? obj4 : null)))
				{
					Debug.LogError((object)"Non-Convex Mesh Collider is not supported", (Object)(object)this);
					((Behaviour)this).enabled = false;
				}
				else if (insideMode)
				{
					Debug.LogError((object)"Inside Mode On Mesh Collider is not supported", (Object)(object)this);
					insideMode = false;
				}
				else
				{
					EZSoftBoneUtility.PointOutsideCollider(ref position, referenceCollider, spacing + margin);
				}
			}
		}

		private bool CheckConvex(MeshCollider meshCollider)
		{
			if ((Object)(object)meshCollider.sharedMesh != (Object)null)
			{
				return meshCollider.convex;
			}
			return false;
		}

		private void Reset()
		{
			m_ReferenceCollider = ((Component)this).GetComponent<Collider>();
		}
	}
	public abstract class EZSoftBoneColliderBase : MonoBehaviour
	{
		public static HashSet<EZSoftBoneColliderBase> EnabledColliders = new HashSet<EZSoftBoneColliderBase>();

		protected void OnEnable()
		{
			EnabledColliders.Add(this);
		}

		protected void OnDisable()
		{
			EnabledColliders.Remove(this);
		}

		public abstract void Collide(ref Vector3 position, float spacing);
	}
	public class EZSoftBoneColliderCylinder : EZSoftBoneColliderBase
	{
		[SerializeField]
		private float m_Margin;

		[SerializeField]
		private bool m_InsideMode;

		public float margin
		{
			get
			{
				return m_Margin;
			}
			set
			{
				m_Margin = value;
			}
		}

		public bool insideMode
		{
			get
			{
				return m_InsideMode;
			}
			set
			{
				m_InsideMode = value;
			}
		}

		public override void Collide(ref Vector3 position, float spacing)
		{
			if (insideMode)
			{
				EZSoftBoneUtility.PointInsideCylinder(ref position, ((Component)this).transform, spacing + margin);
			}
			else
			{
				EZSoftBoneUtility.PointOutsideCylinder(ref position, ((Component)this).transform, spacing + margin);
			}
		}
	}
	[CreateAssetMenu(fileName = "SBForce", menuName = "EZSoftBone/SBForce")]
	public class EZSoftBoneForce : ScriptableObject
	{
		public enum TurbulenceMode
		{
			Curve,
			Perlin
		}

		[SerializeField]
		private float m_Force = 1f;

		[SerializeField]
		private Vector3 m_Turbulence = new Vector3(1f, 0.5f, 2f);

		[SerializeField]
		private TurbulenceMode m_TurbulenceMode = TurbulenceMode.Perlin;

		[SerializeField]
		private Vector3 m_Frequency = new Vector3(1f, 1f, 1.5f);

		[SerializeField]
		private float m_TimeCycle = 2f;

		[SerializeField]
		[EZCurveRect(0f, -1f, 1f, 2f)]
		private AnimationCurve m_CurveX = AnimationCurve.Linear(0f, 0f, 1f, 1f);

		[SerializeField]
		[EZCurveRect(0f, -1f, 1f, 2f)]
		private AnimationCurve m_CurveY = AnimationCurve.EaseInOut(0f, 0f, 1f, 1f);

		[SerializeField]
		[EZCurveRect(0f, -1f, 1f, 2f)]
		private AnimationCurve m_CurveZ = AnimationCurve.EaseInOut(0f, 1f, 1f, 0f);

		public float force
		{
			get
			{
				return m_Force;
			}
			set
			{
				m_Force = value;
			}
		}

		public Vector3 turbulence
		{
			get
			{
				//IL_0001: Unknown result type (might be due to invalid IL or missing references)
				return m_Turbulence;
			}
			set
			{
				//IL_0001: Unknown result type (might be due to invalid IL or missing references)
				//IL_0002: Unknown result type (might be due to invalid IL or missing references)
				m_Turbulence = value;
			}
		}

		public TurbulenceMode turbulenceMode
		{
			get
			{
				return m_TurbulenceMode;
			}
			set
			{
				m_TurbulenceMode = value;
			}
		}

		public Vector3 frequency
		{
			get
			{
				//IL_0001: Unknown result type (might be due to invalid IL or missing references)
				return m_Frequency;
			}
			set
			{
				//IL_0001: Unknown result type (might be due to invalid IL or missing references)
				//IL_0002: Unknown result type (might be due to invalid IL or missing references)
				m_Frequency = value;
			}
		}

		public float timeCycle
		{
			get
			{
				return m_TimeCycle;
			}
			set
			{
				m_TimeCycle = Mathf.Max(0f, value);
			}
		}

		public Vector3 GetForce(float time)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0006: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f2: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f7: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f8: Unknown result type (might be due to invalid IL or missing references)
			//IL_0085: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a8: Unknown result type (might be due to invalid IL or missing references)
			//IL_00cb: Unknown result type (might be due to invalid IL or missing references)
			Vector3 val = turbulence;
			switch (turbulenceMode)
			{
			case TurbulenceMode.Curve:
				time = Mathf.Repeat(time, m_TimeCycle) / m_TimeCycle;
				val.x *= Curve(m_CurveX, time);
				val.y *= Curve(m_CurveY, time);
				val.z *= Curve(m_CurveZ, time);
				break;
			case TurbulenceMode.Perlin:
				val.x *= Perlin(time * frequency.x, 0f);
				val.y *= Perlin(time * frequency.y, 0.5f);
				val.z *= Perlin(time * frequency.z, 1f);
				break;
			}
			return new Vector3(0f, 0f, force) + val;
		}

		private float Perlin(float x, float y)
		{
			return Mathf.PerlinNoise(x, y) * 2f - 1f;
		}

		private float Curve(AnimationCurve curve, float time)
		{
			return curve.Evaluate(time);
		}
	}
	public class EZSoftBoneForceField : MonoBehaviour
	{
		[SerializeField]
		[Range(0f, 1f)]
		private float m_Conductivity = 0.15f;

		[SerializeField]
		[EZNestedEditor]
		private EZSoftBoneForce m_Force;

		public float conductivity
		{
			get
			{
				return m_Conductivity;
			}
			set
			{
				m_Conductivity = value;
			}
		}

		public EZSoftBoneForce force
		{
			get
			{
				return m_Force;
			}
			set
			{
				m_Force = value;
			}
		}

		public float time { get; set; }

		private void OnEnable()
		{
			time = 0f;
		}

		private void Update()
		{
			time += Time.deltaTime;
		}

		public Vector3 GetForce(float normalizedLength)
		{
			//IL_001b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0020: Unknown result type (might be due to invalid IL or missing references)
			return ((Component)this).transform.TransformDirection(force.GetForce(time - conductivity * normalizedLength));
		}
	}
	[CreateAssetMenu(fileName = "SBMat", menuName = "EZSoftBone/SBMaterial")]
	public class EZSoftBoneMaterial : ScriptableObject
	{
		[SerializeField]
		[Range(0f, 1f)]
		private float m_Damping = 0.2f;

		[SerializeField]
		[EZCurveRect(0f, 0f, 1f, 1f)]
		private AnimationCurve m_DampingCurve = AnimationCurve.EaseInOut(0f, 0.5f, 1f, 1f);

		[SerializeField]
		[Range(0f, 1f)]
		private float m_Stiffness = 0.1f;

		[SerializeField]
		[EZCurveRect(0f, 0f, 1f, 1f)]
		private AnimationCurve m_StiffnessCurve = AnimationCurve.Linear(0f, 1f, 1f, 1f);

		[SerializeField]
		[Range(0f, 1f)]
		private float m_Resistance = 0.9f;

		[SerializeField]
		[EZCurveRect(0f, 0f, 1f, 1f)]
		private AnimationCurve m_ResistanceCurve = AnimationCurve.Linear(0f, 1f, 1f, 0f);

		[SerializeField]
		[Range(0f, 1f)]
		private float m_Slackness = 0.1f;

		[SerializeField]
		[EZCurveRect(0f, 0f, 1f, 1f)]
		private AnimationCurve m_SlacknessCurve = AnimationCurve.Linear(0f, 1f, 1f, 0.8f);

		private static EZSoftBoneMaterial m_DefaultMaterial;

		public float damping
		{
			get
			{
				return m_Damping;
			}
			set
			{
				m_Damping = Mathf.Clamp01(value);
			}
		}

		public AnimationCurve dampingCurve => m_DampingCurve;

		public float stiffness
		{
			get
			{
				return m_Stiffness;
			}
			set
			{
				m_Stiffness = Mathf.Clamp01(value);
			}
		}

		public AnimationCurve stiffnessCurve => m_StiffnessCurve;

		public float resistance
		{
			get
			{
				return m_Resistance;
			}
			set
			{
				m_Resistance = Mathf.Clamp01(value);
			}
		}

		public AnimationCurve resistanceCurve => m_ResistanceCurve;

		public float slackness
		{
			get
			{
				return m_Slackness;
			}
			set
			{
				m_Slackness = Mathf.Clamp01(value);
			}
		}

		public AnimationCurve slacknessCurve => m_SlacknessCurve;

		public static EZSoftBoneMaterial defaultMaterial
		{
			get
			{
				if ((Object)(object)m_DefaultMaterial == (Object)null)
				{
					m_DefaultMaterial = ScriptableObject.CreateInstance<EZSoftBoneMaterial>();
				}
				((Object)m_DefaultMaterial).name = "SBMat_Default";
				return m_DefaultMaterial;
			}
		}

		public float GetDamping(float t)
		{
			return damping * dampingCurve.Evaluate(t);
		}

		public float GetStiffness(float t)
		{
			return stiffness * stiffnessCurve.Evaluate(t);
		}

		public float GetResistance(float t)
		{
			return resistance * resistanceCurve.Evaluate(t);
		}

		public float GetSlackness(float t)
		{
			return slackness * slacknessCurve.Evaluate(t);
		}
	}
	public static class EZSoftBoneUtility
	{
		public static Vector3 Abs(this Vector3 v)
		{
			//IL_0000: Unknown result type (might be due to invalid IL or missing references)
			//IL_000b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0016: Unknown result type (might be due to invalid IL or missing references)
			//IL_0021: Unknown result type (might be due to invalid IL or missing references)
			return new Vector3(Mathf.Abs(v.x), Mathf.Abs(v.y), Mathf.Abs(v.z));
		}

		public static float Max(this Vector3 v)
		{
			//IL_0000: Unknown result type (might be due to invalid IL or missing references)
			//IL_0006: Unknown result type (might be due to invalid IL or missing references)
			//IL_000c: Unknown result type (might be due to invalid IL or missing references)
			return Mathf.Max(v.x, Mathf.Max(v.y, v.z));
		}

		public static bool Contains(this LayerMask mask, int layer)
		{
			//IL_0000: Unknown result type (might be due to invalid IL or missing references)
			//IL_000d: Unknown result type (might be due to invalid IL or missing references)
			return (LayerMask.op_Implicit(mask) | (1 << layer)) == LayerMask.op_Implicit(mask);
		}

		public static void GetCapsuleParams(CapsuleCollider collider, out Vector3 center0, out Vector3 center1, out float radius)
		{
			//IL_0006: Unknown result type (might be due to invalid IL or missing references)
			//IL_000b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0010: Unknown result type (might be due to invalid IL or missing references)
			//IL_001c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0021: Unknown result type (might be due to invalid IL or missing references)
			//IL_0022: Unknown result type (might be due to invalid IL or missing references)
			//IL_0023: Unknown result type (might be due to invalid IL or missing references)
			//IL_0028: Unknown result type (might be due to invalid IL or missing references)
			//IL_0029: Unknown result type (might be due to invalid IL or missing references)
			//IL_005c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0062: Unknown result type (might be due to invalid IL or missing references)
			//IL_0077: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a3: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a9: Unknown result type (might be due to invalid IL or missing references)
			//IL_00be: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e7: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ed: Unknown result type (might be due to invalid IL or missing references)
			//IL_0102: Unknown result type (might be due to invalid IL or missing references)
			//IL_012e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0133: Unknown result type (might be due to invalid IL or missing references)
			//IL_0138: Unknown result type (might be due to invalid IL or missing references)
			//IL_0145: Unknown result type (might be due to invalid IL or missing references)
			//IL_014a: Unknown result type (might be due to invalid IL or missing references)
			//IL_014f: Unknown result type (might be due to invalid IL or missing references)
			Vector3 val = ((Component)collider).transform.lossyScale.Abs();
			radius = collider.radius;
			center0 = (center1 = collider.center);
			float num = collider.height * 0.5f;
			switch (collider.direction)
			{
			case 0:
				radius *= Mathf.Max(val.y, val.z);
				num = Mathf.Max(0f, num - radius / val.x);
				center0.x -= num;
				center1.x += num;
				break;
			case 1:
				radius *= Mathf.Max(val.x, val.z);
				num = Mathf.Max(0f, num - radius / val.y);
				center0.y -= num;
				center1.y += num;
				break;
			case 2:
				radius *= Mathf.Max(val.x, val.y);
				num = Mathf.Max(0f, num - radius / val.z);
				center0.z -= num;
				center1.z += num;
				break;
			}
			center0 = ((Component)collider).transform.TransformPoint(center0);
			center1 = ((Component)collider).transform.TransformPoint(center1);
		}

		public static void GetCylinderParams(Transform transform, out Vector3 center, out Vector3 direction, out float radius, out float height)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0006: Unknown result type (might be due to invalid IL or missing references)
			//IL_000b: Unknown result type (might be due to invalid IL or missing references)
			//IL_000e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0013: Unknown result type (might be due to invalid IL or missing references)
			//IL_001a: Unknown result type (might be due to invalid IL or missing references)
			//IL_001f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0025: Unknown result type (might be due to invalid IL or missing references)
			//IL_002b: Unknown result type (might be due to invalid IL or missing references)
			//IL_003f: Unknown result type (might be due to invalid IL or missing references)
			Vector3 val = transform.lossyScale.Abs();
			center = transform.position;
			direction = transform.up;
			radius = Mathf.Max(val.x, val.z) * 0.5f;
			height = val.y;
		}

		public static void PointOutsideSphere(ref Vector3 position, SphereCollider collider, float spacing)
		{
			//IL_0006: Unknown result type (might be due to invalid IL or missing references)
			//IL_000b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0010: Unknown result type (might be due to invalid IL or missing references)
			//IL_0017: Unknown result type (might be due to invalid IL or missing references)
			//IL_0027: Unknown result type (might be due to invalid IL or missing references)
			//IL_002c: Unknown result type (might be due to invalid IL or missing references)
			Vector3 v = ((Component)collider).transform.lossyScale.Abs();
			float num = collider.radius * v.Max();
			PointOutsideSphere(ref position, ((Component)collider).transform.TransformPoint(collider.center), num + spacing);
		}

		private static void PointOutsideSphere(ref Vector3 position, Vector3 spherePosition, float radius)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0006: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_000c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0018: Unknown result type (might be due to invalid IL or missing references)
			//IL_001b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0021: Unknown result type (might be due to invalid IL or missing references)
			//IL_0026: Unknown result type (might be due to invalid IL or missing references)
			//IL_002b: Unknown result type (might be due to invalid IL or missing references)
			Vector3 val = position - spherePosition;
			if (((Vector3)(ref val)).magnitude < radius)
			{
				position = spherePosition + ((Vector3)(ref val)).normalized * radius;
			}
		}

		public static void PointInsideSphere(ref Vector3 position, SphereCollider collider, float spacing)
		{
			//IL_0008: Unknown result type (might be due to invalid IL or missing references)
			//IL_000d: Unknown result type (might be due to invalid IL or missing references)
			PointInsideSphere(ref position, ((Component)collider).transform.TransformPoint(collider.center), collider.radius - spacing);
		}

		private static void PointInsideSphere(ref Vector3 position, Vector3 spherePosition, float radius)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0006: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_000c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0018: Unknown result type (might be due to invalid IL or missing references)
			//IL_001b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0021: Unknown result type (might be due to invalid IL or missing references)
			//IL_0026: Unknown result type (might be due to invalid IL or missing references)
			//IL_002b: Unknown result type (might be due to invalid IL or missing references)
			Vector3 val = position - spherePosition;
			if (((Vector3)(ref val)).magnitude > radius)
			{
				position = spherePosition + ((Vector3)(ref val)).normalized * radius;
			}
		}

		public static void PointOutsideCapsule(ref Vector3 position, CapsuleCollider collider, float spacing)
		{
			//IL_000d: Unknown result type (might be due to invalid IL or missing references)
			//IL_000e: Unknown result type (might be due to invalid IL or missing references)
			GetCapsuleParams(collider, out var center, out var center2, out var radius);
			PointOutsideCapsule(ref position, center, center2, radius + spacing);
		}

		private static void PointOutsideCapsule(ref Vector3 position, Vector3 center0, Vector3 center1, float radius)
		{
			//IL_0000: Unknown result type (might be due to invalid IL or missing references)
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_0009: Unknown result type (might be due to invalid IL or missing references)
			//IL_000e: Unknown result type (might be due to invalid IL or missing references)
			//IL_000f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0014: Unknown result type (might be due to invalid IL or missing references)
			//IL_0015: Unknown result type (might be due to invalid IL or missing references)
			//IL_0016: Unknown result type (might be due to invalid IL or missing references)
			//IL_0026: Unknown result type (might be due to invalid IL or missing references)
			//IL_0041: Unknown result type (might be due to invalid IL or missing references)
			//IL_0042: Unknown result type (might be due to invalid IL or missing references)
			//IL_0043: Unknown result type (might be due to invalid IL or missing references)
			//IL_0044: Unknown result type (might be due to invalid IL or missing references)
			//IL_0049: Unknown result type (might be due to invalid IL or missing references)
			//IL_004e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0039: Unknown result type (might be due to invalid IL or missing references)
			//IL_0065: Unknown result type (might be due to invalid IL or missing references)
			//IL_006c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0073: Unknown result type (might be due to invalid IL or missing references)
			//IL_0078: Unknown result type (might be due to invalid IL or missing references)
			//IL_007d: Unknown result type (might be due to invalid IL or missing references)
			Vector3 val = center1 - center0;
			Vector3 val2 = position - center0;
			float num = Vector3.Dot(val, val2);
			if (num <= 0f)
			{
				PointOutsideSphere(ref position, center0, radius);
				return;
			}
			if (num >= ((Vector3)(ref val)).sqrMagnitude)
			{
				PointOutsideSphere(ref position, center1, radius);
				return;
			}
			Vector3 val3 = val2 - Vector3.Project(val2, val);
			float num2 = radius - ((Vector3)(ref val3)).magnitude;
			if (num2 > 0f)
			{
				position += ((Vector3)(ref val3)).normalized * num2;
			}
		}

		public static void PointInsideCapsule(ref Vector3 position, CapsuleCollider collider, float spacing)
		{
			//IL_000d: Unknown result type (might be due to invalid IL or missing references)
			//IL_000e: Unknown result type (might be due to invalid IL or missing references)
			GetCapsuleParams(collider, out var center, out var center2, out var radius);
			PointInsideCapsule(ref position, center, center2, radius - spacing);
		}

		private static void PointInsideCapsule(ref Vector3 position, Vector3 center0, Vector3 center1, float radius)
		{
			//IL_0000: Unknown result type (might be due to invalid IL or missing references)
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_0009: Unknown result type (might be due to invalid IL or missing references)
			//IL_000e: Unknown result type (might be due to invalid IL or missing references)
			//IL_000f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0014: Unknown result type (might be due to invalid IL or missing references)
			//IL_0015: Unknown result type (might be due to invalid IL or missing references)
			//IL_0016: Unknown result type (might be due to invalid IL or missing references)
			//IL_0026: Unknown result type (might be due to invalid IL or missing references)
			//IL_0041: Unknown result type (might be due to invalid IL or missing references)
			//IL_0042: Unknown result type (might be due to invalid IL or missing references)
			//IL_0043: Unknown result type (might be due to invalid IL or missing references)
			//IL_0044: Unknown result type (might be due to invalid IL or missing references)
			//IL_0049: Unknown result type (might be due to invalid IL or missing references)
			//IL_004e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0039: Unknown result type (might be due to invalid IL or missing references)
			//IL_0065: Unknown result type (might be due to invalid IL or missing references)
			//IL_006c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0073: Unknown result type (might be due to invalid IL or missing references)
			//IL_0078: Unknown result type (might be due to invalid IL or missing references)
			//IL_007d: Unknown result type (might be due to invalid IL or missing references)
			Vector3 val = center1 - center0;
			Vector3 val2 = position - center0;
			float num = Vector3.Dot(val, val2);
			if (num <= 0f)
			{
				PointInsideSphere(ref position, center0, radius);
				return;
			}
			if (num >= ((Vector3)(ref val)).sqrMagnitude)
			{
				PointInsideSphere(ref position, center1, radius);
				return;
			}
			Vector3 val3 = val2 - Vector3.Project(val2, val);
			float num2 = radius - ((Vector3)(ref val3)).magnitude;
			if (num2 < 0f)
			{
				position += ((Vector3)(ref val3)).normalized * num2;
			}
		}

		public static void PointOutsideCylinder(ref Vector3 position, Transform transform, float spacing)
		{
			//IL_000f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0010: Unknown result type (might be due to invalid IL or missing references)
			GetCylinderParams(transform, out var center, out var direction, out var radius, out var height);
			PointOutsideCylinder(ref position, center, direction, radius + spacing, height + spacing);
		}

		private static void PointOutsideCylinder(ref Vector3 position, Vector3 center, Vector3 direction, float radius, float height)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0006: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_000c: Unknown result type (might be due to invalid IL or missing references)
			//IL_000d: Unknown result type (might be due to invalid IL or missing references)
			//IL_000e: Unknown result type (might be due to invalid IL or missing references)
			//IL_000f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0014: Unknown result type (might be due to invalid IL or missing references)
			//IL_0028: Unknown result type (might be due to invalid IL or missing references)
			//IL_0029: Unknown result type (might be due to invalid IL or missing references)
			//IL_002a: Unknown result type (might be due to invalid IL or missing references)
			//IL_002f: Unknown result type (might be due to invalid IL or missing references)
			//IL_006b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0072: Unknown result type (might be due to invalid IL or missing references)
			//IL_0078: Unknown result type (might be due to invalid IL or missing references)
			//IL_007d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0082: Unknown result type (might be due to invalid IL or missing references)
			//IL_004b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0052: Unknown result type (might be due to invalid IL or missing references)
			//IL_0059: Unknown result type (might be due to invalid IL or missing references)
			//IL_005e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0063: Unknown result type (might be due to invalid IL or missing references)
			Vector3 val = position - center;
			Vector3 val2 = Vector3.Project(val, direction);
			float num = height - ((Vector3)(ref val2)).magnitude;
			if (!(num > 0f))
			{
				return;
			}
			Vector3 val3 = val - val2;
			float num2 = radius - ((Vector3)(ref val3)).magnitude;
			if (num2 > 0f)
			{
				if (num2 < num)
				{
					position += ((Vector3)(ref val3)).normalized * num2;
				}
				else
				{
					position += ((Vector3)(ref val2)).normalized * num;
				}
			}
		}

		public static void PointInsideCylinder(ref Vector3 position, Transform tra

plugins/VRTRAKILL.dll

Decompiled 3 days ago
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Net.Sockets;
using System.Reflection;
using System.Reflection.Emit;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Plugin.Patches.Controllers;
using Plugin.Patches.Misc;
using Plugin.Patches.ULTRAKILL;
using Plugin.Patches.Visual;
using Plugin.Prefs;
using Plugin.Systems;
using Plugin.Systems.Arms;
using Plugin.Systems.Controllers;
using Plugin.Systems.Feedback;
using Plugin.Systems.Input;
using Plugin.Systems.Movement;
using Plugin.Systems.Movement.Patches;
using Plugin.Systems.UI;
using Plugin.Systems.UI.Patches;
using Plugin.Systems.Updates;
using Plugin.Systems.VRAvatar;
using Plugin.Systems.VRAvatar.Armature;
using Plugin.Systems.VRAvatar.Patches;
using Plugin.Systems.VRCamera;
using Plugin.Systems.VRCamera.Patches;
using Plugin.Systems.VRPlayer;
using Plugin.Util.Libraries.EZhex1991.EZSoftBone;
using Sandbox.Arm;
using SettingsMenu.Components.Pages;
using TMPro;
using ULTRAKILL.Cheats;
using ULTRAKILL.Portal;
using Unity.XR.OpenVR;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.Events;
using UnityEngine.InputSystem;
using UnityEngine.InputSystem.Controls;
using UnityEngine.InputSystem.LowLevel;
using UnityEngine.Rendering;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
using UnityEngine.Video;
using UnityEngine.XR;
using UnityEngine.XR.Management;
using VRBasePlugin.Systems.VRCamera;
using VRTRAKILL.Utilities;
using Valve.VR;
using WindowsInput;
using WindowsInput.Native;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("VRTRAKILL")]
[assembly: AssemblyDescription("VR support mod for ULTRAKILL")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("VRTRAKILL")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("3fbb1fc9-b424-404c-b0c5-1a8afff14f5b")]
[assembly: AssemblyMetadata("AI_Assisted_Creation", "This assembly was partially created with the assistance of generative AI (code, refactoring, tests and documentation), directed, reviewed and tested in game by the maintainer.")]
[assembly: AssemblyMetadata("AI_Model_Vendor", "Anthropic")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyFileVersion("2.0.3.0")]
[assembly: AssemblyInformationalVersion("2.0.3")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("2.0.3.0")]
[module: UnverifiableCode]
namespace VRTRAKILL
{
	internal static class BuildVersion
	{
		public const string Value = "2.0.3";
	}
}
namespace VRBasePlugin.Systems.VRCamera
{
	[ConfigureSingleton(/*Could not decode attribute arguments.*/)]
	internal class VRControllerLocations : MonoSingleton<VRControllerLocations>
	{
		private struct HandMemory
		{
			public bool Has;

			public bool Held;

			public Vector3 Offset;

			public float LoggedAt;

			public int JumpFrame;
		}

		public Vector3 headPos;

		public Quaternion headRot = Quaternion.identity;

		public Vector3 leftPos;

		public Quaternion leftRot = Quaternion.identity;

		private Transform _left;

		public Vector3 rightPos;

		public Quaternion rightRot = Quaternion.identity;

		private Transform _right;

		private HandMemory LeftHeld;

		private HandMemory RightHeld;

		private const float MaxReach = 1.2f;

		internal static Pose? TestLeftPose;

		internal static Pose? TestRightPose;

		private bool IsTurning;

		private float SnapTurnTimer;

		private IEnumerator Start()
		{
			((Component)this).transform.position = Vector3.zero;
			while (!SteamVR_Input.initialized)
			{
				yield return null;
			}
			((SteamVR_ActionSet)SteamVR_Actions._default).Activate((SteamVR_Input_Sources)0, 0, false);
			yield return null;
			if ((Object)(object)_left != (Object)null)
			{
				Object.DestroyImmediate((Object)(object)((Component)_left).gameObject);
			}
			_left = new GameObject("Left").transform;
			_left.SetParent(((Component)this).transform);
			((Component)_left).gameObject.SetActive(false);
			SteamVR_Behaviour_Pose l = ((Component)_left).gameObject.AddComponent<SteamVR_Behaviour_Pose>();
			l.poseAction = SteamVR_Actions._default.LeftPose;
			l.inputSource = (SteamVR_Input_Sources)1;
			if ((Object)(object)_right != (Object)null)
			{
				Object.DestroyImmediate((Object)(object)((Component)_right).gameObject);
			}
			_right = new GameObject("Right").transform;
			_right.SetParent(((Component)this).transform);
			((Component)_right).gameObject.SetActive(false);
			SteamVR_Behaviour_Pose r = ((Component)_right).gameObject.AddComponent<SteamVR_Behaviour_Pose>();
			r.poseAction = SteamVR_Actions._default.RightPose;
			r.inputSource = (SteamVR_Input_Sources)2;
			((Component)l).gameObject.SetActive(false);
			((Component)r).gameObject.SetActive(false);
			yield return null;
			((Component)l).gameObject.SetActive(true);
			((Component)r).gameObject.SetActive(true);
		}

		public bool HandJumped(SteamVR_Input_Sources Source)
		{
			//IL_0000: Unknown result type (might be due to invalid IL or missing references)
			//IL_0002: Invalid comparison between Unknown and I4
			return (((int)Source == 1) ? LeftHeld.JumpFrame : RightHeld.JumpFrame) == Time.frameCount;
		}

		private unsafe Vector3 Guard(SteamVR_Action_Pose Action, SteamVR_Input_Sources Source, Vector3 Pos, ref HandMemory M, string Name)
		{
			//IL_0010: Unknown result type (might be due to invalid IL or missing references)
			//IL_0013: Unknown result type (might be due to invalid IL or missing references)
			//IL_0019: Unknown result type (might be due to invalid IL or missing references)
			//IL_001e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0020: Unknown result type (might be due to invalid IL or missing references)
			//IL_0028: Unknown result type (might be due to invalid IL or missing references)
			//IL_002e: Invalid comparison between Unknown and I4
			//IL_003c: Unknown result type (might be due to invalid IL or missing references)
			//IL_003e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0043: Unknown result type (might be due to invalid IL or missing references)
			//IL_0048: Unknown result type (might be due to invalid IL or missing references)
			//IL_0067: Unknown result type (might be due to invalid IL or missing references)
			//IL_0076: Unknown result type (might be due to invalid IL or missing references)
			//IL_007b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0030: Unknown result type (might be due to invalid IL or missing references)
			//IL_0033: Invalid comparison between Unknown and I4
			//IL_0083: Unknown result type (might be due to invalid IL or missing references)
			//IL_0084: Unknown result type (might be due to invalid IL or missing references)
			//IL_0089: Unknown result type (might be due to invalid IL or missing references)
			//IL_008b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0090: Unknown result type (might be due to invalid IL or missing references)
			//IL_0095: Unknown result type (might be due to invalid IL or missing references)
			//IL_009a: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ee: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e6: Unknown result type (might be due to invalid IL or missing references)
			//IL_00da: Unknown result type (might be due to invalid IL or missing references)
			//IL_0182: Unknown result type (might be due to invalid IL or missing references)
			//IL_0187: Unknown result type (might be due to invalid IL or missing references)
			//IL_018a: Unknown result type (might be due to invalid IL or missing references)
			//IL_018f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0194: Unknown result type (might be due to invalid IL or missing references)
			//IL_0153: Unknown result type (might be due to invalid IL or missing references)
			//IL_0155: Unknown result type (might be due to invalid IL or missing references)
			//IL_015a: Unknown result type (might be due to invalid IL or missing references)
			//IL_015f: Unknown result type (might be due to invalid IL or missing references)
			if ((SteamVR_Action)(object)Action == (SteamVR_Action)null || !SteamVR_Input.initialized)
			{
				return Pos;
			}
			ETrackingResult trackingState = ((SteamVR_Action<SteamVR_Action_Pose_Source_Map<SteamVR_Action_Pose_Source>, SteamVR_Action_Pose_Source>)(object)Action)[Source].trackingState;
			bool flag = ((SteamVR_Action_Pose_Base<SteamVR_Action_Pose_Source_Map<SteamVR_Action_Pose_Source>, SteamVR_Action_Pose_Source>)(object)Action).GetPoseIsValid(Source) && (int)trackingState != 201 && (int)trackingState != 101;
			Vector3 val = Pos - headPos;
			bool flag2 = ((Vector3)(ref val)).sqrMagnitude <= 1.44f;
			Quaternion val2 = Quaternion.Euler(0f, ((Quaternion)(ref headRot)).eulerAngles.y, 0f);
			if (flag && flag2)
			{
				M.Offset = Quaternion.Inverse(val2) * (Pos - headPos);
				M.Has = true;
				if (M.Held)
				{
					M.Held = false;
					M.JumpFrame = Time.frameCount;
					Vars.Log.LogInfo((object)(Name + " controller tracked again."));
				}
				return Pos;
			}
			if (!M.Has || !((SteamVR_Action_Pose_Base<SteamVR_Action_Pose_Source_Map<SteamVR_Action_Pose_Source>, SteamVR_Action_Pose_Source>)(object)Action).GetDeviceIsConnected(Source))
			{
				return Pos;
			}
			if (!M.Held)
			{
				M.Held = true;
				M.JumpFrame = Time.frameCount;
				if (Time.unscaledTime - M.LoggedAt > 5f)
				{
					M.LoggedAt = Time.unscaledTime;
					ManualLogSource log = Vars.Log;
					string text;
					if (!flag)
					{
						text = ((object)(*(ETrackingResult*)(&trackingState))/*cast due to .constrained prefix*/).ToString();
					}
					else
					{
						val = Pos - headPos;
						text = $"{((Vector3)(ref val)).magnitude:0.0} m from the head";
					}
					log.LogInfo((object)(Name + " controller lost tracking (" + text + "); its hand stays at its last place until it is found again."));
				}
			}
			return headPos + val2 * M.Offset;
		}

		public void Update()
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_000e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0013: Unknown result type (might be due to invalid IL or missing references)
			//IL_002d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0032: Unknown result type (might be due to invalid IL or missing references)
			//IL_003e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0043: Unknown result type (might be due to invalid IL or missing references)
			//IL_0086: Unknown result type (might be due to invalid IL or missing references)
			//IL_0096: Unknown result type (might be due to invalid IL or missing references)
			//IL_009b: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ae: Unknown result type (might be due to invalid IL or missing references)
			//IL_00be: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c3: Unknown result type (might be due to invalid IL or missing references)
			//IL_005d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0062: Unknown result type (might be due to invalid IL or missing references)
			//IL_006e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0073: Unknown result type (might be due to invalid IL or missing references)
			//IL_00da: Unknown result type (might be due to invalid IL or missing references)
			//IL_00df: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ef: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f9: Unknown result type (might be due to invalid IL or missing references)
			//IL_0110: Unknown result type (might be due to invalid IL or missing references)
			//IL_0115: Unknown result type (might be due to invalid IL or missing references)
			//IL_011a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0125: Unknown result type (might be due to invalid IL or missing references)
			//IL_012a: Unknown result type (might be due to invalid IL or missing references)
			//IL_012f: Unknown result type (might be due to invalid IL or missing references)
			headPos = InputTracking.GetLocalPosition((XRNode)3);
			headRot = InputTracking.GetLocalRotation((XRNode)3);
			if ((Object)(object)_left != (Object)null)
			{
				leftPos = _left.position;
				leftRot = _left.rotation;
			}
			if ((Object)(object)_right != (Object)null)
			{
				rightPos = _right.position;
				rightRot = _right.rotation;
			}
			leftPos = Guard(SteamVR_Actions._default.LeftPose, (SteamVR_Input_Sources)1, leftPos, ref LeftHeld, "Left");
			rightPos = Guard(SteamVR_Actions._default.RightPose, (SteamVR_Input_Sources)2, rightPos, ref RightHeld, "Right");
			if (TestLeftPose.HasValue)
			{
				leftPos = TestLeftPose.Value.position;
				leftRot = TestLeftPose.Value.rotation;
			}
			if (TestRightPose.HasValue)
			{
				rightPos = TestRightPose.Value.position;
				rightRot = TestRightPose.Value.rotation;
			}
			SVRActionsManager.UpdateRuntimeActions();
			float num = ((Mathf.Abs(InputVars.TurnVector.x) >= Mathf.Abs(InputVars.TurnVector.y)) ? InputVars.TurnVector.x : 0f);
			if (!Vars.Config.Controllers.SnapTurn)
			{
				float num2 = (Vars.IsPaused ? 0f : Time.unscaledDeltaTime);
				if (num > 0f + Vars.Config.Controllers.Deadzone)
				{
					InputVars.TurnOffset += Vars.Config.Controllers.SmoothSpeed * num2;
				}
				if (num < 0f - Vars.Config.Controllers.Deadzone)
				{
					InputVars.TurnOffset -= Vars.Config.Controllers.SmoothSpeed * num2;
				}
			}
			else if (IsTurning)
			{
				SnapTurnTimer += Time.unscaledDeltaTime;
				if (SnapTurnTimer >= 0.2f || num == 0f)
				{
					IsTurning = false;
					SnapTurnTimer = 0f;
				}
			}
			else if (num > 0f + Vars.Config.Controllers.Deadzone)
			{
				IsTurning = true;
				InputVars.TurnOffset += Vars.Config.Controllers.SnapAngles;
			}
			else if (num < 0f - Vars.Config.Controllers.Deadzone)
			{
				IsTurning = true;
				InputVars.TurnOffset -= Vars.Config.Controllers.SnapAngles;
			}
		}
	}
}
namespace Plugin
{
	[BepInPlugin("VRTRAKILL", "VRTRAKILL", "2.0.3")]
	public sealed class Plugin : BaseUnityPlugin
	{
		private static XRGeneralSettings generalSettings;

		private static XRManagerSettings managerSettings;

		private static OpenVRLoader xrLoader;

		private const float VRInitRetryDelay = 2f;

		private static bool ActionsPreInitialized;

		private static readonly Stopwatch Clock = Stopwatch.StartNew();

		private static int VRAttempt;

		private static float NextVRAttemptAt;

		private static bool VRStarted;

		private static Thread ProbeThread;

		private static volatile bool ProbeDone;

		private static EVRInitError ProbeResult;

		private static string ProbeException;

		private const float SettleSeconds = 5f;

		private static float ProbeOkSince = -1f;

		private static XRDisplaySubsystem ActiveDisplay;

		private static bool ReportedVRStopped;

		private static bool InputInitialized;

		private static float ProbeStartedAt;

		private static bool ReportedSlowProbe;

		private static float NextWatchAt;

		private static string LastInitError = "";

		internal static ManualLogSource Log { get; private set; }

		private static float Now => (float)Clock.Elapsed.TotalSeconds;

		public void Awake()
		{
			//IL_0064: Unknown result type (might be due to invalid IL or missing references)
			//IL_006b: Invalid comparison between Unknown and I4
			Log = ((BaseUnityPlugin)this).Logger;
			string Why;
			string text = StartMode(out Why);
			if (text == "Never")
			{
				Log.LogMessage((object)(Why + ": the game runs flat, VRTRAKILL changes nothing."));
				return;
			}
			bool flag = false;
			if (text == "Auto")
			{
				StartProbe();
				flag = ProbeThread.Join(3000);
				if ((flag && ProbeException == null && (int)ProbeResult == 121) || DevTestHooks.Requested("autoflat"))
				{
					Log.LogMessage((object)"SteamVR is not running, so the game runs flat (\"Start in VR\": \"Auto\"); VRTRAKILL changes nothing. To play in VR, start SteamVR first, or set \"Start in VR\" to \"Always\" in VRTRAKILL_Config.json.");
					FlatNotice.Show();
					return;
				}
			}
			Debug.unityLogger.filterLogType = (LogType)2;
			Application.runInBackground = true;
			PatchControllerHaptics.WatchQuit();
			ModHost modHost = ModHost.Create();
			try
			{
				StartupStatus.Install(((Component)modHost).gameObject);
			}
			catch (Exception ex)
			{
				Log.LogError((object)("VRTRAKILL startup status overlay failed: " + ex));
			}
			try
			{
				ConfigMaster.Init();
			}
			catch (Exception ex2)
			{
				Log.LogError((object)("VRTRAKILL config setup failed: " + ex2));
			}
			try
			{
				PatchStuff();
			}
			catch (Exception ex3)
			{
				Log.LogError((object)("VRTRAKILL patching failed: " + ex3));
			}
			try
			{
				SceneWorker.Init((MonoBehaviour)(object)modHost);
			}
			catch (Exception ex4)
			{
				Log.LogError((object)("VRTRAKILL scene setup failed: " + ex4));
			}
			Log.LogInfo((object)"Thunderstore build: no update check; your mod manager updates VRTRAKILL.");
			if (ProbeThread == null)
			{
				StartProbe();
			}
			if (flag || ProbeThread.Join(3000))
			{
				TickVRStart();
			}
		}

		private static string StartMode(out string Why)
		{
			Why = null;
			string[] commandLineArgs = Environment.GetCommandLineArgs();
			foreach (string text in commandLineArgs)
			{
				if (text.Equals("--novr", StringComparison.OrdinalIgnoreCase) || text.Equals("-novr", StringComparison.OrdinalIgnoreCase))
				{
					Why = "\"--novr\" is in the game's launch options";
					return "Never";
				}
				if (text.Equals("--vr", StringComparison.OrdinalIgnoreCase) || text.Equals("-vr", StringComparison.OrdinalIgnoreCase))
				{
					return "Always";
				}
			}
			try
			{
				string text2 = Vars.Config.StartInVR ?? "Auto";
				if (text2.Equals("Never", StringComparison.OrdinalIgnoreCase))
				{
					Why = "\"Start in VR\" is \"Never\" in VRTRAKILL_Config.json";
					return "Never";
				}
				if (text2.Equals("Always", StringComparison.OrdinalIgnoreCase))
				{
					return "Always";
				}
			}
			catch (Exception ex)
			{
				Log.LogWarning((object)("\"Start in VR\" could not be read from the config (" + ex.Message + "); using \"Auto\"."));
			}
			return "Auto";
		}

		internal static void TickVRStart()
		{
			if (VRStarted)
			{
				WatchVR();
			}
			else if (ProbeThread != null)
			{
				if (!ProbeDone)
				{
					if (!ReportedSlowProbe && Now - ProbeStartedAt > 5f)
					{
						ReportedSlowProbe = true;
						LastInitError = "SteamVR is not answering. If it shows an error, check that the headset is connected and on, then restart SteamVR.";
						StartupStatus.ReportAttempt(Math.Max(VRAttempt, 2), LastInitError);
						Log.LogWarning((object)LastInitError);
					}
				}
				else
				{
					ProbeThread = null;
					HandleProbeResult();
				}
			}
			else if (!(Now < NextVRAttemptAt))
			{
				if (ProbeException != null)
				{
					VRAttempt++;
					TryFullInit();
				}
				else
				{
					StartProbe();
				}
			}
		}

		private static void StartProbe()
		{
			VRAttempt++;
			ProbeDone = false;
			ProbeStartedAt = Now;
			ReportedSlowProbe = false;
			ProbeThread = new Thread((ThreadStart)delegate
			{
				//IL_0001: Unknown result type (might be due to invalid IL or missing references)
				//IL_000b: Unknown result type (might be due to invalid IL or missing references)
				//IL_0013: Unknown result type (might be due to invalid IL or missing references)
				//IL_0014: Unknown result type (might be due to invalid IL or missing references)
				try
				{
					EVRInitError val = (EVRInitError)0;
					OpenVR.InitInternal(ref val, (EVRApplicationType)3);
					if ((int)val == 0)
					{
						OpenVR.ShutdownInternal();
					}
					ProbeResult = val;
				}
				catch (Exception ex)
				{
					ProbeException = ex.GetType().Name + ": " + ex.Message;
				}
				finally
				{
					ProbeDone = true;
				}
			})
			{
				IsBackground = true,
				Name = "VRTRAKILL SteamVR check"
			};
			ProbeThread.Start();
		}

		private static void HandleProbeResult()
		{
			//IL_002b: Unknown result type (might be due to invalid IL or missing references)
			//IL_003c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0041: Unknown result type (might be due to invalid IL or missing references)
			//IL_0042: Unknown result type (might be due to invalid IL or missing references)
			//IL_0045: Invalid comparison between Unknown and I4
			//IL_0054: Unknown result type (might be due to invalid IL or missing references)
			//IL_0057: Invalid comparison between Unknown and I4
			//IL_0047: Unknown result type (might be due to invalid IL or missing references)
			//IL_0059: Unknown result type (might be due to invalid IL or missing references)
			//IL_005c: Invalid comparison between Unknown and I4
			//IL_004a: Unknown result type (might be due to invalid IL or missing references)
			//IL_004d: Invalid comparison between Unknown and I4
			if (ProbeException != null)
			{
				Log.LogWarning((object)("The SteamVR check could not run (" + ProbeException + "); trying the full VR start instead."));
				TryFullInit();
				return;
			}
			if ((int)ProbeResult != 0)
			{
				ProbeOkSince = -1f;
			}
			EVRInitError probeResult = ProbeResult;
			if ((int)probeResult <= 108)
			{
				if ((int)probeResult == 0)
				{
					if (VRAttempt > 1)
					{
						float now = Now;
						if (ProbeOkSince < 0f)
						{
							ProbeOkSince = now;
						}
						if (now - ProbeOkSince < 5f)
						{
							LastInitError = "SteamVR sees the headset. Starting VR in a few seconds...";
							RetryLater(1f);
							return;
						}
					}
					TryFullInit();
					return;
				}
				if ((int)probeResult == 108)
				{
					goto IL_00cd;
				}
			}
			else
			{
				if ((int)probeResult == 121)
				{
					if (VRAttempt == 1)
					{
						LastInitError = "SteamVR is not running.";
						TryFullInit();
						return;
					}
					LastInitError = "SteamVR is not running. Start SteamVR.";
					goto IL_00fd;
				}
				if ((int)probeResult == 126)
				{
					goto IL_00cd;
				}
			}
			LastInitError = "SteamVR is not ready (" + ((object)Unsafe.As<EVRInitError, EVRInitError>(ref ProbeResult)/*cast due to .constrained prefix*/).ToString() + ").";
			goto IL_00fd;
			IL_00cd:
			LastInitError = "SteamVR does not see a headset. Turn the headset on and check that SteamVR shows it.";
			goto IL_00fd;
			IL_00fd:
			RetryLater();
		}

		private static void TryFullInit()
		{
			if (InitVRLoader(VRAttempt == 1 || VRAttempt % 30 == 0))
			{
				VRStarted = true;
				DevTestHooks.OnVRStarted();
				StartupStatus.ReportRunning();
				if (VRAttempt > 1)
				{
					Log.LogMessage((object)$"VR started on try {VRAttempt}.");
				}
				string text = StartupStatus.HeadsetWarning();
				if (text != null)
				{
					((MonoBehaviour)ModHost.Instance).StartCoroutine(UpdateNotice.ShowOnMainMenu(text, 130f));
				}
			}
			else
			{
				RetryLater();
			}
		}

		private static void RetryLater(float delay = 2f)
		{
			StartupStatus.ReportAttempt(VRAttempt, LastInitError);
			if (VRAttempt == 1 || VRAttempt % 30 == 0)
			{
				Log.LogWarning((object)$"VR is not running yet (try {VRAttempt}): {LastInitError} Trying again every {2f:0} s.");
			}
			NextVRAttemptAt = Now + delay;
		}

		private static void WatchVR()
		{
			if (!ReportedVRStopped && ActiveDisplay != null && !(Now < NextWatchAt))
			{
				NextWatchAt = Now + 1f;
				if (!((IntegratedSubsystem)ActiveDisplay).running)
				{
					ReportedVRStopped = true;
					Log.LogError((object)"SteamVR stopped VR for ULTRAKILL (another VR app started, or SteamVR closed). Restart ULTRAKILL to get VR back.");
					StartupStatus.ReportStopped("SteamVR stopped VR for ULTRAKILL (another VR app started, or SteamVR closed). Restart ULTRAKILL to get VR back.");
				}
			}
		}

		private void PatchStuff()
		{
			//IL_00c5: Unknown result type (might be due to invalid IL or missing references)
			//IL_00cf: Expected O, but got Unknown
			//IL_00ca: Unknown result type (might be due to invalid IL or missing references)
			//IL_00cf: Unknown result type (might be due to invalid IL or missing references)
			//IL_00db: Unknown result type (might be due to invalid IL or missing references)
			//IL_00e7: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f3: Expected O, but got Unknown
			List<string> list = new List<string>
			{
				typeof(global::Plugin.Patches.Controllers.A).Namespace,
				typeof(global::Plugin.Patches.Misc.A).Namespace,
				typeof(global::Plugin.Patches.ULTRAKILL.A).Namespace,
				typeof(global::Plugin.Patches.Visual.A).Namespace,
				typeof(global::Plugin.Systems.VRCamera.Patches.A).Namespace,
				typeof(global::Plugin.Systems.UI.Patches.A).Namespace,
				typeof(global::Plugin.Systems.Movement.Patches.A).Namespace
			};
			List<Type> list2 = new List<Type>();
			if (Vars.Config.EnableVRBody)
			{
				list.Add(typeof(global::Plugin.Systems.VRAvatar.Patches.A).Namespace);
			}
			Patcher val = new Patcher(new Harmony("VRTRAKILL"))
			{
				Namespaces = list.ToArray(),
				Types = list2.ToArray(),
				Log = Vars.Log
			};
			val.PatchAll();
			StartupStatus.PatchProblems += val.Failures;
			if (val.Failures > 0)
			{
				Log.LogError((object)$"{val.Failures} patch type(s) failed to apply; the game may have been updated.");
			}
		}

		public static bool InitVRLoader(bool logFailure = true)
		{
			//IL_005f: Unknown result type (might be due to invalid IL or missing references)
			//IL_014c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0152: Invalid comparison between Unknown and I4
			//IL_00e8: Unknown result type (might be due to invalid IL or missing references)
			//IL_00ee: Invalid comparison between Unknown and I4
			//IL_01e3: Unknown result type (might be due to invalid IL or missing references)
			try
			{
				Log.LogMessage((object)"INITILIZING");
				LeftHandedBindings.SelectManifest();
				if (!ActionsPreInitialized)
				{
					SteamVR_Actions.PreInitialize();
					ActionsPreInitialized = true;
				}
				generalSettings = ScriptableObject.CreateInstance<XRGeneralSettings>();
				managerSettings = ScriptableObject.CreateInstance<XRManagerSettings>();
				xrLoader = ScriptableObject.CreateInstance<OpenVRLoader>();
				OpenVRSettings settings = OpenVRSettings.GetSettings(true);
				if ((Object)(object)settings == (Object)null)
				{
					throw new InvalidOperationException("OpenVR settings not found.");
				}
				settings.StereoRenderingMode = (StereoRenderingModes)0;
				generalSettings.Manager = managerSettings;
				List<XRLoader> obj = (managerSettings.activeLoaders as List<XRLoader>) ?? throw new InvalidOperationException("XR loader list is not writable.");
				obj.Clear();
				obj.Add((XRLoader)(object)xrLoader);
				managerSettings.InitializeLoaderSync();
				Log.LogMessage((object)("Active loader: " + (object)managerSettings.activeLoader));
				XRLoader activeLoader = managerSettings.activeLoader;
				if ((Object)(object)activeLoader == (Object)null)
				{
					if ((int)SteamVR.initializedState != 2)
					{
						try
						{
							SteamVR.Initialize(true);
						}
						catch (Exception ex)
						{
							Log.LogDebug((object)("SteamVR init deferred: " + ex.Message));
						}
					}
					if (!((XRLoader)xrLoader).Initialize())
					{
						throw new InvalidOperationException("OpenVR loader failed to initialize (SteamVR: " + ((object)Unsafe.As<InitializedStates, InitializedStates>(ref SteamVR.initializedState)/*cast due to .constrained prefix*/).ToString() + ").");
					}
					activeLoader = (XRLoader)(object)xrLoader;
				}
				if ((int)SteamVR.initializedState != 2)
				{
					SteamVR.Initialize(true);
				}
				Log.LogMessage((object)("SteamVR initialized. Active: " + SteamVR.active + " Connected: " + ((object)Unsafe.As<InitializedStates, InitializedStates>(ref SteamVR.initializedState)/*cast due to .constrained prefix*/).ToString()));
				Log.LogMessage((object)("Initilizing:" + activeLoader.Start()));
				XRDisplaySubsystem loadedSubsystem = activeLoader.GetLoadedSubsystem<XRDisplaySubsystem>();
				if (loadedSubsystem == null)
				{
					throw new InvalidOperationException("OpenVR display subsystem is missing.");
				}
				if (!((IntegratedSubsystem)loadedSubsystem).running)
				{
					((IntegratedSubsystem)loadedSubsystem).Start();
				}
				ActiveDisplay = loadedSubsystem;
				if (!SteamVR.active)
				{
					SteamVR.initializedState = (InitializedStates)0;
					SteamVR.enabled = true;
					Log.LogMessage((object)("SteamVR plugin restarted after an earlier failed try. Active: " + SteamVR.active + " Connected: " + ((object)Unsafe.As<InitializedStates, InitializedStates>(ref SteamVR.initializedState)/*cast due to .constrained prefix*/).ToString()));
				}
				if (!InputInitialized)
				{
					SteamVR_Input.Initialize(false);
					SVRActionsManager.Init();
					InputInitialized = true;
				}
				Log.LogMessage((object)"DONE");
				return true;
			}
			catch (Exception ex2)
			{
				CleanupVRLoader();
				LastInitError = ex2.Message;
				if (logFailure)
				{
					Log.LogWarning((object)("OpenVR is not available yet: " + ex2.GetType().Name + " - " + ex2.Message));
				}
				return false;
			}
		}

		private static void CleanupVRLoader()
		{
			try
			{
				if ((Object)(object)managerSettings != (Object)null && (Object)(object)managerSettings.activeLoader != (Object)null)
				{
					managerSettings.DeinitializeLoader();
				}
			}
			catch (Exception ex)
			{
				ManualLogSource log = Log;
				if (log != null)
				{
					log.LogDebug((object)("OpenVR cleanup deferred: " + ex.Message));
				}
			}
			if ((Object)(object)xrLoader != (Object)null)
			{
				Object.Destroy((Object)(object)xrLoader);
			}
			if ((Object)(object)managerSettings != (Object)null)
			{
				Object.Destroy((Object)(object)managerSettings);
			}
			if ((Object)(object)generalSettings != (Object)null)
			{
				Object.Destroy((Object)(object)generalSettings);
			}
			xrLoader = null;
			managerSettings = null;
			generalSettings = null;
		}
	}
	public static class PluginInfo
	{
		public const string PLUGIN_GUID = "VRTRAKILL";

		public const string PLUGIN_NAME = "VRTRAKILL";

		public const string PLUGIN_VERSION = "2.0.3";

		public static readonly string PluginPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);

		public static readonly string FullGamePath = Process.GetCurrentProcess().MainModule.FileName;

		public static readonly string GamePath = Path.GetDirectoryName(FullGamePath);
	}
}
namespace Plugin.Prefs
{
	public class ConfigJSON
	{
		[JsonProperty("VRTRAKILL Settings")]
		public NewConfig Config { get; set; }

		public static ConfigJSON Instance { get; set; }

		public ConfigJSON()
		{
			Config = new NewConfig();
		}

		private static ConfigJSON NewDefault()
		{
			return new ConfigJSON
			{
				Config = 
				{
					ConfigVersion = 24
				}
			};
		}

		public static ConfigJSON GetConfig()
		{
			if (Instance == null)
			{
				Instance = Deserialize();
			}
			return Instance;
		}

		public static ConfigJSON Deserialize()
		{
			//IL_0023: Unknown result type (might be due to invalid IL or missing references)
			try
			{
				ConfigJSON configJSON = JsonConvert.DeserializeObject<ConfigJSON>(File.ReadAllText(ConfigMaster.ConfigPath));
				if (configJSON?.Config == null)
				{
					throw new JsonSerializationException("The file is empty or has no \"VRTRAKILL Settings\" object.");
				}
				configJSON.Config.FillMissingSections();
				if (configJSON.Config.Migrate())
				{
					Vars.Log.LogMessage((object)$"VRTRAKILL_Config.json updated to config version {24}: new settings added, old defaults moved to the new ones, values you changed kept.");
					Serialize(configJSON);
				}
				return configJSON;
			}
			catch (FileNotFoundException)
			{
				Vars.Log.LogError((object)"Unable to find VRTRAKILL_Config.json.\nGenerating a new one. Please quit the game and fill it out.\nStarting up using default settings.");
				Serialize(NewDefault());
				return NewDefault();
			}
			catch (Exception ex2) when (ex2 is IOException || ex2 is UnauthorizedAccessException)
			{
				Vars.Log.LogError((object)("Unable to read VRTRAKILL_Config.json: " + ex2.Message + "\nStarting up using default settings."));
				return new ConfigJSON();
			}
			catch (JsonException)
			{
				Vars.Log.LogError((object)"Something went wrong when trying to read VRTRAKILL_Config.json\nPlease fix any typos, formatting errors, etc.\nOr delete the config and let it generate once more.\nStarting up using default settings.");
				return new ConfigJSON();
			}
		}

		public static void Serialize(ConfigJSON Config)
		{
			string text = ConfigMaster.ConfigPath + ".tmp";
			try
			{
				File.WriteAllText(text, JsonConvert.SerializeObject((object)Config, (Formatting)1));
				if (File.Exists(ConfigMaster.ConfigPath))
				{
					File.Replace(text, ConfigMaster.ConfigPath, null);
				}
				else
				{
					File.Move(text, ConfigMaster.ConfigPath);
				}
			}
			catch (Exception ex)
			{
				Vars.Log.LogWarning((object)("Unable to write VRTRAKILL_Config.json: " + ex.Message));
				try
				{
					if (File.Exists(text))
					{
						File.Delete(text);
					}
				}
				catch (Exception)
				{
				}
			}
		}
	}
	internal static class ComfortPresets
	{
		public static readonly string[] Names = new string[3] { "BEGINNER", "STANDARD", "ULTRAKILL" };

		public static void Apply(string Name)
		{
			NewConfig config = Vars.Config;
			switch (Name)
			{
			case "BEGINNER":
				config.Controllers.SnapTurn = true;
				config.Controllers.SnapAngles = 45f;
				config.Comfort.Vignette = true;
				config.Comfort.VignetteStrength = 0.95f;
				config.Comfort.ScreenFlashes = "Off";
				config.Comfort.WeaponShake = 0f;
				break;
			case "STANDARD":
				config.Controllers.SnapTurn = false;
				config.Controllers.SmoothSpeed = 300f;
				config.Comfort.Vignette = false;
				config.Comfort.VignetteStrength = 0.85f;
				config.Comfort.ScreenFlashes = "Reduced";
				config.Comfort.WeaponShake = 0.1f;
				break;
			case "ULTRAKILL":
				config.Controllers.SnapTurn = false;
				config.Controllers.SmoothSpeed = 360f;
				config.Comfort.Vignette = false;
				config.Comfort.VignetteStrength = 0.85f;
				config.Comfort.ScreenFlashes = "Full";
				config.Comfort.WeaponShake = 1f;
				break;
			}
		}

		public static string Current()
		{
			NewConfig config = Vars.Config;
			NewConfig._Controllers controllers = config.Controllers;
			NewConfig._Comfort comfort = config.Comfort;
			if (controllers.SnapTurn && Near(controllers.SnapAngles, 45f) && comfort.Vignette && Near(comfort.VignetteStrength, 0.95f) && comfort.ScreenFlashes == "Off" && Near(comfort.WeaponShake, 0f))
			{
				return "BEGINNER";
			}
			if (!controllers.SnapTurn && Near(controllers.SmoothSpeed, 300f) && !comfort.Vignette && comfort.ScreenFlashes == "Reduced" && Near(comfort.WeaponShake, 0.1f))
			{
				return "STANDARD";
			}
			if (!controllers.SnapTurn && Near(controllers.SmoothSpeed, 360f) && !comfort.Vignette && comfort.ScreenFlashes == "Full" && Near(comfort.WeaponShake, 1f))
			{
				return "ULTRAKILL";
			}
			return "CUSTOM";
		}

		public static string Next()
		{
			int num = Array.IndexOf(Names, Current());
			return Names[(num + 1) % Names.Length];
		}

		private static bool Near(float A, float B)
		{
			return Math.Abs(A - B) < 0.001f;
		}
	}
	public sealed class ConfigMaster
	{
		public static string ConfigPath = PluginInfo.PluginPath + "\\VRTRAKILL_Config.json";

		public static VirtualKeyCode? KShoot = null;

		public static VirtualKeyCode? KAltShoot = null;

		public static VirtualKeyCode? KPunch = null;

		public static VirtualKeyCode? KJump = null;

		public static VirtualKeyCode? KSlide = null;

		public static VirtualKeyCode? KDash = null;

		public static VirtualKeyCode? KLastWeapon = null;

		public static VirtualKeyCode? KPrevWeapon = null;

		public static VirtualKeyCode? KNextWeapon = null;

		public static VirtualKeyCode? KChangeVariation = null;

		public static VirtualKeyCode? KSwapHand = null;

		public static VirtualKeyCode? KWhiplash = null;

		public static VirtualKeyCode? KSlot0 = null;

		public static VirtualKeyCode? KSlot1 = null;

		public static VirtualKeyCode? KSlot2 = null;

		public static VirtualKeyCode? KSlot3 = null;

		public static VirtualKeyCode? KSlot4 = null;

		public static VirtualKeyCode? KSlot5 = null;

		public static VirtualKeyCode? KSlot6 = null;

		public static VirtualKeyCode? KSlot7 = null;

		public static VirtualKeyCode? KSlot8 = null;

		public static VirtualKeyCode? KSlot9 = null;

		public static MouseButton? MShoot = null;

		public static MouseButton? MAltShoot = null;

		public static MouseButton? MPunch = null;

		public static MouseButton? MJump = null;

		public static MouseButton? MSlide = null;

		public static MouseButton? MDash = null;

		public static MouseButton? MLastWeapon = null;

		public static MouseButton? MPrevWeapon = null;

		public static MouseButton? MNextWeapon = null;

		public static MouseButton? MChangeVariation = null;

		public static MouseButton? MSwapHand = null;

		public static MouseButton? MWhiplash = null;

		public static MouseButton? MSlot0 = null;

		public static MouseButton? MSlot1 = null;

		public static MouseButton? MSlot2 = null;

		public static MouseButton? MSlot3 = null;

		public static MouseButton? MSlot4 = null;

		public static MouseButton? MSlot5 = null;

		public static MouseButton? MSlot6 = null;

		public static MouseButton? MSlot7 = null;

		public static MouseButton? MSlot8 = null;

		public static MouseButton? MSlot9 = null;

		public static KeyCode? ToggleStreamerView = (KeyCode)499;

		public static KeyCode? CycleComparison = (KeyCode)499;

		public static KeyCode? TPCamUp = (KeyCode)499;

		public static KeyCode? TPCamDown = (KeyCode)499;

		public static KeyCode? TPCamLeft = (KeyCode)499;

		public static KeyCode? TPCamRight = (KeyCode)499;

		public static KeyCode? TPCamHoldMoveMode = (KeyCode)499;

		public static KeyCode? ToggleAvatarSizeAdj = (KeyCode)499;

		public static KeyCode? RecalibrateHeight = (KeyCode)499;

		public static void Init()
		{
			ConvertJSONToKeys(Vars.Config.UKBinds);
			ConvertJSONToKeys(Vars.Config.VRBinds);
		}

		private static void ConvertJSONToKeys(UKBindings.ModifiedActions Binds)
		{
			try
			{
				InputMap.Keys.TryGetValue(Binds.PrimaryFire[0].Path, out KShoot);
				InputMap.Keys.TryGetValue(Binds.SecondaryFire[0].Path, out KAltShoot);
				InputMap.Keys.TryGetValue(Binds.Punch[0].Path, out KPunch);
				InputMap.Keys.TryGetValue(Binds.Jump[0].Path, out KJump);
				InputMap.Keys.TryGetValue(Binds.Slide[0].Path, out KSlide);
				InputMap.Keys.TryGetValue(Binds.Dodge[0].Path, out KDash);
				InputMap.Keys.TryGetValue(Binds.LastWeapon[0].Path, out KLastWeapon);
				InputMap.Keys.TryGetValue(Binds.ChangeVariation[0].Path, out KChangeVariation);
				InputMap.Keys.TryGetValue(Binds.ChangeFist[0].Path, out KSwapHand);
				InputMap.Keys.TryGetValue(Binds.Hook[0].Path, out KWhiplash);
				InputMap.Keys.TryGetValue(Binds.Slot0[0].Path, out KSlot0);
				InputMap.Keys.TryGetValue(Binds.Slot1[0].Path, out KSlot1);
				InputMap.Keys.TryGetValue(Binds.Slot2[0].Path, out KSlot2);
				InputMap.Keys.TryGetValue(Binds.Slot3[0].Path, out KSlot3);
				InputMap.Keys.TryGetValue(Binds.Slot4[0].Path, out KSlot4);
				InputMap.Keys.TryGetValue(Binds.Slot5[0].Path, out KSlot5);
				InputMap.Keys.TryGetValue(Binds.Slot6[0].Path, out KSlot6);
				InputMap.Keys.TryGetValue(Binds.Slot7[0].Path, out KSlot7);
				InputMap.Keys.TryGetValue(Binds.Slot8[0].Path, out KSlot8);
				InputMap.Keys.TryGetValue(Binds.Slot9[0].Path, out KSlot9);
				InputMap.KeysM.TryGetValue(Binds.PrimaryFire[0].Path, out MShoot);
				InputMap.KeysM.TryGetValue(Binds.SecondaryFire[0].Path, out MAltShoot);
				InputMap.KeysM.TryGetValue(Binds.Punch[0].Path, out MPunch);
				InputMap.KeysM.TryGetValue(Binds.Jump[0].Path, out MJump);
				InputMap.KeysM.TryGetValue(Binds.Slide[0].Path, out MSlide);
				InputMap.KeysM.TryGetValue(Binds.Dodge[0].Path, out MDash);
				InputMap.KeysM.TryGetValue(Binds.LastWeapon[0].Path, out MLastWeapon);
				InputMap.KeysM.TryGetValue(Binds.ChangeVariation[0].Path, out MChangeVariation);
				InputMap.KeysM.TryGetValue(Binds.ChangeFist[0].Path, out MSwapHand);
				InputMap.KeysM.TryGetValue(Binds.Hook[0].Path, out MWhiplash);
				InputMap.KeysM.TryGetValue(Binds.Slot0[0].Path, out MSlot0);
				InputMap.KeysM.TryGetValue(Binds.Slot1[0].Path, out MSlot1);
				InputMap.KeysM.TryGetValue(Binds.Slot2[0].Path, out MSlot2);
				InputMap.KeysM.TryGetValue(Binds.Slot3[0].Path, out MSlot3);
				InputMap.KeysM.TryGetValue(Binds.Slot4[0].Path, out MSlot4);
				InputMap.KeysM.TryGetValue(Binds.Slot5[0].Path, out MSlot5);
				InputMap.KeysM.TryGetValue(Binds.Slot6[0].Path, out MSlot6);
				InputMap.KeysM.TryGetValue(Binds.Slot7[0].Path, out MSlot7);
				InputMap.KeysM.TryGetValue(Binds.Slot8[0].Path, out MSlot8);
				InputMap.KeysM.TryGetValue(Binds.Slot9[0].Path, out MSlot9);
				if (!KLastWeapon.HasValue && !MLastWeapon.HasValue)
				{
					InputMap.Keys.TryGetValue(Binds.PrevVariation[0].Path, out KLastWeapon);
					InputMap.KeysM.TryGetValue(Binds.PrevVariation[0].Path, out MLastWeapon);
				}
			}
			catch (Exception ex)
			{
				Vars.Log.LogError((object)"Unable to convert keys in config. Perhaps mismatch? Perhaps keys are null?Check spelling and replace every null key either with \"\", \"Empty\" or assign a value to it.");
				Vars.Log.LogError((object)ex);
			}
		}

		private static void ConvertJSONToKeys(NewConfig._VRBinds VRConfig)
		{
			//IL_0006: Unknown result type (might be due to invalid IL or missing references)
			//IL_001b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0030: Unknown result type (might be due to invalid IL or missing references)
			//IL_0045: Unknown result type (might be due to invalid IL or missing references)
			try
			{
				ToggleStreamerView = UnityKey(VRConfig.ToggleStreamerView);
				CycleComparison = UnityKey(VRConfig.CycleComparison);
				ToggleAvatarSizeAdj = UnityKey(VRConfig.ToggleAvatarSizeAdj);
				RecalibrateHeight = UnityKey(VRConfig.RecalibrateHeight);
			}
			catch (Exception ex)
			{
				Vars.Log.LogError((object)"Number 2 Unable to convert keys in config. Perhaps mismatch? Perhaps keys are null?Check spelling and replace every null key either with \"\", \"Empty\" or assign a value to it.");
				Vars.Log.LogError((object)ex);
			}
		}

		private static KeyCode UnityKey(string Name)
		{
			//IL_001f: Unknown result type (might be due to invalid IL or missing references)
			if (Name == null || !InputMap.UKeys.TryGetValue(Name, out var value) || !value.HasValue)
			{
				return (KeyCode)0;
			}
			return value.Value;
		}
	}
	public class NewConfig
	{
		public class _VRBinds
		{
			[JsonProperty("Toggle streamer view")]
			public string ToggleStreamerView { get; set; } = "T";

			[JsonProperty("Headset comparison")]
			public string CycleComparison { get; set; } = "Y";

			[JsonProperty("Toggle Size Adjustment")]
			public string ToggleAvatarSizeAdj { get; set; } = "J";

			[JsonProperty("Recalibrate height")]
			public string RecalibrateHeight { get; set; } = "H";
		}

		public class _Controllers
		{
			[JsonProperty("Deadzone (from 0 to 1)")]
			public float Deadzone { get; set; } = 0.4f;

			[JsonProperty("Smooth turning speed")]
			public float SmoothSpeed { get; set; } = 300f;

			[JsonProperty("Snap turning")]
			public bool SnapTurn { get; set; }

			[JsonProperty("Snap turning angles")]
			public float SnapAngles { get; set; } = 45f;

			[JsonProperty("Draw controller models")]
			public bool DrawControllers { get; set; } = true;

			[JsonProperty("Enable Controller Rumble")]
			public bool EnableHaptics { get; set; } = true;

			[JsonProperty("Rumble strength")]
			public float RumbleStrength { get; set; } = 1f;

			[JsonProperty("Hit and kill rumble")]
			public bool HitRumble { get; set; } = true;

			[JsonProperty("Damage rumble")]
			public bool DamageRumble { get; set; } = true;

			[JsonProperty("Menu rumble")]
			public bool MenuRumble { get; set; } = true;

			[JsonProperty("Parry warning")]
			public bool ParryWarning { get; set; } = true;

			[JsonProperty("Adaptive triggers")]
			public bool AdaptiveTriggers { get; set; } = true;

			[JsonProperty("Left handed")]
			public bool LeftHanded { get; set; }

			[JsonProperty("Left handed (BROKEN)")]
			private bool LegacyLeftHanded
			{
				set
				{
					if (value)
					{
						LeftHanded = true;
					}
				}
			}

			[JsonProperty("Finger tracking")]
			public bool FingerTracking { get; set; }

			[JsonProperty("Windows key presses")]
			public bool WindowsKeyPresses { get; set; }
		}

		public class _CBS
		{
			[JsonProperty("Enable Crosshair")]
			public bool EnableCrosshair { get; set; } = true;

			[JsonProperty("Crosshair distance")]
			public float CrosshairDistance { get; set; } = 8f;

			[JsonProperty("Whiplash aim marker")]
			public bool WhiplashMarker { get; set; } = true;
		}

		public class _MBP
		{
			[JsonProperty("Required speed to punch")]
			public float PunchingSpeed { get; set; } = 4f;

			[JsonProperty("Coin follows the throw")]
			public bool CoinThrow { get; set; } = true;

			[JsonProperty("Parry aim")]
			public string ParryAim { get; set; } = "Eyes";
		}

		public class _VRBody
		{
			[JsonProperty("Enable arms IK")]
			public bool EnableArmsIK { get; set; } = true;

			[JsonProperty("Enable legs IK")]
			public bool EnableLegsIK { get; set; } = true;
		}

		public class _UIInteraction
		{
			public class _ControllerLines
			{
				[JsonProperty("Enabled")]
				public bool Enabled { get; set; } = true;

				[JsonProperty("Starting transparency (from 0 to 1)")]
				public float StartAlpha { get; set; } = 0.4f;

				[JsonProperty("End transparency (from 0 to 1)")]
				public float EndAlpha { get; set; } = 0.1f;
			}

			[JsonProperty("UI Size (from 0 to 0.1)")]
			public float UISize { get; set; } = 0.04f;

			[JsonProperty("Controller-based")]
			public bool ControllerBased { get; set; } = true;

			[JsonProperty("HUD on wrist")]
			public bool WristHud { get; set; } = true;

			[JsonProperty("Controller Lines")]
			public _ControllerLines ControllerLines { get; set; }

			public _UIInteraction()
			{
				ControllerLines = new _ControllerLines();
			}
		}

		public class _Comfort
		{
			[JsonProperty("Comfort vignette")]
			public bool Vignette { get; set; }

			[JsonProperty("Comfort vignette strength")]
			public float VignetteStrength { get; set; } = 0.85f;

			[JsonProperty("Screen flashes")]
			public string ScreenFlashes { get; set; } = "Reduced";

			[JsonProperty("Low health warning")]
			public bool LowHealthWarning { get; set; } = true;

			[JsonProperty("Weapon charge shake")]
			public float WeaponShake { get; set; } = 0.1f;
		}

		public class _Gestures
		{
			[JsonProperty("Slam with fists")]
			public bool SlamWithFists { get; set; }

			[JsonProperty("Slam fist speed (m/s)")]
			public float SlamSpeed { get; set; } = 2f;

			[JsonProperty("Pull the whiplash by yanking")]
			public bool YankWhiplash { get; set; }

			[JsonProperty("Yank speed (m/s)")]
			public float YankSpeed { get; set; } = 1.5f;

			[JsonProperty("Slide by crouching")]
			public bool CrouchSlide { get; set; }

			[JsonProperty("Crouch depth (meters)")]
			public float CrouchDepth { get; set; } = 0.3f;
		}

		public class _StreamerView
		{
			[JsonProperty("On")]
			public bool On { get; set; }

			[JsonProperty("Field of view (horizontal degrees)")]
			public float FieldOfView { get; set; } = 90f;

			[JsonProperty("Turn smoothing")]
			public string TurnSmoothing { get; set; } = "Medium";

			[JsonProperty("Level horizon (0 to 1)")]
			public float LevelHorizon { get; set; } = 1f;

			[JsonProperty("Frame rate (0 = headset rate)")]
			public int FrameRate { get; set; } = 60;

			[JsonProperty("Height in pixels")]
			public int Height { get; set; } = 1080;

			[JsonProperty("HUD")]
			public string Hud { get; set; } = "Medium";

			[JsonProperty("Overlay")]
			public string Overlay { get; set; } = "Always";

			[JsonProperty("Headset comparison")]
			public string Comparison { get; set; } = "Off";
		}

		public class _Misc
		{
			[JsonProperty("Game blood and oil stains (experimental)")]
			public bool Stains { get; set; }
		}

		public const int CurrentConfigVersion = 24;

		[JsonIgnore]
		public UKBindings.ModifiedActions UKBinds { get; set; }

		[JsonProperty("VRTRAKILL Keybinds")]
		public _VRBinds VRBinds { get; set; }

		[JsonProperty("Start in VR")]
		public string StartInVR { get; set; } = "Auto";

		[JsonProperty("Movement multiplier")]
		public float MovementMultiplier { get; set; } = 1f;

		[JsonProperty("Jump multiplier")]
		public float JumpMultiplier { get; set; } = 1f;

		[JsonProperty("Height offset (meters)")]
		public float HeightOffset { get; set; }

		[JsonProperty("Auto height")]
		public bool AutoHeight { get; set; } = true;

		[JsonProperty("Config version")]
		public int? ConfigVersion { get; set; }

		[JsonProperty("Controller Settings")]
		public _Controllers Controllers { get; set; }

		[JsonProperty("CBS Settings")]
		public _CBS CBS { get; set; }

		[JsonProperty("Enable movement-based punching")]
		public bool EnableMBP { get; set; } = true;

		[JsonProperty("MBP Settings")]
		public _MBP MBP { get; set; }

		[JsonProperty("Enable VRAvatar")]
		public bool EnableVRBody { get; set; }

		[JsonProperty("VRAvatar Settings")]
		public _VRBody VRBody { get; set; }

		[JsonProperty("UI Interaction Settings")]
		public _UIInteraction UIInteraction { get; set; }

		[JsonProperty("Comfort Settings")]
		public _Comfort Comfort { get; set; }

		[JsonProperty("Movement gestures")]
		public _Gestures Gestures { get; set; }

		[JsonProperty("Streamer view")]
		public _StreamerView StreamerView { get; set; }

		[JsonProperty("Miscellaneous/Unsorted Settings")]
		public _Misc Misc { get; set; }

		[JsonProperty("Auto update")]
		public string AutoUpdate { get; set; } = "Notify";

		public bool Migrate()
		{
			if (ConfigVersion >= 24)
			{
				return false;
			}
			if ((ConfigVersion ?? 1) < 2)
			{
				if (Math.Abs(MovementMultiplier - 0.575f) < 0.0001f)
				{
					MovementMultiplier = 1f;
				}
				if (Math.Abs(MBP.PunchingSpeed - 7.5f) < 0.0001f)
				{
					MBP.PunchingSpeed = new _MBP().PunchingSpeed;
				}
			}
			if ((ConfigVersion ?? 1) < 10 && UIInteraction != null && Math.Abs(UIInteraction.UISize - 0.0625f) < 0.0001f)
			{
				UIInteraction.UISize = new _UIInteraction().UISize;
			}
			ConfigVersion = 24;
			return true;
		}

		public void FillMissingSections()
		{
			if (UKBinds == null)
			{
				UKBindings.ModifiedActions modifiedActions = (UKBinds = UKBindings.GetBinds());
			}
			if (VRBinds == null)
			{
				_VRBinds vRBinds = (VRBinds = new _VRBinds());
			}
			if (Controllers == null)
			{
				_Controllers controllers = (Controllers = new _Controllers());
			}
			if (CBS == null)
			{
				_CBS cBS = (CBS = new _CBS());
			}
			if (MBP == null)
			{
				_MBP mBP = (MBP = new _MBP());
			}
			if (VRBody == null)
			{
				_VRBody vRBody = (VRBody = new _VRBody());
			}
			_UIInteraction uIInteraction;
			if (UIInteraction == null)
			{
				uIInteraction = (UIInteraction = new _UIInteraction());
			}
			uIInteraction = UIInteraction;
			if (uIInteraction.ControllerLines == null)
			{
				_UIInteraction._ControllerLines controllerLines = (uIInteraction.ControllerLines = new _UIInteraction._ControllerLines());
			}
			if (StreamerView == null)
			{
				_StreamerView streamerView = (StreamerView = new _StreamerView());
			}
			if (Comfort == null)
			{
				_Comfort comfort = (Comfort = new _Comfort());
			}
			if (Misc == null)
			{
				_Misc misc = (Misc = new _Misc());
			}
		}

		public NewConfig()
		{
			UKBinds = UKBindings.GetBinds();
			VRBinds = new _VRBinds();
			Controllers = new _Controllers();
			CBS = new _CBS();
			MBP = new _MBP();
			VRBody = new _VRBody();
			UIInteraction = new _UIInteraction();
			StreamerView = new _StreamerView();
			Gestures = new _Gestures();
			Comfort = new _Comfort();
			Misc = new _Misc();
		}
	}
	public class UKBindings
	{
		public class ModifiedActions
		{
			[JsonProperty("Dodge")]
			public ModifiedAction[] Dodge { get; set; }

			[JsonProperty("Slide")]
			public ModifiedAction[] Slide { get; set; }

			[JsonProperty("Jump")]
			public ModifiedAction[] Jump { get; set; }

			[JsonProperty("Change Fist")]
			public ModifiedAction[] ChangeFist { get; set; }

			[JsonProperty("Punch")]
			public ModifiedAction[] Punch { get; set; }

			[JsonProperty("Hook")]
			public ModifiedAction[] Hook { get; set; }

			[JsonProperty("Primary Fire")]
			public ModifiedAction[] PrimaryFire { get; set; }

			[JsonProperty("Secondary Fire")]
			public ModifiedAction[] SecondaryFire { get; set; }

			[JsonProperty("Next Variation")]
			public ModifiedAction[] ChangeVariation { get; set; }

			[JsonProperty("Previous Variation")]
			public ModifiedAction[] PrevVariation { get; set; }

			[JsonProperty("Slot 0")]
			public ModifiedAction[] Slot0 { get; set; }

			[JsonProperty("Revolver")]
			public ModifiedAction[] Slot1 { get; set; }

			[JsonProperty("Shotgun")]
			public ModifiedAction[] Slot2 { get; set; }

			[JsonProperty("Nailgun")]
			public ModifiedAction[] Slot3 { get; set; }

			[JsonProperty("Railcannon")]
			public ModifiedAction[] Slot4 { get; set; }

			[JsonProperty("Rocket Launcher")]
			public ModifiedAction[] Slot5 { get; set; }

			[JsonProperty("Spawner Arm")]
			public ModifiedAction[] Slot6 { get; set; }

			[JsonProperty("Slot 7")]
			public ModifiedAction[] Slot7 { get; set; }

			[JsonProperty("Slot 8")]
			public ModifiedAction[] Slot8 { get; set; }

			[JsonProperty("Slot 9")]
			public ModifiedAction[] Slot9 { get; set; }

			[JsonProperty("Next Weapon")]
			public ModifiedAction[] NextWeapon { get; set; }

			[JsonProperty("Previous Weapon")]
			public ModifiedAction[] PrevWeapon { get; set; }

			[JsonProperty("Last Used Weapon")]
			public ModifiedAction[] LastWeapon { get; set; }

			public ModifiedActions()
			{
				Dodge = new ModifiedAction[1]
				{
					new ModifiedAction("LeftShift")
				};
				Slide = new ModifiedAction[1]
				{
					new ModifiedAction("LeftControl")
				};
				Jump = new ModifiedAction[1]
				{
					new ModifiedAction("Space")
				};
				ChangeFist = new ModifiedAction[1]
				{
					new ModifiedAction("G")
				};
				Punch = new ModifiedAction[1]
				{
					new ModifiedAction("F")
				};
				Hook = new ModifiedAction[1]
				{
					new ModifiedAction("R")
				};
				PrimaryFire = new ModifiedAction[1]
				{
					new ModifiedAction("LMB")
				};
				SecondaryFire = new ModifiedAction[1]
				{
					new ModifiedAction("RMB")
				};
				ChangeVariation = new ModifiedAction[1]
				{
					new ModifiedAction("E")
				};
				PrevVariation = new ModifiedAction[1]
				{
					new ModifiedAction("Q")
				};
				Slot0 = new ModifiedAction[1]
				{
					new ModifiedAction("0")
				};
				Slot1 = new ModifiedAction[1]
				{
					new ModifiedAction("1")
				};
				Slot2 = new ModifiedAction[1]
				{
					new ModifiedAction("2")
				};
				Slot3 = new ModifiedAction[1]
				{
					new ModifiedAction("3")
				};
				Slot4 = new ModifiedAction[1]
				{
					new ModifiedAction("4")
				};
				Slot5 = new ModifiedAction[1]
				{
					new ModifiedAction("5")
				};
				Slot6 = new ModifiedAction[1]
				{
					new ModifiedAction("6")
				};
				Slot7 = new ModifiedAction[1]
				{
					new ModifiedAction("7")
				};
				Slot8 = new ModifiedAction[1]
				{
					new ModifiedAction("8")
				};
				Slot9 = new ModifiedAction[1]
				{
					new ModifiedAction("9")
				};
				NextWeapon = new ModifiedAction[1]
				{
					new ModifiedAction("")
				};
				PrevWeapon = new ModifiedAction[1]
				{
					new ModifiedAction("")
				};
				LastWeapon = new ModifiedAction[1]
				{
					new ModifiedAction("")
				};
			}
		}

		public class ModifiedAction
		{
			[JsonProperty("path")]
			public string LocalPath { get; set; }

			[JsonProperty("isComposite")]
			public bool IsComposite { get; set; }

			[JsonIgnore]
			public string Path => GetPath();

			public string GetPath()
			{
				if (LocalPath == null)
				{
					return string.Empty;
				}
				if (LocalPath.StartsWith("<") && LocalPath.IndexOf(">/") > 0)
				{
					return LocalPath.Substring(LocalPath.IndexOf(">/") + 2);
				}
				return LocalPath;
			}

			public ModifiedAction(string LocalPath)
			{
				this.LocalPath = LocalPath;
			}
		}

		private static readonly Dictionary<string, string> LegacyNames = new Dictionary<string, string>
		{
			{ "Slot 1", "Revolver" },
			{ "Slot 2", "Shotgun" },
			{ "Slot 3", "Nailgun" },
			{ "Slot 4", "Railcannon" },
			{ "Slot 5", "Rocket Launcher" },
			{ "Change Variation", "Next Variation" },
			{ "Last Weapon", "Last Used Weapon" }
		};

		[JsonProperty("controlScheme")]
		public string ControlScheme { get; set; } = "Keyboard & Mouse";

		[JsonProperty("modifiedActions")]
		public ModifiedActions Actions { get; set; }

		public static ModifiedActions GetBinds()
		{
			ModifiedActions modifiedActions = new ModifiedActions();
			string path = PluginInfo.GamePath + "\\Preferences\\Binds.json";
			if (!File.Exists(path))
			{
				return modifiedActions;
			}
			UKBindings uKBindings;
			try
			{
				JObject val = JObject.Parse(File.ReadAllText(path));
				JToken obj = val["modifiedActions"];
				JObject val2 = (JObject)(object)((obj is JObject) ? obj : null);
				if (val2 != null)
				{
					foreach (KeyValuePair<string, string> legacyName in LegacyNames)
					{
						if (val2[legacyName.Key] != null && val2[legacyName.Value] == null)
						{
							val2[legacyName.Value] = val2[legacyName.Key];
							val2.Remove(legacyName.Key);
						}
					}
				}
				uKBindings = ((JToken)val).ToObject<UKBindings>();
			}
			catch (Exception ex) when (ex is IOException || ex is JsonException || ex is UnauthorizedAccessException)
			{
				Vars.Log.LogWarning((object)("Unable to read Binds.json, using default keys: " + ex.Message));
				return modifiedActions;
			}
			if (uKBindings == null || uKBindings.Actions == null)
			{
				return modifiedActions;
			}
			PropertyInfo[] properties = modifiedActions.GetType().GetProperties();
			for (int i = 0; i < properties.Length; i++)
			{
				PropertyInfo[] properties2 = uKBindings.Actions.GetType().GetProperties();
				foreach (PropertyInfo propertyInfo in properties2)
				{
					if (((MemberInfo)properties[i]).GetCustomAttribute<JsonPropertyAttribute>().PropertyName == ((MemberInfo)propertyInfo).GetCustomAttribute<JsonPropertyAttribute>().PropertyName && properties[i].GetValue(modifiedActions) != propertyInfo.GetValue(uKBindings.Actions) && propertyInfo.GetValue(uKBindings.Actions) is ModifiedAction[] array)
					{
						ModifiedAction[] array2 = Array.FindAll(array, (ModifiedAction A) => A != null && !A.IsComposite && !string.IsNullOrEmpty(A.LocalPath));
						if (array2 != null && array2.Length != 0)
						{
							properties[i].SetValue(modifiedActions, array2);
						}
					}
				}
			}
			uKBindings.Actions = modifiedActions;
			return uKBindings.Actions;
		}
	}
}
namespace Plugin.Patches.Visual
{
	internal class A
	{
	}
	[HarmonyPatch]
	internal sealed class PatchGunHands
	{
		[HarmonyPatch(typeof(Shotgun))]
		private static class ShotgunH
		{
			private static Vector3 Rotation = new Vector3(0f, 180f, 0f);

			private static Vector3 Scale = new Vector3(15f, 15f, 15f);

			[HarmonyPostfix]
			[HarmonyPatch("Start")]
			private static void AddHand(Shotgun __instance)
			{
				//IL_0030: Unknown result type (might be due to invalid IL or missing references)
				//IL_004a: Unknown result type (might be due to invalid IL or missing references)
				//IL_006c: Unknown result type (might be due to invalid IL or missing references)
				//IL_0084: Unknown result type (might be due to invalid IL or missing references)
				//IL_0098: Unknown result type (might be due to invalid IL or missing references)
				//IL_009d: Unknown result type (might be due to invalid IL or missing references)
				//IL_00b4: Unknown result type (might be due to invalid IL or missing references)
				//IL_00cb: Unknown result type (might be due to invalid IL or missing references)
				Transform val = Object.Instantiate<Transform>(Assets.HandPose_Shotgun.transform);
				val.SetParent(((Component)__instance).transform.GetChild(2).GetChild(0).GetChild(0), false);
				val.localPosition = Vector3.zero;
				val.localEulerAngles = new Vector3(0f, 0f, 270f);
				val.GetChild(1).GetChild(0).position = ((Component)val.parent).transform.position;
				Transform child = val.GetChild(1).GetChild(0);
				child.localPosition += new Vector3(-0.005f, -0.008f, -0.005f);
				val.GetChild(1).GetChild(0).localEulerAngles = Rotation;
				val.GetChild(1).GetChild(0).localScale = Scale;
			}
		}

		[HarmonyPatch(typeof(Nailgun))]
		private static class NailgunH
		{
			private static Vector3 Position = new Vector3(-0.0008f, -0.0053f, 0.0003f);

			private static Vector3 Rotation = new Vector3(0f, 180f, 0f);

			private static Vector3 Scale = new Vector3(0.035f, 0.035f, 0.035f);

			private static Vector3 AltPosition = new Vector3(0.001f, -0.006f, 0.002f);

			private static Vector3 AltRotation = new Vector3(0f, 0f, 0f);

			private static Vector3 AltScale = new Vector3(3.5f, 3.5f, 3.5f);

			[HarmonyPostfix]
			[HarmonyPatch("Start")]
			private static void AddHand(Nailgun __instance)
			{
				//IL_00b5: Unknown result type (might be due to invalid IL or missing references)
				//IL_00c0: Unknown result type (might be due to invalid IL or missing references)
				//IL_00cb: Unknown result type (might be due to invalid IL or missing references)
				//IL_00e1: Unknown result type (might be due to invalid IL or missing references)
				//IL_0037: Unknown result type (might be due to invalid IL or missing references)
				//IL_004e: Unknown result type (might be due to invalid IL or missing references)
				//IL_0065: Unknown result type (might be due to invalid IL or missing references)
				//IL_007b: Unknown result type (might be due to invalid IL or missing references)
				if (__instance.altVersion)
				{
					Transform obj = Object.Instantiate<Transform>(Assets.HandPose_Sawblade.transform);
					obj.SetParent(((Component)__instance).transform.GetChild(0).GetChild(0).GetChild(0), false);
					obj.localPosition = Vector3.zero;
					obj.GetChild(1).GetChild(0).localPosition = AltPosition;
					obj.GetChild(1).GetChild(0).localEulerAngles = AltRotation;
					obj.GetChild(1).GetChild(0).localScale = AltScale;
				}
				else
				{
					Transform obj2 = Object.Instantiate<Transform>(Assets.HandPose_Nailgun.transform);
					obj2.SetParent(((Component)__instance).transform.GetChild(0).GetChild(0).GetChild(0), false);
					obj2.localPosition = Vector3.zero;
					obj2.localPosition = Position;
					obj2.localEulerAngles = Rotation;
					obj2.GetChild(1).GetChild(0).localScale = Scale;
				}
			}
		}

		[HarmonyPatch(typeof(Railcannon))]
		private static class RailgunH
		{
			private static Vector3 Rotation = new Vector3(30f, 180f, 0f);

			private static Vector3 Scale = new Vector3(3.5f, 3.5f, 3.5f);

			[HarmonyPostfix]
			[HarmonyPatch("Start")]
			private static void AddHand(Railcannon __instance)
			{
				//IL_0030: Unknown result type (might be due to invalid IL or missing references)
				//IL_0052: Unknown result type (might be due to invalid IL or missing references)
				//IL_006a: Unknown result type (might be due to invalid IL or missing references)
				//IL_007e: Unknown result type (might be due to invalid IL or missing references)
				//IL_0083: Unknown result type (might be due to invalid IL or missing references)
				//IL_009a: Unknown result type (might be due to invalid IL or missing references)
				//IL_00b1: Unknown result type (might be due to invalid IL or missing references)
				Transform val = Object.Instantiate<Transform>(Assets.HandPose_Railgun.transform);
				val.SetParent(((Component)__instance).transform.GetChild(0).GetChild(0).GetChild(0), false);
				val.localPosition = Vector3.zero;
				val.GetChild(1).GetChild(0).position = ((Component)val.parent).transform.position;
				Transform child = val.GetChild(1).GetChild(0);
				child.localPosition += new Vector3(-0.001f, -0.003f, 0f);
				val.GetChild(1).GetChild(0).localEulerAngles = Rotation;
				val.GetChild(1).GetChild(0).localScale = Scale;
			}
		}
	}
	[HarmonyPatch]
	internal class PatchGunTransform
	{
		[HarmonyPatch(typeof(Revolver))]
		private static class RevolverT
		{
			private static Vector3 Position = new Vector3(0.05f, -0.1f, 0.6f);

			private static Vector3 Rotation = default(Vector3);

			private static Vector3 Scale = new Vector3(0.1f, 0.1f, 0.1f);

			private static Vector3 AltPosition = new Vector3(0.05f, -0.075f, 0.5f);

			private static Vector3 AltRotation = default(Vector3);

			private static Vector3 AltScale = new Vector3(0.085f, 0.085f, 0.085f);

			private static Vector3 HandOffsetRotation = new Vector3(0f, -90f, -90f);

			[HarmonyPostfix]
			[HarmonyPatch("Start")]
			private static void Retransform(Revolver __instance)
			{
				//IL_001e: Unknown result type (might be due to invalid IL or missing references)
				//IL_0023: Unknown result type (might be due to invalid IL or missing references)
				//IL_005d: Unknown result type (might be due to invalid IL or missing references)
				//IL_0062: Unknown result type (might be due to invalid IL or missing references)
				//IL_0067: Unknown result type (might be due to invalid IL or missing references)
				//IL_0042: Unknown result type (might be due to invalid IL or missing references)
				//IL_0047: Unknown result type (might be due to invalid IL or missing references)
				//IL_004c: Unknown result type (might be due to invalid IL or missing references)
				VRWeaponRotationLock vRWeaponRotationLock = ((Component)__instance).gameObject.AddComponent<VRWeaponRotationLock>();
				Arm arm = Arm.FeedbackerPreset(((Component)__instance).transform);
				vRWeaponRotationLock.Arm = arm;
				vRWeaponRotationLock.OffsetRot = HandOffsetRotation;
				((Behaviour)__instance.wpos).enabled = false;
				if (__instance.altVersion)
				{
					ApplyTransform(ref __instance.wpos, AltPosition, AltRotation, AltScale);
				}
				else
				{
					ApplyTransform(ref __instance.wpos, Position, Rotation, Scale);
				}
			}
		}

		[HarmonyPatch(typeof(Shotgun))]
		private static class ShotgunT
		{
			private static Vector3 Position = new Vector3(-0.02f, 0.2f, 0.26f);

			private static Vector3 Rotation = default(Vector3);

			private static Vector3 Scale = new Vector3(0.1f, 0.1f, 0.1f);

			[HarmonyPostfix]
			[HarmonyPatch("Start")]
			private static void Retransform(Shotgun __instance)
			{
				//IL_0006: Unknown result type (might be due to invalid IL or missing references)
				//IL_000b: Unknown result type (might be due to invalid IL or missing references)
				//IL_0010: Unknown result type (might be due to invalid IL or missing references)
				ApplyTransform(ref __instance.wpos, Position, Rotation, Scale);
			}

			[HarmonyPostfix]
			[HarmonyPatch("Update")]
			private static void Update(Shotgun __instance)
			{
				//IL_0072: Unknown result type (might be due to invalid IL or missing references)
				//IL_0088: Unknown result type (might be due to invalid IL or missing references)
				//IL_0097: Unknown result type (might be due to invalid IL or missing references)
				//IL_002a: Unknown result type (might be due to invalid IL or missing references)
				//IL_0040: Unknown result type (might be due to invalid IL or missing references)
				//IL_004f: Unknown result type (might be due to invalid IL or missing references)
				if (__instance.anim.GetBool("Sawing"))
				{
					((Component)__instance).transform.GetChild(2).localEulerAngles = new Vector3(((Component)__instance).transform.GetChild(2).localEulerAngles.x, ((Component)__instance).transform.GetChild(2).localEulerAngles.y, 25f);
				}
				else
				{
					((Component)__instance).transform.GetChild(2).localEulerAngles = new Vector3(((Component)__instance).transform.GetChild(2).localEulerAngles.x, ((Component)__instance).transform.GetChild(2).localEulerAngles.y, 0f);
				}
			}
		}

		[HarmonyPatch(typeof(ShotgunHammer))]
		private static class ShotgunHammerT
		{
			private static Vector3 Position = new Vector3(0f, -0.15f, 0.25f);

			private static Vector3 Rotation = default(Vector3);

			private static Vector3 Scale = new Vector3(0.45f, 0.45f, 0.45f);

			[HarmonyPostfix]
			[HarmonyPatch("OnEnable")]
			private static void Retransform(ShotgunHammer __instance)
			{
				//IL_0006: Unknown result type (might be due to invalid IL or missing references)
				//IL_000b: Unknown result type (might be due to invalid IL or missing references)
				//IL_0010: Unknown result type (might be due to invalid IL or missing references)
				//IL_0035: Unknown result type (might be due to invalid IL or missing references)
				ApplyTransform(ref __instance.wpos, Position, Rotation, Scale);
				((Component)__instance).transform.GetChild(1).localRotation = Quaternion.Euler(0f, 90f, 0f);
				((Behaviour)((Component)__instance).gameObject.GetComponent<Animator>()).enabled = false;
			}

			[HarmonyPostfix]
			[HarmonyPatch("LateUpdate")]
			private static void More(ShotgunHammer __instance)
			{
				//IL_0021: Unknown result type (might be due to invalid IL or missing references)
				//IL_004c: Unknown result type (might be due to invalid IL or missing references)
				((Component)__instance).transform.GetChild(1).GetChild(0).localPosition = new Vector3(0.375f, 0.415f, 0.3f);
				((Component)__instance).transform.GetChild(1).GetChild(0).localEulerAngles = new Vector3(60f, 0f, 0f);
			}
		}

		[HarmonyPatch(typeof(Nailgun))]
		private static class NailgunT
		{
			private static Vector3 Position = new Vector3(-0.165f, 0.1f, 0.045f);

			private static Vector3 Rotation = default(Vector3);

			private static Vector3 Scale = new Vector3(0.4f, 0.3275f, 0.4f);

			private static Vector3 AltPosition = new Vector3(-0.165f, 0.2f, 0.065f);

			private static Vector3 AltRotation = default(Vector3);

			private static Vector3 AltScale = new Vector3(0.35f, 0.35f, 0.35f);

			[HarmonyPostfix]
			[HarmonyPatch("Start")]
			private static void Retransform(Nailgun __instance)
			{
				//IL_0029: Unknown result type (might be due to invalid IL or missing references)
				//IL_002e: Unknown result type (might be due to invalid IL or missing references)
				//IL_0033: Unknown result type (might be due to invalid IL or missing references)
				//IL_000e: Unknown result type (might be due to invalid IL or missing references)
				//IL_0013: Unknown result type (might be due to invalid IL or missing references)
				//IL_0018: Unknown result type (might be due to invalid IL or missing references)
				if (__instance.altVersion)
				{
					ApplyTransform(ref __instance.wpos, AltPosition, AltRotation, AltScale);
				}
				else
				{
					ApplyTransform(ref __instance.wpos, Position, Rotation, Scale);
				}
			}
		}

		[HarmonyPatch(typeof(Railcannon))]
		private static class RailcannonT
		{
			private static Vector3 Position = new Vector3(-0.15f, 0.15f, -0.175f);

			private static Vector3 Scale = new Vector3(0.25f, 0.25f, 0.25f);

			[HarmonyPostfix]
			[HarmonyPatch("Start")]
			private static void Retransform(Railcannon __instance)
			{
				//IL_0007: Unknown result type (might be due to invalid IL or missing references)
				//IL_000c: Unknown result type (might be due to invalid IL or missing references)
				//IL_0011: Unknown result type (might be due to invalid IL or missing references)
				//IL_0016: Unknown result type (might be due to invalid IL or missing references)
				//IL_0021: Unknown result type (might be due to invalid IL or missing references)
				//IL_0026: Unknown result type (might be due to invalid IL or missing references)
				WeaponPos wpos = __instance.wpos;
				wpos.defaultPos += Position;
				__instance.wpos.defaultScale = Scale;
			}
		}

		[HarmonyPatch(typeof(RocketLauncher))]
		private static class RocketLauncherT
		{
			private static Vector3 Position = new Vector3(0f, 0.15f, -0.1f);

			private static Vector3 Rotation = default(Vector3);

			private static Vector3 Scale = new Vector3(0.65f, 0.65f, 0.65f);

			[HarmonyPostfix]
			[HarmonyPatch("Start")]
			private static void Retransform(RocketLauncher __instance)
			{
				//IL_0006: Unknown result type (might be due to invalid IL or missing references)
				//IL_000b: Unknown result type (might be due to invalid IL or missing references)
				//IL_0010: Unknown result type (might be due to invalid IL or missing references)
				//IL_0033: Unknown result type (might be due to invalid IL or missing references)
				ApplyTransform(((Component)__instance).GetComponent<WeaponPos>(), Position, Rotation, Scale);
				if ((Object)(object)VRigController.Instance != (Object)null)
				{
					((Component)__instance).transform.GetChild(0).localPosition = Vector3.zero;
				}
			}
		}

		[HarmonyPatch(typeof(Chainsaw))]
		private static class ChainsawT
		{
			[HarmonyPostfix]
			[HarmonyPatch("Start")]
			private static void ChainSaw(Chainsaw __instance)
			{
				object lineStartTransform;
				if (!((Object)(object)MonoSingleton<GunControl>.Instance?.currentWeapon != (Object)null))
				{
					lineStartTransform = Vars.DominantHand.transform;
				}
				else
				{
					GunControl instance = MonoSingleton<GunControl>.Instance;
					lineStartTransform = ((instance != null) ? instance.currentWeapon.transform : null);
				}
				__instance.lineStartTransform = (Transform)lineStartTransform;
			}
		}

		[HarmonyPatch(typeof(SandboxArm))]
		private static class SandboxArmT
		{
			private static Vector3 Scale = new Vector3(-0.275f, 0.275f, 0.275f);

			[HarmonyPostfix]
			[HarmonyPatch("Awake")]
			private static void Retransform(SandboxArm __instance)
			{
				//IL_002d: Unknown result type (might be due to invalid IL or missing references)
				//IL_0032: Unknown result type (might be due to invalid IL or missing references)
				//IL_003d: Unknown result type (might be due to invalid IL or missing references)
				VRArmController vRArmController = ((Component)__instance).gameObject.AddComponent<VRArmController>();
				Arm arm = Arm.SandboxerPreset(((Component)__instance).transform);
				vRArmController.Arm = arm;
				vRArmController.OffsetPos = new Vector3(-0.15f, -0.3f, -0.55f);
				((Component)__instance).transform.localScale = Scale;
			}
		}

		[HarmonyPatch(typeof(FishingRodWeapon))]
		private static class FishingRodWeaponT
		{
			private static Vector3 Position = new Vector3(0.05f, -0.06f, -0.185f);

			private static Vector3 Rotation = new Vector3(10f, 90f, 20f);

			private static Vector3 Scale = new Vector3(-0.0023f, 0.0023f, 0.0023f);

			[HarmonyPostfix]
			[HarmonyPatch("Awake")]
			private static void Retransform(FishingRodWeapon __instance)
			{
				//IL_0006: Unknown result type (might be due to invalid IL or missing references)
				//IL_000b: Unknown result type (might be due to invalid IL or missing references)
				//IL_0010: Unknown result type (might be due to invalid IL or missing references)
				//IL_0038: Unknown result type (might be due to invalid IL or missing references)
				//IL_003d: Unknown result type (might be due to invalid IL or missing references)
				ApplyTransform(((Component)__instance).GetComponent<WeaponPos>(), Position, Rotation, Scale);
				VRWeaponRotationLock vRWeaponRotationLock = ((Component)__instance).gameObject.AddComponent<VRWeaponRotationLock>();
				Arm arm = Arm.FeedbackerPreset(((Component)__instance).transform);
				vRWeaponRotationLock.Arm = arm;
				vRWeaponRotationLock.OffsetPos = Vector3.zero;
			}
		}

		[HarmonyPatch(typeof(WeaponIdentifier))]
		private static class WasherT
		{
			private static Vector3 Position = new Vector3(0.065f, -0.075f, -0.175f);

			private static Vector3 Rotation = new Vector3(10f, 90f, 20f);

			private static Vector3 Scale = new Vector3(-0.0025f, 0.0025f, 0.0025f);

			[HarmonyPostfix]
			[HarmonyPatch("Start")]
			private static void Retransform(WeaponIdentifier __instance)
			{
				//IL_0018: Unknown result type (might be due to invalid IL or missing references)
				//IL_001d: Unknown result type (might be due to invalid IL or missing references)
				//IL_0022: Unknown result type (might be due to invalid IL or missing references)
				//IL_004a: Unknown result type (might be due to invalid IL or missing references)
				//IL_004f: Unknown result type (might be due to invalid IL or missing references)
				//IL_0064: Unknown result type (might be due to invalid IL or missing references)
				//IL_0069: Unknown result type (might be due to invalid IL or missing references)
				//IL_007e: Unknown result type (might be due to invalid IL or missing references)
				//IL_0083: Unknown result type (might be due to invalid IL or missing references)
				//IL_00ac: Unknown result type (might be due to invalid IL or missing references)
				//IL_00cb: Unknown result type (might be due to invalid IL or missing references)
				Washer componentInChildren = ((Component)__instance).GetComponentInChildren<Washer>();
				if (Object.op_Implicit((Object)(object)componentInChildren))
				{
					ApplyTransform(((Component)__instance).GetComponent<WeaponPos>(), Position, Rotation, Scale);
					VRWeaponRotationLock vRWeaponRotationLock = ((Component)__instance).gameObject.AddComponent<VRWeaponRotationLock>();
					Arm arm = Arm.FeedbackerPreset(((Component)__instance).transform);
					vRWeaponRotationLock.Arm = arm;
					vRWeaponRotationLock.OffsetPos = Vector3.zero;
					componentInChildren.defaultSprayPos = new Vector3(0.35f, -4.25f, -0.675f);
					componentInChildren.defaultSprayRot = Quaternion.Euler(90f, 0f, 0f);
					CorrectCameraView componentInChildren2 = ((Component)__instance).GetComponentInChildren<CorrectCameraView>();
					if (Object.op_Implicit((Object)(object)componentInChildren2))
					{
						((Component)componentInChildren2).transform.localPosition = new Vector3(0.35f, -4.25f, -0.675f);
						((Component)componentInChildren2).transform.localEulerAngles = new Vector3(90f, 0f, 0f);
						((Behaviour)componentInChildren2).enabled = false;
					}
				}
			}
		}

		[HarmonyPatch(typeof(WeaponIdentifier))]
		private static class VacuumT
		{
			private static Vector3 Position = new Vector3(0f, -0.35f, 2.15f);

			private static Vector3 Rotation = new Vector3(0f, 90f, 20f);

			private static Vector3 Scale = new Vector3(0.125f, 0.125f, 0.125f);

			[HarmonyPostfix]
			[HarmonyPatch("Start")]
			private static void Retransform(WeaponIdentifier __instance)
			{
				//IL_0013: Unknown result type (might be due to invalid IL or missing references)
				//IL_0018: Unknown result type (might be due to invalid IL or missing references)
				//IL_001d: Unknown result type (might be due to invalid IL or missing references)
				//IL_0045: Unknown result type (might be due to invalid IL or missing references)
				//IL_004a: Unknown result type (might be due to invalid IL or missing references)
				if (Object.op_Implicit((Object)(object)((Component)__instance).GetComponentInChildren<Vacuum>()))
				{
					ApplyTransform(((Component)__instance).GetComponent<WeaponPos>(), Position, Rotation, Scale);
					VRWeaponRotationLock vRWeaponRotationLock = ((Component)__instance).gameObject.AddComponent<VRWeaponRotationLock>();
					Arm arm = Arm.FeedbackerPreset(((Component)__instance).transform);
					vRWeaponRotationLock.Arm = arm;
					vRWeaponRotationLock.OffsetPos = Vector3.zero;
				}
			}
		}

		[HarmonyPrefix]
		[HarmonyPatch(typeof(WeaponPos), "Start")]
		private static void Start(WeaponPos __instance)
		{
			//IL_0002: Unknown result type (might be due to invalid IL or missing references)
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			//IL_000e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0013: Unknown result type (might be due to invalid IL or missing references)
			//IL_001a: Unknown result type (might be due to invalid IL or missing references)
			//IL_001f: Unknown result type (might be due to invalid IL or missing references)
			__instance.middlePos = __instance.defaultPos;
			__instance.middleRot = __instance.defaultRot;
			__instance.middleScale = __instance.defaultScale;
		}

		public static void ApplyTransform(ref WeaponPos WPos, Vector3 Position = default(Vector3), Vector3 EulerAngles = default(Vector3), Vector3 Scale = default(Vector3))
		{
			//IL_000b: Unknown result type (might be due to invalid IL or missing references)
			//IL_000e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0014: Unknown result type (might be due to invalid IL or missing references)
			//IL_0041: Unknown result type (might be due to invalid IL or missing references)
			//IL_0044: Unknown result type (might be due to invalid IL or missing references)
			//IL_004a: Unknown result type (might be due to invalid IL or missing references)
			//IL_001e: Unknown result type (might be due to invalid IL or missing references)
			//IL_001f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0026: Unknown result type (might be due to invalid IL or missing references)
			//IL_0027: Unknown result type (might be due to invalid IL or missing references)
			//IL_002e: Unknown result type (might be due to invalid IL or missing references)
			//IL_002f: Unknown result type (might be due to invalid IL or missing references)
			//IL_003b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0074: Unknown result type (might be due to invalid IL or missing references)
			//IL_0077: Unknown result type (might be due to invalid IL or missing references)
			//IL_007d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0054: Unknown result type (might be due to invalid IL or missing references)
			//IL_0055: Unknown result type (might be due to invalid IL or missing references)
			//IL_005c: Unknown result type (might be due to invalid IL or missing references)
			//IL_005d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0069: Unknown result type (might be due to invalid IL or missing references)
			//IL_006a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0087: Unknown result type (might be due to invalid IL or missing references)
			//IL_0088: Unknown result type (might be due to invalid IL or missing references)
			//IL_0094: Unknown result type (might be due to invalid IL or missing references)
			if (!((Object)(object)WPos == (Object)null))
			{
				if (Position != default(Vector3))
				{
					WPos.defaultPos = Position;
					WPos.middlePos = Position;
					WPos.currentDefault = Position;
					((Component)WPos).transform.localPosition = Position;
				}
				if (EulerAngles != default(Vector3))
				{
					WPos.defaultRot = EulerAngles;
					WPos.middleRot = EulerAngles;
					((Component)WPos).transform.localRotation = Quaternion.Euler(EulerAngles);
				}
				if (Scale != default(Vector3))
				{
					WPos.defaultScale = Scale;
					((Component)WPos).transform.localScale = Scale;
				}
			}
		}

		public static void ApplyTransform(WeaponPos WPos, Vector3 Position = default(Vector3), Vector3 EulerAngles = default(Vector3), Vector3 Scale = default(Vector3))
		{
			//IL_000a: Unknown result type (might be due to invalid IL or missing references)
			//IL_000d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0013: Unknown result type (might be due to invalid IL or missing references)
			//IL_0035: Unknown result type (might be due to invalid IL or missing references)
			//IL_0038: Unknown result type (might be due to invalid IL or missing references)
			//IL_003e: Unknown result type (might be due to invalid IL or missing references)
			//IL_001c: Unknown result type (might be due to invalid IL or missing references)
			//IL_001d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0023: Unknown result type (might be due to invalid IL or missing references)
			//IL_0024: Unknown result type (might be due to invalid IL or missing references)
			//IL_002f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0065: Unknown result type (might be due to invalid IL or missing references)
			//IL_0068: Unknown result type (might be due to invalid IL or missing references)
			//IL_006e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0047: Unknown result type (might be due to invalid IL or missing references)
			//IL_0048: Unknown result type (might be due to invalid IL or missing references)
			//IL_004e: Unknown result type (might be due to invalid IL or missing references)
			//IL_004f: Unknown result type (might be due to invalid IL or missing references)
			//IL_005a: Unknown result type (might be due to invalid IL or missing references)
			//IL_005b: Unknown result type (might be due to invalid IL or missing references)
			//IL_0077: Unknown result type (might be due to invalid IL or missing references)
			//IL_0078: Unknown result type (might be due to invalid IL or missing references)
			//IL_0083: Unknown result type (might be due to invalid IL or missing references)
			if (!((Object)(object)WPos == (Object)null))
			{
				if (Position != default(Vector3))
				{
					WPos.defaultPos = Position;
					WPos.middlePos = Position;
					((Component)WPos).transform.localPosition = Position;
				}
				if (EulerAngles != default(Vector3))
				{
					WPos.defaultRot = EulerAngles;
					WPos.middleRot = EulerAngles;
					((Component)WPos).transform.localRotation = Quaternion.Euler(EulerAngles);
				}
				if (Scale != default(Vector3))
				{
					WPos.defaultScale = Scale;
					((Component)WPos).transform.localScale = Scale;
				}
			}
		}
	}
	[HarmonyPatch]
	internal class PatchRemoveArms
	{
		private static bool LoggedShotgunParts;

		[HarmonyPostfix]
		[HarmonyPatch(typeof(Revolver), "Start")]
		private static void RemoveRevolverArm(Revolver __instance)
		{
			try
			{
				((Component)__instance).gameObject.AddComponent<VRArmTransformer>();
			}
			catch (NullReferenceException)
			{
				Vars.Log.LogWarning((object)"Revolver is null???");
			}
		}

		[HarmonyPostfix]
		[HarmonyPatch(typeof(SandboxArm), "Awake")]
		private static void RemoveSandboxArm(SandboxArm __instance)
		{
			try
			{
				((Component)__instance).gameObject.AddComponent<VRArmTransformer>();
			}
			catch (NullReferenceException)
			{
				Vars.Log.LogWarning((object)"Sandbox arm is null???");
			}
		}

		[HarmonyPostfix]
		[HarmonyPatch(typeof(Shotgun), "Start")]
		private static void RemoveShotgunArm(Shotgun __instance)
		{
			Transform val = ((IEnumerable<Transform>)((Component)__instance).GetComponentsInChildren<Transform>(true)).FirstOrDefault((Func<Transform, bool>)((Transform T) => ((Object)T).name == "RightArm"));
			Transform val2 = ((((Component)__instance).transform.childCount > 2) ? ((Component)__instance).transform.GetChild(2) : null);
			if ((Object)(object)val != (Object)null && (!((Object)(object)val2 != (Object)null) || !val2.IsChildOf(val)))
			{
				((Component)val).gameObject.SetActive(false);
			}
			else if (!LoggedShotgunParts)
			{
				LoggedShotgunParts = true;
				Vars.Log.LogWarning((object)("No right arm found to hide on the shotgun; its parts: " + string.Join(", ", from T in ((Component)__instance).GetComponentsInChildren<Transform>(true)
					where Depth(T, ((Component)__instance).transform) <= 3
					select ((Object)T).name) + ". Meshes: " + string.Join(", ", from R in ((Component)__instance).GetComponentsInChildren<Renderer>(true)
					select PathOf(((Component)R).transform, ((Component)__instance).transform) + " (" + ((object)R).GetType().Name + ")") + ". Arm or hand parts: " + string.Join(", ", from T in ((Component)__instance).GetComponentsInChildren<Transform>(true)
					where ((Object)T).name.IndexOf("arm", StringComparison.OrdinalIgnoreCase) >= 0 || ((Object)T).name.IndexOf("hand", StringComparison.OrdinalIgnoreCase) >= 0
					select PathOf(T, ((Component)__instance).transform))));
			}
		}

		private static string PathOf(Transform T, Transform Root)
		{
			string text = ((Object)T).name;
			T = T.parent;
			while ((Object)(object)T != (Object)null && (Object)(object)T != (Object)(object)Root)
			{
				text = ((Object)T).name + "/" + text;
				T = T.parent;
			}
			return text;
		}

		private static int Depth(Transform T, Transform Root)
		{
			int num = 0;
			while ((Object)(object)T != (Object)null && (Object)(object)T != (Object)(object)Root)
			{
				num++;
				T = T.parent;
			}
			return num;
		}

		[HarmonyPostfix]
		[HarmonyPatch(typeof(FishingRodWeapon), "Awake")]
		private static void RemoveFRArm(FishingRodWeapon __instance)
		{
			try
			{
				((Component)__instance).gameObject.AddComponent<VRArmTransformer>();
			}
			catch (NullReferenceException)
			{
				Vars.Log.LogWarning((object)"Fishing rod is null???");
			}
		}
	}
}
namespace Plugin.Patches.ULTRAKILL
{
	internal class A
	{
	}
	[HarmonyPatch]
	internal class CameraControllerTranspiler
	{
		private static IEnumerable<MethodBase> TargetMethods()
		{
			yield return AccessTools.Method(typeof(Chainsaw), "Update", (Type[])null, (Type[])null);
			yield return AccessTools.Method(typeof(Nailgun), "Shoot", (Type[])null, (Type[])null);
			yield return AccessTools.Method(typeof(Nailgun), "ShootMagnet", (Type[])null, (Type[])null);
			yield return AccessTools.Method(typeof(Nailgun), "SuperSaw", (Type[])null, (Type[])null);
			yield return AccessTools.Method(typeof(Railcannon), "Shoot", (Type[])null, (Type[])null);
			yield return AccessTools.Method(typeof(RocketLauncher), "Shoot", (Type[])null, (Type[])null);
			yield return AccessTools.Method(typeof(RocketLauncher), "ShootCannonball", (Type[])null, (Type[])null);
			yield return AccessTools.Method(typeof(RocketLauncher), "ShootNapalm", (Type[])null, (Type[])null);
			yield return AccessTools.Method(typeof(Shotgun), "Shoot", (Type[])null, (Type[])null);
			yield return AccessTools.Method(typeof(Shotgun), "Update", (Type[])null, (Type[])null);
			yield return AccessTools.Method(typeof(Shotgun), "ShootSinks", (Type[])null, (Type[])null);
			yield return AccessTools.Method(typeof(Shotgun), "ShootSaw", new Type[1] { typeof(bool) }, (Type[])null);
			yield return AccessTools.Method(typeof(ShotgunHammer), "ImpactRoutine", (Type[])null, (Type[])null);
			yield return AccessTools.EnumeratorMoveNext((MethodBase)AccessTools.Method(typeof(ShotgunHammer), "ImpactRoutine", (Type[])null, (Type[])null));
			yield return AccessTools.Method(typeof(ShotgunHammer), "HitNade", (Type[])null, (Type[])null);
			yield return AccessTools.Method(typeof(ShotgunHammer), "ImpactEffects", (Type[])null, (Type[])null);
			yield return AccessTools.Method(typeof(ShotgunHammer), "ThrowNade", (Type[])null, (Type[])null);
			yield return AccessTools.Method(typeof(ShotgunHammer), "ShootSaw", new Type[1] { typeof(bool) }, (Type[])null);
			yield return AccessTools.Method(typeof(ShotgunHammer), "Update", (Type[])null, (Type[])null);
			yield return AccessTools.Method(typeof(Vacuum), "SuckObjects", (Type[])null, (Type[])null);
			yield return AccessTools.Method(typeof(Vacuum), "UpdateStuckObject", (Type[])null, (Type[])null);
			yield return AccessTools.Method(typeof(Washer), "Update", (Type[])null, (Type[])null);
			yield return AccessTools.Method(typeof(Revolver), "Shoot", (Type[])null, (Type[])null);
			yield return AccessTools.Method(typeof(SandboxArm), "Update", (Type[])null, (Type[])null);
			yield return AccessTools.Method(typeof(MoveMode), "Update", (Type[])null, (Type[])null);
			yield return AccessTools.Method(typeof(BuildMode), "Update", (Type[])null, (Type[])null);
		}

		private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions, MethodBase original)
		{
			//IL_0026: Unknown result type (might be due to invalid IL or missing references)
			//IL_002c: Expected O, but got Unknown
			//IL_004c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0052: Expected O, but got Unknown
			//IL_005c: Unknown result type (might be due to invalid IL or missing references)
			//IL_008e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0094: Expected O, but got Unknown
			//IL_00fa: Unknown result type (might be due to invalid IL or missing references)
			//IL_0114: Unknown result type (might be due to invalid IL or missing references)
			//IL_011a: Expected O, but got Unknown
			CodeMatch val = new CodeMatch((Func<CodeInstruction, bool>)((CodeInstruction i) => (i.opcode == OpCodes.Ldfld && i.operand is FieldInfo fieldInfo && fieldInfo.FieldType == typeof(CameraController)) || (i.opcode == OpCodes.Call && i.operand is MethodInfo methodInfo && methodInfo == AccessTools.PropertyGetter(typeof(CameraController), "Instance")) || (i.opcode == OpCodes.Call && i.operand is MethodInfo methodInfo2 && methodInfo2 == AccessTools.PropertyGetter(typeof(Camera), "main")) || (i.opcode == OpCodes.Ldfld && i.operand is FieldInfo fieldInfo2 && (fieldInfo2.Name.ToLower() == "cam" || fieldInfo2.Name.ToLower() == "camobj"))), (string)null);
			CodeMatch val2 = new CodeMatch((Func<CodeInstruction, bool>)((CodeInstruction i) => (i.opcode == OpCodes.Callvirt || i.opcode == OpCodes.Call) && i.operand is MethodInfo methodInfo && methodInfo.Name == "get_transform"), (string)null);
			int found = 0;
			List<CodeInstruction> codes = new CodeMatcher(instructions, (ILGenerator)null).MatchForward(false, (CodeMatch[])(object)new CodeMatch[2]
			{
				val,
				new CodeMatch((Func<CodeInstruction, bool>)((CodeInstruction i) => i.opcode == OpCodes.Callvirt && i.operand is MethodInfo methodInfo && methodInfo.Name == "get_transform"), (string)null)
			}).Repeat((Action<CodeMatcher>)delegate(CodeMatcher matcher)
			{
				//IL_005b: Unknown result type (might be due to invalid IL or missing references)
				//IL_0061: Expected O, but got Unknown
				//IL_009b: Unknown result type (might be due to invalid IL or missing references)
				//IL_00a5: Expected O, but got Unknown
				//IL_0036: Unknown result type (might be due to invalid IL or missing references)
				//IL_003c: Expected O, but got Unknown
				found++;
				if (matcher.Instruction.opcode == OpCodes.Ldfld)
				{
					matcher.InsertAndAdvance((CodeInstruction[])(object)new CodeInstruction[1]
					{
						new CodeInstruction(OpCodes.Pop, (object)null)
					});
				}
				CodeInstruction val3 = new CodeInstruction(OpCodes.Call, (object)AccessTools.PropertyGetter(typeof(Vars), "DominantHand"));
				val3.labels.AddRange(matcher.Instruction.labels);
				matcher.SetInstructionAndAdvance(val3);
				matcher.SetInstructionAndAdvance(new CodeInstruction(OpCodes.Callvirt, (object)AccessTools.Method(typeof(GameObject), "get_transform", (Type[])null, (Type[])null)));
			}, (Action<string>)null).InstructionEnumeration()
				.ToList();
			MethodInfo getInstance = AccessTools.PropertyGetter(typeof(CameraController), "Instance");
			if (codes.Where((CodeInstruction c, int k) => k + 1 < codes.Count && c.opcode == OpCodes.Call && c.operand is MethodInfo methodInfo && methodInfo == getInstance && codes[k + 1].opcode == OpCodes.Dup).Any())
			{
				codes = new CodeMatcher((IEnumerable<CodeInstruction>)codes, (ILGenerator)null).MatchForward(false, (CodeMatch[])(object)new CodeMatch[2]
				{
					new CodeMatch((OpCode?)OpCodes.Dup, (object)null, (string)null),
					val2
				}).Repeat((Action<CodeMatcher>)delegate(CodeMatcher matcher)
				{
					//IL_002a: Unknown result type (might be due to invalid IL or missing references)
					//IL_002f: Unknown result type (might be due to invalid IL or missing references)
					//IL_0041: Expected O, but got Unknown
					//IL_005e: Unknown result type (might be due to invalid IL or missing references)
					//IL_0068: Expected O, but got Unknown
					found++;
					matcher.SetInstructionAndAdvance(new CodeInstruction(OpCodes.Call, (object)AccessTools.PropertyGetter(typeof(Vars), "DominantHand"))
					{
						labels = matcher.Labels
					});
					matcher.SetInstructionAndAdvance(new CodeInstruction(OpCodes.Callvirt, (object)AccessTools.Method(typeof(GameObject), "get_transform", (Type[])null, (Type[])null)));
				}, (Action<string>)null).InstructionEnumeration()
					.ToList();
			}
			if (found == 0 && original?.Name != "ImpactRoutine")
			{
				Vars.NoMatch(original, "camera transform")(null);
			}
			return codes;
		}
	}
	[HarmonyPatch(typeof(DualWieldPickup))]
	internal class DuelWieldP
	{
		[HarmonyPrefix]
		[HarmonyPatch("PickedUp")]
		private static bool FixTransform(DualWieldPickup __instance)
		{
			//IL_001a: Unknown result type (might be due to invalid IL or missing references)
			//IL_001f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0052: Unknown result type (might be due to invalid IL or missing references)
			//IL_0058: Invalid comparison between Unknown and I4
			//IL_0067: Unknown result type (might be due to invalid IL or missing references)
			//IL_006d: Expected O, but got Unknown
			//IL_0089: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a4: Unknown result type (might be due to invalid IL or missing references)
			//IL_00fb: Unknown result type (might be due to invalid IL or missing references)
			//IL_00d1: Unknown result type (might be due to invalid IL or missing references)
			if (!Object.op_Implicit((Object)(object)MonoSingleton<GunControl>.Instance))
			{
				return false;
			}
			Object.Instantiate<GameObject>(__instance.pickUpEffect, ((Component)__instance).transform.position, Quaternion.identity);
			MonoSingleton<CameraController>.Instance.CameraShake(0.35f);
			if (!__instance.infiniteUses)
			{
				((Component)__instance).gameObject.SetActive(false);
			}
			if ((int)MonoSingleton<PlayerTracker>.Instance.playerType == 1)
			{
				MonoSingleton<PlatformerMovement>.Instance.AddExtraHit(3);
				return false;
			}
			GameObject val = new GameObject();
			val.transform.SetParent(((Component)MonoSingleton<GunControl>.Instance).transform, true);
			val.transform.localRotation = Quaternion.identity;
			DualWield[] componentsInChildren = ((Component)MonoSingleton<GunControl>.Instance).GetComponentsInChildren<DualWield>();
			val.transform.localScale = Vector3.one;
			if (componentsInChildren.Length % 2 == 0)
			{
				val.transform.localPosition = new Vector3((float)(componentsInChildren.Length / 2) * -0.15f, 0f, 0f);
			}
			else
			{
				val.transform.localPosition = new Vector3((float)((componentsInChildren.Length + 1) / 2) * 0.15f, 0f, 0f);
			}
			DualWield val2 = val.AddComponent<DualWield>();
			val2.delay = 0.05f;
			val2.juiceAmount = __instance.juiceAmount;
			if (componentsInChildren != null && componentsInChildren.Length != 0)
			{
				val2.delay += (float)componentsInChildren.Length / 20f;
			}
			return false;
		}
	}
	[HarmonyPatch]
	internal sealed class GunsP
	{
		[HarmonyPostfix]
		[HarmonyPatch(typeof(GunControl), "Start")]
		private static void RLPGC(GunControl __instance)
		{
			//IL_001e: Unknown result type (might be due to invalid IL or missing references)
			((Component)__instance).gameObject.AddComponent<VRGunsController>();
			((Behaviour)((Component)__instance).GetComponent<WalkingBob>()).enabled = false;
			((Component)__instance).transform.localPosition = Vector3.zero;
		}

		[HarmonyPostfix]
		[HarmonyPatch(typeof(GunSetter), "ResetWeapons")]
		private static void RLPGS(GunSetter __instance, bool firstTime = false)
		{
			//IL_0006: Unknown result type (might be due to invalid IL or missing references)
			((Component)__instance).transform.localPosition = Vector3.zero;
		}

		[HarmonyPostfix]
		[HarmonyPatch(typeof(GunSetter), "Start")]
		private static void MakeThemUndisappear(GunSetter __instance)
		{
			SkinnedMeshRenderer[] componentsInChildren = ((Component)__instance).GetComponentsInChildren<SkinnedMeshRenderer>();
			for (int i = 0; i < componentsInChildren.Length; i++)
			{
				componentsInChildren[i].updateWhenOffscreen = true;
			}
		}

		[HarmonyPrefix]
		[HarmonyPatch(typeof(WeaponWheel), "Update")]
		private static bool WWUpdate(WeaponWheel __instance)
		{
			//IL_0132: Unknown result type (might be due to invalid IL or missing references)
			//IL_013c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0141: Unknown result type (might be due to invalid IL or missing references)
			if (!Object.op_Implicit((Object)(object)MonoSingleton<GunControl>.Instance) || !MonoSingleton<GunControl>.Instance.activated || MonoSingleton<OptionsManager>.Instance.paused || MonoSingleton<NewMovement>.Instance.dead || GameStateManager.Instance.PlayerInputLocked)
			{
				((Component)__instance).gameObject.SetActive(false);
			}
			else if (MonoSingleton<InputManager>.Instance.InputSource.NextWeapon.WasCanc